From 02eeae3d3763a2a2897232b556c988005b53e3cd Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Tue, 27 Aug 2024 11:30:22 -0500 Subject: [PATCH 01/10] Add original upstream code to templates --- sdks/dotnet/.gitignore | 3 +- sdks/dotnet/openapi-config.yaml | 1 + .../src/Dropbox.Sign/Client/ApiClient.cs | 3 +- .../src/Dropbox.Sign/Client/ClientUtils.cs | 2 +- .../src/Dropbox.Sign/Client/Configuration.cs | 3 +- .../src/Dropbox.Sign/Dropbox.Sign.csproj | 1 + .../Model/AbstractOpenAPISchema.cs | 2 +- .../Model/AccountCreateRequest.cs | 19 +++-- .../Model/AccountCreateResponse.cs | 19 +++-- .../Dropbox.Sign/Model/AccountGetResponse.cs | 19 +++-- .../src/Dropbox.Sign/Model/AccountResponse.cs | 19 +++-- .../Model/AccountResponseQuotas.cs | 19 +++-- .../Model/AccountResponseUsage.cs | 19 +++-- .../Model/AccountUpdateRequest.cs | 19 +++-- .../Model/AccountVerifyRequest.cs | 19 +++-- .../Model/AccountVerifyResponse.cs | 19 +++-- .../Model/AccountVerifyResponseAccount.cs | 19 +++-- .../Dropbox.Sign/Model/ApiAppCreateRequest.cs | 19 +++-- .../Dropbox.Sign/Model/ApiAppGetResponse.cs | 19 +++-- .../Dropbox.Sign/Model/ApiAppListResponse.cs | 19 +++-- .../src/Dropbox.Sign/Model/ApiAppResponse.cs | 19 +++-- .../Dropbox.Sign/Model/ApiAppResponseOAuth.cs | 19 +++-- .../Model/ApiAppResponseOptions.cs | 19 +++-- .../Model/ApiAppResponseOwnerAccount.cs | 19 +++-- .../ApiAppResponseWhiteLabelingOptions.cs | 19 +++-- .../Dropbox.Sign/Model/ApiAppUpdateRequest.cs | 19 +++-- .../Model/BulkSendJobGetResponse.cs | 19 +++-- ...BulkSendJobGetResponseSignatureRequests.cs | 19 +++-- .../Model/BulkSendJobListResponse.cs | 19 +++-- .../Dropbox.Sign/Model/BulkSendJobResponse.cs | 19 +++-- .../Model/BulkSendJobSendResponse.cs | 19 +++-- .../Model/EmbeddedEditUrlRequest.cs | 19 +++-- .../Model/EmbeddedEditUrlResponse.cs | 19 +++-- .../Model/EmbeddedEditUrlResponseEmbedded.cs | 19 +++-- .../Model/EmbeddedSignUrlResponse.cs | 19 +++-- .../Model/EmbeddedSignUrlResponseEmbedded.cs | 19 +++-- .../src/Dropbox.Sign/Model/ErrorResponse.cs | 19 +++-- .../Dropbox.Sign/Model/ErrorResponseError.cs | 19 +++-- .../Model/EventCallbackRequest.cs | 19 +++-- .../Model/EventCallbackRequestEvent.cs | 19 +++-- .../EventCallbackRequestEventMetadata.cs | 19 +++-- .../Model/FaxLineAddUserRequest.cs | 19 +++-- .../Model/FaxLineAreaCodeGetResponse.cs | 19 +++-- .../Model/FaxLineCreateRequest.cs | 19 +++-- .../Model/FaxLineDeleteRequest.cs | 19 +++-- .../Dropbox.Sign/Model/FaxLineListResponse.cs | 19 +++-- .../Model/FaxLineRemoveUserRequest.cs | 19 +++-- .../src/Dropbox.Sign/Model/FaxLineResponse.cs | 19 +++-- .../Model/FaxLineResponseFaxLine.cs | 19 +++-- .../src/Dropbox.Sign/Model/FileResponse.cs | 19 +++-- .../Dropbox.Sign/Model/FileResponseDataUri.cs | 19 +++-- .../Dropbox.Sign/Model/ListInfoResponse.cs | 19 +++-- .../Model/OAuthTokenGenerateRequest.cs | 19 +++-- .../Model/OAuthTokenRefreshRequest.cs | 19 +++-- .../Dropbox.Sign/Model/OAuthTokenResponse.cs | 19 +++-- .../Dropbox.Sign/Model/ReportCreateRequest.cs | 19 +++-- .../Model/ReportCreateResponse.cs | 19 +++-- .../src/Dropbox.Sign/Model/ReportResponse.cs | 19 +++-- ...stBulkCreateEmbeddedWithTemplateRequest.cs | 55 +++++++------- ...atureRequestBulkSendWithTemplateRequest.cs | 55 +++++++------- .../SignatureRequestCreateEmbeddedRequest.cs | 55 +++++++------- ...equestCreateEmbeddedWithTemplateRequest.cs | 55 +++++++------- .../Model/SignatureRequestGetResponse.cs | 19 +++-- .../Model/SignatureRequestListResponse.cs | 19 +++-- .../Model/SignatureRequestRemindRequest.cs | 19 +++-- .../Model/SignatureRequestResponse.cs | 19 +++-- .../SignatureRequestResponseAttachment.cs | 19 +++-- ...SignatureRequestResponseCustomFieldBase.cs | 39 +++++----- ...atureRequestResponseCustomFieldCheckbox.cs | 39 +++++----- ...SignatureRequestResponseCustomFieldText.cs | 39 +++++----- .../Model/SignatureRequestResponseDataBase.cs | 39 +++++----- ...gnatureRequestResponseDataValueCheckbox.cs | 39 +++++----- ...reRequestResponseDataValueCheckboxMerge.cs | 39 +++++----- ...atureRequestResponseDataValueDateSigned.cs | 39 +++++----- ...gnatureRequestResponseDataValueDropdown.cs | 39 +++++----- ...gnatureRequestResponseDataValueInitials.cs | 39 +++++----- .../SignatureRequestResponseDataValueRadio.cs | 39 +++++----- ...natureRequestResponseDataValueSignature.cs | 39 +++++----- .../SignatureRequestResponseDataValueText.cs | 39 +++++----- ...natureRequestResponseDataValueTextMerge.cs | 39 +++++----- .../SignatureRequestResponseSignatures.cs | 19 +++-- .../Model/SignatureRequestSendRequest.cs | 55 +++++++------- ...SignatureRequestSendWithTemplateRequest.cs | 55 +++++++------- .../Model/SignatureRequestUpdateRequest.cs | 19 +++-- .../src/Dropbox.Sign/Model/SubAttachment.cs | 19 +++-- .../Dropbox.Sign/Model/SubBulkSignerList.cs | 19 +++-- .../Model/SubBulkSignerListCustomField.cs | 19 +++-- sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs | 19 +++-- .../src/Dropbox.Sign/Model/SubCustomField.cs | 19 +++-- .../Dropbox.Sign/Model/SubEditorOptions.cs | 19 +++-- .../src/Dropbox.Sign/Model/SubFieldOptions.cs | 19 +++-- .../Dropbox.Sign/Model/SubFormFieldGroup.cs | 19 +++-- .../Dropbox.Sign/Model/SubFormFieldRule.cs | 19 +++-- .../Model/SubFormFieldRuleAction.cs | 19 +++-- .../Model/SubFormFieldRuleTrigger.cs | 19 +++-- .../Model/SubFormFieldsPerDocumentBase.cs | 39 +++++----- .../Model/SubFormFieldsPerDocumentCheckbox.cs | 47 ++++++------ .../SubFormFieldsPerDocumentCheckboxMerge.cs | 27 ++++--- .../SubFormFieldsPerDocumentDateSigned.cs | 47 ++++++------ .../Model/SubFormFieldsPerDocumentDropdown.cs | 47 ++++++------ .../SubFormFieldsPerDocumentHyperlink.cs | 47 ++++++------ .../Model/SubFormFieldsPerDocumentInitials.cs | 27 ++++--- .../Model/SubFormFieldsPerDocumentRadio.cs | 47 ++++++------ .../SubFormFieldsPerDocumentSignature.cs | 27 ++++--- .../Model/SubFormFieldsPerDocumentText.cs | 47 ++++++------ .../SubFormFieldsPerDocumentTextMerge.cs | 47 ++++++------ .../src/Dropbox.Sign/Model/SubMergeField.cs | 19 +++-- .../dotnet/src/Dropbox.Sign/Model/SubOAuth.cs | 19 +++-- .../src/Dropbox.Sign/Model/SubOptions.cs | 19 +++-- .../SubSignatureRequestGroupedSigners.cs | 19 +++-- .../Model/SubSignatureRequestSigner.cs | 43 ++++++----- .../SubSignatureRequestTemplateSigner.cs | 43 ++++++----- .../Dropbox.Sign/Model/SubSigningOptions.cs | 19 +++-- .../src/Dropbox.Sign/Model/SubTeamResponse.cs | 19 +++-- .../src/Dropbox.Sign/Model/SubTemplateRole.cs | 19 +++-- .../Model/SubUnclaimedDraftSigner.cs | 19 +++-- .../Model/SubUnclaimedDraftTemplateSigner.cs | 19 +++-- .../Model/SubWhiteLabelingOptions.cs | 19 +++-- .../Model/TeamAddMemberRequest.cs | 19 +++-- .../Dropbox.Sign/Model/TeamCreateRequest.cs | 19 +++-- .../Dropbox.Sign/Model/TeamGetInfoResponse.cs | 19 +++-- .../src/Dropbox.Sign/Model/TeamGetResponse.cs | 19 +++-- .../Dropbox.Sign/Model/TeamInfoResponse.cs | 19 +++-- .../Dropbox.Sign/Model/TeamInviteResponse.cs | 19 +++-- .../Dropbox.Sign/Model/TeamInvitesResponse.cs | 19 +++-- .../Dropbox.Sign/Model/TeamMemberResponse.cs | 19 +++-- .../Dropbox.Sign/Model/TeamMembersResponse.cs | 19 +++-- .../Dropbox.Sign/Model/TeamParentResponse.cs | 19 +++-- .../Model/TeamRemoveMemberRequest.cs | 19 +++-- .../src/Dropbox.Sign/Model/TeamResponse.cs | 19 +++-- .../Model/TeamSubTeamsResponse.cs | 19 +++-- .../Dropbox.Sign/Model/TeamUpdateRequest.cs | 19 +++-- .../Model/TemplateAddUserRequest.cs | 19 +++-- .../TemplateCreateEmbeddedDraftRequest.cs | 43 ++++++----- .../TemplateCreateEmbeddedDraftResponse.cs | 19 +++-- ...lateCreateEmbeddedDraftResponseTemplate.cs | 19 +++-- .../Model/TemplateCreateRequest.cs | 43 ++++++----- .../Model/TemplateCreateResponse.cs | 19 +++-- .../Model/TemplateCreateResponseTemplate.cs | 19 +++-- .../Model/TemplateEditResponse.cs | 19 +++-- .../Dropbox.Sign/Model/TemplateGetResponse.cs | 19 +++-- .../Model/TemplateListResponse.cs | 19 +++-- .../Model/TemplateRemoveUserRequest.cs | 19 +++-- .../Dropbox.Sign/Model/TemplateResponse.cs | 19 +++-- .../Model/TemplateResponseAccount.cs | 19 +++-- .../Model/TemplateResponseAccountQuota.cs | 19 +++-- .../Model/TemplateResponseCCRole.cs | 19 +++-- .../Model/TemplateResponseDocument.cs | 19 +++-- ...TemplateResponseDocumentCustomFieldBase.cs | 39 +++++----- ...lateResponseDocumentCustomFieldCheckbox.cs | 27 ++++--- ...TemplateResponseDocumentCustomFieldText.cs | 47 ++++++------ .../TemplateResponseDocumentFieldGroup.cs | 19 +++-- .../TemplateResponseDocumentFieldGroupRule.cs | 19 +++-- .../TemplateResponseDocumentFormFieldBase.cs | 39 +++++----- ...mplateResponseDocumentFormFieldCheckbox.cs | 27 ++++--- ...lateResponseDocumentFormFieldDateSigned.cs | 27 ++++--- ...mplateResponseDocumentFormFieldDropdown.cs | 27 ++++--- ...plateResponseDocumentFormFieldHyperlink.cs | 47 ++++++------ ...mplateResponseDocumentFormFieldInitials.cs | 27 ++++--- .../TemplateResponseDocumentFormFieldRadio.cs | 27 ++++--- ...plateResponseDocumentFormFieldSignature.cs | 27 ++++--- .../TemplateResponseDocumentFormFieldText.cs | 47 ++++++------ ...TemplateResponseDocumentStaticFieldBase.cs | 39 +++++----- ...lateResponseDocumentStaticFieldCheckbox.cs | 27 ++++--- ...teResponseDocumentStaticFieldDateSigned.cs | 27 ++++--- ...lateResponseDocumentStaticFieldDropdown.cs | 27 ++++--- ...ateResponseDocumentStaticFieldHyperlink.cs | 27 ++++--- ...lateResponseDocumentStaticFieldInitials.cs | 27 ++++--- ...emplateResponseDocumentStaticFieldRadio.cs | 27 ++++--- ...ateResponseDocumentStaticFieldSignature.cs | 27 ++++--- ...TemplateResponseDocumentStaticFieldText.cs | 27 ++++--- .../TemplateResponseFieldAvgTextLength.cs | 19 +++-- .../Model/TemplateResponseSignerRole.cs | 19 +++-- .../Model/TemplateUpdateFilesRequest.cs | 43 ++++++----- .../Model/TemplateUpdateFilesResponse.cs | 19 +++-- .../TemplateUpdateFilesResponseTemplate.cs | 19 +++-- .../UnclaimedDraftCreateEmbeddedRequest.cs | 43 ++++++----- ...dDraftCreateEmbeddedWithTemplateRequest.cs | 55 +++++++------- .../Model/UnclaimedDraftCreateRequest.cs | 43 ++++++----- .../Model/UnclaimedDraftCreateResponse.cs | 19 +++-- .../UnclaimedDraftEditAndResendRequest.cs | 19 +++-- .../Model/UnclaimedDraftResponse.cs | 19 +++-- .../src/Dropbox.Sign/Model/WarningResponse.cs | 19 +++-- .../templates/AbstractOpenAPISchema.mustache | 6 +- sdks/dotnet/templates/ApiClient.mustache | 13 +++- sdks/dotnet/templates/ApiException.mustache | 12 +++ sdks/dotnet/templates/ClientUtils.mustache | 14 +++- sdks/dotnet/templates/Configuration.mustache | 15 +++- sdks/dotnet/templates/Solution.mustache | 9 +++ sdks/dotnet/templates/TestProject.mustache | 5 ++ sdks/dotnet/templates/api.mustache | 24 ++++++ sdks/dotnet/templates/gitignore.mustache | 7 +- sdks/dotnet/templates/modelGeneric.mustache | 74 +++++++++++++++++-- .../dotnet/templates/netcore_project.mustache | 14 ++++ .../templates/netcore_testproject.mustache | 5 ++ sdks/dotnet/templates/validatable.mustache | 7 +- 196 files changed, 2373 insertions(+), 2375 deletions(-) diff --git a/sdks/dotnet/.gitignore b/sdks/dotnet/.gitignore index 0a5d07c58..747f85cf3 100644 --- a/sdks/dotnet/.gitignore +++ b/sdks/dotnet/.gitignore @@ -27,6 +27,7 @@ x86/ [Aa][Rr][Mm]/ [Aa][Rr][Mm]64/ bld/ +#[Bb]in/ [Oo]bj/ [Ll]og/ [Ll]ogs/ @@ -361,5 +362,5 @@ MigrationBackup/ FodyWeavers.xsd vendor - +api .openapi-generator diff --git a/sdks/dotnet/openapi-config.yaml b/sdks/dotnet/openapi-config.yaml index b8a7b6d7a..365e430d2 100644 --- a/sdks/dotnet/openapi-config.yaml +++ b/sdks/dotnet/openapi-config.yaml @@ -4,6 +4,7 @@ additionalProperties: packageName: Dropbox.Sign packageAuthors: Dropbox Sign API Team packageCompany: Dropbox Sign API Team + packageCopyright: Dropbox 2024 packageDescription: Client library for using the Dropbox Sign API packageVersion: 1.5-dev packageTitle: Dropbox Sign .Net SDK diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs index c64b27de0..294ed4229 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs @@ -176,8 +176,7 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient private readonly RestClient _restClient; - - /// + /// /// Specifies the settings on a object. /// These settings can be adjusted to accommodate custom serialization rules. /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs index 2916c1dc3..e195cc258 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs @@ -11,12 +11,12 @@ using System; using System.Collections; -using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; +using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; using Dropbox.Sign.Model; diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs index b1e4a868f..26f71af03 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs @@ -18,11 +18,10 @@ using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Text; -using Newtonsoft.Json; using System.Net.Http; +using Newtonsoft.Json; using Dropbox.Sign.Model; - namespace Dropbox.Sign.Client { /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj index ccb83267d..53f6e328f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj +++ b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj @@ -10,6 +10,7 @@ Dropbox Sign API Team Dropbox Sign .Net SDK Client library for using the Dropbox Sign API + Dropbox 2024 Dropbox.Sign 1.5-dev bin\$(Configuration)\$(TargetFramework)\Dropbox.Sign.xml diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs index f0eb45d54..76b51744a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs @@ -10,9 +10,9 @@ using System; -using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; +using System.Collections.Generic; namespace Dropbox.Sign.Model { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs index f2448610e..98576e17c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs @@ -200,6 +200,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -231,16 +240,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs index 0da9d72f8..2aa6b3f03 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs @@ -175,6 +175,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -200,16 +209,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs index b98e61706..30cf617b8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs index e5b102f62..06f1f74d2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs @@ -314,6 +314,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -387,16 +396,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs index bf46598c7..59fa579a7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs @@ -233,6 +233,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -276,16 +285,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs index 2a72141a5..d71b98c73 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs @@ -138,6 +138,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -151,16 +160,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs index 2048e3256..390bc38c5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs @@ -176,6 +176,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -201,16 +210,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs index 13de31874..0870f262d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs @@ -143,6 +143,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -156,16 +165,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs index f4c97511b..26479ca29 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs index 39edf9b0f..4fc53b896 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs @@ -138,6 +138,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -151,16 +160,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs index ca0b7982b..0d3cf9bc8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs @@ -260,6 +260,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -309,16 +318,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs index 6fd9e3f1e..412c8427a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs index c43833af7..ca8ad13b7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs @@ -177,6 +177,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -202,16 +211,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs index fb4b75275..a5cd961a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs @@ -298,6 +298,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -365,16 +374,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs index 91bbff9d4..916deae9a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs @@ -192,6 +192,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -223,16 +232,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs index 948ef419b..193561968 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs @@ -134,6 +134,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -147,16 +156,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs index 0ee2ac652..1ffadc5c8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs index 5dc24b9ec..ce662e5e4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs @@ -371,6 +371,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -462,16 +471,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs index 9570c834d..5e4a74d3b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs @@ -250,6 +250,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -299,16 +308,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs index 947c7cffb..a520a677a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs @@ -195,6 +195,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -226,16 +235,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index c1a68e6f5..95b160e28 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -581,6 +581,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -738,16 +747,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs index 4840c1be5..6ded2592b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs @@ -177,6 +177,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -202,16 +211,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs index 42d178e29..0ca83c085 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs @@ -183,6 +183,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -214,16 +223,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs index 8cb4ec3ed..044178f18 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs index 755134783..52c8a6146 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs @@ -282,6 +282,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -349,16 +358,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs index 6e9da6fc9..030385a03 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs index 1f961bb91..7163acc78 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs @@ -153,6 +153,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -172,16 +181,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs index 554b2d2f3..c5eb3c7e6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs index 6d67035d5..74f701f14 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs @@ -153,6 +153,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -172,16 +181,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs index 3f52837a3..0ec26e8ea 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs @@ -142,6 +142,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -155,16 +164,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs index b7ec7a6b1..c99be2365 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs @@ -186,6 +186,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -211,16 +220,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs index d8b074418..3752b9f1b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs @@ -196,6 +196,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -227,16 +236,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs index 9513fffcb..f1b73f623 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs @@ -347,6 +347,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -378,16 +387,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs index 5b0aaf582..ab2164575 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs @@ -195,6 +195,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -226,16 +235,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs index 3db56c254..220e2d913 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs @@ -181,6 +181,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -206,16 +215,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs index a00ff7e21..116322fd6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs @@ -138,6 +138,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -151,16 +160,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs index db1aaf944..0600d270a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs @@ -214,6 +214,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -245,16 +254,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs index 6c3daabad..3b91fc96f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs @@ -143,6 +143,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -156,16 +165,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs index d4ea8bab0..dcf14a3ea 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs @@ -174,6 +174,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -199,16 +208,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs index ddac6924d..e724004ed 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs @@ -181,6 +181,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -206,16 +215,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs index f40fa3a10..eec34e07b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs @@ -155,6 +155,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -174,16 +183,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs index e2367660b..2cc9b0c01 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs @@ -187,6 +187,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -218,16 +227,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs index 751b8d97b..71c95828d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs @@ -153,6 +153,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -172,16 +181,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs index e0ff3b8d1..4831bc811 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs @@ -138,6 +138,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -151,16 +160,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs index 04a6d62ec..43a57afac 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs @@ -183,6 +183,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -214,16 +223,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs index 28fae0370..3afc2cc0e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs @@ -239,6 +239,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -276,16 +285,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs index 335fed343..421913864 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs @@ -167,6 +167,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -186,16 +195,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs index b61ca1d48..684a656c5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs @@ -206,6 +206,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -243,16 +252,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs index 779294972..82621990c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs @@ -208,6 +208,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -233,16 +242,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs index 30d81f957..39870ed2b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs index 367e6f81f..ac3995847 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs @@ -212,6 +212,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -243,16 +252,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs index 2586c6568..99815e03c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs @@ -373,6 +373,33 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + } + + // Title (string) maxLength + if (this.Title != null && this.Title.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -458,34 +485,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); - } - - // Title (string) maxLength - if (this.Title != null && this.Title.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs index c2356a84c..cf24ef92e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs @@ -368,6 +368,33 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + } + + // Title (string) maxLength + if (this.Title != null && this.Title.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -453,34 +480,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); - } - - // Title (string) maxLength - if (this.Title != null && this.Title.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs index d2133fe6a..7b91bdf2a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs @@ -565,6 +565,33 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + } + + // Title (string) maxLength + if (this.Title != null && this.Title.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -716,34 +743,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); - } - - // Title (string) maxLength - if (this.Title != null && this.Title.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs index 434dff6a9..206113b4d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs @@ -413,6 +413,33 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + } + + // Title (string) maxLength + if (this.Title != null && this.Title.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -510,34 +537,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); - } - - // Title (string) maxLength - if (this.Title != null && this.Title.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs index 99c5ca289..49d03b4b9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs index 6ee599bb8..98a0314a9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs @@ -177,6 +177,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -202,16 +211,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs index d014fd082..e1a4fed11 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs @@ -162,6 +162,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -181,16 +190,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index b2663d82f..7c13cdb09 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -581,6 +581,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -738,16 +747,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs index 4ef4e5869..6399fc085 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs @@ -244,6 +244,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -287,16 +296,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs index 80892f4b7..0bdd83eec 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs @@ -226,6 +226,25 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -263,26 +282,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs index 6423af7e1..630b35414 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs @@ -171,26 +171,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "bool", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -214,6 +194,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "bool", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs index 2ad1fc7a6..ac325b228 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs @@ -175,26 +175,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -218,6 +198,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs index 3868f56c8..5fc75797e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs @@ -229,6 +229,25 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -266,26 +285,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs index 980cef3bd..85ab84d1c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs @@ -174,26 +174,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "bool", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -217,6 +197,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "bool", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs index 3638e458a..0be785a6e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs @@ -178,26 +178,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -221,6 +201,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs index 4fa90337f..51c78629b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs @@ -178,26 +178,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -221,6 +201,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs index fffeec0ea..1e509e552 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs @@ -178,26 +178,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -221,6 +201,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index 36ee66b34..6b90600ba 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -178,26 +178,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -221,6 +201,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs index a147981b9..9baad43be 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs @@ -174,26 +174,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "bool", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -217,6 +197,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "bool", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index 54308cabf..d9405cacb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -178,26 +178,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -221,6 +201,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs index 0db497c48..ac5aec6e6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs @@ -178,26 +178,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -221,6 +201,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs index 764ffd1fa..b33be2e8d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs @@ -178,26 +178,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -221,6 +201,25 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs index 46ed7f357..02854bcae 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs @@ -476,6 +476,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -597,16 +606,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs index b8c13f72a..62ea605bb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs @@ -595,6 +595,33 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + } + + // Title (string) maxLength + if (this.Title != null && this.Title.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -758,34 +785,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); - } - - // Title (string) maxLength - if (this.Title != null && this.Title.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs index e48cf04c9..ec6655419 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs @@ -443,6 +443,33 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + } + + // Title (string) maxLength + if (this.Title != null && this.Title.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -552,34 +579,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); - } - - // Title (string) maxLength - if (this.Title != null && this.Title.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs index 03570e75e..adff98749 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs @@ -200,6 +200,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -231,16 +240,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs index 52a6afd5b..8bdeca5e5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs @@ -192,6 +192,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -223,16 +232,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs index 900ea919a..0563b89d1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs @@ -159,6 +159,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -178,16 +187,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs index 2623b6468..230e555a9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs @@ -167,6 +167,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -186,16 +195,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs index 37d8b1f64..b71485d71 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs @@ -167,6 +167,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -186,16 +195,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs index ed49fb294..89e68881f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs @@ -196,6 +196,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -227,16 +236,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs index 97e1581af..93b4d5c57 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs @@ -149,6 +149,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -168,16 +177,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs index 327e984d4..645148d2f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs @@ -179,6 +179,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -192,16 +201,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs index b842f8b49..3e35e2104 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs @@ -191,6 +191,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -216,16 +225,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs index 9a8758135..452440480 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs @@ -217,6 +217,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -248,16 +257,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs index 81c306887..4e1e214ad 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs @@ -206,6 +206,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -237,16 +246,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs index 7645a09fd..c6cf12d13 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs @@ -236,6 +236,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -267,16 +276,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs index 2aae8ac37..01d1b51a6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs @@ -345,6 +345,25 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -418,26 +437,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs index bd946a6ff..f9c1d6a2f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs @@ -210,6 +210,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -235,30 +258,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs index 9c841b6dc..fba5b5b6d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs @@ -176,20 +176,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -213,6 +199,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs index f6458c2c5..7a7d2e1fb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs @@ -311,6 +311,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -336,30 +359,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs index 42b9c670e..3ce9bf793 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs @@ -355,6 +355,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -392,30 +415,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs index 2d3e4cee8..97309cf07 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs @@ -359,6 +359,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -396,30 +419,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs index aca13bc35..43989b939 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs @@ -176,20 +176,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -213,6 +199,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs index 7ea8dbe5f..3894208cd 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs @@ -215,6 +215,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -240,30 +263,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs index bf5a59a65..783e9af7d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs @@ -176,20 +176,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -213,6 +199,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs index bea6ff44e..c7f0abea2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs @@ -522,6 +522,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -595,30 +618,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs index 0aca25e6c..4afda0f29 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs @@ -311,6 +311,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -336,30 +359,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs index 9e1f7ddcf..e80df5c4a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs @@ -179,6 +179,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -198,16 +207,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs index 52f502a2e..0db223597 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs @@ -210,6 +210,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -229,16 +238,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs index 82af0cf32..300a8870f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs @@ -134,6 +134,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -147,16 +156,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs index 7b64469cf..89df426c8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs @@ -187,6 +187,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -212,16 +221,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs index b66691020..5b7cb6f51 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs @@ -260,6 +260,27 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Pin (string) maxLength + if (this.Pin != null && this.Pin.Length > 12) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); + } + + // Pin (string) minLength + if (this.Pin != null && this.Pin.Length < 4) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -303,28 +324,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Pin (string) maxLength - if (this.Pin != null && this.Pin.Length > 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); - } - - // Pin (string) minLength - if (this.Pin != null && this.Pin.Length < 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs index 6f8b7a7fb..ca78ce6ad 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs @@ -265,6 +265,27 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Pin (string) maxLength + if (this.Pin != null && this.Pin.Length > 12) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); + } + + // Pin (string) minLength + if (this.Pin != null && this.Pin.Length < 4) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -308,28 +329,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Pin (string) maxLength - if (this.Pin != null && this.Pin.Length > 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); - } - - // Pin (string) minLength - if (this.Pin != null && this.Pin.Length < 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs index 2aa89b537..e9f1288aa 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs @@ -227,6 +227,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -264,16 +273,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs index b1135552d..82c755ed2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs index 54a946ed0..6245a7601 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs index 56479d9b8..2697fb05c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs @@ -186,6 +186,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -211,16 +220,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs index 1383c4fb6..8f7b8d7d8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs @@ -191,6 +191,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -216,16 +225,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs index 36996b6e2..c15d608d4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs @@ -415,6 +415,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -512,16 +521,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs index 0f3cfe22a..31f0c59d7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs @@ -205,6 +205,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -230,16 +239,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs index 50a199eb3..20367fc25 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs @@ -139,6 +139,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -152,16 +161,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs index 10bda49c3..12270e072 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs index 2087aa273..842882286 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs index 03756583b..7a48be533 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs @@ -205,6 +205,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -242,16 +251,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs index 67a22d2f4..24fa2f800 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs @@ -221,6 +221,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -264,16 +273,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs index c06401f75..bd0f0799d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs @@ -158,6 +158,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -177,16 +186,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs index 3273ae1f5..bdfe00b75 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs @@ -176,6 +176,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -201,16 +210,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs index c0578d53d..9cefff5bc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs @@ -176,6 +176,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -201,16 +210,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs index 314993200..b995a2314 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs index e12e94f28..ab6d54a7c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs @@ -243,6 +243,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -280,16 +289,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs index 99ddc3020..895076aa5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs @@ -197,6 +197,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -228,16 +237,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs index 0cb396f1b..7651ec730 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs @@ -176,6 +176,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -201,16 +210,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs index ca0b0874d..eb50952ef 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs @@ -138,6 +138,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -151,16 +160,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs index 65f0551f3..cde613360 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs @@ -172,6 +172,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -197,16 +206,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs index 1acfdd73e..e3ede624a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs @@ -571,6 +571,27 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 200) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -728,28 +749,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 200) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs index 7ba9b8dd2..35862888a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs index e25ebf007..ea0719eb4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs @@ -193,6 +193,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -224,16 +233,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs index 5c7318841..ced4d2e75 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs @@ -468,6 +468,27 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 200) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -583,28 +604,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 200) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs index a342dd966..d74593d65 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs index 32b22c960..f10455e16 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs @@ -138,6 +138,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -151,16 +160,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs index c885a955f..060fa112e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs @@ -138,6 +138,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -151,16 +160,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs index 7e2f56081..48f647a1f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs index 654a2e098..fcff65a2f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs @@ -177,6 +177,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -202,16 +211,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs index 2676f0a39..68d78136d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs index 4037176bc..4e2cc0292 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -408,6 +408,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -505,16 +514,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs index 5bcaa3781..3e95d2a49 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs @@ -220,6 +220,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -263,16 +272,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs index 6341197e3..9f7133aee 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs @@ -179,6 +179,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -210,16 +219,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs index 6692584f0..1e4ac68bc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs @@ -138,6 +138,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -151,16 +160,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs index 03dc7480c..cc0df4128 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs @@ -233,6 +233,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -276,16 +285,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs index 1ed5b4fce..dbfd9f0f3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs @@ -299,6 +299,25 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -366,26 +385,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs index 309d29ab3..abde53682 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs @@ -166,20 +166,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -203,6 +189,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs index c07f639a9..45600586c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs @@ -233,6 +233,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -270,30 +293,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs index d8f59646f..a58a8e204 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs @@ -156,6 +156,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -175,16 +184,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs index 667be623a..9eebbb812 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs index e14e87f2b..3a8244efc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs @@ -311,6 +311,25 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -378,26 +397,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs index 8ebf880b8..181dcc3c8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs index 55fe07682..8e7865db0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs index e39b48a58..4d8602736 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs index fe74f8e1c..a7c1191bb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs @@ -239,6 +239,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -276,30 +299,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs index df5838d07..8952606b8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs index 62cb44f28..6266ac8d3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs index 98b3358c2..32f42e960 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs index d81fc312f..a10148573 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs @@ -323,6 +323,29 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } public List GetOpenApiTypes() { @@ -366,30 +389,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - foreach (var x in BaseValidate(validationContext)) - { - yield return x; - } - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs index 93359604d..1c40eee35 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs @@ -312,6 +312,25 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -379,26 +398,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs index e4618ec57..4a13f714d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs index 805b11ba5..d948423f3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs index 61c3c2169..439eefb7f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs index a1499283e..cc0e7f479 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs index 6033d3ad3..eaa28c9f9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs index 8e783bfc7..e3756619e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs index 07f4b39f9..505d3ea02 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs index 292dc6169..7c075e5fd 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs @@ -172,20 +172,6 @@ public override int GetHashCode() return hashCode; } } - - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - - return types; - } - /// /// To validate all properties of the instance /// @@ -209,6 +195,19 @@ public List GetOpenApiTypes() } yield break; } + + public List GetOpenApiTypes() + { + var types = new List(); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + + return types; + } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs index 653edf370..716049b76 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs @@ -149,6 +149,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -168,16 +177,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs index 03bdca7ac..c55b8ce8f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs @@ -153,6 +153,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -172,16 +181,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs index 8ac2ed54e..80b7fb8b0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs @@ -231,6 +231,27 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 100) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 100.", new [] { "Subject" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -274,28 +295,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 100.", new [] { "Subject" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs index 09a1cd757..20fd8d4db 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs @@ -137,6 +137,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -150,16 +159,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs index 02babe572..a7d1e289d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs @@ -159,6 +159,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -178,16 +187,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs index 688ca1958..c7678d756 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs @@ -777,6 +777,27 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 200) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -1000,28 +1021,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 200) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs index b4a67c388..6096d17a8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs @@ -656,6 +656,33 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + } + + // Title (string) maxLength + if (this.Title != null && this.Title.Length > 255) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -843,34 +870,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); - } - - // Title (string) maxLength - if (this.Title != null && this.Title.Length > 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs index 21a0bbe35..1f3e8c102 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs @@ -576,6 +576,27 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Message (string) maxLength + if (this.Message != null && this.Message.Length > 5000) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + } + + // Subject (string) maxLength + if (this.Subject != null && this.Subject.Length > 200) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + } + + yield break; + } public List GetOpenApiTypes() { @@ -727,28 +748,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - // Message (string) maxLength - if (this.Message != null && this.Message.Length > 5000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); - } - - // Subject (string) maxLength - if (this.Subject != null && this.Subject.Length > 200) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); - } - - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs index a42b11897..749f526e1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs @@ -157,6 +157,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -176,16 +185,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs index 4f12d3662..397d7c916 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs @@ -263,6 +263,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -318,16 +327,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs index e1ca22a15..7e3b1e1fc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs @@ -229,6 +229,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -272,16 +281,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs index 2ab467f77..f8998eda2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs @@ -167,6 +167,15 @@ public override int GetHashCode() return hashCode; } } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } public List GetOpenApiTypes() { @@ -186,16 +195,6 @@ public List GetOpenApiTypes() return types; } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/sdks/dotnet/templates/AbstractOpenAPISchema.mustache b/sdks/dotnet/templates/AbstractOpenAPISchema.mustache index 6b40f25f5..4e97b76db 100644 --- a/sdks/dotnet/templates/AbstractOpenAPISchema.mustache +++ b/sdks/dotnet/templates/AbstractOpenAPISchema.mustache @@ -1,12 +1,15 @@ {{>partial_header}} using System; -using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; +{{! CUSTOM - BEGIN }} +using System.Collections.Generic; +{{! CUSTOM - END }} namespace {{packageName}}.{{modelPackage}} { +{{! CUSTOM - BEGIN }} public struct OpenApiType { public string Name { set; get; } @@ -20,6 +23,7 @@ namespace {{packageName}}.{{modelPackage}} List GetOpenApiTypes(); } +{{! CUSTOM - END }} /// /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification /// diff --git a/sdks/dotnet/templates/ApiClient.mustache b/sdks/dotnet/templates/ApiClient.mustache index 54f7dea38..74ed7a67e 100644 --- a/sdks/dotnet/templates/ApiClient.mustache +++ b/sdks/dotnet/templates/ApiClient.mustache @@ -173,10 +173,11 @@ namespace {{packageName}}.Client { private readonly string _baseUrl; +{{! CUSTOM - BEGIN }} private readonly RestClient _restClient; - - /// +{{! CUSTOM - END }} + /// /// Specifies the settings on a object. /// These settings can be adjusted to accommodate custom serialization rules. /// @@ -227,6 +228,7 @@ namespace {{packageName}}.Client _baseUrl = basePath; } +{{! CUSTOM - BEGIN }} /// /// Initializes a new instance of the . This should be used in unit tests only /// @@ -242,6 +244,7 @@ namespace {{packageName}}.Client _restClient = mockClient; } +{{! CUSTOM - END }} /// /// Constructs the RestSharp version of an http method /// @@ -475,6 +478,11 @@ namespace {{packageName}}.Client UserAgent = configuration.UserAgent }; +{{#vendorExtensions.x-ignore-block}} + RestClient client = new RestClient(clientOptions) + .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} RestClient client = _restClient; if (client == null) { @@ -482,6 +490,7 @@ namespace {{packageName}}.Client } client.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); +{{! CUSTOM - END }} {{#hasOAuthMethods}} if (!string.IsNullOrEmpty(configuration.OAuthTokenUrl) && diff --git a/sdks/dotnet/templates/ApiException.mustache b/sdks/dotnet/templates/ApiException.mustache index e5a99a56d..58722a78f 100644 --- a/sdks/dotnet/templates/ApiException.mustache +++ b/sdks/dotnet/templates/ApiException.mustache @@ -1,7 +1,9 @@ {{>partial_header}} using System; +{{! CUSTOM - BEGIN }} using Dropbox.Sign.Model; +{{! CUSTOM - END }} namespace {{packageName}}.Client { @@ -20,7 +22,12 @@ namespace {{packageName}}.Client /// Gets or sets the error content (body json object) /// /// The error content (Http response body). +{{#vendorExtensions.x-ignore-block}} + public object ErrorContent { get; private set; } +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} public ErrorResponse ErrorContent { get; private set; } +{{! CUSTOM - END }} /// /// Gets or sets the HTTP headers @@ -50,7 +57,12 @@ namespace {{packageName}}.Client /// Error message. /// Error content. /// HTTP Headers. +{{#vendorExtensions.x-ignore-block}} + public ApiException(int errorCode, string message, object errorContent = null, Multimap headers = null) : base(message) +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} public ApiException(int errorCode, string message, ErrorResponse errorContent = null, Multimap headers = null) : base(message) +{{! CUSTOM - END }} { this.ErrorCode = errorCode; this.ErrorContent = errorContent; diff --git a/sdks/dotnet/templates/ClientUtils.mustache b/sdks/dotnet/templates/ClientUtils.mustache index 08a43623f..2fc19e92a 100644 --- a/sdks/dotnet/templates/ClientUtils.mustache +++ b/sdks/dotnet/templates/ClientUtils.mustache @@ -2,18 +2,20 @@ using System; using System.Collections; -using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using {{packageName}}.Model; {{#useCompareNetObjects}} using KellermanSoftware.CompareNetObjects; {{/useCompareNetObjects}} +{{! CUSTOM - BEGIN }} +using System.Collections.Generic; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using {{packageName}}.Model; +{{! CUSTOM - END }} namespace {{packageName}}.Client { @@ -116,8 +118,10 @@ namespace {{packageName}}.Client return boolean ? "true" : "false"; if (obj is ICollection collection) return string.Join(",", collection.Cast()); +{{! CUSTOM - BEGIN }} if (obj is Enum && HasEnumMemberAttrValue(obj)) return GetEnumMemberAttrValue(obj); +{{! CUSTOM - END }} return Convert.ToString(obj, CultureInfo.InvariantCulture); } @@ -216,6 +220,7 @@ namespace {{packageName}}.Client return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); } +{{! CUSTOM - BEGIN }} /// /// Is the Enum decorated with EnumMember Attribute @@ -333,5 +338,6 @@ namespace {{packageName}}.Client ); } } +{{! CUSTOM - END }} } } diff --git a/sdks/dotnet/templates/Configuration.mustache b/sdks/dotnet/templates/Configuration.mustache index 54f87f8b4..0c8abcf43 100644 --- a/sdks/dotnet/templates/Configuration.mustache +++ b/sdks/dotnet/templates/Configuration.mustache @@ -11,14 +11,15 @@ using System.Net; using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Text; -using Newtonsoft.Json; using System.Net.Http; {{#useRestSharp}} {{#hasOAuthMethods}}using {{packageName}}.Client.Auth; {{/hasOAuthMethods}} {{/useRestSharp}} +{{! CUSTOM - BEGIN }} +using Newtonsoft.Json; using Dropbox.Sign.Model; - +{{! CUSTOM - END }} namespace {{packageName}}.Client { @@ -56,13 +57,23 @@ namespace {{packageName}}.Client { return new ApiException(status, string.Format("Error calling {0}: {1}", methodName, response.RawContent), +{{#vendorExtensions.x-ignore-block}} + response.RawContent, response.Headers); +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} JsonConvert.DeserializeObject(response.RawContent), response.Headers); +{{! CUSTOM - END }} } {{^netStandard}} if (status == 0) { return new ApiException(status, +{{#vendorExtensions.x-ignore-block}} + string.Format("Error calling {0}: {1}", methodName, response.ErrorText), response.ErrorText); +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} string.Format("Error calling {0}: {1}", methodName, response.ErrorText), JsonConvert.DeserializeObject(response.ErrorText)); +{{! CUSTOM - END }} } {{/netStandard}} return null; diff --git a/sdks/dotnet/templates/Solution.mustache b/sdks/dotnet/templates/Solution.mustache index c8f0eebed..1981c94a5 100644 --- a/sdks/dotnet/templates/Solution.mustache +++ b/sdks/dotnet/templates/Solution.mustache @@ -4,12 +4,19 @@ VisualStudioVersion = {{^netStandard}}12.0.0.0{{/netStandard}}{{#netStandard}}14 MinimumVisualStudioVersion = {{^netStandard}}10.0.0.1{{/netStandard}}{{#netStandard}}10.0.40219.1{{/netStandard}} Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "{{packageName}}", "src\{{packageName}}\{{packageName}}.csproj", "{{packageGuid}}" EndProject +{{#vendorExtensions.x-ignore-block}} +{{^excludeTests}}Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "{{testPackageName}}", "src\{{testPackageName}}\{{testPackageName}}.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" +EndProject +{{/excludeTests}}Global +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} {{^excludeTests}}Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "{{testPackageName}}", "src\{{testPackageName}}\{{testPackageName}}.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject {{/excludeTests}} Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign.Test", "src\Dropbox.Sign.Test\Dropbox.Sign.Test.csproj", "{C305EB17-93FE-4BDA-89A4-120BD8C8A88A}" EndProject Global +{{! CUSTOM - END }} GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU @@ -23,10 +30,12 @@ Global {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU +{{! CUSTOM - BEGIN }} {C305EB17-93FE-4BDA-89A4-120BD8C8A88A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C305EB17-93FE-4BDA-89A4-120BD8C8A88A}.Debug|Any CPU.Build.0 = Debug|Any CPU {C305EB17-93FE-4BDA-89A4-120BD8C8A88A}.Release|Any CPU.ActiveCfg = Release|Any CPU {C305EB17-93FE-4BDA-89A4-120BD8C8A88A}.Release|Any CPU.Build.0 = Release|Any CPU +{{! CUSTOM - END }} EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdks/dotnet/templates/TestProject.mustache b/sdks/dotnet/templates/TestProject.mustache index e5f01e568..16097edf3 100644 --- a/sdks/dotnet/templates/TestProject.mustache +++ b/sdks/dotnet/templates/TestProject.mustache @@ -22,8 +22,13 @@ 512 +{{#vendorExtensions.x-ignore-block}} + +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} +{{! CUSTOM - END }} diff --git a/sdks/dotnet/templates/api.mustache b/sdks/dotnet/templates/api.mustache index c19edc23b..2fe32d7b9 100644 --- a/sdks/dotnet/templates/api.mustache +++ b/sdks/dotnet/templates/api.mustache @@ -276,6 +276,7 @@ namespace {{packageName}}.{{apiPackage}} {{/allParams}} {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); +{{! CUSTOM - BEGIN }} {{#bodyParam}} var localVarContentType = ""; var openApiTypes = {{paramName}}.GetOpenApiTypes(); @@ -291,13 +292,16 @@ namespace {{packageName}}.{{apiPackage}} } {{/bodyParam}} {{^bodyParam}} +{{! CUSTOM - END }} string[] _contentTypes = new string[] { {{#consumes}} "{{{mediaType}}}"{{^-last}},{{/-last}} {{/consumes}} }; +{{! CUSTOM - BEGIN }} var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); {{/bodyParam}} +{{! CUSTOM - END }} // to determine the Accept header string[] _accepts = new string[] { @@ -306,6 +310,9 @@ namespace {{packageName}}.{{apiPackage}} {{/produces}} }; +{{#vendorExtensions.x-ignore-block}} + var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); +{{/vendorExtensions.x-ignore-block}} if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -410,6 +417,11 @@ namespace {{packageName}}.{{apiPackage}} } {{/required}} {{/formParams}} +{{#vendorExtensions.x-ignore-block}} + {{#bodyParam}} + localVarRequestOptions.Data = {{paramName}}; + {{/bodyParam}} +{{/vendorExtensions.x-ignore-block}} localVarRequestOptions.Operation = "{{classname}}.{{operationId}}"; localVarRequestOptions.OperationIndex = operationIndex; @@ -552,6 +564,7 @@ namespace {{packageName}}.{{apiPackage}} {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); +{{! CUSTOM - BEGIN }} {{#bodyParam}} var localVarContentType = ""; var openApiTypes = {{paramName}}.GetOpenApiTypes(); @@ -567,14 +580,17 @@ namespace {{packageName}}.{{apiPackage}} } {{/bodyParam}} {{^bodyParam}} +{{! CUSTOM - END }} string[] _contentTypes = new string[] { {{#consumes}} "{{{mediaType}}}"{{^-last}}, {{/-last}} {{/consumes}} }; +{{! CUSTOM - BEGIN }} var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); {{/bodyParam}} +{{! CUSTOM - END }} // to determine the Accept header string[] _accepts = new string[] { @@ -583,6 +599,9 @@ namespace {{packageName}}.{{apiPackage}} {{/produces}} }; +{{#vendorExtensions.x-ignore-block}} + var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); +{{/vendorExtensions.x-ignore-block}} if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -664,6 +683,11 @@ namespace {{packageName}}.{{apiPackage}} } {{/required}} {{/formParams}} +{{#vendorExtensions.x-ignore-block}} + {{#bodyParam}} + localVarRequestOptions.Data = {{paramName}}; + {{/bodyParam}} +{{/vendorExtensions.x-ignore-block}} localVarRequestOptions.Operation = "{{classname}}.{{operationId}}"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/templates/gitignore.mustache b/sdks/dotnet/templates/gitignore.mustache index 0a5d07c58..ce0f872e8 100644 --- a/sdks/dotnet/templates/gitignore.mustache +++ b/sdks/dotnet/templates/gitignore.mustache @@ -27,6 +27,9 @@ x86/ [Aa][Rr][Mm]/ [Aa][Rr][Mm]64/ bld/ +{{! CUSTOM - BEGIN }} +#[Bb]in/ +{{! CUSTOM - END }} [Oo]bj/ [Ll]og/ [Ll]ogs/ @@ -360,6 +363,8 @@ MigrationBackup/ # Fody - auto-generated XML schema FodyWeavers.xsd +{{! CUSTOM - BEGIN }} vendor - +api .openapi-generator +{{! CUSTOM - END }} diff --git a/sdks/dotnet/templates/modelGeneric.mustache b/sdks/dotnet/templates/modelGeneric.mustache index c5dc0a64e..da1baf81b 100644 --- a/sdks/dotnet/templates/modelGeneric.mustache +++ b/sdks/dotnet/templates/modelGeneric.mustache @@ -14,8 +14,13 @@ [JsonSubtypes.KnownSubType(typeof({{{modelName}}}), "{{^vendorExtensions.x-discriminator-value}}{{{mappingName}}}{{/vendorExtensions.x-discriminator-value}}{{#vendorExtensions.x-discriminator-value}}{{{.}}}{{/vendorExtensions.x-discriminator-value}}")] {{/mappedModels}} {{/discriminator}} +{{#vendorExtensions.x-ignore-block}} + {{>visibility}} partial class {{classname}} : {{#parent}}{{{.}}}, {{/parent}}IEquatable<{{classname}}>{{#validatable}}, IValidatableObject{{/validatable}} +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] {{>visibility}} partial class {{classname}} : {{#parent}}{{{.}}}, {{/parent}}IOpenApiTyped, IEquatable<{{classname}}>{{#validatable}}, IValidatableObject{{/validatable}} +{{! CUSTOM - END }} { {{#vars}} {{#items.isEnum}} @@ -104,6 +109,9 @@ {{/conditionalSerialization}} {{/isEnum}} {{/vars}} +{{#vendorExtensions.x-ignore-block}} + {{#hasRequired}} + {{^hasOnlyReadOnly}} /// /// Initializes a new instance of the class. /// @@ -117,6 +125,24 @@ this.AdditionalProperties = new Dictionary(); } {{/isAdditionalPropertiesTrue}} + {{/hasOnlyReadOnly}} + {{/hasRequired}} +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + {{^isAdditionalPropertiesTrue}} + protected {{classname}}() { } + {{/isAdditionalPropertiesTrue}} + {{#isAdditionalPropertiesTrue}} + protected {{classname}}() + { + this.AdditionalProperties = new Dictionary(); + } + {{/isAdditionalPropertiesTrue}} +{{! CUSTOM - END }} /// /// Initializes a new instance of the class. /// @@ -126,10 +152,16 @@ {{#hasOnlyReadOnly}} [JsonConstructorAttribute] {{/hasOnlyReadOnly}} +{{#vendorExtensions.x-ignore-block}} + public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#defaultValue}}{{^isDateTime}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}} + { +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} public {{classname}}({{#readWriteVars}}{{#vendorExtensions.x-int-or-string}}Object{{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{{datatypeWithEnum}}}{{/vendorExtensions.x-int-or-string}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#vendorExtensions.x-int-or-string}}null{{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#defaultValue}}{{^isDateTime}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{/vendorExtensions.x-int-or-string}}{{^-last}}, {{/-last}}{{/readWriteVars}}) { {{#parent}}{{#parentVars}}this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; {{/parentVars}}{{/parent}} +{{! CUSTOM - END }} {{#vars}} {{^isInherited}} {{^isReadOnly}} @@ -141,10 +173,20 @@ { throw new ArgumentNullException("{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} is a required property for {{classname}} and cannot be null"); } +{{#vendorExtensions.x-ignore-block}} + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; +{{! CUSTOM - END }} {{/vendorExtensions.x-csharp-value-type}} {{#vendorExtensions.x-csharp-value-type}} +{{#vendorExtensions.x-ignore-block}} + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; +{{! CUSTOM - END }} {{/vendorExtensions.x-csharp-value-type}} {{/conditionalSerialization}} {{#conditionalSerialization}} @@ -172,16 +214,31 @@ {{^conditionalSerialization}} {{^vendorExtensions.x-csharp-value-type}} // use default value if no "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" provided +{{#vendorExtensions.x-ignore-block}} + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} ?? {{{defaultValue}}}; +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} ?? {{{defaultValue}}}{{/vendorExtensions.x-int-or-string}}; +{{! CUSTOM - END }} {{/vendorExtensions.x-csharp-value-type}} {{#vendorExtensions.x-csharp-value-type}} +{{#vendorExtensions.x-ignore-block}} + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; +{{! CUSTOM - END }} {{/vendorExtensions.x-csharp-value-type}} {{/conditionalSerialization}} {{/defaultValue}} {{^defaultValue}} {{^conditionalSerialization}} +{{#vendorExtensions.x-ignore-block}} + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; +{{! CUSTOM - END }} {{/conditionalSerialization}} {{#conditionalSerialization}} this._{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; @@ -199,6 +256,7 @@ this.AdditionalProperties = new Dictionary(); {{/isAdditionalPropertiesTrue}} } +{{! CUSTOM - BEGIN }} {{^mappedModels}} /// @@ -217,6 +275,7 @@ return obj; } {{/mappedModels}} +{{! CUSTOM - END }} {{#vars}} {{^isInherited}} @@ -233,12 +292,17 @@ {{#deprecated}} [Obsolete] {{/deprecated}} +{{#vendorExtensions.x-ignore-block}} + public {{{dataType}}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} {{^vendorExtensions.x-int-or-string}}public {{{dataType}}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; }{{/vendorExtensions.x-int-or-string}}{{#vendorExtensions.x-int-or-string}}public object {{name}} { get => this._{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; set => this._{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = Convert.ToString(value); } private string _{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};{{/vendorExtensions.x-int-or-string}} +{{! CUSTOM - END }} {{#isReadOnly}} /// @@ -429,7 +493,10 @@ return hashCode; } } - +{{#validatable}} +{{>validatable}} +{{/validatable}} +{{! CUSTOM - BEGIN }} public List GetOpenApiTypes() { var types = new List(); @@ -444,8 +511,5 @@ return types; } - -{{#validatable}} -{{>validatable}} -{{/validatable}} +{{! CUSTOM - END }} } diff --git a/sdks/dotnet/templates/netcore_project.mustache b/sdks/dotnet/templates/netcore_project.mustache index 0bacbadeb..7027fd034 100644 --- a/sdks/dotnet/templates/netcore_project.mustache +++ b/sdks/dotnet/templates/netcore_project.mustache @@ -11,11 +11,17 @@ {{packageCompany}} {{packageTitle}} {{packageDescription}} + {{packageCopyright}} {{packageName}} {{packageVersion}} bin\$(Configuration)\$(TargetFramework)\{{packageName}}.xml{{#licenseId}} {{.}}{{/licenseId}} +{{#vendorExtensions.x-ignore-block}} + https://{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}.git +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} https://github.com/hellosign/dropbox-sign-dotnet.git +{{! CUSTOM - END }} git{{#releaseNote}} {{.}}{{/releaseNote}}{{#packageTags}} {{{.}}}{{/packageTags}}{{#nrt}} @@ -48,4 +54,12 @@ {{/validatable}} +{{#vendorExtensions.x-ignore-block}} + + + + + + +{{/vendorExtensions.x-ignore-block}} diff --git a/sdks/dotnet/templates/netcore_testproject.mustache b/sdks/dotnet/templates/netcore_testproject.mustache index 329b98218..ecb0f0e6a 100644 --- a/sdks/dotnet/templates/netcore_testproject.mustache +++ b/sdks/dotnet/templates/netcore_testproject.mustache @@ -9,7 +9,12 @@ +{{#vendorExtensions.x-ignore-block}} + +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} +{{! CUSTOM - END }} diff --git a/sdks/dotnet/templates/validatable.mustache b/sdks/dotnet/templates/validatable.mustache index 6322bf599..4b2a72fab 100644 --- a/sdks/dotnet/templates/validatable.mustache +++ b/sdks/dotnet/templates/validatable.mustache @@ -29,7 +29,12 @@ {{#parent}} {{^isArray}} {{^isMap}} +{{#vendorExtensions.x-ignore-block}} + foreach (var x in {{#discriminator}}base.{{/discriminator}}BaseValidate(validationContext)) +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} foreach (var x in BaseValidate(validationContext)) +{{! CUSTOM - END }} { yield return x; } @@ -86,4 +91,4 @@ {{/hasValidation}} {{/vars}} yield break; - } \ No newline at end of file + } From 00f68e1090a3dcb4ed646708342753cf55a53b0c Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Tue, 27 Aug 2024 16:55:35 -0500 Subject: [PATCH 02/10] Updating openapi-generator for C# to 7.7.0 --- sdks/dotnet/Dropbox.Sign.sln | 2 + sdks/dotnet/README.md | 70 +- sdks/dotnet/docs/AccountApi.md | 160 +--- sdks/dotnet/docs/AccountCreateRequest.md | 9 +- sdks/dotnet/docs/AccountCreateResponse.md | 4 +- sdks/dotnet/docs/AccountGetResponse.md | 3 +- sdks/dotnet/docs/AccountResponse.md | 12 +- sdks/dotnet/docs/AccountResponseQuotas.md | 7 +- sdks/dotnet/docs/AccountResponseUsage.md | 2 +- sdks/dotnet/docs/AccountUpdateRequest.md | 4 +- sdks/dotnet/docs/AccountVerifyRequest.md | 2 +- sdks/dotnet/docs/AccountVerifyResponse.md | 3 +- .../docs/AccountVerifyResponseAccount.md | 2 +- sdks/dotnet/docs/ApiAppApi.md | 247 +---- sdks/dotnet/docs/ApiAppCreateRequest.md | 8 +- sdks/dotnet/docs/ApiAppGetResponse.md | 3 +- sdks/dotnet/docs/ApiAppListResponse.md | 4 +- sdks/dotnet/docs/ApiAppResponse.md | 11 +- sdks/dotnet/docs/ApiAppResponseOAuth.md | 5 +- sdks/dotnet/docs/ApiAppResponseOptions.md | 2 +- .../dotnet/docs/ApiAppResponseOwnerAccount.md | 3 +- .../ApiAppResponseWhiteLabelingOptions.md | 15 +- sdks/dotnet/docs/ApiAppUpdateRequest.md | 8 +- sdks/dotnet/docs/BulkSendJobApi.md | 87 +- sdks/dotnet/docs/BulkSendJobGetResponse.md | 5 +- ...BulkSendJobGetResponseSignatureRequests.md | 29 +- sdks/dotnet/docs/BulkSendJobListResponse.md | 4 +- sdks/dotnet/docs/BulkSendJobResponse.md | 5 +- sdks/dotnet/docs/BulkSendJobSendResponse.md | 3 +- sdks/dotnet/docs/EmbeddedApi.md | 83 +- sdks/dotnet/docs/EmbeddedEditUrlRequest.md | 15 +- sdks/dotnet/docs/EmbeddedEditUrlResponse.md | 3 +- .../docs/EmbeddedEditUrlResponseEmbedded.md | 3 +- sdks/dotnet/docs/EmbeddedSignUrlResponse.md | 3 +- .../docs/EmbeddedSignUrlResponseEmbedded.md | 3 +- sdks/dotnet/docs/ErrorResponse.md | 2 +- sdks/dotnet/docs/ErrorResponseError.md | 4 +- sdks/dotnet/docs/EventCallbackRequest.md | 5 +- sdks/dotnet/docs/EventCallbackRequestEvent.md | 5 +- .../docs/EventCallbackRequestEventMetadata.md | 5 +- sdks/dotnet/docs/FaxLineAddUserRequest.md | 4 +- sdks/dotnet/docs/FaxLineApi.md | 249 +---- .../docs/FaxLineAreaCodeGetCountryEnum.md | 1 + .../docs/FaxLineAreaCodeGetProvinceEnum.md | 1 + .../dotnet/docs/FaxLineAreaCodeGetResponse.md | 2 +- .../docs/FaxLineAreaCodeGetStateEnum.md | 1 + sdks/dotnet/docs/FaxLineCreateRequest.md | 5 +- sdks/dotnet/docs/FaxLineDeleteRequest.md | 2 +- sdks/dotnet/docs/FaxLineListResponse.md | 4 +- sdks/dotnet/docs/FaxLineRemoveUserRequest.md | 4 +- sdks/dotnet/docs/FaxLineResponse.md | 3 +- sdks/dotnet/docs/FaxLineResponseFaxLine.md | 5 +- sdks/dotnet/docs/FileResponse.md | 3 +- sdks/dotnet/docs/FileResponseDataUri.md | 2 +- sdks/dotnet/docs/ListInfoResponse.md | 5 +- sdks/dotnet/docs/OAuthApi.md | 75 +- sdks/dotnet/docs/OAuthTokenGenerateRequest.md | 6 +- sdks/dotnet/docs/OAuthTokenRefreshRequest.md | 3 +- sdks/dotnet/docs/OAuthTokenResponse.md | 6 +- sdks/dotnet/docs/ReportApi.md | 46 +- sdks/dotnet/docs/ReportCreateRequest.md | 4 +- sdks/dotnet/docs/ReportCreateResponse.md | 3 +- sdks/dotnet/docs/ReportResponse.md | 5 +- sdks/dotnet/docs/SignatureRequestApi.md | 872 +----------------- ...stBulkCreateEmbeddedWithTemplateRequest.md | 40 +- ...atureRequestBulkSendWithTemplateRequest.md | 40 +- .../SignatureRequestCreateEmbeddedRequest.md | 58 +- ...equestCreateEmbeddedWithTemplateRequest.md | 24 +- .../docs/SignatureRequestGetResponse.md | 3 +- .../docs/SignatureRequestListResponse.md | 4 +- .../docs/SignatureRequestRemindRequest.md | 3 +- sdks/dotnet/docs/SignatureRequestResponse.md | 29 +- .../SignatureRequestResponseAttachment.md | 7 +- ...SignatureRequestResponseCustomFieldBase.md | 6 +- ...atureRequestResponseCustomFieldCheckbox.md | 11 +- ...SignatureRequestResponseCustomFieldText.md | 11 +- ...atureRequestResponseCustomFieldTypeEnum.md | 1 + .../docs/SignatureRequestResponseDataBase.md | 6 +- .../SignatureRequestResponseDataTypeEnum.md | 1 + ...gnatureRequestResponseDataValueCheckbox.md | 11 +- ...reRequestResponseDataValueCheckboxMerge.md | 11 +- ...atureRequestResponseDataValueDateSigned.md | 11 +- ...gnatureRequestResponseDataValueDropdown.md | 11 +- ...gnatureRequestResponseDataValueInitials.md | 11 +- .../SignatureRequestResponseDataValueRadio.md | 11 +- ...natureRequestResponseDataValueSignature.md | 11 +- .../SignatureRequestResponseDataValueText.md | 11 +- ...natureRequestResponseDataValueTextMerge.md | 11 +- .../SignatureRequestResponseSignatures.md | 20 +- .../docs/SignatureRequestSendRequest.md | 65 +- ...SignatureRequestSendWithTemplateRequest.md | 31 +- .../docs/SignatureRequestUpdateRequest.md | 11 +- sdks/dotnet/docs/SubAttachment.md | 7 +- sdks/dotnet/docs/SubBulkSignerList.md | 5 +- .../docs/SubBulkSignerListCustomField.md | 3 +- sdks/dotnet/docs/SubCC.md | 3 +- sdks/dotnet/docs/SubCustomField.md | 7 +- sdks/dotnet/docs/SubEditorOptions.md | 3 +- sdks/dotnet/docs/SubFieldOptions.md | 4 +- sdks/dotnet/docs/SubFormFieldGroup.md | 8 +- sdks/dotnet/docs/SubFormFieldRule.md | 5 +- sdks/dotnet/docs/SubFormFieldRuleAction.md | 13 +- sdks/dotnet/docs/SubFormFieldRuleTrigger.md | 38 +- .../docs/SubFormFieldsPerDocumentBase.md | 19 +- .../docs/SubFormFieldsPerDocumentCheckbox.md | 31 +- .../SubFormFieldsPerDocumentCheckboxMerge.md | 29 +- .../SubFormFieldsPerDocumentDateSigned.md | 33 +- .../docs/SubFormFieldsPerDocumentDropdown.md | 35 +- .../docs/SubFormFieldsPerDocumentFontEnum.md | 1 + .../docs/SubFormFieldsPerDocumentHyperlink.md | 35 +- .../docs/SubFormFieldsPerDocumentInitials.md | 29 +- .../docs/SubFormFieldsPerDocumentRadio.md | 31 +- .../docs/SubFormFieldsPerDocumentSignature.md | 29 +- .../docs/SubFormFieldsPerDocumentText.md | 43 +- .../docs/SubFormFieldsPerDocumentTextMerge.md | 33 +- .../docs/SubFormFieldsPerDocumentTypeEnum.md | 1 + sdks/dotnet/docs/SubMergeField.md | 3 +- sdks/dotnet/docs/SubOAuth.md | 3 +- sdks/dotnet/docs/SubOptions.md | 2 +- .../docs/SubSignatureRequestGroupedSigners.md | 6 +- sdks/dotnet/docs/SubSignatureRequestSigner.md | 15 +- .../docs/SubSignatureRequestTemplateSigner.md | 15 +- sdks/dotnet/docs/SubSigningOptions.md | 6 +- sdks/dotnet/docs/SubTeamResponse.md | 3 +- sdks/dotnet/docs/SubTemplateRole.md | 3 +- sdks/dotnet/docs/SubUnclaimedDraftSigner.md | 4 +- .../docs/SubUnclaimedDraftTemplateSigner.md | 4 +- sdks/dotnet/docs/SubWhiteLabelingOptions.md | 16 +- sdks/dotnet/docs/TeamAddMemberRequest.md | 10 +- sdks/dotnet/docs/TeamApi.md | 387 +------- sdks/dotnet/docs/TeamCreateRequest.md | 2 +- sdks/dotnet/docs/TeamGetInfoResponse.md | 3 +- sdks/dotnet/docs/TeamGetResponse.md | 3 +- sdks/dotnet/docs/TeamInfoResponse.md | 6 +- sdks/dotnet/docs/TeamInviteResponse.md | 7 +- sdks/dotnet/docs/TeamInvitesResponse.md | 3 +- sdks/dotnet/docs/TeamMemberResponse.md | 4 +- sdks/dotnet/docs/TeamMembersResponse.md | 4 +- sdks/dotnet/docs/TeamParentResponse.md | 3 +- sdks/dotnet/docs/TeamRemoveMemberRequest.md | 14 +- sdks/dotnet/docs/TeamResponse.md | 5 +- sdks/dotnet/docs/TeamSubTeamsResponse.md | 4 +- sdks/dotnet/docs/TeamUpdateRequest.md | 2 +- sdks/dotnet/docs/TemplateAddUserRequest.md | 6 +- sdks/dotnet/docs/TemplateApi.md | 543 +---------- .../TemplateCreateEmbeddedDraftRequest.md | 51 +- .../TemplateCreateEmbeddedDraftResponse.md | 3 +- ...lateCreateEmbeddedDraftResponseTemplate.md | 5 +- sdks/dotnet/docs/TemplateCreateRequest.md | 41 +- sdks/dotnet/docs/TemplateCreateResponse.md | 3 +- .../docs/TemplateCreateResponseTemplate.md | 2 +- sdks/dotnet/docs/TemplateEditResponse.md | 2 +- sdks/dotnet/docs/TemplateGetResponse.md | 3 +- sdks/dotnet/docs/TemplateListResponse.md | 4 +- sdks/dotnet/docs/TemplateRemoveUserRequest.md | 3 +- sdks/dotnet/docs/TemplateResponse.md | 18 +- sdks/dotnet/docs/TemplateResponseAccount.md | 7 +- .../docs/TemplateResponseAccountQuota.md | 5 +- sdks/dotnet/docs/TemplateResponseCCRole.md | 2 +- sdks/dotnet/docs/TemplateResponseDocument.md | 7 +- ...TemplateResponseDocumentCustomFieldBase.md | 11 +- ...lateResponseDocumentCustomFieldCheckbox.md | 23 +- ...TemplateResponseDocumentCustomFieldText.md | 27 +- .../TemplateResponseDocumentFieldGroup.md | 3 +- .../TemplateResponseDocumentFieldGroupRule.md | 7 +- .../TemplateResponseDocumentFormFieldBase.md | 11 +- ...mplateResponseDocumentFormFieldCheckbox.md | 29 +- ...lateResponseDocumentFormFieldDateSigned.md | 29 +- ...mplateResponseDocumentFormFieldDropdown.md | 29 +- ...plateResponseDocumentFormFieldHyperlink.md | 33 +- ...mplateResponseDocumentFormFieldInitials.md | 29 +- .../TemplateResponseDocumentFormFieldRadio.md | 29 +- ...plateResponseDocumentFormFieldSignature.md | 29 +- .../TemplateResponseDocumentFormFieldText.md | 34 +- ...TemplateResponseDocumentStaticFieldBase.md | 11 +- ...lateResponseDocumentStaticFieldCheckbox.md | 29 +- ...teResponseDocumentStaticFieldDateSigned.md | 29 +- ...lateResponseDocumentStaticFieldDropdown.md | 29 +- ...ateResponseDocumentStaticFieldHyperlink.md | 29 +- ...lateResponseDocumentStaticFieldInitials.md | 29 +- ...emplateResponseDocumentStaticFieldRadio.md | 29 +- ...ateResponseDocumentStaticFieldSignature.md | 29 +- ...TemplateResponseDocumentStaticFieldText.md | 29 +- .../TemplateResponseFieldAvgTextLength.md | 3 +- .../dotnet/docs/TemplateResponseSignerRole.md | 3 +- .../dotnet/docs/TemplateUpdateFilesRequest.md | 11 +- .../docs/TemplateUpdateFilesResponse.md | 2 +- .../TemplateUpdateFilesResponseTemplate.md | 3 +- sdks/dotnet/docs/UnclaimedDraftApi.md | 241 +---- .../UnclaimedDraftCreateEmbeddedRequest.md | 69 +- ...dDraftCreateEmbeddedWithTemplateRequest.md | 49 +- .../docs/UnclaimedDraftCreateRequest.md | 50 +- .../docs/UnclaimedDraftCreateResponse.md | 3 +- .../UnclaimedDraftEditAndResendRequest.md | 9 +- sdks/dotnet/docs/UnclaimedDraftResponse.md | 7 +- sdks/dotnet/docs/WarningResponse.md | 3 +- sdks/dotnet/openapi-config.yaml | 5 +- sdks/dotnet/run-build | 38 +- .../Dropbox.Sign.Test/Api/ApiAppApiTests.cs | 36 +- .../Dropbox.Sign.Test.csproj | 4 +- .../Dropbox.Sign.Test/MockRestClientHelper.cs | 155 +++- .../dotnet/src/Dropbox.Sign/Api/AccountApi.cs | 9 +- sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs | 13 +- .../src/Dropbox.Sign/Api/BulkSendJobApi.cs | 6 +- .../src/Dropbox.Sign/Api/EmbeddedApi.cs | 5 +- .../dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs | 17 +- sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs | 4 + sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs | 2 + .../Dropbox.Sign/Api/SignatureRequestApi.cs | 40 +- sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs | 26 +- .../src/Dropbox.Sign/Api/TemplateApi.cs | 28 +- .../src/Dropbox.Sign/Api/UnclaimedDraftApi.cs | 8 + .../src/Dropbox.Sign/Client/ApiClient.cs | 333 ++++--- .../src/Dropbox.Sign/Client/ClientUtils.cs | 14 +- .../src/Dropbox.Sign/Client/Configuration.cs | 24 +- .../Client/IReadableConfiguration.cs | 12 + .../src/Dropbox.Sign/Client/RequestOptions.cs | 2 +- .../src/Dropbox.Sign/Dropbox.Sign.csproj | 13 +- .../Model/AccountCreateRequest.cs | 9 +- .../Model/AccountCreateResponse.cs | 8 +- .../Dropbox.Sign/Model/AccountGetResponse.cs | 7 +- .../src/Dropbox.Sign/Model/AccountResponse.cs | 16 +- .../Model/AccountResponseQuotas.cs | 11 +- .../Model/AccountResponseUsage.cs | 6 +- .../Model/AccountUpdateRequest.cs | 8 +- .../Model/AccountVerifyRequest.cs | 6 +- .../Model/AccountVerifyResponse.cs | 7 +- .../Model/AccountVerifyResponseAccount.cs | 6 +- .../Dropbox.Sign/Model/ApiAppCreateRequest.cs | 12 +- .../Dropbox.Sign/Model/ApiAppGetResponse.cs | 7 +- .../Dropbox.Sign/Model/ApiAppListResponse.cs | 8 +- .../src/Dropbox.Sign/Model/ApiAppResponse.cs | 15 +- .../Dropbox.Sign/Model/ApiAppResponseOAuth.cs | 9 +- .../Model/ApiAppResponseOptions.cs | 6 +- .../Model/ApiAppResponseOwnerAccount.cs | 7 +- .../ApiAppResponseWhiteLabelingOptions.cs | 19 +- .../Dropbox.Sign/Model/ApiAppUpdateRequest.cs | 12 +- .../Model/BulkSendJobGetResponse.cs | 9 +- ...BulkSendJobGetResponseSignatureRequests.cs | 30 +- .../Model/BulkSendJobListResponse.cs | 8 +- .../Dropbox.Sign/Model/BulkSendJobResponse.cs | 9 +- .../Model/BulkSendJobSendResponse.cs | 7 +- .../Model/EmbeddedEditUrlRequest.cs | 15 +- .../Model/EmbeddedEditUrlResponse.cs | 7 +- .../Model/EmbeddedEditUrlResponseEmbedded.cs | 7 +- .../Model/EmbeddedSignUrlResponse.cs | 7 +- .../Model/EmbeddedSignUrlResponseEmbedded.cs | 7 +- .../src/Dropbox.Sign/Model/ErrorResponse.cs | 6 +- .../Dropbox.Sign/Model/ErrorResponseError.cs | 8 +- .../Model/EventCallbackRequest.cs | 21 +- .../Model/EventCallbackRequestEvent.cs | 9 +- .../EventCallbackRequestEventMetadata.cs | 9 +- .../Model/FaxLineAddUserRequest.cs | 9 +- .../Model/FaxLineAreaCodeGetCountryEnum.cs | 1 - .../Model/FaxLineAreaCodeGetProvinceEnum.cs | 1 - .../Model/FaxLineAreaCodeGetResponse.cs | 6 +- .../Model/FaxLineAreaCodeGetStateEnum.cs | 1 - .../Model/FaxLineCreateRequest.cs | 10 +- .../Model/FaxLineDeleteRequest.cs | 6 +- .../Dropbox.Sign/Model/FaxLineListResponse.cs | 8 +- .../Model/FaxLineRemoveUserRequest.cs | 9 +- .../src/Dropbox.Sign/Model/FaxLineResponse.cs | 7 +- .../Model/FaxLineResponseFaxLine.cs | 9 +- .../src/Dropbox.Sign/Model/FileResponse.cs | 7 +- .../Dropbox.Sign/Model/FileResponseDataUri.cs | 6 +- .../Dropbox.Sign/Model/ListInfoResponse.cs | 9 +- .../Model/OAuthTokenGenerateRequest.cs | 12 +- .../Model/OAuthTokenRefreshRequest.cs | 9 +- .../Dropbox.Sign/Model/OAuthTokenResponse.cs | 10 +- .../Dropbox.Sign/Model/ReportCreateRequest.cs | 33 +- .../Model/ReportCreateResponse.cs | 7 +- .../src/Dropbox.Sign/Model/ReportResponse.cs | 34 +- ...stBulkCreateEmbeddedWithTemplateRequest.cs | 24 +- ...atureRequestBulkSendWithTemplateRequest.cs | 24 +- .../SignatureRequestCreateEmbeddedRequest.cs | 35 +- ...equestCreateEmbeddedWithTemplateRequest.cs | 26 +- .../Model/SignatureRequestGetResponse.cs | 7 +- .../Model/SignatureRequestListResponse.cs | 8 +- .../Model/SignatureRequestRemindRequest.cs | 7 +- .../Model/SignatureRequestResponse.cs | 30 +- .../SignatureRequestResponseAttachment.cs | 11 +- ...SignatureRequestResponseCustomFieldBase.cs | 14 +- ...atureRequestResponseCustomFieldCheckbox.cs | 13 +- ...SignatureRequestResponseCustomFieldText.cs | 13 +- ...atureRequestResponseCustomFieldTypeEnum.cs | 1 - .../Model/SignatureRequestResponseDataBase.cs | 21 +- .../SignatureRequestResponseDataTypeEnum.cs | 1 - ...gnatureRequestResponseDataValueCheckbox.cs | 20 +- ...reRequestResponseDataValueCheckboxMerge.cs | 20 +- ...atureRequestResponseDataValueDateSigned.cs | 20 +- ...gnatureRequestResponseDataValueDropdown.cs | 20 +- ...gnatureRequestResponseDataValueInitials.cs | 20 +- .../SignatureRequestResponseDataValueRadio.cs | 20 +- ...natureRequestResponseDataValueSignature.cs | 20 +- .../SignatureRequestResponseDataValueText.cs | 20 +- ...natureRequestResponseDataValueTextMerge.cs | 20 +- .../SignatureRequestResponseSignatures.cs | 24 +- .../Model/SignatureRequestSendRequest.cs | 37 +- ...SignatureRequestSendWithTemplateRequest.cs | 28 +- .../Model/SignatureRequestUpdateRequest.cs | 9 +- .../src/Dropbox.Sign/Model/SubAttachment.cs | 9 +- .../Dropbox.Sign/Model/SubBulkSignerList.cs | 7 +- .../Model/SubBulkSignerListCustomField.cs | 7 +- sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs | 7 +- .../src/Dropbox.Sign/Model/SubCustomField.cs | 9 +- .../Dropbox.Sign/Model/SubEditorOptions.cs | 7 +- .../src/Dropbox.Sign/Model/SubFieldOptions.cs | 6 +- .../Dropbox.Sign/Model/SubFormFieldGroup.cs | 8 +- .../Dropbox.Sign/Model/SubFormFieldRule.cs | 11 +- .../Model/SubFormFieldRuleAction.cs | 9 +- .../Model/SubFormFieldRuleTrigger.cs | 15 +- .../Model/SubFormFieldsPerDocumentBase.cs | 27 +- .../Model/SubFormFieldsPerDocumentCheckbox.cs | 22 +- .../SubFormFieldsPerDocumentCheckboxMerge.cs | 20 +- .../SubFormFieldsPerDocumentDateSigned.cs | 22 +- .../Model/SubFormFieldsPerDocumentDropdown.cs | 24 +- .../Model/SubFormFieldsPerDocumentFontEnum.cs | 1 - .../SubFormFieldsPerDocumentHyperlink.cs | 24 +- .../Model/SubFormFieldsPerDocumentInitials.cs | 20 +- .../Model/SubFormFieldsPerDocumentRadio.cs | 22 +- .../SubFormFieldsPerDocumentSignature.cs | 20 +- .../Model/SubFormFieldsPerDocumentText.cs | 30 +- .../SubFormFieldsPerDocumentTextMerge.cs | 22 +- .../Model/SubFormFieldsPerDocumentTypeEnum.cs | 1 - .../src/Dropbox.Sign/Model/SubMergeField.cs | 7 +- .../dotnet/src/Dropbox.Sign/Model/SubOAuth.cs | 32 +- .../src/Dropbox.Sign/Model/SubOptions.cs | 6 +- .../SubSignatureRequestGroupedSigners.cs | 8 +- .../Model/SubSignatureRequestSigner.cs | 15 +- .../SubSignatureRequestTemplateSigner.cs | 15 +- .../Dropbox.Sign/Model/SubSigningOptions.cs | 10 +- .../src/Dropbox.Sign/Model/SubTeamResponse.cs | 7 +- .../src/Dropbox.Sign/Model/SubTemplateRole.cs | 7 +- .../Model/SubUnclaimedDraftSigner.cs | 8 +- .../Model/SubUnclaimedDraftTemplateSigner.cs | 8 +- .../Model/SubWhiteLabelingOptions.cs | 22 +- .../Model/TeamAddMemberRequest.cs | 8 +- .../Dropbox.Sign/Model/TeamCreateRequest.cs | 8 +- .../Dropbox.Sign/Model/TeamGetInfoResponse.cs | 7 +- .../src/Dropbox.Sign/Model/TeamGetResponse.cs | 7 +- .../Dropbox.Sign/Model/TeamInfoResponse.cs | 10 +- .../Dropbox.Sign/Model/TeamInviteResponse.cs | 11 +- .../Dropbox.Sign/Model/TeamInvitesResponse.cs | 7 +- .../Dropbox.Sign/Model/TeamMemberResponse.cs | 8 +- .../Dropbox.Sign/Model/TeamMembersResponse.cs | 8 +- .../Dropbox.Sign/Model/TeamParentResponse.cs | 7 +- .../Model/TeamRemoveMemberRequest.cs | 10 +- .../src/Dropbox.Sign/Model/TeamResponse.cs | 9 +- .../Model/TeamSubTeamsResponse.cs | 8 +- .../Dropbox.Sign/Model/TeamUpdateRequest.cs | 6 +- .../Model/TemplateAddUserRequest.cs | 8 +- .../TemplateCreateEmbeddedDraftRequest.cs | 34 +- .../TemplateCreateEmbeddedDraftResponse.cs | 7 +- ...lateCreateEmbeddedDraftResponseTemplate.cs | 9 +- .../Model/TemplateCreateRequest.cs | 27 +- .../Model/TemplateCreateResponse.cs | 7 +- .../Model/TemplateCreateResponseTemplate.cs | 6 +- .../Model/TemplateEditResponse.cs | 6 +- .../Dropbox.Sign/Model/TemplateGetResponse.cs | 7 +- .../Model/TemplateListResponse.cs | 8 +- .../Model/TemplateRemoveUserRequest.cs | 7 +- .../Dropbox.Sign/Model/TemplateResponse.cs | 20 +- .../Model/TemplateResponseAccount.cs | 11 +- .../Model/TemplateResponseAccountQuota.cs | 9 +- .../Model/TemplateResponseCCRole.cs | 6 +- .../Model/TemplateResponseDocument.cs | 11 +- ...TemplateResponseDocumentCustomFieldBase.cs | 19 +- ...lateResponseDocumentCustomFieldCheckbox.cs | 12 +- ...TemplateResponseDocumentCustomFieldText.cs | 16 +- .../TemplateResponseDocumentFieldGroup.cs | 7 +- .../TemplateResponseDocumentFieldGroupRule.cs | 7 +- .../TemplateResponseDocumentFormFieldBase.cs | 25 +- ...mplateResponseDocumentFormFieldCheckbox.cs | 18 +- ...lateResponseDocumentFormFieldDateSigned.cs | 18 +- ...mplateResponseDocumentFormFieldDropdown.cs | 18 +- ...plateResponseDocumentFormFieldHyperlink.cs | 22 +- ...mplateResponseDocumentFormFieldInitials.cs | 18 +- .../TemplateResponseDocumentFormFieldRadio.cs | 18 +- ...plateResponseDocumentFormFieldSignature.cs | 18 +- .../TemplateResponseDocumentFormFieldText.cs | 23 +- ...TemplateResponseDocumentStaticFieldBase.cs | 27 +- ...lateResponseDocumentStaticFieldCheckbox.cs | 18 +- ...teResponseDocumentStaticFieldDateSigned.cs | 18 +- ...lateResponseDocumentStaticFieldDropdown.cs | 18 +- ...ateResponseDocumentStaticFieldHyperlink.cs | 18 +- ...lateResponseDocumentStaticFieldInitials.cs | 18 +- ...emplateResponseDocumentStaticFieldRadio.cs | 18 +- ...ateResponseDocumentStaticFieldSignature.cs | 18 +- ...TemplateResponseDocumentStaticFieldText.cs | 18 +- .../TemplateResponseFieldAvgTextLength.cs | 7 +- .../Model/TemplateResponseSignerRole.cs | 7 +- .../Model/TemplateUpdateFilesRequest.cs | 15 +- .../Model/TemplateUpdateFilesResponse.cs | 6 +- .../TemplateUpdateFilesResponseTemplate.cs | 7 +- .../UnclaimedDraftCreateEmbeddedRequest.cs | 45 +- ...dDraftCreateEmbeddedWithTemplateRequest.cs | 41 +- .../Model/UnclaimedDraftCreateRequest.cs | 33 +- .../Model/UnclaimedDraftCreateResponse.cs | 7 +- .../UnclaimedDraftEditAndResendRequest.cs | 13 +- .../Model/UnclaimedDraftResponse.cs | 11 +- .../src/Dropbox.Sign/Model/WarningResponse.cs | 7 +- sdks/dotnet/templates/ApiClient.mustache | 383 ++++---- sdks/dotnet/templates/ClientUtils.mustache | 29 +- sdks/dotnet/templates/Configuration.mustache | 26 +- .../HttpSigningConfiguration.mustache | 145 +-- .../templates/IReadableConfiguration.mustache | 12 + .../NullConditionalParameter.mustache | 1 + .../NullConditionalProperty.mustache | 1 + sdks/dotnet/templates/README.mustache | 187 +++- sdks/dotnet/templates/RequestOptions.mustache | 6 +- sdks/dotnet/templates/Solution.mustache | 3 +- sdks/dotnet/templates/TestProject.mustache | 4 +- sdks/dotnet/templates/ValidateRegex.mustache | 6 + sdks/dotnet/templates/api.mustache | 68 +- sdks/dotnet/templates/api_doc.mustache | 84 +- .../auth/OAuthAuthenticator.mustache | 20 +- ...terOperationDefaultImplementation.mustache | 2 + .../generichost/ApiException.mustache | 4 +- .../libraries/generichost/ApiFactory.mustache | 49 + .../generichost/ApiKeyToken.mustache | 37 +- .../generichost/ApiResponseEventArgs.mustache | 47 - .../ApiResponseEventArgs`1.mustache | 24 + .../generichost/ApiResponse`1.mustache | 140 ++- .../generichost/ApiTestsBase.mustache | 56 +- .../libraries/generichost/AsModel.mustache | 4 + .../libraries/generichost/Assembly.mustache | 2 + .../libraries/generichost/BasicToken.mustache | 4 +- .../generichost/BearerToken.mustache | 4 +- .../generichost/ClientUtils.mustache | 290 +++--- .../generichost/CookieContainer.mustache | 22 + .../generichost/DateFormats.mustache | 2 + .../DateOnlyJsonConverter.mustache | 51 + .../DateOnlyNullableJsonConverter.mustache | 56 ++ .../generichost/DateTimeFormats.mustache | 22 + .../DateTimeJsonConverter.mustache | 51 + .../DateTimeNullableJsonConverter.mustache | 56 ++ .../DependencyInjectionTests.mustache | 209 +++-- .../generichost/EnumValueDataType.mustache | 1 + .../generichost/ExceptionEventArgs.mustache | 24 + .../generichost/HostConfiguration.mustache | 99 +- .../HttpSigningConfiguration.mustache | 74 +- .../generichost/HttpSigningToken.mustache | 6 +- .../libraries/generichost/IApi.mustache | 10 +- .../IHostBuilderExtensions.mustache | 55 ++ .../IHttpClientBuilderExtensions.mustache | 75 ++ .../IServiceCollectionExtensions.mustache | 69 ++ .../generichost/ImplementsIEquatable.mustache | 1 + .../ImplementsValidatable.mustache | 1 + .../generichost/JsonConverter.mustache | 641 +++++++++++-- .../JsonSerializerOptionsProvider.mustache | 4 +- .../generichost/ModelBaseSignature.mustache | 1 + .../generichost/ModelSignature.mustache | 1 + .../libraries/generichost/OAuthToken.mustache | 4 +- .../OnDeserializationError.mustache | 2 + .../OnErrorDefaultImplementation.mustache | 2 + .../generichost/OpenAPIDateConverter.mustache | 34 - .../generichost/OperationSignature.mustache | 1 + .../libraries/generichost/Option.mustache | 47 + .../generichost/OptionProperty.mustache | 1 + ...README.mustache => README.client.mustache} | 85 +- .../generichost/README.solution.mustache | 1 + .../generichost/README.test.mustache | 0 .../generichost/RateLimitProvider`1.mustache | 112 +-- .../SourceGenerationContext.mustache | 9 + .../libraries/generichost/TokenBase.mustache | 6 +- .../generichost/TokenContainer`1.mustache | 4 +- .../generichost/TokenProvider`1.mustache | 6 +- .../generichost/ValidateRegex.mustache | 7 + .../generichost/WriteProperty.mustache | 9 + .../generichost/WritePropertyHelper.mustache | 9 + .../libraries/generichost/api.mustache | 830 ++++++++++++----- .../libraries/generichost/api_test.mustache | 17 +- .../generichost/git_push.ps1.mustache | 2 +- .../libraries/generichost/model.mustache | 31 +- .../generichost/modelGeneric.mustache | 268 ++++-- .../generichost/testInstructions.mustache | 18 + .../libraries/httpclient/ApiClient.mustache | 63 +- .../httpclient/RequestOptions.mustache | 2 +- .../libraries/httpclient/api.mustache | 18 + .../unityWebRequest/ApiClient.mustache | 639 +++++++++++++ .../ConnectionException.mustache | 21 + .../libraries/unityWebRequest/README.mustache | 175 ++++ .../unityWebRequest/RequestOptions.mustache | 60 ++ .../UnexpectedResponseException.mustache | 26 + .../libraries/unityWebRequest/api.mustache | 690 ++++++++++++++ .../unityWebRequest/api_test.mustache | 74 ++ .../libraries/unityWebRequest/asmdef.mustache | 7 + .../unityWebRequest/asmdef_test.mustache | 15 + .../libraries/unityWebRequest/model.mustache | 47 + .../unityWebRequest/model_test.mustache | 64 ++ sdks/dotnet/templates/modelAnyOf.mustache | 68 +- sdks/dotnet/templates/modelEnum.mustache | 151 ++- sdks/dotnet/templates/modelGeneric.mustache | 79 +- sdks/dotnet/templates/modelInnerEnum.mustache | 75 +- sdks/dotnet/templates/modelOneOf.mustache | 48 +- sdks/dotnet/templates/model_doc.mustache | 12 +- sdks/dotnet/templates/model_test.mustache | 16 +- .../netcore_project.additions.mustache | 1 + .../dotnet/templates/netcore_project.mustache | 61 +- .../netcore_testproject.additions.mustache | 1 + .../templates/netcore_testproject.mustache | 14 +- sdks/dotnet/templates/nuspec.mustache | 8 +- sdks/dotnet/templates/openapi.mustache | 1 + sdks/dotnet/templates/validatable.mustache | 74 +- 504 files changed, 9033 insertions(+), 6728 deletions(-) create mode 100644 sdks/dotnet/templates/NullConditionalParameter.mustache create mode 100644 sdks/dotnet/templates/NullConditionalProperty.mustache create mode 100644 sdks/dotnet/templates/ValidateRegex.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/AfterOperationDefaultImplementation.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/ApiFactory.mustache delete mode 100644 sdks/dotnet/templates/libraries/generichost/ApiResponseEventArgs.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/ApiResponseEventArgs`1.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/AsModel.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/Assembly.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/CookieContainer.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/DateFormats.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/DateOnlyJsonConverter.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/DateOnlyNullableJsonConverter.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/DateTimeFormats.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/DateTimeJsonConverter.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/DateTimeNullableJsonConverter.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/EnumValueDataType.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/ExceptionEventArgs.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/IHostBuilderExtensions.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/IHttpClientBuilderExtensions.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/IServiceCollectionExtensions.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/ImplementsIEquatable.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/ImplementsValidatable.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/ModelBaseSignature.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/ModelSignature.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/OnDeserializationError.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/OnErrorDefaultImplementation.mustache delete mode 100644 sdks/dotnet/templates/libraries/generichost/OpenAPIDateConverter.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/OperationSignature.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/Option.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/OptionProperty.mustache rename sdks/dotnet/templates/libraries/generichost/{README.mustache => README.client.mustache} (76%) create mode 100644 sdks/dotnet/templates/libraries/generichost/README.solution.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/README.test.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/SourceGenerationContext.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/ValidateRegex.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/WriteProperty.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/WritePropertyHelper.mustache create mode 100644 sdks/dotnet/templates/libraries/generichost/testInstructions.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/ApiClient.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/ConnectionException.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/README.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/RequestOptions.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/UnexpectedResponseException.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/api.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/api_test.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/asmdef.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/asmdef_test.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/model.mustache create mode 100644 sdks/dotnet/templates/libraries/unityWebRequest/model_test.mustache create mode 100644 sdks/dotnet/templates/netcore_project.additions.mustache create mode 100644 sdks/dotnet/templates/netcore_testproject.additions.mustache create mode 100644 sdks/dotnet/templates/openapi.mustache diff --git a/sdks/dotnet/Dropbox.Sign.sln b/sdks/dotnet/Dropbox.Sign.sln index b723ffd67..fa621fb25 100755 --- a/sdks/dotnet/Dropbox.Sign.sln +++ b/sdks/dotnet/Dropbox.Sign.sln @@ -4,6 +4,8 @@ VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign", "src\Dropbox.Sign\Dropbox.Sign.csproj", "{F8C8232D-7020-4603-8E04-18D060AE530B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign", "src\Dropbox.Sign\Dropbox.Sign.csproj", "{F8C8232D-7020-4603-8E04-18D060AE530B}" +EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign.Test", "src\Dropbox.Sign.Test\Dropbox.Sign.Test.csproj", "{C305EB17-93FE-4BDA-89A4-120BD8C8A88A}" EndProject Global diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index 0146a5bcd..325c5bcf9 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/README.md @@ -24,7 +24,8 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap - API version: 3.0.0 - SDK version: 1.5-dev -- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen +- Generator version: 7.7.0 +- Build package: org.openapitools.codegen.languages.CSharpClientCodegen ### Building @@ -42,18 +43,18 @@ Run the following and everything is done for you: to the OAS file and/or the mustache template files _will be lost_ when you run this command. - + ## Frameworks supported - + ## Dependencies -- [RestSharp](https://www.nuget.org/packages/RestSharp) - 108.0.1 or later -- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 or later -- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.9.0 or later +- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later +- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.2 or later +- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later - [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later - + ## Installation & Usage ### NuGet Package Manager @@ -74,50 +75,17 @@ webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; c.Proxy = webProxy; ``` - + + ## Getting Started -```csharp -using System; - -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var accountApi = new AccountApi(config); - - var data = new AccountCreateRequest( - emailAddress: "newuser@dropboxsign.com" - ); - - try - { - var result = accountApi.AccountCreate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} +```csharp +REPLACE_ME_WITH_EXAMPLE_FOR__AccountCreate_C#_CODE ``` - + + ## Documentation for API Endpoints All URIs are relative to *https://api.hellosign.com/v3* @@ -190,7 +158,7 @@ Class | Method | HTTP request | Description *UnclaimedDraftApi* | [**UnclaimedDraftEditAndResend**](docs/UnclaimedDraftApi.md#unclaimeddrafteditandresend) | **POST** /unclaimed_draft/edit_and_resend/{signature_request_id} | Edit and Resend Unclaimed Draft - + ## Documentation for Models - [Model.AccountCreateRequest](docs/AccountCreateRequest.md) @@ -378,15 +346,17 @@ Class | Method | HTTP request | Description - [Model.WarningResponse](docs/WarningResponse.md) - + ## Documentation for Authorization - + +Authentication schemes defined for the API: + ### api_key - **Type**: HTTP basic authentication - + ### oauth2 - **Type**: Bearer Authentication diff --git a/sdks/dotnet/docs/AccountApi.md b/sdks/dotnet/docs/AccountApi.md index 017c8e525..074f7d0f0 100644 --- a/sdks/dotnet/docs/AccountApi.md +++ b/sdks/dotnet/docs/AccountApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**AccountUpdate**](AccountApi.md#accountupdate) | **PUT** /account | Update Account | | [**AccountVerify**](AccountApi.md#accountverify) | **POST** /account/verify | Verify Account | - + # **AccountCreate** > AccountCreateResponse AccountCreate (AccountCreateRequest accountCreateRequest) @@ -19,43 +19,7 @@ Creates a new Dropbox Sign Account that is associated with the specified `email_ ### Example ```csharp -using System; - -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var accountApi = new AccountApi(config); - - var data = new AccountCreateRequest( - emailAddress: "newuser@dropboxsign.com" - ); - - try - { - var result = accountApi.AccountCreate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__AccountCreate_C#_CODE ``` #### Using the AccountCreateWithHttpInfo variant @@ -106,7 +70,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **AccountGet** > AccountGetResponse AccountGet (string? accountId = null, string? emailAddress = null) @@ -116,39 +80,7 @@ Returns the properties and settings of your Account. ### Example ```csharp -using System; - -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var accountApi = new AccountApi(config); - - try - { - var result = accountApi.AccountGet(null, "jack@example.com"); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__AccountGet_C#_CODE ``` #### Using the AccountGetWithHttpInfo variant @@ -175,8 +107,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **accountId** | **string?** | `account_id` or `email_address` is required. If both are provided, the account id prevails. The ID of the Account. | [optional] | -| **emailAddress** | **string?** | `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. | [optional] | +| **accountId** | **string?** | `account_id` or `email_address` is required. If both are provided, the account id prevails. The ID of the Account. | [optional] | +| **emailAddress** | **string?** | `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. | [optional] | ### Return type @@ -200,7 +132,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **AccountUpdate** > AccountGetResponse AccountUpdate (AccountUpdateRequest accountUpdateRequest) @@ -210,43 +142,7 @@ Updates the properties and settings of your Account. Currently only allows for u ### Example ```csharp -using System; - -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var accountApi = new AccountApi(config); - - var data = new AccountUpdateRequest( - callbackUrl: "https://www.example.com/callback" - ); - - try - { - var result = accountApi.AccountUpdate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__AccountUpdate_C#_CODE ``` #### Using the AccountUpdateWithHttpInfo variant @@ -297,7 +193,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **AccountVerify** > AccountVerifyResponse AccountVerify (AccountVerifyRequest accountVerifyRequest) @@ -307,43 +203,7 @@ Verifies whether an Dropbox Sign Account exists for the given email address. ### Example ```csharp -using System; - -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var accountApi = new AccountApi(config); - - var data = new AccountVerifyRequest( - emailAddress: "some_user@dropboxsign.com" - ); - - try - { - var result = accountApi.AccountVerify(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__AccountVerify_C#_CODE ``` #### Using the AccountVerifyWithHttpInfo variant diff --git a/sdks/dotnet/docs/AccountCreateRequest.md b/sdks/dotnet/docs/AccountCreateRequest.md index ce037d797..32e74b384 100644 --- a/sdks/dotnet/docs/AccountCreateRequest.md +++ b/sdks/dotnet/docs/AccountCreateRequest.md @@ -4,10 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | The email address which will be associated with the new Account. | -**ClientId** | **string** | Used when creating a new account with OAuth authorization.

See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) | [optional] -**ClientSecret** | **string** | Used when creating a new account with OAuth authorization.

See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) | [optional] -**Locale** | **string** | The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. | [optional] +**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address which will be associated with the new Account. REPLACE_ME_WITH_DESCRIPTION_END | **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Used when creating a new account with OAuth authorization. + +See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientSecret** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Used when creating a new account with OAuth authorization. + +See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Locale** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [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/AccountCreateResponse.md b/sdks/dotnet/docs/AccountCreateResponse.md index 873ccaf8a..c64f26db0 100644 --- a/sdks/dotnet/docs/AccountCreateResponse.md +++ b/sdks/dotnet/docs/AccountCreateResponse.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Account** | [**AccountResponse**](AccountResponse.md) | | [optional] -**OauthData** | [**OAuthTokenResponse**](OAuthTokenResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Account** | [**AccountResponse**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OauthData** | [**OAuthTokenResponse**](OAuthTokenResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/AccountGetResponse.md b/sdks/dotnet/docs/AccountGetResponse.md index ed624a254..41e3492af 100644 --- a/sdks/dotnet/docs/AccountGetResponse.md +++ b/sdks/dotnet/docs/AccountGetResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Account** | [**AccountResponse**](AccountResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Account** | [**AccountResponse**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/AccountResponse.md b/sdks/dotnet/docs/AccountResponse.md index b26ddb8c6..b2aefa2ff 100644 --- a/sdks/dotnet/docs/AccountResponse.md +++ b/sdks/dotnet/docs/AccountResponse.md @@ -4,17 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | The ID of the Account | [optional] -**EmailAddress** | **string** | The email address associated with the Account. | [optional] -**IsLocked** | **bool** | Returns `true` if the user has been locked out of their account by a team admin. | [optional] -**IsPaidHs** | **bool** | Returns `true` if the user has a paid Dropbox Sign account. | [optional] -**IsPaidHf** | **bool** | Returns `true` if the user has a paid HelloFax account. | [optional] -**Quotas** | [**AccountResponseQuotas**](AccountResponseQuotas.md) | | [optional] -**CallbackUrl** | **string** | The URL that Dropbox Sign events will `POST` to. | [optional] -**RoleCode** | **string** | The membership role for the team. | [optional] -**TeamId** | **string** | The id of the team account belongs to. | [optional] -**Locale** | **string** | The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. | [optional] -**Usage** | [**AccountResponseUsage**](AccountResponseUsage.md) | | [optional] +**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the Account REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address associated with the Account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsLocked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has been locked out of their account by a team admin. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsPaidHs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has a paid Dropbox Sign account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsPaidHf** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has a paid HelloFax account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Quotas** | [**AccountResponseQuotas**](AccountResponseQuotas.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL that Dropbox Sign events will `POST` to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RoleCode** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The membership role for the team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the team account belongs to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Locale** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Usage** | [**AccountResponseUsage**](AccountResponseUsage.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/AccountResponseQuotas.md b/sdks/dotnet/docs/AccountResponseQuotas.md index fae9d2397..474bf74bf 100644 --- a/sdks/dotnet/docs/AccountResponseQuotas.md +++ b/sdks/dotnet/docs/AccountResponseQuotas.md @@ -5,12 +5,7 @@ Details concerning remaining monthly quotas. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiSignatureRequestsLeft** | **int?** | API signature requests remaining. | [optional] -**DocumentsLeft** | **int?** | Signature requests remaining. | [optional] -**TemplatesTotal** | **int?** | Total API templates allowed. | [optional] -**TemplatesLeft** | **int?** | API templates remaining. | [optional] -**SmsVerificationsLeft** | **int?** | SMS verifications remaining. | [optional] -**NumFaxPagesLeft** | **int?** | Number of fax pages left | [optional] +**ApiSignatureRequestsLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN API signature requests remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DocumentsLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signature requests remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TemplatesTotal** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Total API templates allowed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TemplatesLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN API templates remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsVerificationsLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN SMS verifications remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumFaxPagesLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of fax pages left REPLACE_ME_WITH_DESCRIPTION_END | [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/AccountResponseUsage.md b/sdks/dotnet/docs/AccountResponseUsage.md index fa5536881..b339aa15f 100644 --- a/sdks/dotnet/docs/AccountResponseUsage.md +++ b/sdks/dotnet/docs/AccountResponseUsage.md @@ -5,7 +5,7 @@ Details concerning monthly usage Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FaxPagesSent** | **int?** | Number of fax pages sent | [optional] +**FaxPagesSent** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of fax pages sent REPLACE_ME_WITH_DESCRIPTION_END | [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/AccountUpdateRequest.md b/sdks/dotnet/docs/AccountUpdateRequest.md index 5ff6c6927..8be197573 100644 --- a/sdks/dotnet/docs/AccountUpdateRequest.md +++ b/sdks/dotnet/docs/AccountUpdateRequest.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | The ID of the Account | [optional] -**CallbackUrl** | **string** | The URL that Dropbox Sign should POST events to. | [optional] -**Locale** | **string** | The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. | [optional] +**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the Account REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL that Dropbox Sign should POST events to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Locale** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [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/AccountVerifyRequest.md b/sdks/dotnet/docs/AccountVerifyRequest.md index 79b1c8e0f..fb2525137 100644 --- a/sdks/dotnet/docs/AccountVerifyRequest.md +++ b/sdks/dotnet/docs/AccountVerifyRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | Email address to run the verification for. | +**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address to run the verification for. REPLACE_ME_WITH_DESCRIPTION_END | [[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/AccountVerifyResponse.md b/sdks/dotnet/docs/AccountVerifyResponse.md index 070df33af..9893567d1 100644 --- a/sdks/dotnet/docs/AccountVerifyResponse.md +++ b/sdks/dotnet/docs/AccountVerifyResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Account** | [**AccountVerifyResponseAccount**](AccountVerifyResponseAccount.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Account** | [**AccountVerifyResponseAccount**](AccountVerifyResponseAccount.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/AccountVerifyResponseAccount.md b/sdks/dotnet/docs/AccountVerifyResponseAccount.md index 881f1e733..07059c178 100644 --- a/sdks/dotnet/docs/AccountVerifyResponseAccount.md +++ b/sdks/dotnet/docs/AccountVerifyResponseAccount.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | The email address associated with the Account. | [optional] +**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address associated with the Account. REPLACE_ME_WITH_DESCRIPTION_END | [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/ApiAppApi.md b/sdks/dotnet/docs/ApiAppApi.md index d395eb750..cf98ff7de 100644 --- a/sdks/dotnet/docs/ApiAppApi.md +++ b/sdks/dotnet/docs/ApiAppApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**ApiAppList**](ApiAppApi.md#apiapplist) | **GET** /api_app/list | List API Apps | | [**ApiAppUpdate**](ApiAppApi.md#apiappupdate) | **PUT** /api_app/{client_id} | Update API App | - + # **ApiAppCreate** > ApiAppGetResponse ApiAppCreate (ApiAppCreateRequest apiAppCreateRequest) @@ -20,66 +20,7 @@ Creates a new API App. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var apiAppApi = new ApiAppApi(config); - - var oauth = new SubOAuth( - callbackUrl: "https://example.com/oauth", - scopes: new List() { - SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature - } - ); - - var whiteLabelingOptions = new SubWhiteLabelingOptions( - primaryButtonColor: "#00b3e6", - primaryButtonTextColor: "#ffffff" - ); - - var customLogoFile = new FileStream( - "CustomLogoFile.png", - FileMode.Open - ); - - var data = new ApiAppCreateRequest( - name: "My Production App", - domains: new List(){"example.com"}, - oauth: oauth, - whiteLabelingOptions: whiteLabelingOptions, - customLogoFile: customLogoFile - ); - - try - { - var result = apiAppApi.ApiAppCreate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppCreate_C#_CODE ``` #### Using the ApiAppCreateWithHttpInfo variant @@ -130,7 +71,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **ApiAppDelete** > void ApiAppDelete (string clientId) @@ -140,41 +81,7 @@ Deletes an API App. Can only be invoked for apps you own. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var apiAppApi = new ApiAppApi(config); - - var clientId = "0dd3b823a682527788c4e40cb7b6f7e9"; - - try - { - apiAppApi.ApiAppDelete(clientId); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppDelete_C#_CODE ``` #### Using the ApiAppDeleteWithHttpInfo variant @@ -222,7 +129,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **ApiAppGet** > ApiAppGetResponse ApiAppGet (string clientId) @@ -232,41 +139,7 @@ Returns an object with information about an API App. ### Example ```csharp -using System; - -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var apiAppApi = new ApiAppApi(config); - - var clientId = "0dd3b823a682527788c4e40cb7b6f7e9"; - - try - { - var result = apiAppApi.ApiAppGet(clientId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppGet_C#_CODE ``` #### Using the ApiAppGetWithHttpInfo variant @@ -317,7 +190,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **ApiAppList** > ApiAppListResponse ApiAppList (int? page = null, int? pageSize = null) @@ -327,42 +200,7 @@ Returns a list of API Apps that are accessible by you. If you are on a team with ### Example ```csharp -using System; - -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var apiAppApi = new ApiAppApi(config); - - var page = 1; - var pageSize = 2; - - try - { - var result = apiAppApi.ApiAppList(page, pageSize); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppList_C#_CODE ``` #### Using the ApiAppListWithHttpInfo variant @@ -389,8 +227,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **page** | **int?** | Which page number of the API App List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the API App List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | ### Return type @@ -414,7 +252,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **ApiAppUpdate** > ApiAppGetResponse ApiAppUpdate (string clientId, ApiAppUpdateRequest apiAppUpdateRequest) @@ -424,68 +262,7 @@ Updates an existing API App. Can only be invoked for apps you own. Only the fiel ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var apiAppApi = new ApiAppApi(config); - - var oauth = new SubOAuth( - callbackUrl: "https://example.com/oauth", - scopes: new List() { - SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature - } - ); - - var whiteLabelingOptions = new SubWhiteLabelingOptions( - primaryButtonColor: "#00b3e6", - primaryButtonTextColor: "#ffffff" - ); - - var customLogoFile = new FileStream( - "CustomLogoFile.png", - FileMode.Open - ); - - var data = new ApiAppUpdateRequest( - name: "My Production App", - domains: new List(){"example.com"}, - oauth: oauth, - whiteLabelingOptions: whiteLabelingOptions, - customLogoFile: customLogoFile - ); - - var clientId = "0dd3b823a682527788c4e40cb7b6f7e9"; - - try - { - var result = apiAppApi.ApiAppUpdate(clientId, data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppUpdate_C#_CODE ``` #### Using the ApiAppUpdateWithHttpInfo variant diff --git a/sdks/dotnet/docs/ApiAppCreateRequest.md b/sdks/dotnet/docs/ApiAppCreateRequest.md index 7585b735c..27f03b83f 100644 --- a/sdks/dotnet/docs/ApiAppCreateRequest.md +++ b/sdks/dotnet/docs/ApiAppCreateRequest.md @@ -4,13 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Domains** | **List<string>** | The domain names the ApiApp will be associated with. | -**Name** | **string** | The name you want to assign to the ApiApp. | -**CallbackUrl** | **string** | The URL at which the ApiApp should receive event callbacks. | [optional] -**CustomLogoFile** | **System.IO.Stream** | An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) | [optional] -**Oauth** | [**SubOAuth**](SubOAuth.md) | | [optional] -**Options** | [**SubOptions**](SubOptions.md) | | [optional] -**WhiteLabelingOptions** | [**SubWhiteLabelingOptions**](SubWhiteLabelingOptions.md) | | [optional] +**Domains** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The domain names the ApiApp will be associated with. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name you want to assign to the ApiApp. REPLACE_ME_WITH_DESCRIPTION_END | **CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL at which the ApiApp should receive event callbacks. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomLogoFile** | **System.IO.Stream** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Oauth** | [**SubOAuth**](SubOAuth.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Options** | [**SubOptions**](SubOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **WhiteLabelingOptions** | [**SubWhiteLabelingOptions**](SubWhiteLabelingOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/ApiAppGetResponse.md b/sdks/dotnet/docs/ApiAppGetResponse.md index 95a2b8b40..1af8eb57f 100644 --- a/sdks/dotnet/docs/ApiAppGetResponse.md +++ b/sdks/dotnet/docs/ApiAppGetResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiApp** | [**ApiAppResponse**](ApiAppResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**ApiApp** | [**ApiAppResponse**](ApiAppResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/ApiAppListResponse.md b/sdks/dotnet/docs/ApiAppListResponse.md index 041a0c9cf..8cf2eb832 100644 --- a/sdks/dotnet/docs/ApiAppListResponse.md +++ b/sdks/dotnet/docs/ApiAppListResponse.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiApps** | [**List<ApiAppResponse>**](ApiAppResponse.md) | Contains information about API Apps. | [optional] -**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**ApiApps** | [**List<ApiAppResponse>**](ApiAppResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains information about API Apps. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/ApiAppResponse.md b/sdks/dotnet/docs/ApiAppResponse.md index 011ca12ec..05f728d10 100644 --- a/sdks/dotnet/docs/ApiAppResponse.md +++ b/sdks/dotnet/docs/ApiAppResponse.md @@ -5,16 +5,7 @@ Contains information about an API App. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CallbackUrl** | **string** | The app's callback URL (for events) | [optional] -**ClientId** | **string** | The app's client id | [optional] -**CreatedAt** | **int** | The time that the app was created | [optional] -**Domains** | **List<string>** | The domain name(s) associated with the app | [optional] -**Name** | **string** | The name of the app | [optional] -**IsApproved** | **bool** | Boolean to indicate if the app has been approved | [optional] -**Oauth** | [**ApiAppResponseOAuth**](ApiAppResponseOAuth.md) | | [optional] -**Options** | [**ApiAppResponseOptions**](ApiAppResponseOptions.md) | | [optional] -**OwnerAccount** | [**ApiAppResponseOwnerAccount**](ApiAppResponseOwnerAccount.md) | | [optional] -**WhiteLabelingOptions** | [**ApiAppResponseWhiteLabelingOptions**](ApiAppResponseWhiteLabelingOptions.md) | | [optional] +**CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The app's callback URL (for events) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The app's client id REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time that the app was created REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Domains** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The domain name(s) associated with the app REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the app REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsApproved** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean to indicate if the app has been approved REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Oauth** | [**ApiAppResponseOAuth**](ApiAppResponseOAuth.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Options** | [**ApiAppResponseOptions**](ApiAppResponseOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OwnerAccount** | [**ApiAppResponseOwnerAccount**](ApiAppResponseOwnerAccount.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **WhiteLabelingOptions** | [**ApiAppResponseWhiteLabelingOptions**](ApiAppResponseWhiteLabelingOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/ApiAppResponseOAuth.md b/sdks/dotnet/docs/ApiAppResponseOAuth.md index b8cdfff9a..78b50dde3 100644 --- a/sdks/dotnet/docs/ApiAppResponseOAuth.md +++ b/sdks/dotnet/docs/ApiAppResponseOAuth.md @@ -5,10 +5,7 @@ An object describing the app's OAuth properties, or null if OAuth is not configu Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CallbackUrl** | **string** | The app's OAuth callback URL. | [optional] -**Secret** | **string** | The app's OAuth secret, or null if the app does not belong to user. | [optional] -**Scopes** | **List<string>** | Array of OAuth scopes used by the app. | [optional] -**ChargesUsers** | **bool** | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | [optional] +**CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The app's OAuth callback URL. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Secret** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The app's OAuth secret, or null if the app does not belong to user. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Scopes** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Array of OAuth scopes used by the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ChargesUsers** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. REPLACE_ME_WITH_DESCRIPTION_END | [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/ApiAppResponseOptions.md b/sdks/dotnet/docs/ApiAppResponseOptions.md index e484ad16b..a992c5db4 100644 --- a/sdks/dotnet/docs/ApiAppResponseOptions.md +++ b/sdks/dotnet/docs/ApiAppResponseOptions.md @@ -5,7 +5,7 @@ An object with options that override account settings. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CanInsertEverywhere** | **bool** | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | [optional] +**CanInsertEverywhere** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean denoting if signers can "Insert Everywhere" in one click while signing a document REPLACE_ME_WITH_DESCRIPTION_END | [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/ApiAppResponseOwnerAccount.md b/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md index 396b83ec6..fe3183aa9 100644 --- a/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md +++ b/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md @@ -5,8 +5,7 @@ An object describing the app's owner Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | The owner account's ID | [optional] -**EmailAddress** | **string** | The owner account's email address | [optional] +**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The owner account's ID REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The owner account's email address REPLACE_ME_WITH_DESCRIPTION_END | [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/ApiAppResponseWhiteLabelingOptions.md b/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md index 8d0221907..68fc3b3fc 100644 --- a/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md +++ b/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md @@ -5,20 +5,7 @@ An object with options to customize the app's signer page Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HeaderBackgroundColor** | **string** | | [optional] -**LegalVersion** | **string** | | [optional] -**LinkColor** | **string** | | [optional] -**PageBackgroundColor** | **string** | | [optional] -**PrimaryButtonColor** | **string** | | [optional] -**PrimaryButtonColorHover** | **string** | | [optional] -**PrimaryButtonTextColor** | **string** | | [optional] -**PrimaryButtonTextColorHover** | **string** | | [optional] -**SecondaryButtonColor** | **string** | | [optional] -**SecondaryButtonColorHover** | **string** | | [optional] -**SecondaryButtonTextColor** | **string** | | [optional] -**SecondaryButtonTextColorHover** | **string** | | [optional] -**TextColor1** | **string** | | [optional] -**TextColor2** | **string** | | [optional] +**HeaderBackgroundColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LegalVersion** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LinkColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PageBackgroundColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PrimaryButtonColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PrimaryButtonColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PrimaryButtonTextColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PrimaryButtonTextColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SecondaryButtonColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SecondaryButtonColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SecondaryButtonTextColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SecondaryButtonTextColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TextColor1** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TextColor2** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/ApiAppUpdateRequest.md b/sdks/dotnet/docs/ApiAppUpdateRequest.md index a68925567..c7502fd44 100644 --- a/sdks/dotnet/docs/ApiAppUpdateRequest.md +++ b/sdks/dotnet/docs/ApiAppUpdateRequest.md @@ -4,13 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CallbackUrl** | **string** | The URL at which the API App should receive event callbacks. | [optional] -**CustomLogoFile** | **System.IO.Stream** | An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) | [optional] -**Domains** | **List<string>** | The domain names the ApiApp will be associated with. | [optional] -**Name** | **string** | The name you want to assign to the ApiApp. | [optional] -**Oauth** | [**SubOAuth**](SubOAuth.md) | | [optional] -**Options** | [**SubOptions**](SubOptions.md) | | [optional] -**WhiteLabelingOptions** | [**SubWhiteLabelingOptions**](SubWhiteLabelingOptions.md) | | [optional] +**CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL at which the API App should receive event callbacks. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomLogoFile** | **System.IO.Stream** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Domains** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The domain names the ApiApp will be associated with. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name you want to assign to the ApiApp. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Oauth** | [**SubOAuth**](SubOAuth.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Options** | [**SubOptions**](SubOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **WhiteLabelingOptions** | [**SubWhiteLabelingOptions**](SubWhiteLabelingOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/BulkSendJobApi.md b/sdks/dotnet/docs/BulkSendJobApi.md index 25e2c7979..0968e8905 100644 --- a/sdks/dotnet/docs/BulkSendJobApi.md +++ b/sdks/dotnet/docs/BulkSendJobApi.md @@ -7,7 +7,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**BulkSendJobGet**](BulkSendJobApi.md#bulksendjobget) | **GET** /bulk_send_job/{bulk_send_job_id} | Get Bulk Send Job | | [**BulkSendJobList**](BulkSendJobApi.md#bulksendjoblist) | **GET** /bulk_send_job/list | List Bulk Send Jobs | - + # **BulkSendJobGet** > BulkSendJobGetResponse BulkSendJobGet (string bulkSendJobId, int? page = null, int? pageSize = null) @@ -17,42 +17,7 @@ Returns the status of the BulkSendJob and its SignatureRequests specified by the ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var bulkSendJobApi = new BulkSendJobApi(config); - - var bulkSendJobId = "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174"; - - try - { - var result = bulkSendJobApi.BulkSendJobGet(bulkSendJobId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__BulkSendJobGet_C#_CODE ``` #### Using the BulkSendJobGetWithHttpInfo variant @@ -80,8 +45,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **bulkSendJobId** | **string** | The id of the BulkSendJob to retrieve. | | -| **page** | **int?** | Which page number of the BulkSendJob list to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the BulkSendJob list to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. | [optional] [default to 20] | ### Return type @@ -105,7 +70,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **BulkSendJobList** > BulkSendJobListResponse BulkSendJobList (int? page = null, int? pageSize = null) @@ -115,43 +80,7 @@ Returns a list of BulkSendJob that you can access. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var bulkSendJobApi = new BulkSendJobApi(config); - - var page = 1; - var pageSize = 20; - - try - { - var result = bulkSendJobApi.BulkSendJobList(page, pageSize); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__BulkSendJobList_C#_CODE ``` #### Using the BulkSendJobListWithHttpInfo variant @@ -178,8 +107,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **page** | **int?** | Which page number of the BulkSendJob List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the BulkSendJob List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. | [optional] [default to 20] | ### Return type diff --git a/sdks/dotnet/docs/BulkSendJobGetResponse.md b/sdks/dotnet/docs/BulkSendJobGetResponse.md index 8f229a100..3ee0bb4f3 100644 --- a/sdks/dotnet/docs/BulkSendJobGetResponse.md +++ b/sdks/dotnet/docs/BulkSendJobGetResponse.md @@ -4,10 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BulkSendJob** | [**BulkSendJobResponse**](BulkSendJobResponse.md) | | [optional] -**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] -**SignatureRequests** | [**List<BulkSendJobGetResponseSignatureRequests>**](BulkSendJobGetResponseSignatureRequests.md) | Contains information about the Signature Requests sent in bulk. | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**BulkSendJob** | [**BulkSendJobResponse**](BulkSendJobResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignatureRequests** | [**List<BulkSendJobGetResponseSignatureRequests>**](BulkSendJobGetResponseSignatureRequests.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains information about the Signature Requests sent in bulk. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/BulkSendJobGetResponseSignatureRequests.md b/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md index 012dd7018..174c46678 100644 --- a/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md @@ -4,31 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TestMode** | **bool?** | Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. | [optional] [default to false] -**SignatureRequestId** | **string** | The id of the SignatureRequest. | [optional] -**RequesterEmailAddress** | **string** | The email address of the initiator of the SignatureRequest. | [optional] -**Title** | **string** | The title the specified Account uses for the SignatureRequest. | [optional] -**OriginalTitle** | **string** | Default Label for account. | [optional] -**Subject** | **string** | The subject in the email that was initially sent to the signers. | [optional] -**Message** | **string** | The custom message in the email that was initially sent to the signers. | [optional] -**Metadata** | **Object** | The metadata attached to the signature request. | [optional] -**CreatedAt** | **int** | Time the signature request was created. | [optional] -**ExpiresAt** | **int** | The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] -**IsComplete** | **bool** | Whether or not the SignatureRequest has been fully executed by all signers. | [optional] -**IsDeclined** | **bool** | Whether or not the SignatureRequest has been declined by a signer. | [optional] -**HasError** | **bool** | Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). | [optional] -**FilesUrl** | **string** | The URL where a copy of the request's documents can be downloaded. | [optional] -**SigningUrl** | **string** | The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. | [optional] -**DetailsUrl** | **string** | The URL where the requester and the signers can view the current status of the SignatureRequest. | [optional] -**CcEmailAddresses** | **List<string>** | A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. | [optional] -**SigningRedirectUrl** | **string** | The URL you want the signer redirected to after they successfully sign. | [optional] -**FinalCopyUri** | **string** | The path where the completed document can be downloaded | [optional] -**TemplateIds** | **List<string>** | Templates IDs used in this SignatureRequest (if any). | [optional] -**CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | An array of Custom Field objects containing the name and type of each custom field.

* Text Field uses `SignatureRequestResponseCustomFieldText`
* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` | [optional] -**Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] -**ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. | [optional] -**Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | [optional] -**BulkSendJobId** | **string** | The id of the BulkSendJob. | [optional] +**TestMode** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**SignatureRequestId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the initiator of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title the specified Account uses for the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalTitle** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Default Label for account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that was initially sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that was initially sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Object** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The metadata attached to the signature request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time the signature request was created. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsComplete** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not the SignatureRequest has been fully executed by all signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsDeclined** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not the SignatureRequest has been declined by a signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasError** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FilesUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where a copy of the request's documents can be downloaded. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DetailsUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where the requester and the signers can view the current status of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want the signer redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FinalCopyUri** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The path where the completed document can be downloaded REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Templates IDs used in this SignatureRequest (if any). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Custom Field objects containing the name and type of each custom field. + +* Text Field uses `SignatureRequestResponseCustomFieldText` +* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer attachments. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of signature objects, 1 for each signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **BulkSendJobId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the BulkSendJob. REPLACE_ME_WITH_DESCRIPTION_END | [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/BulkSendJobListResponse.md b/sdks/dotnet/docs/BulkSendJobListResponse.md index 1ecc64a8a..4e7364f9d 100644 --- a/sdks/dotnet/docs/BulkSendJobListResponse.md +++ b/sdks/dotnet/docs/BulkSendJobListResponse.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BulkSendJobs** | [**List<BulkSendJobResponse>**](BulkSendJobResponse.md) | Contains a list of BulkSendJobs that the API caller has access to. | [optional] -**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**BulkSendJobs** | [**List<BulkSendJobResponse>**](BulkSendJobResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains a list of BulkSendJobs that the API caller has access to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/BulkSendJobResponse.md b/sdks/dotnet/docs/BulkSendJobResponse.md index 02eff3580..a4fb08985 100644 --- a/sdks/dotnet/docs/BulkSendJobResponse.md +++ b/sdks/dotnet/docs/BulkSendJobResponse.md @@ -5,10 +5,7 @@ Contains information about the BulkSendJob such as when it was created and how m Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BulkSendJobId** | **string** | The id of the BulkSendJob. | [optional] -**Total** | **int** | The total amount of Signature Requests queued for sending. | [optional] -**IsCreator** | **bool** | True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. | [optional] -**CreatedAt** | **int** | Time that the BulkSendJob was created. | [optional] +**BulkSendJobId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the BulkSendJob. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Total** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The total amount of Signature Requests queued for sending. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsCreator** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time that the BulkSendJob was created. REPLACE_ME_WITH_DESCRIPTION_END | [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/BulkSendJobSendResponse.md b/sdks/dotnet/docs/BulkSendJobSendResponse.md index dda084aa0..21dbae51a 100644 --- a/sdks/dotnet/docs/BulkSendJobSendResponse.md +++ b/sdks/dotnet/docs/BulkSendJobSendResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BulkSendJob** | [**BulkSendJobResponse**](BulkSendJobResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**BulkSendJob** | [**BulkSendJobResponse**](BulkSendJobResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/EmbeddedApi.md b/sdks/dotnet/docs/EmbeddedApi.md index 9906560d1..5626a1c1f 100644 --- a/sdks/dotnet/docs/EmbeddedApi.md +++ b/sdks/dotnet/docs/EmbeddedApi.md @@ -7,7 +7,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**EmbeddedEditUrl**](EmbeddedApi.md#embeddedediturl) | **POST** /embedded/edit_url/{template_id} | Get Embedded Template Edit URL | | [**EmbeddedSignUrl**](EmbeddedApi.md#embeddedsignurl) | **GET** /embedded/sign_url/{signature_id} | Get Embedded Sign URL | - + # **EmbeddedEditUrl** > EmbeddedEditUrlResponse EmbeddedEditUrl (string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) @@ -17,47 +17,7 @@ Retrieves an embedded object containing a template url that can be opened in an ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var embeddedApi = new EmbeddedApi(config); - - var data = new EmbeddedEditUrlRequest( - ccRoles: new List(){""}, - mergeFields: new List() - ); - - var templateId = "5de8179668f2033afac48da1868d0093bf133266"; - - try - { - var result = embeddedApi.EmbeddedEditUrl(templateId, data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__EmbeddedEditUrl_C#_CODE ``` #### Using the EmbeddedEditUrlWithHttpInfo variant @@ -109,7 +69,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **EmbeddedSignUrl** > EmbeddedSignUrlResponse EmbeddedSignUrl (string signatureId) @@ -119,42 +79,7 @@ Retrieves an embedded object containing a signature url that can be opened in an ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var embeddedApi = new EmbeddedApi(config); - - var signatureId = "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b"; - - try - { - var result = embeddedApi.EmbeddedSignUrl(signatureId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__EmbeddedSignUrl_C#_CODE ``` #### Using the EmbeddedSignUrlWithHttpInfo variant diff --git a/sdks/dotnet/docs/EmbeddedEditUrlRequest.md b/sdks/dotnet/docs/EmbeddedEditUrlRequest.md index 8ebd95468..f9be8b2b5 100644 --- a/sdks/dotnet/docs/EmbeddedEditUrlRequest.md +++ b/sdks/dotnet/docs/EmbeddedEditUrlRequest.md @@ -4,16 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AllowEditCcs** | **bool** | This allows the requester to enable/disable to add or change CC roles when editing the template. | [optional] [default to false] -**CcRoles** | **List<string>** | The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. | [optional] -**EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] -**ForceSignerRoles** | **bool** | Provide users the ability to review/edit the template signer roles. | [optional] [default to false] -**ForceSubjectMessage** | **bool** | Provide users the ability to review/edit the template subject and message. | [optional] [default to false] -**MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template.

Remove all merge fields on the template by passing an empty array `[]`. | [optional] -**PreviewOnly** | **bool** | This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor).

**NOTE:** This parameter overwrites `show_preview=true` (if set). | [optional] [default to false] -**ShowPreview** | **bool** | This allows the requester to enable the editor/preview experience. | [optional] [default to false] -**ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true] -**TestMode** | **bool** | Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. | [optional] [default to false] +**AllowEditCcs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable/disable to add or change CC roles when editing the template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**CcRoles** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ForceSignerRoles** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template signer roles. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ForceSubjectMessage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template subject and message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template. + +Remove all merge fields on the template by passing an empty array `[]`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PreviewOnly** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). + +**NOTE:** This parameter overwrites `show_preview=true` (if set). REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ShowPreview** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the editor/preview experience. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/EmbeddedEditUrlResponse.md b/sdks/dotnet/docs/EmbeddedEditUrlResponse.md index c133ac342..f5355e911 100644 --- a/sdks/dotnet/docs/EmbeddedEditUrlResponse.md +++ b/sdks/dotnet/docs/EmbeddedEditUrlResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Embedded** | [**EmbeddedEditUrlResponseEmbedded**](EmbeddedEditUrlResponseEmbedded.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Embedded** | [**EmbeddedEditUrlResponseEmbedded**](EmbeddedEditUrlResponseEmbedded.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/EmbeddedEditUrlResponseEmbedded.md b/sdks/dotnet/docs/EmbeddedEditUrlResponseEmbedded.md index 92c333624..f237b4423 100644 --- a/sdks/dotnet/docs/EmbeddedEditUrlResponseEmbedded.md +++ b/sdks/dotnet/docs/EmbeddedEditUrlResponseEmbedded.md @@ -5,8 +5,7 @@ An embedded template object. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EditUrl** | **string** | A template url that can be opened in an iFrame. | [optional] -**ExpiresAt** | **int** | The specific time that the the `edit_url` link expires, in epoch. | [optional] +**EditUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A template url that can be opened in an iFrame. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The specific time that the the `edit_url` link expires, in epoch. REPLACE_ME_WITH_DESCRIPTION_END | [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/EmbeddedSignUrlResponse.md b/sdks/dotnet/docs/EmbeddedSignUrlResponse.md index 95e267361..fa443a160 100644 --- a/sdks/dotnet/docs/EmbeddedSignUrlResponse.md +++ b/sdks/dotnet/docs/EmbeddedSignUrlResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Embedded** | [**EmbeddedSignUrlResponseEmbedded**](EmbeddedSignUrlResponseEmbedded.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Embedded** | [**EmbeddedSignUrlResponseEmbedded**](EmbeddedSignUrlResponseEmbedded.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/EmbeddedSignUrlResponseEmbedded.md b/sdks/dotnet/docs/EmbeddedSignUrlResponseEmbedded.md index 1da5d6bf6..49e3cda48 100644 --- a/sdks/dotnet/docs/EmbeddedSignUrlResponseEmbedded.md +++ b/sdks/dotnet/docs/EmbeddedSignUrlResponseEmbedded.md @@ -5,8 +5,7 @@ An object that contains necessary information to set up embedded signing. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignUrl** | **string** | A signature url that can be opened in an iFrame. | [optional] -**ExpiresAt** | **int** | The specific time that the the `sign_url` link expires, in epoch. | [optional] +**SignUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A signature url that can be opened in an iFrame. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The specific time that the the `sign_url` link expires, in epoch. REPLACE_ME_WITH_DESCRIPTION_END | [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/ErrorResponse.md b/sdks/dotnet/docs/ErrorResponse.md index c91f8ef22..9094d1ed1 100644 --- a/sdks/dotnet/docs/ErrorResponse.md +++ b/sdks/dotnet/docs/ErrorResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Error** | [**ErrorResponseError**](ErrorResponseError.md) | | +**Error** | [**ErrorResponseError**](ErrorResponseError.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [[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/ErrorResponseError.md b/sdks/dotnet/docs/ErrorResponseError.md index 387d68298..a18fb2725 100644 --- a/sdks/dotnet/docs/ErrorResponseError.md +++ b/sdks/dotnet/docs/ErrorResponseError.md @@ -5,9 +5,7 @@ Contains information about an error that occurred. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ErrorMsg** | **string** | Message describing an error. | -**ErrorName** | **string** | Name of the error. | -**ErrorPath** | **string** | Path at which an error occurred. | [optional] +**ErrorMsg** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Message describing an error. REPLACE_ME_WITH_DESCRIPTION_END | **ErrorName** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Name of the error. REPLACE_ME_WITH_DESCRIPTION_END | **ErrorPath** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Path at which an error occurred. REPLACE_ME_WITH_DESCRIPTION_END | [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/EventCallbackRequest.md b/sdks/dotnet/docs/EventCallbackRequest.md index 8f1e5d7f8..814bec5c9 100644 --- a/sdks/dotnet/docs/EventCallbackRequest.md +++ b/sdks/dotnet/docs/EventCallbackRequest.md @@ -4,10 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Event** | [**EventCallbackRequestEvent**](EventCallbackRequestEvent.md) | | -**Account** | [**AccountResponse**](AccountResponse.md) | | [optional] -**SignatureRequest** | [**SignatureRequestResponse**](SignatureRequestResponse.md) | | [optional] -**Template** | [**TemplateResponse**](TemplateResponse.md) | | [optional] +**Event** | [**EventCallbackRequestEvent**](EventCallbackRequestEvent.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **Account** | [**AccountResponse**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignatureRequest** | [**SignatureRequestResponse**](SignatureRequestResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Template** | [**TemplateResponse**](TemplateResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/EventCallbackRequestEvent.md b/sdks/dotnet/docs/EventCallbackRequestEvent.md index 98884f129..785faa366 100644 --- a/sdks/dotnet/docs/EventCallbackRequestEvent.md +++ b/sdks/dotnet/docs/EventCallbackRequestEvent.md @@ -5,10 +5,7 @@ Basic information about the event that occurred. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EventTime** | **string** | Time the event was created (using Unix time). | -**EventType** | **string** | Type of callback event that was triggered. | -**EventHash** | **string** | Generated hash used to verify source of event data. | -**EventMetadata** | [**EventCallbackRequestEventMetadata**](EventCallbackRequestEventMetadata.md) | | [optional] +**EventTime** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time the event was created (using Unix time). REPLACE_ME_WITH_DESCRIPTION_END | **EventType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Type of callback event that was triggered. REPLACE_ME_WITH_DESCRIPTION_END | **EventHash** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Generated hash used to verify source of event data. REPLACE_ME_WITH_DESCRIPTION_END | **EventMetadata** | [**EventCallbackRequestEventMetadata**](EventCallbackRequestEventMetadata.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/EventCallbackRequestEventMetadata.md b/sdks/dotnet/docs/EventCallbackRequestEventMetadata.md index 65ad87405..253f9e134 100644 --- a/sdks/dotnet/docs/EventCallbackRequestEventMetadata.md +++ b/sdks/dotnet/docs/EventCallbackRequestEventMetadata.md @@ -5,10 +5,7 @@ Specific metadata about the event. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RelatedSignatureId** | **string** | Signature ID for a specific signer. Applicable to `signature_request_signed` and `signature_request_viewed` events. | [optional] -**ReportedForAccountId** | **string** | Account ID the event was reported for. | [optional] -**ReportedForAppId** | **string** | App ID the event was reported for. | [optional] -**EventMessage** | **string** | Message about a declined or failed (due to error) signature flow. | [optional] +**RelatedSignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signature ID for a specific signer. Applicable to `signature_request_signed` and `signature_request_viewed` events. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReportedForAccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account ID the event was reported for. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReportedForAppId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN App ID the event was reported for. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EventMessage** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Message about a declined or failed (due to error) signature flow. REPLACE_ME_WITH_DESCRIPTION_END | [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/FaxLineAddUserRequest.md b/sdks/dotnet/docs/FaxLineAddUserRequest.md index 16d672e58..cfae04ea0 100644 --- a/sdks/dotnet/docs/FaxLineAddUserRequest.md +++ b/sdks/dotnet/docs/FaxLineAddUserRequest.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **string** | The Fax Line number. | -**AccountId** | **string** | Account ID | [optional] -**EmailAddress** | **string** | Email address | [optional] +**Number** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The Fax Line number. REPLACE_ME_WITH_DESCRIPTION_END | **AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account ID REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address REPLACE_ME_WITH_DESCRIPTION_END | [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/FaxLineApi.md b/sdks/dotnet/docs/FaxLineApi.md index 851341354..e2d395634 100644 --- a/sdks/dotnet/docs/FaxLineApi.md +++ b/sdks/dotnet/docs/FaxLineApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**FaxLineList**](FaxLineApi.md#faxlinelist) | **GET** /fax_line/list | List Fax Lines | | [**FaxLineRemoveUser**](FaxLineApi.md#faxlineremoveuser) | **PUT** /fax_line/remove_user | Remove Fax Line Access | - + # **FaxLineAddUser** > FaxLineResponse FaxLineAddUser (FaxLineAddUserRequest faxLineAddUserRequest) @@ -22,41 +22,7 @@ Grants a user access to the specified Fax Line. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - config.Username = "YOUR_API_KEY"; - - var faxLineApi = new FaxLineApi(config); - - var data = new FaxLineAddUserRequest( - number: "[FAX_NUMBER]", - emailAddress: "member@dropboxsign.com" - ); - - try - { - var result = faxLineApi.FaxLineAddUser(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineAddUser_C#_CODE ``` #### Using the FaxLineAddUserWithHttpInfo variant @@ -107,7 +73,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **FaxLineAreaCodeGet** > FaxLineAreaCodeGetResponse FaxLineAreaCodeGet (string country, string? state = null, string? province = null, string? city = null) @@ -117,36 +83,7 @@ Returns a response with the area codes available for a given state/provice and c ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - config.Username = "YOUR_API_KEY"; - - var faxLineApi = new FaxLineApi(config); - - try - { - var result = faxLineApi.FaxLineAreaCodeGet("US", "CA"); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineAreaCodeGet_C#_CODE ``` #### Using the FaxLineAreaCodeGetWithHttpInfo variant @@ -200,7 +137,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **FaxLineCreate** > FaxLineResponse FaxLineCreate (FaxLineCreateRequest faxLineCreateRequest) @@ -210,41 +147,7 @@ Purchases a new Fax Line. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - config.Username = "YOUR_API_KEY"; - - var faxLineApi = new FaxLineApi(config); - - var data = new FaxLineCreateRequest( - areaCode: 209, - country: "US" - ); - - try - { - var result = faxLineApi.FaxLineCreate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineCreate_C#_CODE ``` #### Using the FaxLineCreateWithHttpInfo variant @@ -295,7 +198,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **FaxLineDelete** > void FaxLineDelete (FaxLineDeleteRequest faxLineDeleteRequest) @@ -305,39 +208,7 @@ Deletes the specified Fax Line from the subscription. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - config.Username = "YOUR_API_KEY"; - - var faxLineApi = new FaxLineApi(config); - - var data = new FaxLineDeleteRequest( - number: "[FAX_NUMBER]", - ); - - try - { - faxLineApi.FaxLineDelete(data); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineDelete_C#_CODE ``` #### Using the FaxLineDeleteWithHttpInfo variant @@ -385,7 +256,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **FaxLineGet** > FaxLineResponse FaxLineGet (string number) @@ -395,36 +266,7 @@ Returns the properties and settings of a Fax Line. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - config.Username = "YOUR_API_KEY"; - - var faxLineApi = new FaxLineApi(config); - - try - { - var result = faxLineApi.FaxLineGet("[FAX_NUMBER]"); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineGet_C#_CODE ``` #### Using the FaxLineGetWithHttpInfo variant @@ -475,7 +317,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **FaxLineList** > FaxLineListResponse FaxLineList (string? accountId = null, int? page = null, int? pageSize = null, bool? showTeamLines = null) @@ -485,36 +327,7 @@ Returns the properties and settings of multiple Fax Lines. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - config.Username = "YOUR_API_KEY"; - - var faxLineApi = new FaxLineApi(config); - - try - { - var result = faxLineApi.FaxLineList(); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineList_C#_CODE ``` #### Using the FaxLineListWithHttpInfo variant @@ -568,7 +381,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **FaxLineRemoveUser** > FaxLineResponse FaxLineRemoveUser (FaxLineRemoveUserRequest faxLineRemoveUserRequest) @@ -578,41 +391,7 @@ Removes a user's access to the specified Fax Line. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - config.Username = "YOUR_API_KEY"; - - var faxLineApi = new FaxLineApi(config); - - var data = new FaxLineRemoveUserRequest( - number: "[FAX_NUMBER]", - emailAddress: "member@dropboxsign.com" - ); - - try - { - var result = faxLineApi.FaxLineRemoveUser(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineRemoveUser_C#_CODE ``` #### Using the FaxLineRemoveUserWithHttpInfo variant diff --git a/sdks/dotnet/docs/FaxLineAreaCodeGetCountryEnum.md b/sdks/dotnet/docs/FaxLineAreaCodeGetCountryEnum.md index fa6c2e31b..1bb3e0419 100644 --- a/sdks/dotnet/docs/FaxLineAreaCodeGetCountryEnum.md +++ b/sdks/dotnet/docs/FaxLineAreaCodeGetCountryEnum.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- + [[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/FaxLineAreaCodeGetProvinceEnum.md b/sdks/dotnet/docs/FaxLineAreaCodeGetProvinceEnum.md index ad9e935c5..7b06480c2 100644 --- a/sdks/dotnet/docs/FaxLineAreaCodeGetProvinceEnum.md +++ b/sdks/dotnet/docs/FaxLineAreaCodeGetProvinceEnum.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- + [[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/FaxLineAreaCodeGetResponse.md b/sdks/dotnet/docs/FaxLineAreaCodeGetResponse.md index 297d51efd..469e1adc3 100644 --- a/sdks/dotnet/docs/FaxLineAreaCodeGetResponse.md +++ b/sdks/dotnet/docs/FaxLineAreaCodeGetResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AreaCodes** | **List<int>** | | [optional] +**AreaCodes** | **List<int>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/FaxLineAreaCodeGetStateEnum.md b/sdks/dotnet/docs/FaxLineAreaCodeGetStateEnum.md index f63df05ce..9519cbc73 100644 --- a/sdks/dotnet/docs/FaxLineAreaCodeGetStateEnum.md +++ b/sdks/dotnet/docs/FaxLineAreaCodeGetStateEnum.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- + [[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/FaxLineCreateRequest.md b/sdks/dotnet/docs/FaxLineCreateRequest.md index 7c6b9b165..6ad607b8e 100644 --- a/sdks/dotnet/docs/FaxLineCreateRequest.md +++ b/sdks/dotnet/docs/FaxLineCreateRequest.md @@ -4,10 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AreaCode** | **int** | Area code | -**Country** | **string** | Country | -**City** | **string** | City | [optional] -**AccountId** | **string** | Account ID | [optional] +**AreaCode** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Area code REPLACE_ME_WITH_DESCRIPTION_END | **Country** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Country REPLACE_ME_WITH_DESCRIPTION_END | **City** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN City REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account ID REPLACE_ME_WITH_DESCRIPTION_END | [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/FaxLineDeleteRequest.md b/sdks/dotnet/docs/FaxLineDeleteRequest.md index 673880d28..cc2f25404 100644 --- a/sdks/dotnet/docs/FaxLineDeleteRequest.md +++ b/sdks/dotnet/docs/FaxLineDeleteRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **string** | The Fax Line number. | +**Number** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The Fax Line number. REPLACE_ME_WITH_DESCRIPTION_END | [[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/FaxLineListResponse.md b/sdks/dotnet/docs/FaxLineListResponse.md index 12550dc0b..fd596f5ad 100644 --- a/sdks/dotnet/docs/FaxLineListResponse.md +++ b/sdks/dotnet/docs/FaxLineListResponse.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] -**FaxLines** | [**List<FaxLineResponseFaxLine>**](FaxLineResponseFaxLine.md) | | [optional] -**Warnings** | [**WarningResponse**](WarningResponse.md) | | [optional] +**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FaxLines** | [**List<FaxLineResponseFaxLine>**](FaxLineResponseFaxLine.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**WarningResponse**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/FaxLineRemoveUserRequest.md b/sdks/dotnet/docs/FaxLineRemoveUserRequest.md index fa351fad7..08965e8d3 100644 --- a/sdks/dotnet/docs/FaxLineRemoveUserRequest.md +++ b/sdks/dotnet/docs/FaxLineRemoveUserRequest.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **string** | The Fax Line number. | -**AccountId** | **string** | Account ID | [optional] -**EmailAddress** | **string** | Email address | [optional] +**Number** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The Fax Line number. REPLACE_ME_WITH_DESCRIPTION_END | **AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account ID REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address REPLACE_ME_WITH_DESCRIPTION_END | [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/FaxLineResponse.md b/sdks/dotnet/docs/FaxLineResponse.md index e19ae76cf..0e050a29c 100644 --- a/sdks/dotnet/docs/FaxLineResponse.md +++ b/sdks/dotnet/docs/FaxLineResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FaxLine** | [**FaxLineResponseFaxLine**](FaxLineResponseFaxLine.md) | | [optional] -**Warnings** | [**WarningResponse**](WarningResponse.md) | | [optional] +**FaxLine** | [**FaxLineResponseFaxLine**](FaxLineResponseFaxLine.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**WarningResponse**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/FaxLineResponseFaxLine.md b/sdks/dotnet/docs/FaxLineResponseFaxLine.md index 66651431d..bafa4d7e1 100644 --- a/sdks/dotnet/docs/FaxLineResponseFaxLine.md +++ b/sdks/dotnet/docs/FaxLineResponseFaxLine.md @@ -4,10 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **string** | Number | [optional] -**CreatedAt** | **int** | Created at | [optional] -**UpdatedAt** | **int** | Updated at | [optional] -**Accounts** | [**List<AccountResponse>**](AccountResponse.md) | | [optional] +**Number** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Created at REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UpdatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Updated at REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Accounts** | [**List<AccountResponse>**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/FileResponse.md b/sdks/dotnet/docs/FileResponse.md index 313709654..0ca43d220 100644 --- a/sdks/dotnet/docs/FileResponse.md +++ b/sdks/dotnet/docs/FileResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FileUrl** | **string** | URL to the file. | [optional] -**ExpiresAt** | **int** | When the link expires. | [optional] +**FileUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN URL to the file. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the link expires. REPLACE_ME_WITH_DESCRIPTION_END | [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/FileResponseDataUri.md b/sdks/dotnet/docs/FileResponseDataUri.md index 927cb34b7..0ce14907a 100644 --- a/sdks/dotnet/docs/FileResponseDataUri.md +++ b/sdks/dotnet/docs/FileResponseDataUri.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DataUri** | **string** | File as base64 encoded string. | [optional] +**DataUri** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN File as base64 encoded string. REPLACE_ME_WITH_DESCRIPTION_END | [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/ListInfoResponse.md b/sdks/dotnet/docs/ListInfoResponse.md index cd1983fe1..2b96d1bc5 100644 --- a/sdks/dotnet/docs/ListInfoResponse.md +++ b/sdks/dotnet/docs/ListInfoResponse.md @@ -5,10 +5,7 @@ Contains pagination information about the data returned. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NumPages** | **int** | Total number of pages available. | [optional] -**NumResults** | **int?** | Total number of objects available. | [optional] -**Page** | **int** | Number of the page being returned. | [optional] -**PageSize** | **int** | Objects returned per page. | [optional] +**NumPages** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Total number of pages available. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumResults** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Total number of objects available. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Page** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of the page being returned. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PageSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Objects returned per page. REPLACE_ME_WITH_DESCRIPTION_END | [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/OAuthApi.md b/sdks/dotnet/docs/OAuthApi.md index bde8c1a75..7581d62d2 100644 --- a/sdks/dotnet/docs/OAuthApi.md +++ b/sdks/dotnet/docs/OAuthApi.md @@ -7,7 +7,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**OauthTokenGenerate**](OAuthApi.md#oauthtokengenerate) | **POST** /oauth/token | OAuth Token Generate | | [**OauthTokenRefresh**](OAuthApi.md#oauthtokenrefresh) | **POST** /oauth/token?refresh | OAuth Token Refresh | - + # **OauthTokenGenerate** > OAuthTokenResponse OauthTokenGenerate (OAuthTokenGenerateRequest oAuthTokenGenerateRequest) @@ -17,42 +17,7 @@ Once you have retrieved the code from the user callback, you will need to exchan ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - - var oAuthApi = new OAuthApi(config); - - var data = new OAuthTokenGenerateRequest( - state: "900e06e2", - code: "1b0d28d90c86c141", - clientId: "cc91c61d00f8bb2ece1428035716b", - clientSecret: "1d14434088507ffa390e6f5528465" - ); - - try - { - var result = oAuthApi.OauthTokenGenerate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__OauthTokenGenerate_C#_CODE ``` #### Using the OauthTokenGenerateWithHttpInfo variant @@ -102,7 +67,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **OauthTokenRefresh** > OAuthTokenResponse OauthTokenRefresh (OAuthTokenRefreshRequest oAuthTokenRefreshRequest) @@ -112,39 +77,7 @@ Access tokens are only valid for a given period of time (typically one hour) for ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - - var oAuthApi = new OAuthApi(config); - - var data = new OAuthTokenRefreshRequest( - refreshToken: "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3" - ); - - try - { - var result = oAuthApi.OauthTokenRefresh(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__OauthTokenRefresh_C#_CODE ``` #### Using the OauthTokenRefreshWithHttpInfo variant diff --git a/sdks/dotnet/docs/OAuthTokenGenerateRequest.md b/sdks/dotnet/docs/OAuthTokenGenerateRequest.md index 0513db70b..909169e37 100644 --- a/sdks/dotnet/docs/OAuthTokenGenerateRequest.md +++ b/sdks/dotnet/docs/OAuthTokenGenerateRequest.md @@ -4,11 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | The client id of the app requesting authorization. | -**ClientSecret** | **string** | The secret token of your app. | -**Code** | **string** | The code passed to your callback when the user granted access. | -**GrantType** | **string** | When generating a new token use `authorization_code`. | [default to "authorization_code"] -**State** | **string** | Same as the state you specified earlier. | +**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The client id of the app requesting authorization. REPLACE_ME_WITH_DESCRIPTION_END | **ClientSecret** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The secret token of your app. REPLACE_ME_WITH_DESCRIPTION_END | **Code** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The code passed to your callback when the user granted access. REPLACE_ME_WITH_DESCRIPTION_END | **GrantType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When generating a new token use `authorization_code`. REPLACE_ME_WITH_DESCRIPTION_END | [default to "authorization_code"]**State** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Same as the state you specified earlier. REPLACE_ME_WITH_DESCRIPTION_END | [[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/OAuthTokenRefreshRequest.md b/sdks/dotnet/docs/OAuthTokenRefreshRequest.md index 02ff11835..5794c5599 100644 --- a/sdks/dotnet/docs/OAuthTokenRefreshRequest.md +++ b/sdks/dotnet/docs/OAuthTokenRefreshRequest.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**GrantType** | **string** | When refreshing an existing token use `refresh_token`. | [default to "refresh_token"] -**RefreshToken** | **string** | The token provided when you got the expired access token. | +**GrantType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When refreshing an existing token use `refresh_token`. REPLACE_ME_WITH_DESCRIPTION_END | [default to "refresh_token"]**RefreshToken** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The token provided when you got the expired access token. REPLACE_ME_WITH_DESCRIPTION_END | [[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/OAuthTokenResponse.md b/sdks/dotnet/docs/OAuthTokenResponse.md index ea11e011f..1d56fb266 100644 --- a/sdks/dotnet/docs/OAuthTokenResponse.md +++ b/sdks/dotnet/docs/OAuthTokenResponse.md @@ -4,11 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccessToken** | **string** | | [optional] -**TokenType** | **string** | | [optional] -**RefreshToken** | **string** | | [optional] -**ExpiresIn** | **int** | Number of seconds until the `access_token` expires. Uses epoch time. | [optional] -**State** | **string** | | [optional] +**AccessToken** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TokenType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RefreshToken** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresIn** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of seconds until the `access_token` expires. Uses epoch time. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **State** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/ReportApi.md b/sdks/dotnet/docs/ReportApi.md index 7069375dd..e6b1b88d9 100644 --- a/sdks/dotnet/docs/ReportApi.md +++ b/sdks/dotnet/docs/ReportApi.md @@ -6,7 +6,7 @@ All URIs are relative to *https://api.hellosign.com/v3* |--------|--------------|-------------| | [**ReportCreate**](ReportApi.md#reportcreate) | **POST** /report/create | Create Report | - + # **ReportCreate** > ReportCreateResponse ReportCreate (ReportCreateRequest reportCreateRequest) @@ -16,49 +16,7 @@ Request the creation of one or more report(s). When the report(s) have been gen ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var reportApi = new ReportApi(config); - - var data = new ReportCreateRequest( - startDate: "09/01/2020", - endDate: "09/01/2020", - reportType: new List() { - ReportCreateRequest.ReportTypeEnum.UserActivity, - ReportCreateRequest.ReportTypeEnum.DocumentStatus, - } - ); - - try - { - var result = reportApi.OauthCreate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__ReportCreate_C#_CODE ``` #### Using the ReportCreateWithHttpInfo variant diff --git a/sdks/dotnet/docs/ReportCreateRequest.md b/sdks/dotnet/docs/ReportCreateRequest.md index d1c813dd6..b1f1242db 100644 --- a/sdks/dotnet/docs/ReportCreateRequest.md +++ b/sdks/dotnet/docs/ReportCreateRequest.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EndDate** | **string** | The (inclusive) end date for the report data in `MM/DD/YYYY` format. | -**ReportType** | **List<string>** | The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). | -**StartDate** | **string** | The (inclusive) start date for the report data in `MM/DD/YYYY` format. | +**EndDate** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The (inclusive) end date for the report data in `MM/DD/YYYY` format. REPLACE_ME_WITH_DESCRIPTION_END | **ReportType** | **List<ReportCreateRequest.ReportTypeEnum>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). REPLACE_ME_WITH_DESCRIPTION_END | **StartDate** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The (inclusive) start date for the report data in `MM/DD/YYYY` format. REPLACE_ME_WITH_DESCRIPTION_END | [[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/ReportCreateResponse.md b/sdks/dotnet/docs/ReportCreateResponse.md index 18102c623..386dc08d3 100644 --- a/sdks/dotnet/docs/ReportCreateResponse.md +++ b/sdks/dotnet/docs/ReportCreateResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Report** | [**ReportResponse**](ReportResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Report** | [**ReportResponse**](ReportResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/ReportResponse.md b/sdks/dotnet/docs/ReportResponse.md index fd15b485f..547ac7095 100644 --- a/sdks/dotnet/docs/ReportResponse.md +++ b/sdks/dotnet/docs/ReportResponse.md @@ -5,10 +5,7 @@ Contains information about the report request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Success** | **string** | A message indicating the requested operation's success | [optional] -**StartDate** | **string** | The (inclusive) start date for the report data in MM/DD/YYYY format. | [optional] -**EndDate** | **string** | The (inclusive) end date for the report data in MM/DD/YYYY format. | [optional] -**ReportType** | **List<string>** | The type(s) of the report you are requesting. Allowed values are "user_activity" and "document_status". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). | [optional] +**Success** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A message indicating the requested operation's success REPLACE_ME_WITH_DESCRIPTION_END | [optional] **StartDate** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The (inclusive) start date for the report data in MM/DD/YYYY format. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EndDate** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The (inclusive) end date for the report data in MM/DD/YYYY format. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReportType** | **List<ReportResponse.ReportTypeEnum>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type(s) of the report you are requesting. Allowed values are "user_activity" and "document_status". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestApi.md b/sdks/dotnet/docs/SignatureRequestApi.md index 60f6e1b2c..850bb9448 100644 --- a/sdks/dotnet/docs/SignatureRequestApi.md +++ b/sdks/dotnet/docs/SignatureRequestApi.md @@ -21,7 +21,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**SignatureRequestSendWithTemplate**](SignatureRequestApi.md#signaturerequestsendwithtemplate) | **POST** /signature_request/send_with_template | Send with Template | | [**SignatureRequestUpdate**](SignatureRequestApi.md#signaturerequestupdate) | **POST** /signature_request/update/{signature_request_id} | Update Signature Request | - + # **SignatureRequestBulkCreateEmbeddedWithTemplate** > BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate (SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) @@ -31,89 +31,7 @@ Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signerList1Signer = new SubSignatureRequestTemplateSigner( - role: "Client", - name: "George", - emailAddress: "george@example.com", - pin: "d79a3td" - ); - - var signerList1CustomFields = new SubBulkSignerListCustomField( - name: "company", - value: "ABC Corp" - ); - - var signerList1 = new SubBulkSignerList( - signers: new List(){signerList1Signer}, - customFields: new List(){signerList1CustomFields} - ); - - var signerList2Signer = new SubSignatureRequestTemplateSigner( - role: "Client", - name: "Mary", - emailAddress: "mary@example.com", - pin: "gd9as5b" - ); - - var signerList2CustomFields = new SubBulkSignerListCustomField( - name: "company", - value: "123 Corp" - ); - - var signerList2 = new SubBulkSignerList( - signers: new List(){signerList2Signer}, - customFields: new List(){signerList2CustomFields} - ); - - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@email.com" - ); - - var data = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest( - clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, - subject: "Purchase Order", - message: "Glad we could come to an agreement.", - signerList: new List(){signerList1, signerList2}, - ccs: new List(){cc1}, - testMode: true - ); - - try - { - var result = signatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestBulkCreateEmbeddedWithTemplate_C#_CODE ``` #### Using the SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo variant @@ -164,7 +82,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestBulkSendWithTemplate** > BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate (SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) @@ -174,88 +92,7 @@ Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signerList1Signer = new SubSignatureRequestTemplateSigner( - role: "Client", - name: "George", - emailAddress: "george@example.com", - pin: "d79a3td" - ); - - var signerList1CustomFields = new SubBulkSignerListCustomField( - name: "company", - value: "ABC Corp" - ); - - var signerList1 = new SubBulkSignerList( - signers: new List(){signerList1Signer}, - customFields: new List(){signerList1CustomFields} - ); - - var signerList2Signer = new SubSignatureRequestTemplateSigner( - role: "Client", - name: "Mary", - emailAddress: "mary@example.com", - pin: "gd9as5b" - ); - - var signerList2CustomFields = new SubBulkSignerListCustomField( - name: "company", - value: "123 Corp" - ); - - var signerList2 = new SubBulkSignerList( - signers: new List(){signerList2Signer}, - customFields: new List(){signerList2CustomFields} - ); - - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@email.com" - ); - - var data = new SignatureRequestBulkSendWithTemplateRequest( - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, - subject: "Purchase Order", - message: "Glad we could come to an agreement.", - signerList: new List(){signerList1, signerList2}, - ccs: new List(){cc1}, - testMode: true - ); - - try - { - var result = signatureRequestApi.SignatureRequestBulkSendWithTemplate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestBulkSendWithTemplate_C#_CODE ``` #### Using the SignatureRequestBulkSendWithTemplateWithHttpInfo variant @@ -306,7 +143,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestCancel** > void SignatureRequestCancel (string signatureRequestId) @@ -316,41 +153,7 @@ Cancels an incomplete signature request. This action is **not reversible**. The ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; - - try - { - signatureRequestApi.SignatureRequestCancel(signatureRequestId); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestCancel_C#_CODE ``` #### Using the SignatureRequestCancelWithHttpInfo variant @@ -398,7 +201,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestCreateEmbedded** > SignatureRequestGetResponse SignatureRequestCreateEmbedded (SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) @@ -408,81 +211,7 @@ Creates a new SignatureRequest with the submitted documents to be signed in an e ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signer1 = new SubSignatureRequestSigner( - emailAddress: "jack@example.com", - name: "Jack", - order: 0 - ); - - var signer2 = new SubSignatureRequestSigner( - emailAddress: "jill@example.com", - name: "Jill", - order: 1 - ); - - var signingOptions = new SubSigningOptions( - draw: true, - type: true, - upload: true, - phone: true, - defaultType: SubSigningOptions.DefaultTypeEnum.Draw - ); - - var files = new List { - new FileStream( - "./example_signature_request.pdf", - FileMode.Open, - FileAccess.Read, - FileShare.Read - ) - }; - - var data = new SignatureRequestCreateEmbeddedRequest( - clientId: "ec64a202072370a737edf4a0eb7f4437", - title: "NDA with Acme Co.", - subject: "The NDA we talked about", - message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List(){signer1, signer2}, - ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, - files: files, - signingOptions: signingOptions, - testMode: true - ); - - try - { - var result = signatureRequestApi.SignatureRequestCreateEmbedded(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestCreateEmbedded_C#_CODE ``` #### Using the SignatureRequestCreateEmbeddedWithHttpInfo variant @@ -533,7 +262,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestCreateEmbeddedWithTemplate** > SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate (SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) @@ -543,62 +272,7 @@ Creates a new SignatureRequest based on the given Template(s) to be signed in an ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signer1 = new SubSignatureRequestTemplateSigner( - role: "Client", - name: "George" - ); - - var subSigningOptions = new SubSigningOptions( - draw: true, - type: true, - upload: true, - phone: false, - defaultType: SubSigningOptions.DefaultTypeEnum.Draw - ); - - var data = new SignatureRequestCreateEmbeddedWithTemplateRequest( - clientId: "ec64a202072370a737edf4a0eb7f4437", - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, - subject: "Purchase Order", - message: "Glad we could come to an agreement.", - signers: new List(){signer1}, - signingOptions: subSigningOptions, - testMode: true - ); - - try - { - var result = signatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestCreateEmbeddedWithTemplate_C#_CODE ``` #### Using the SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo variant @@ -649,7 +323,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestFiles** > System.IO.Stream SignatureRequestFiles (string signatureRequestId, string? fileType = null) @@ -659,45 +333,7 @@ Obtain a copy of the current documents specified by the `signature_request_id` p ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; - - try - { - var result = signatureRequestApi.SignatureRequestFiles(signatureRequestId, "pdf"); - - var fileStream = File.Create("file_response.pdf"); - result.Seek(0, SeekOrigin.Begin); - result.CopyTo(fileStream); - fileStream.Close(); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestFiles_C#_CODE ``` #### Using the SignatureRequestFilesWithHttpInfo variant @@ -725,7 +361,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to retrieve. | | -| **fileType** | **string?** | Set to `pdf` for a single merged document or `zip` for a collection of individual documents. | [optional] [default to pdf] | +| **fileType** | **string?** | Set to `pdf` for a single merged document or `zip` for a collection of individual documents. | [optional] [default to pdf] | ### Return type @@ -749,7 +385,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestFilesAsDataUri** > FileResponseDataUri SignatureRequestFilesAsDataUri (string signatureRequestId) @@ -759,41 +395,7 @@ Obtain a copy of the current documents specified by the `signature_request_id` p ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; - - try - { - var result = signatureRequestApi.SignatureRequestFilesAsDataUri(signatureRequestId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestFilesAsDataUri_C#_CODE ``` #### Using the SignatureRequestFilesAsDataUriWithHttpInfo variant @@ -844,7 +446,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestFilesAsFileUrl** > FileResponse SignatureRequestFilesAsFileUrl (string signatureRequestId, int? forceDownload = null) @@ -854,41 +456,7 @@ Obtain a copy of the current documents specified by the `signature_request_id` p ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; - - try - { - var result = signatureRequestApi.SignatureRequestFilesAsFileUrl(signatureRequestId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestFilesAsFileUrl_C#_CODE ``` #### Using the SignatureRequestFilesAsFileUrlWithHttpInfo variant @@ -916,7 +484,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to retrieve. | | -| **forceDownload** | **int?** | By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. | [optional] [default to 1] | +| **forceDownload** | **int?** | By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. | [optional] [default to 1] | ### Return type @@ -940,7 +508,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestGet** > SignatureRequestGetResponse SignatureRequestGet (string signatureRequestId) @@ -950,41 +518,7 @@ Returns the status of the SignatureRequest specified by the `signature_request_i ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; - - try - { - var result = signatureRequestApi.SignatureRequestGet(signatureRequestId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestGet_C#_CODE ``` #### Using the SignatureRequestGetWithHttpInfo variant @@ -1035,7 +569,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestList** > SignatureRequestListResponse SignatureRequestList (string? accountId = null, int? page = null, int? pageSize = null, string? query = null) @@ -1045,41 +579,7 @@ Returns a list of SignatureRequests that you can access. This includes Signature ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var accountId = "accountId"; - - try - { - var result = signatureRequestApi.SignatureRequestList(accountId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestList_C#_CODE ``` #### Using the SignatureRequestListWithHttpInfo variant @@ -1106,9 +606,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **accountId** | **string?** | Which account to return SignatureRequests for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. | [optional] | -| **page** | **int?** | Which page number of the SignatureRequest List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **accountId** | **string?** | Which account to return SignatureRequests for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. | [optional] | +| **page** | **int?** | Which page number of the SignatureRequest List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | | **query** | **string?** | String that includes search terms and/or fields to be used to filter the SignatureRequest objects. | [optional] | ### Return type @@ -1133,7 +633,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestReleaseHold** > SignatureRequestGetResponse SignatureRequestReleaseHold (string signatureRequestId) @@ -1143,41 +643,7 @@ Releases a held SignatureRequest that was claimed and prepared from an [Unclaime ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; - - try - { - var result = signatureRequestApi.SignatureRequestReleaseHold(signatureRequestId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestReleaseHold_C#_CODE ``` #### Using the SignatureRequestReleaseHoldWithHttpInfo variant @@ -1228,7 +694,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestRemind** > SignatureRequestGetResponse SignatureRequestRemind (string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) @@ -1238,45 +704,7 @@ Sends an email to the signer reminding them to sign the signature request. You c ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var data = new SignatureRequestRemindRequest( - emailAddress: "john@example.com" - ); - - var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; - - try - { - var result = signatureRequestApi.SignatureRequestRemind(signatureRequestId, data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestRemind_C#_CODE ``` #### Using the SignatureRequestRemindWithHttpInfo variant @@ -1328,7 +756,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestRemove** > void SignatureRequestRemove (string signatureRequestId) @@ -1338,40 +766,7 @@ Removes your access to a completed signature request. This action is **not rever ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; - - try - { - signatureRequestApi.SignatureRequestRemove(signatureRequestId); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestRemove_C#_CODE ``` #### Using the SignatureRequestRemoveWithHttpInfo variant @@ -1419,7 +814,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestSend** > SignatureRequestGetResponse SignatureRequestSend (SignatureRequestSendRequest signatureRequestSendRequest) @@ -1429,92 +824,7 @@ Creates and sends a new SignatureRequest with the submitted documents. If `form_ ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signer1 = new SubSignatureRequestSigner( - emailAddress: "jack@example.com", - name: "Jack", - order: 0 - ); - - var signer2 = new SubSignatureRequestSigner( - emailAddress: "jill@example.com", - name: "Jill", - order: 1 - ); - - var signingOptions = new SubSigningOptions( - draw: true, - type: true, - upload: true, - phone: true, - defaultType: SubSigningOptions.DefaultTypeEnum.Draw - ); - - var subFieldOptions = new SubFieldOptions( - dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY - ); - - var metadata = new Dictionary() - { - ["custom_id"] = 1234, - ["custom_text"] = "NDA #9" - }; - - var files = new List { - new FileStream( - "./example_signature_request.pdf", - FileMode.Open, - FileAccess.Read, - FileShare.Read - ) - }; - - var data = new SignatureRequestSendRequest( - title: "NDA with Acme Co.", - subject: "The NDA we talked about", - message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List(){signer1, signer2}, - ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, - files: files, - metadata: metadata, - signingOptions: signingOptions, - fieldOptions: subFieldOptions, - testMode: true - ); - - try - { - var result = signatureRequestApi.SignatureRequestSend(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestSend_C#_CODE ``` #### Using the SignatureRequestSendWithHttpInfo variant @@ -1565,7 +875,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestSendWithTemplate** > SignatureRequestGetResponse SignatureRequestSendWithTemplate (SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) @@ -1575,76 +885,7 @@ Creates and sends a new SignatureRequest based off of the Template(s) specified ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signer1 = new SubSignatureRequestTemplateSigner( - role: "Client", - emailAddress: "george@example.com", - name: "George" - ); - - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@emaple.com" - ); - - var customField1 = new SubCustomField( - name: "Cost", - value: "$20,000", - editor: "Client", - required: true - ); - - var signingOptions = new SubSigningOptions( - draw: true, - type: true, - upload: true, - phone: false, - defaultType: SubSigningOptions.DefaultTypeEnum.Draw - ); - - var data = new SignatureRequestSendWithTemplateRequest( - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, - subject: "Purchase Order", - message: "Glad we could come to an agreement.", - signers: new List(){signer1}, - ccs: new List(){cc1}, - customFields: new List(){customField1}, - signingOptions: signingOptions, - testMode: true - ); - - try - { - var result = signatureRequestApi.SignatureRequestSendWithTemplate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestSendWithTemplate_C#_CODE ``` #### Using the SignatureRequestSendWithTemplateWithHttpInfo variant @@ -1695,7 +936,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **SignatureRequestUpdate** > SignatureRequestGetResponse SignatureRequestUpdate (string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) @@ -1705,46 +946,7 @@ Updates the email address and/or the name for a given signer on a signature requ ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var signatureRequestApi = new SignatureRequestApi(config); - - var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; - - var data = new SignatureRequestUpdateRequest( - emailAddress: "john@example.com", - signatureId: "78caf2a1d01cd39cea2bc1cbb340dac3" - ); - - try - { - var result = signatureRequestApi.SignatureRequestUpdate(signatureRequestId, data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestUpdate_C#_CODE ``` #### Using the SignatureRequestUpdateWithHttpInfo variant diff --git a/sdks/dotnet/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md b/sdks/dotnet/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md index 7feccc873..6608c2f61 100644 --- a/sdks/dotnet/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md @@ -4,19 +4,33 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | -**ClientId** | **string** | Client id of the app you're using to create this embedded signature request. Used for security purposes. | -**SignerFile** | **System.IO.Stream** | `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns:

- `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional)

By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on).

**NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field" suffix will be treated as a custom field (optional)

You may only specify field values here, any other options should be set in the custom_fields request parameter.

Example CSV:

``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` | [optional] -**SignerList** | [**List<SubBulkSignerList>**](SubBulkSignerList.md) | `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. | [optional] -**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false] -**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] -**CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] -**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] -**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] +**TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. REPLACE_ME_WITH_DESCRIPTION_END | **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this embedded signature request. Used for security purposes. REPLACE_ME_WITH_DESCRIPTION_END | **SignerFile** | **System.IO.Stream** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: + +- `name`: the name of the signer filling the role of RoleName +- `email_address`: email address of the signer filling the role of RoleName +- `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) +- `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) + + By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). + + **NOTE:** Not available in test mode and requires a Standard plan or higher. +- `*_field`: any column with a _field" suffix will be treated as a custom field (optional) + + You may only specify field values here, any other options should be set in the custom_fields request parameter. + +Example CSV: + +``` +name, email_address, pin, company_field +George, george@example.com, d79a3td, ABC Corp +Mary, mary@example.com, gd9as5b, 123 LLC +``` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerList** | [**List<SubBulkSignerList>**](SubBulkSignerList.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. + +Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. + +For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestBulkSendWithTemplateRequest.md b/sdks/dotnet/docs/SignatureRequestBulkSendWithTemplateRequest.md index 8eb63a7a1..637d73cba 100644 --- a/sdks/dotnet/docs/SignatureRequestBulkSendWithTemplateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestBulkSendWithTemplateRequest.md @@ -4,19 +4,33 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | -**SignerFile** | **System.IO.Stream** | `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns:

- `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional)

By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on).

**NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field" suffix will be treated as a custom field (optional)

You may only specify field values here, any other options should be set in the custom_fields request parameter.

Example CSV:

``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` | [optional] -**SignerList** | [**List<SubBulkSignerList>**](SubBulkSignerList.md) | `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. | [optional] -**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false] -**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] -**ClientId** | **string** | The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. | [optional] -**CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] -**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] -**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] +**TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. REPLACE_ME_WITH_DESCRIPTION_END | **SignerFile** | **System.IO.Stream** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: + +- `name`: the name of the signer filling the role of RoleName +- `email_address`: email address of the signer filling the role of RoleName +- `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) +- `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) + + By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). + + **NOTE:** Not available in test mode and requires a Standard plan or higher. +- `*_field`: any column with a _field" suffix will be treated as a custom field (optional) + + You may only specify field values here, any other options should be set in the custom_fields request parameter. + +Example CSV: + +``` +name, email_address, pin, company_field +George, george@example.com, d79a3td, ABC Corp +Mary, mary@example.com, gd9as5b, 123 LLC +``` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerList** | [**List<SubBulkSignerList>**](SubBulkSignerList.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. + +Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. + +For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestCreateEmbeddedRequest.md b/sdks/dotnet/docs/SignatureRequestCreateEmbeddedRequest.md index 20d996cfe..b315c1a18 100644 --- a/sdks/dotnet/docs/SignatureRequestCreateEmbeddedRequest.md +++ b/sdks/dotnet/docs/SignatureRequestCreateEmbeddedRequest.md @@ -4,30 +4,40 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | Client id of the app you're using to create this embedded signature request. Used for security purposes. | -**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | Add Signers to your Signature Request.

This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] -**GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | Add Grouped Signers to your Signature Request.

This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] -**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false] -**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan. | [optional] [default to false] -**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] -**CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] -**CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] -**FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] -**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] -**FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] -**FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] -**HideTextTags** | **bool** | Enables automatic Text Tag removal when set to true.

**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. | [optional] [default to false] -**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] -**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] -**UseTextTags** | **bool** | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | [optional] [default to false] -**PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false] -**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] +**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this embedded signature request. Used for security purposes. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Signature Request. + +This endpoint requires either **signers** or **grouped_signers**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Grouped Signers to your Signature Request. + +This endpoint requires either **signers** or **grouped_signers**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. + +**NOTE:** Only available for Premium plan. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email addresses that should be CCed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. + +Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. + +For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) + +**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. + +* Text Field use `SubFormFieldsPerDocumentText` +* Dropdown Field use `SubFormFieldsPerDocumentDropdown` +* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` +* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` +* Radio Field use `SubFormFieldsPerDocumentRadio` +* Signature Field use `SubFormFieldsPerDocumentSignature` +* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` +* Initials Field use `SubFormFieldsPerDocumentInitials` +* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` +* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HideTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Enables automatic Text Tag removal when set to true. + +**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UseTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**PopulateAutoFillFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. + +**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestCreateEmbeddedWithTemplateRequest.md b/sdks/dotnet/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md index 20a3531aa..975c016d5 100644 --- a/sdks/dotnet/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md @@ -4,21 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | -**ClientId** | **string** | Client id of the app you're using to create this embedded signature request. Used for security purposes. | -**Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | Add Signers to your Templated-based Signature Request. | -**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false] -**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] -**CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | [optional] -**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] -**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] -**PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false] +**TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. REPLACE_ME_WITH_DESCRIPTION_END | **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this embedded signature request. Used for security purposes. REPLACE_ME_WITH_DESCRIPTION_END | **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Templated-based Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array defining values and options for custom fields. Required when a custom field exists in the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PopulateAutoFillFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. + +**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/SignatureRequestGetResponse.md b/sdks/dotnet/docs/SignatureRequestGetResponse.md index 6f985fcab..8a1911032 100644 --- a/sdks/dotnet/docs/SignatureRequestGetResponse.md +++ b/sdks/dotnet/docs/SignatureRequestGetResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureRequest** | [**SignatureRequestResponse**](SignatureRequestResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**SignatureRequest** | [**SignatureRequestResponse**](SignatureRequestResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestListResponse.md b/sdks/dotnet/docs/SignatureRequestListResponse.md index 41c1429b0..7bad11f32 100644 --- a/sdks/dotnet/docs/SignatureRequestListResponse.md +++ b/sdks/dotnet/docs/SignatureRequestListResponse.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureRequests** | [**List<SignatureRequestResponse>**](SignatureRequestResponse.md) | Contains information about signature requests. | [optional] -**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**SignatureRequests** | [**List<SignatureRequestResponse>**](SignatureRequestResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains information about signature requests. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestRemindRequest.md b/sdks/dotnet/docs/SignatureRequestRemindRequest.md index 60f2bfa92..8d4954199 100644 --- a/sdks/dotnet/docs/SignatureRequestRemindRequest.md +++ b/sdks/dotnet/docs/SignatureRequestRemindRequest.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | The email address of the signer to send a reminder to. | -**Name** | **string** | The name of the signer to send a reminder to. Include if two or more signers share an email address. | [optional] +**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer to send a reminder to. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer to send a reminder to. Include if two or more signers share an email address. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponse.md b/sdks/dotnet/docs/SignatureRequestResponse.md index 3a36fd4ea..e5b708e39 100644 --- a/sdks/dotnet/docs/SignatureRequestResponse.md +++ b/sdks/dotnet/docs/SignatureRequestResponse.md @@ -5,31 +5,10 @@ Contains information about a signature request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TestMode** | **bool?** | Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. | [optional] [default to false] -**SignatureRequestId** | **string** | The id of the SignatureRequest. | [optional] -**RequesterEmailAddress** | **string** | The email address of the initiator of the SignatureRequest. | [optional] -**Title** | **string** | The title the specified Account uses for the SignatureRequest. | [optional] -**OriginalTitle** | **string** | Default Label for account. | [optional] -**Subject** | **string** | The subject in the email that was initially sent to the signers. | [optional] -**Message** | **string** | The custom message in the email that was initially sent to the signers. | [optional] -**Metadata** | **Object** | The metadata attached to the signature request. | [optional] -**CreatedAt** | **int** | Time the signature request was created. | [optional] -**ExpiresAt** | **int** | The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] -**IsComplete** | **bool** | Whether or not the SignatureRequest has been fully executed by all signers. | [optional] -**IsDeclined** | **bool** | Whether or not the SignatureRequest has been declined by a signer. | [optional] -**HasError** | **bool** | Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). | [optional] -**FilesUrl** | **string** | The URL where a copy of the request's documents can be downloaded. | [optional] -**SigningUrl** | **string** | The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. | [optional] -**DetailsUrl** | **string** | The URL where the requester and the signers can view the current status of the SignatureRequest. | [optional] -**CcEmailAddresses** | **List<string>** | A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. | [optional] -**SigningRedirectUrl** | **string** | The URL you want the signer redirected to after they successfully sign. | [optional] -**FinalCopyUri** | **string** | The path where the completed document can be downloaded | [optional] -**TemplateIds** | **List<string>** | Templates IDs used in this SignatureRequest (if any). | [optional] -**CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | An array of Custom Field objects containing the name and type of each custom field.

* Text Field uses `SignatureRequestResponseCustomFieldText`
* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` | [optional] -**Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] -**ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. | [optional] -**Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | [optional] -**BulkSendJobId** | **string** | The ID of the Bulk Send job which sent the signature request, if applicable. | [optional] +**TestMode** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**SignatureRequestId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the initiator of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title the specified Account uses for the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalTitle** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Default Label for account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that was initially sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that was initially sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Object** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The metadata attached to the signature request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time the signature request was created. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsComplete** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not the SignatureRequest has been fully executed by all signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsDeclined** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not the SignatureRequest has been declined by a signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasError** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FilesUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where a copy of the request's documents can be downloaded. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DetailsUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where the requester and the signers can view the current status of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want the signer redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FinalCopyUri** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The path where the completed document can be downloaded REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Templates IDs used in this SignatureRequest (if any). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Custom Field objects containing the name and type of each custom field. + +* Text Field uses `SignatureRequestResponseCustomFieldText` +* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer attachments. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of signature objects, 1 for each signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **BulkSendJobId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the Bulk Send job which sent the signature request, if applicable. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseAttachment.md b/sdks/dotnet/docs/SignatureRequestResponseAttachment.md index 0d488c9d0..ff3b94f7a 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseAttachment.md +++ b/sdks/dotnet/docs/SignatureRequestResponseAttachment.md @@ -5,12 +5,7 @@ Signer attachments. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | The unique ID for this attachment. | -**Signer** | **string** | The Signer this attachment is assigned to. | -**Name** | **string** | The name of this attachment. | -**Required** | **bool** | A boolean value denoting if this attachment is required. | -**Instructions** | **string** | Instructions for Signer. | [optional] -**UploadedAt** | **int?** | Timestamp when attachment was uploaded by Signer. | [optional] +**Id** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this attachment. REPLACE_ME_WITH_DESCRIPTION_END | **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The Signer this attachment is assigned to. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of this attachment. REPLACE_ME_WITH_DESCRIPTION_END | **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this attachment is required. REPLACE_ME_WITH_DESCRIPTION_END | **Instructions** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Instructions for Signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UploadedAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Timestamp when attachment was uploaded by Signer. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseCustomFieldBase.md b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldBase.md index cb0615917..0e952b6ac 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseCustomFieldBase.md +++ b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldBase.md @@ -5,11 +5,7 @@ An array of Custom Field objects containing the name and type of each custom fie Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. | -**Name** | **string** | The name of the Custom Field. | -**Required** | **bool** | A boolean value denoting if this field is required. | [optional] -**ApiId** | **string** | The unique ID for this field. | [optional] -**Editor** | **string** | The name of the Role that is able to edit this field. | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Editor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role that is able to edit this field. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseCustomFieldCheckbox.md b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldCheckbox.md index 7ec0fea91..12e0205cc 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseCustomFieldCheckbox.md +++ b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldCheckbox.md @@ -5,12 +5,11 @@ This class extends `SignatureRequestResponseCustomFieldBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of the Custom Field. | -**Required** | **bool** | A boolean value denoting if this field is required. | [optional] -**ApiId** | **string** | The unique ID for this field. | [optional] -**Editor** | **string** | The name of the Role that is able to edit this field. | [optional] -**Type** | **string** | The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. | [default to "checkbox"] -**Value** | **bool** | A true/false for checkbox fields | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Editor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role that is able to edit this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"]**Value** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A true/false for checkbox fields REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseCustomFieldText.md b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldText.md index 505b9ed03..a0ead1a5b 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseCustomFieldText.md +++ b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldText.md @@ -5,12 +5,11 @@ This class extends `SignatureRequestResponseCustomFieldBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of the Custom Field. | -**Required** | **bool** | A boolean value denoting if this field is required. | [optional] -**ApiId** | **string** | The unique ID for this field. | [optional] -**Editor** | **string** | The name of the Role that is able to edit this field. | [optional] -**Type** | **string** | The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. | [default to "text"] -**Value** | **string** | A text string for text fields | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Editor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role that is able to edit this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text string for text fields REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseCustomFieldTypeEnum.md b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldTypeEnum.md index fdc354563..d425f40d9 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseCustomFieldTypeEnum.md +++ b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldTypeEnum.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- + [[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/SignatureRequestResponseDataBase.md b/sdks/dotnet/docs/SignatureRequestResponseDataBase.md index 8adfadbba..895516c7c 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataBase.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataBase.md @@ -5,11 +5,7 @@ An array of form field objects containing the name, value, and type of each text Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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** | | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseDataTypeEnum.md b/sdks/dotnet/docs/SignatureRequestResponseDataTypeEnum.md index f0c37a9cc..493db1e4b 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataTypeEnum.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataTypeEnum.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- + [[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/SignatureRequestResponseDataValueCheckbox.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckbox.md index 416604440..cf0357b31 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckbox.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckbox.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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 yes/no checkbox | [optional] [default to "checkbox"] -**Value** | **bool** | The value of the form field. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A yes/no checkbox REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "checkbox"]**Value** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseDataValueCheckboxMerge.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckboxMerge.md index bad93e460..897322570 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckboxMerge.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckboxMerge.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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 checkbox field that has default value set by the api | [optional] [default to "checkbox-merge"] -**Value** | **string** | The value of the form field. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A checkbox field that has default value set by the api REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "checkbox-merge"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseDataValueDateSigned.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueDateSigned.md index bb083824c..1e74b62e3 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueDateSigned.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueDateSigned.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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 date | [optional] [default to "date_signed"] -**Value** | **string** | The value of the form field. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A date REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "date_signed"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseDataValueDropdown.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueDropdown.md index bfcdf07a1..665ead345 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueDropdown.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueDropdown.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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 dropdowns | [optional] [default to "dropdown"] -**Value** | **string** | The value of the form field. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for dropdowns REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "dropdown"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseDataValueInitials.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md index 389f1394d..2e0218b53 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for initials REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "initials"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseDataValueRadio.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueRadio.md index 3dc569348..4e000093e 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueRadio.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueRadio.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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 radios | [optional] [default to "radio"] -**Value** | **bool** | The value of the form field. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for radios REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "radio"]**Value** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [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 8ea7c7cb6..2a8f9d546 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A signature input field REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "signature"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseDataValueText.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueText.md index e8c2438d7..120311899 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueText.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueText.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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 text input field | [optional] [default to "text"] -**Value** | **string** | The value of the form field. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text input field REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "text"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseDataValueTextMerge.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueTextMerge.md index d41148eef..80449ce78 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueTextMerge.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueTextMerge.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**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 text field that has default text set by the api | [optional] [default to "text-merge"] -**Value** | **string** | The value of the form field. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text field that has default text set by the api REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "text-merge"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestResponseSignatures.md b/sdks/dotnet/docs/SignatureRequestResponseSignatures.md index 484840e24..da022b1f7 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseSignatures.md +++ b/sdks/dotnet/docs/SignatureRequestResponseSignatures.md @@ -5,25 +5,7 @@ An array of signature objects, 1 for each signer. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureId** | **string** | Signature identifier. | [optional] -**SignerGroupGuid** | **string** | Signer Group GUID | [optional] -**SignerEmailAddress** | **string** | The email address of the signer. | [optional] -**SignerName** | **string** | The name of the signer. | [optional] -**SignerRole** | **string** | The role of the signer. | [optional] -**Order** | **int?** | If signer order is assigned this is the 0-based index for this signer. | [optional] -**StatusCode** | **string** | The current status of the signature. eg: awaiting_signature, signed, declined. | [optional] -**DeclineReason** | **string** | The reason provided by the signer for declining the request. | [optional] -**SignedAt** | **int?** | Time that the document was signed or null. | [optional] -**LastViewedAt** | **int?** | The time that the document was last viewed by this signer or null. | [optional] -**LastRemindedAt** | **int?** | The time the last reminder email was sent to the signer or null. | [optional] -**HasPin** | **bool** | Boolean to indicate whether this signature requires a PIN to access. | [optional] -**HasSmsAuth** | **bool?** | Boolean to indicate whether this signature has SMS authentication enabled. | [optional] -**HasSmsDelivery** | **bool?** | Boolean to indicate whether this signature has SMS delivery enabled. | [optional] -**SmsPhoneNumber** | **string** | The SMS phone number used for authentication or signature request delivery. | [optional] -**ReassignedBy** | **string** | Email address of original signer who reassigned to this signer. | [optional] -**ReassignmentReason** | **string** | Reason provided by original signer who reassigned to this signer. | [optional] -**ReassignedFrom** | **string** | Previous signature identifier. | [optional] -**Error** | **string** | Error message pertaining to this signer, or null. | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signature identifier. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerGroupGuid** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer Group GUID REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerName** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerRole** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The role of the signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN If signer order is assigned this is the 0-based index for this signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **StatusCode** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The current status of the signature. eg: awaiting_signature, signed, declined. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DeclineReason** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The reason provided by the signer for declining the request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignedAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time that the document was signed or null. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LastViewedAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time that the document was last viewed by this signer or null. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LastRemindedAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time the last reminder email was sent to the signer or null. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasPin** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean to indicate whether this signature requires a PIN to access. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasSmsAuth** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean to indicate whether this signature has SMS authentication enabled. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasSmsDelivery** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean to indicate whether this signature has SMS delivery enabled. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumber** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The SMS phone number used for authentication or signature request delivery. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReassignedBy** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address of original signer who reassigned to this signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReassignmentReason** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Reason provided by original signer who reassigned to this signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReassignedFrom** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Previous signature identifier. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Error** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Error message pertaining to this signer, or null. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestSendRequest.md b/sdks/dotnet/docs/SignatureRequestSendRequest.md index 545f97661..e8919dfb0 100644 --- a/sdks/dotnet/docs/SignatureRequestSendRequest.md +++ b/sdks/dotnet/docs/SignatureRequestSendRequest.md @@ -4,32 +4,45 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | Add Signers to your Signature Request.

This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] -**GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | Add Grouped Signers to your Signature Request.

This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] -**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false] -**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false] -**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] -**CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] -**ClientId** | **string** | The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. | [optional] -**CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] -**FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] -**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] -**FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] -**FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] -**HideTextTags** | **bool** | Enables automatic Text Tag removal when set to true.

**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. | [optional] [default to false] -**IsQualifiedSignature** | **bool** | Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br>
**NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false] -**IsEid** | **bool** | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false] -**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] -**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] -**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] -**UseTextTags** | **bool** | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | [optional] [default to false] -**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] +**Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Signature Request. + +This endpoint requires either **signers** or **grouped_signers**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Grouped Signers to your Signature Request. + +This endpoint requires either **signers** or **grouped_signers**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. + +**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email addresses that should be CCed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. + +Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. + +For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) + +**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. + +* Text Field use `SubFormFieldsPerDocumentText` +* Dropdown Field use `SubFormFieldsPerDocumentDropdown` +* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` +* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` +* Radio Field use `SubFormFieldsPerDocumentRadio` +* Signature Field use `SubFormFieldsPerDocumentSignature` +* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` +* Initials Field use `SubFormFieldsPerDocumentInitials` +* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` +* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HideTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Enables automatic Text Tag removal when set to true. + +**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsQualifiedSignature** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable +[Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), +which requires a face-to-face call to verify the signer's identity.<br> +**NOTE:** QES is only available on the Premium API plan as an add-on purchase. +Cannot be used in `test_mode`. Only works on requests with one signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsEid** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable +[electronic identification (eID)](https://www.hellosign.com/features/electronic-id), +which requires the signer to verify their identity with an eID provider to sign a document.<br> +**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UseTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestSendWithTemplateRequest.md b/sdks/dotnet/docs/SignatureRequestSendWithTemplateRequest.md index e77a9a145..34ec27e1d 100644 --- a/sdks/dotnet/docs/SignatureRequestSendWithTemplateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestSendWithTemplateRequest.md @@ -4,23 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | -**Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | Add Signers to your Templated-based Signature Request. | -**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false] -**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] -**ClientId** | **string** | Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. | [optional] -**CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | [optional] -**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**IsQualifiedSignature** | **bool** | Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br>
**NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false] -**IsEid** | **bool** | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false] -**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] -**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] -**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] +**TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. REPLACE_ME_WITH_DESCRIPTION_END | **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Templated-based Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array defining values and options for custom fields. Required when a custom field exists in the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsQualifiedSignature** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable +[Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), +which requires a face-to-face call to verify the signer's identity.<br> +**NOTE:** QES is only available on the Premium API plan as an add-on purchase. +Cannot be used in `test_mode`. Only works on requests with one signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsEid** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable +[electronic identification (eID)](https://www.hellosign.com/features/electronic-id), +which requires the signer to verify their identity with an eID provider to sign a document.<br> +**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [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/SignatureRequestUpdateRequest.md b/sdks/dotnet/docs/SignatureRequestUpdateRequest.md index 7aa6991ec..7f27bb726 100644 --- a/sdks/dotnet/docs/SignatureRequestUpdateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestUpdateRequest.md @@ -4,10 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureId** | **string** | The signature ID for the recipient. | -**EmailAddress** | **string** | The new email address for the recipient.

This will generate a new `signature_id` value.

**NOTE:** Optional if `name` is provided. | [optional] -**Name** | **string** | The new name for the recipient.

**NOTE:** Optional if `email_address` is provided. | [optional] -**ExpiresAt** | **int?** | The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] +**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signature ID for the recipient. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new email address for the recipient. + +This will generate a new `signature_id` value. + +**NOTE:** Optional if `name` is provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new name for the recipient. + +**NOTE:** Optional if `email_address` is provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [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/SubAttachment.md b/sdks/dotnet/docs/SubAttachment.md index 80d4f5c84..485fa29ca 100644 --- a/sdks/dotnet/docs/SubAttachment.md +++ b/sdks/dotnet/docs/SubAttachment.md @@ -4,10 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of attachment. | -**SignerIndex** | **int** | The signer's index in the `signers` parameter (0-based indexing).

**NOTE:** Only one signer can be assigned per attachment. | -**Instructions** | **string** | The instructions for uploading the attachment. | [optional] -**Required** | **bool** | Determines if the attachment must be uploaded. | [optional] [default to false] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of attachment. REPLACE_ME_WITH_DESCRIPTION_END | **SignerIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer's index in the `signers` parameter (0-based indexing). + +**NOTE:** Only one signer can be assigned per attachment. REPLACE_ME_WITH_DESCRIPTION_END | **Instructions** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The instructions for uploading the attachment. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Determines if the attachment must be uploaded. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/SubBulkSignerList.md b/sdks/dotnet/docs/SubBulkSignerList.md index 69b43a931..34f6b49d8 100644 --- a/sdks/dotnet/docs/SubBulkSignerList.md +++ b/sdks/dotnet/docs/SubBulkSignerList.md @@ -4,8 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CustomFields** | [**List<SubBulkSignerListCustomField>**](SubBulkSignerListCustomField.md) | An array of custom field values. | [optional] -**Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document.

Currently only templates with a single role are supported. All signers must have the same `role` value. | [optional] +**CustomFields** | [**List<SubBulkSignerListCustomField>**](SubBulkSignerListCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of custom field values. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. + +Currently only templates with a single role are supported. All signers must have the same `role` value. REPLACE_ME_WITH_DESCRIPTION_END | [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/SubBulkSignerListCustomField.md b/sdks/dotnet/docs/SubBulkSignerListCustomField.md index 1646ba42e..247ad9965 100644 --- a/sdks/dotnet/docs/SubBulkSignerListCustomField.md +++ b/sdks/dotnet/docs/SubBulkSignerListCustomField.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of the custom field. Must be the field's `name` or `api_id`. | -**Value** | **string** | The value of the custom field. | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the custom field. Must be the field's `name` or `api_id`. REPLACE_ME_WITH_DESCRIPTION_END | **Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the custom field. REPLACE_ME_WITH_DESCRIPTION_END | [[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/SubCC.md b/sdks/dotnet/docs/SubCC.md index bfe6bc5a2..4c4ab1c3b 100644 --- a/sdks/dotnet/docs/SubCC.md +++ b/sdks/dotnet/docs/SubCC.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Role** | **string** | Must match an existing CC role in chosen Template(s). Multiple CC recipients cannot share the same CC role. | -**EmailAddress** | **string** | The email address of the CC recipient. | +**Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must match an existing CC role in chosen Template(s). Multiple CC recipients cannot share the same CC role. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the CC recipient. REPLACE_ME_WITH_DESCRIPTION_END | [[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/SubCustomField.md b/sdks/dotnet/docs/SubCustomField.md index 27ee651d8..5fc1deef6 100644 --- a/sdks/dotnet/docs/SubCustomField.md +++ b/sdks/dotnet/docs/SubCustomField.md @@ -5,10 +5,9 @@ When used together with merge fields, `custom_fields` allows users to add pre-fi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of a custom field. When working with pre-filled data, the custom field's name must have a matching merge field name or the field will remain empty on the document during signing. | -**Editor** | **string** | Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`.

**NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. | [optional] -**Required** | **bool** | Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. | [optional] [default to false] -**Value** | **string** | The string that resolves (aka "pre-fills") to the merge field on the final document(s) used for signing. | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of a custom field. When working with pre-filled data, the custom field's name must have a matching merge field name or the field will remain empty on the document during signing. REPLACE_ME_WITH_DESCRIPTION_END | **Editor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`. + +**NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The string that resolves (aka "pre-fills") to the merge field on the final document(s) used for signing. REPLACE_ME_WITH_DESCRIPTION_END | [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/SubEditorOptions.md b/sdks/dotnet/docs/SubEditorOptions.md index b1bca0ab6..81cf19e00 100644 --- a/sdks/dotnet/docs/SubEditorOptions.md +++ b/sdks/dotnet/docs/SubEditorOptions.md @@ -5,8 +5,7 @@ This allows the requester to specify editor options when a preparing a document Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AllowEditSigners** | **bool** | Allows requesters to edit the list of signers | [optional] [default to false] -**AllowEditDocuments** | **bool** | Allows requesters to edit documents, including delete and add | [optional] [default to false] +**AllowEditSigners** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows requesters to edit the list of signers REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowEditDocuments** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows requesters to edit documents, including delete and add REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/SubFieldOptions.md b/sdks/dotnet/docs/SubFieldOptions.md index d0c68db71..3afa8d312 100644 --- a/sdks/dotnet/docs/SubFieldOptions.md +++ b/sdks/dotnet/docs/SubFieldOptions.md @@ -5,7 +5,9 @@ This allows the requester to specify field options for a signature request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateFormat** | **string** | Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats))

**NOTE:** Only available for Premium and higher. | +**DateFormat** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) + +**NOTE:** Only available for Premium and higher. REPLACE_ME_WITH_DESCRIPTION_END | [[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/SubFormFieldGroup.md b/sdks/dotnet/docs/SubFormFieldGroup.md index 82a52fe4a..b764025be 100644 --- a/sdks/dotnet/docs/SubFormFieldGroup.md +++ b/sdks/dotnet/docs/SubFormFieldGroup.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**GroupId** | **string** | ID of group. Use this to reference a specific group from the `group` value in `form_fields_per_document`. | -**GroupLabel** | **string** | Name of the group | -**Requirement** | **string** | Examples: `require_0-1` `require_1` `require_1-ormore`

- Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. | +**GroupId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN ID of group. Use this to reference a specific group from the `group` value in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | **GroupLabel** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Name of the group REPLACE_ME_WITH_DESCRIPTION_END | **Requirement** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Examples: `require_0-1` `require_1` `require_1-ormore` + +- Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). +- Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). +- Radio groups require **at least** two fields per group. REPLACE_ME_WITH_DESCRIPTION_END | [[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/SubFormFieldRule.md b/sdks/dotnet/docs/SubFormFieldRule.md index 219166a22..c9674e142 100644 --- a/sdks/dotnet/docs/SubFormFieldRule.md +++ b/sdks/dotnet/docs/SubFormFieldRule.md @@ -4,10 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | Must be unique across all defined rules. | -**TriggerOperator** | **string** | Currently only `AND` is supported. Support for `OR` is being worked on. | [default to "AND"] -**Triggers** | [**List<SubFormFieldRuleTrigger>**](SubFormFieldRuleTrigger.md) | An array of trigger definitions, the "if this" part of "**if this**, then that". Currently only a single trigger per rule is allowed. | -**Actions** | [**List<SubFormFieldRuleAction>**](SubFormFieldRuleAction.md) | An array of action definitions, the "then that" part of "if this, **then that**". Any number of actions may be attached to a single rule. | +**Id** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must be unique across all defined rules. REPLACE_ME_WITH_DESCRIPTION_END | **TriggerOperator** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Currently only `AND` is supported. Support for `OR` is being worked on. REPLACE_ME_WITH_DESCRIPTION_END | [default to "AND"]**Triggers** | [**List<SubFormFieldRuleTrigger>**](SubFormFieldRuleTrigger.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of trigger definitions, the "if this" part of "**if this**, then that". Currently only a single trigger per rule is allowed. REPLACE_ME_WITH_DESCRIPTION_END | **Actions** | [**List<SubFormFieldRuleAction>**](SubFormFieldRuleAction.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of action definitions, the "then that" part of "if this, **then that**". Any number of actions may be attached to a single rule. REPLACE_ME_WITH_DESCRIPTION_END | [[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/SubFormFieldRuleAction.md b/sdks/dotnet/docs/SubFormFieldRuleAction.md index 83e89ce82..965d2a775 100644 --- a/sdks/dotnet/docs/SubFormFieldRuleAction.md +++ b/sdks/dotnet/docs/SubFormFieldRuleAction.md @@ -4,10 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Hidden** | **bool** | `true` to hide the target field when rule is satisfied, otherwise `false`. | -**Type** | **string** | | -**FieldId** | **string** | **field_id** or **group_id** is required, but not both.

Must reference the `api_id` of an existing field defined within `form_fields_per_document`.

Cannot use with `group_id`. Trigger and action fields must belong to the same signer. | [optional] -**GroupId** | **string** | **group_id** or **field_id** is required, but not both.

Must reference the ID of an existing group defined within `form_field_groups`.

Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. | [optional] +**Hidden** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` to hide the target field when rule is satisfied, otherwise `false`. REPLACE_ME_WITH_DESCRIPTION_END | **Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **FieldId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **field_id** or **group_id** is required, but not both. + +Must reference the `api_id` of an existing field defined within `form_fields_per_document`. + +Cannot use with `group_id`. Trigger and action fields must belong to the same signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **GroupId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **group_id** or **field_id** is required, but not both. + +Must reference the ID of an existing group defined within `form_field_groups`. + +Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. REPLACE_ME_WITH_DESCRIPTION_END | [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/SubFormFieldRuleTrigger.md b/sdks/dotnet/docs/SubFormFieldRuleTrigger.md index e2ee20398..dc3f5d420 100644 --- a/sdks/dotnet/docs/SubFormFieldRuleTrigger.md +++ b/sdks/dotnet/docs/SubFormFieldRuleTrigger.md @@ -4,10 +4,40 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Trigger and action fields and groups must belong to the same signer. | -**Operator** | **string** | Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value | -**Value** | **string** | **value** or **values** is required, but not both.

The value to match against **operator**.

- When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match`

Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1` | [optional] -**Values** | **List<string>** | **values** or **value** is required, but not both.

The values to match against **operator** when it is one of the following:

- `any` - `none` | [optional] +**Id** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Trigger and action fields and groups must belong to the same signer. REPLACE_ME_WITH_DESCRIPTION_END | **Operator** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Different field types allow different `operator` values: +- Field type of **text**: + - **is**: exact match + - **not**: not exact match + - **match**: regular expression, without /. Example: + - OK `[a-zA-Z0-9]` + - Not OK `/[a-zA-Z0-9]/` +- Field type of **dropdown**: + - **is**: exact match, single value + - **not**: not exact match, single value + - **any**: exact match, array of values. + - **none**: not exact match, array of values. +- Field type of **checkbox**: + - **is**: exact match, single value + - **not**: not exact match, single value +- Field type of **radio**: + - **is**: exact match, single value + - **not**: not exact match, single value REPLACE_ME_WITH_DESCRIPTION_END | **Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **value** or **values** is required, but not both. + +The value to match against **operator**. + +- When **operator** is one of the following, **value** must be `String`: + - `is` + - `not` + - `match` + +Otherwise, +- **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` +- **radio**: When **type** of trigger is **radio**, **value** must be `1` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Values** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **values** or **value** is required, but not both. + +The values to match against **operator** when it is one of the following: + +- `any` +- `none` REPLACE_ME_WITH_DESCRIPTION_END | [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/SubFormFieldsPerDocumentBase.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentBase.md index cadb43e8b..931fc2dd2 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentBase.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentBase.md @@ -5,17 +5,14 @@ The fields that should appear on the document, expressed as an array of objects. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Type** | **string** | | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | **Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | **Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | **X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | **Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [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/SubFormFieldsPerDocumentCheckbox.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckbox.md index 2befe9216..127b1c47c 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckbox.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckbox.md @@ -5,19 +5,24 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | A yes/no checkbox. Use the `SubFormFieldsPerDocumentCheckbox` class. | [default to "checkbox"] -**IsChecked** | **bool** | `true` for checking the checkbox field by default, otherwise `false`. | -**Group** | **string** | String referencing group defined in `form_field_groups` parameter. | [optional] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A yes/no checkbox. Use the `SubFormFieldsPerDocumentCheckbox` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"]**IsChecked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` for checking the checkbox field by default, otherwise `false`. REPLACE_ME_WITH_DESCRIPTION_END | **Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN String referencing group defined in `form_field_groups` parameter. REPLACE_ME_WITH_DESCRIPTION_END | [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/SubFormFieldsPerDocumentCheckboxMerge.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckboxMerge.md index 61cd72325..49ac19f85 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckboxMerge.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckboxMerge.md @@ -5,17 +5,24 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | A checkbox field that has default value set using pre-filled data. Use the `SubFormFieldsPerDocumentCheckboxMerge` class. | [default to "checkbox-merge"] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A checkbox field that has default value set using pre-filled data. Use the `SubFormFieldsPerDocumentCheckboxMerge` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox-merge"] [[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/SubFormFieldsPerDocumentDateSigned.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentDateSigned.md index 3a9f886bb..19d75ed54 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentDateSigned.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentDateSigned.md @@ -5,19 +5,26 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | A date. Use the `SubFormFieldsPerDocumentDateSigned` class. | [default to "date_signed"] -**FontFamily** | **string** | Font family for the field. | [optional] -**FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A date. Use the `SubFormFieldsPerDocumentDateSigned` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "date_signed"]**FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. + +**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] [[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/SubFormFieldsPerDocumentDropdown.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentDropdown.md index 4e4016292..897e05357 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentDropdown.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentDropdown.md @@ -5,21 +5,26 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | An input field for dropdowns. Use the `SubFormFieldsPerDocumentDropdown` class. | [default to "dropdown"] -**Options** | **List<string>** | Array of string values representing dropdown values. | -**Content** | **string** | Selected value in `options` array. Value must exist in array. | [optional] -**FontFamily** | **string** | Font family for the field. | [optional] -**FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for dropdowns. Use the `SubFormFieldsPerDocumentDropdown` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "dropdown"]**Options** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Array of string values representing dropdown values. REPLACE_ME_WITH_DESCRIPTION_END | **Content** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Selected value in `options` array. Value must exist in array. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. + +**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] [[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/SubFormFieldsPerDocumentFontEnum.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentFontEnum.md index d47a6bf1c..e9298334d 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentFontEnum.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentFontEnum.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- + [[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/SubFormFieldsPerDocumentHyperlink.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentHyperlink.md index 6b3845fd5..162b31aed 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentHyperlink.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentHyperlink.md @@ -5,21 +5,26 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | A hyperlink field. Use the `SubFormFieldsPerDocumentHyperlink` class. | [default to "hyperlink"] -**Content** | **string** | Link Text. | -**ContentUrl** | **string** | Link URL. | -**FontFamily** | **string** | Font family for the field. | [optional] -**FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A hyperlink field. Use the `SubFormFieldsPerDocumentHyperlink` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "hyperlink"]**Content** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Link Text. REPLACE_ME_WITH_DESCRIPTION_END | **ContentUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Link URL. REPLACE_ME_WITH_DESCRIPTION_END | **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. + +**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] [[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/SubFormFieldsPerDocumentInitials.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentInitials.md index 804786051..34e852d62 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentInitials.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentInitials.md @@ -5,17 +5,24 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | An input field for initials. Use the `SubFormFieldsPerDocumentInitials` class. | [default to "initials"] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for initials. Use the `SubFormFieldsPerDocumentInitials` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "initials"] [[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/SubFormFieldsPerDocumentRadio.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentRadio.md index 3340d568d..464b22d05 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentRadio.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentRadio.md @@ -5,19 +5,24 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | An input field for radios. Use the `SubFormFieldsPerDocumentRadio` class. | [default to "radio"] -**Group** | **string** | String referencing group defined in `form_field_groups` parameter. | -**IsChecked** | **bool** | `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. | +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for radios. Use the `SubFormFieldsPerDocumentRadio` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "radio"]**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN String referencing group defined in `form_field_groups` parameter. REPLACE_ME_WITH_DESCRIPTION_END | **IsChecked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. REPLACE_ME_WITH_DESCRIPTION_END | [[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/SubFormFieldsPerDocumentSignature.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentSignature.md index ed8823d70..b1c7ecab3 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentSignature.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentSignature.md @@ -5,17 +5,24 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | A signature input field. Use the `SubFormFieldsPerDocumentSignature` class. | [default to "signature"] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A signature input field. Use the `SubFormFieldsPerDocumentSignature` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "signature"] [[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/SubFormFieldsPerDocumentText.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentText.md index b40010ee1..01f247b7d 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentText.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentText.md @@ -5,27 +5,28 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | A text input field. Use the `SubFormFieldsPerDocumentText` class. | [default to "text"] -**Placeholder** | **string** | Placeholder value for text field. | [optional] -**AutoFillType** | **string** | Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. | [optional] -**LinkId** | **string** | Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. | [optional] -**Masked** | **bool** | Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. | [optional] -**ValidationType** | **string** | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values.

**NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. | [optional] -**ValidationCustomRegex** | **string** | | [optional] -**ValidationCustomRegexFormatLabel** | **string** | | [optional] -**Content** | **string** | Content of a `me_now` text field | [optional] -**FontFamily** | **string** | Font family for the field. | [optional] -**FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text input field. Use the `SubFormFieldsPerDocumentText` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"]**Placeholder** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Placeholder value for text field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AutoFillType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LinkId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Masked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ValidationType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. + +**NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ValidationCustomRegex** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ValidationCustomRegexFormatLabel** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Content** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Content of a `me_now` text field REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. + +**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] [[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/SubFormFieldsPerDocumentTextMerge.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentTextMerge.md index 861141674..12e89aba5 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentTextMerge.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentTextMerge.md @@ -5,19 +5,26 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | -**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | -**Height** | **int** | Size of the field in pixels. | -**Required** | **bool** | Whether this field is required. | -**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | -**Width** | **int** | Size of the field in pixels. | -**X** | **int** | Location coordinates of the field in pixels. | -**Y** | **int** | Location coordinates of the field in pixels. | -**Name** | **string** | Display name for the field. | [optional] -**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] -**Type** | **string** | A text field that has default text set using pre-filled data. Use the `SubFormFieldsPerDocumentTextMerge` class. | [default to "text-merge"] -**FontFamily** | **string** | Font family for the field. | [optional] -**FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] +**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. + +**NOTE:** To set the value of the field as the preparer you must set this to `me_now` + +**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). + +- When the page number parameter is supplied, the API will use the new coordinate system. +- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text field that has default text set using pre-filled data. Use the `SubFormFieldsPerDocumentTextMerge` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "text-merge"]**FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. + +**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] [[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/SubFormFieldsPerDocumentTypeEnum.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentTypeEnum.md index b9660651e..73d875e74 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentTypeEnum.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentTypeEnum.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- + [[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/SubMergeField.md b/sdks/dotnet/docs/SubMergeField.md index 76911af53..9531ab03b 100644 --- a/sdks/dotnet/docs/SubMergeField.md +++ b/sdks/dotnet/docs/SubMergeField.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of the merge field. Must be unique. | -**Type** | **string** | The type of merge field. | +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the merge field. Must be unique. REPLACE_ME_WITH_DESCRIPTION_END | **Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of merge field. REPLACE_ME_WITH_DESCRIPTION_END | [[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/SubOAuth.md b/sdks/dotnet/docs/SubOAuth.md index db5dc0abe..eaed23460 100644 --- a/sdks/dotnet/docs/SubOAuth.md +++ b/sdks/dotnet/docs/SubOAuth.md @@ -5,8 +5,7 @@ OAuth related parameters. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CallbackUrl** | **string** | The callback URL to be used for OAuth flows. (Required if `oauth[scopes]` is provided) | [optional] -**Scopes** | **List<string>** | A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). | [optional] +**CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The callback URL to be used for OAuth flows. (Required if `oauth[scopes]` is provided) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Scopes** | **List<SubOAuth.ScopesEnum>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). REPLACE_ME_WITH_DESCRIPTION_END | [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/SubOptions.md b/sdks/dotnet/docs/SubOptions.md index c38a7f9b5..77db056ad 100644 --- a/sdks/dotnet/docs/SubOptions.md +++ b/sdks/dotnet/docs/SubOptions.md @@ -5,7 +5,7 @@ Additional options supported by API App. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CanInsertEverywhere** | **bool** | Determines if signers can use "Insert Everywhere" when signing a document. | [optional] [default to false] +**CanInsertEverywhere** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Determines if signers can use "Insert Everywhere" when signing a document. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/SubSignatureRequestGroupedSigners.md b/sdks/dotnet/docs/SubSignatureRequestGroupedSigners.md index 8ae84f74c..beff2b40a 100644 --- a/sdks/dotnet/docs/SubSignatureRequestGroupedSigners.md +++ b/sdks/dotnet/docs/SubSignatureRequestGroupedSigners.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | **string** | The name of the group. | -**Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | Signers belonging to this Group.

**NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. | -**Order** | **int?** | The order the group is required to sign in. Use this instead of Signer-level `order`. | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group. REPLACE_ME_WITH_DESCRIPTION_END | **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signers belonging to this Group. + +**NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. REPLACE_ME_WITH_DESCRIPTION_END | **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The order the group is required to sign in. Use this instead of Signer-level `order`. REPLACE_ME_WITH_DESCRIPTION_END | [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/SubSignatureRequestSigner.md b/sdks/dotnet/docs/SubSignatureRequestSigner.md index a13065734..b9f02f2d4 100644 --- a/sdks/dotnet/docs/SubSignatureRequestSigner.md +++ b/sdks/dotnet/docs/SubSignatureRequestSigner.md @@ -4,12 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of the signer. | -**EmailAddress** | **string** | The email address of the signer. | -**Order** | **int?** | The order the signer is required to sign in. | [optional] -**Pin** | **string** | The 4- to 12-character access code that will secure this signer's signature page. | [optional] -**SmsPhoneNumber** | **string** | An E.164 formatted phone number.

By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on).

**NOTE:** Not available in test mode and requires a Standard plan or higher. | [optional] -**SmsPhoneNumberType** | **string** | Specifies the feature used with the `sms_phone_number`. Default `authentication`.

If `authentication`, signer is sent a verification code via SMS that is required to access the document.

If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The order the signer is required to sign in. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Pin** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The 4- to 12-character access code that will secure this signer's signature page. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumber** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An E.164 formatted phone number. + +By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). + +**NOTE:** Not available in test mode and requires a Standard plan or higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumberType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Specifies the feature used with the `sms_phone_number`. Default `authentication`. + +If `authentication`, signer is sent a verification code via SMS that is required to access the document. + +If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). REPLACE_ME_WITH_DESCRIPTION_END | [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/SubSignatureRequestTemplateSigner.md b/sdks/dotnet/docs/SubSignatureRequestTemplateSigner.md index 4a304067a..35bafeb15 100644 --- a/sdks/dotnet/docs/SubSignatureRequestTemplateSigner.md +++ b/sdks/dotnet/docs/SubSignatureRequestTemplateSigner.md @@ -4,12 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Role** | **string** | Must match an existing role in chosen Template(s). It's case-sensitive. | -**Name** | **string** | The name of the signer. | -**EmailAddress** | **string** | The email address of the signer. | -**Pin** | **string** | The 4- to 12-character access code that will secure this signer's signature page. | [optional] -**SmsPhoneNumber** | **string** | An E.164 formatted phone number.

By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on).

**NOTE:** Not available in test mode and requires a Standard plan or higher. | [optional] -**SmsPhoneNumberType** | **string** | Specifies the feature used with the `sms_phone_number`. Default `authentication`.

If `authentication`, signer is sent a verification code via SMS that is required to access the document.

If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). | [optional] +**Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must match an existing role in chosen Template(s). It's case-sensitive. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **Pin** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The 4- to 12-character access code that will secure this signer's signature page. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumber** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An E.164 formatted phone number. + +By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). + +**NOTE:** Not available in test mode and requires a Standard plan or higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumberType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Specifies the feature used with the `sms_phone_number`. Default `authentication`. + +If `authentication`, signer is sent a verification code via SMS that is required to access the document. + +If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). REPLACE_ME_WITH_DESCRIPTION_END | [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/SubSigningOptions.md b/sdks/dotnet/docs/SubSigningOptions.md index c0ec40eff..1a94bd7de 100644 --- a/sdks/dotnet/docs/SubSigningOptions.md +++ b/sdks/dotnet/docs/SubSigningOptions.md @@ -5,11 +5,7 @@ This allows the requester to specify the types allowed for creating a signature. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DefaultType** | **string** | The default type shown (limited to the listed types) | -**Draw** | **bool** | Allows drawing the signature | [optional] [default to false] -**Phone** | **bool** | Allows using a smartphone to email the signature | [optional] [default to false] -**Type** | **bool** | Allows typing the signature | [optional] [default to false] -**Upload** | **bool** | Allows uploading the signature | [optional] [default to false] +**DefaultType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The default type shown (limited to the listed types) REPLACE_ME_WITH_DESCRIPTION_END | **Draw** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows drawing the signature REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Phone** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows using a smartphone to email the signature REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Type** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows typing the signature REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Upload** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows uploading the signature REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/SubTeamResponse.md b/sdks/dotnet/docs/SubTeamResponse.md index ebdb96c12..538ee9424 100644 --- a/sdks/dotnet/docs/SubTeamResponse.md +++ b/sdks/dotnet/docs/SubTeamResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamId** | **string** | The id of a team | [optional] -**Name** | **string** | The name of a team | [optional] +**TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of a team REPLACE_ME_WITH_DESCRIPTION_END | [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/SubTemplateRole.md b/sdks/dotnet/docs/SubTemplateRole.md index ece06e4d5..d9d83f077 100644 --- a/sdks/dotnet/docs/SubTemplateRole.md +++ b/sdks/dotnet/docs/SubTemplateRole.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The role name of the signer that will be displayed when the template is used to create a signature request. | [optional] -**Order** | **int?** | The order in which this signer role is required to sign. | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The role name of the signer that will be displayed when the template is used to create a signature request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The order in which this signer role is required to sign. REPLACE_ME_WITH_DESCRIPTION_END | [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/SubUnclaimedDraftSigner.md b/sdks/dotnet/docs/SubUnclaimedDraftSigner.md index 4a7ca39dc..4e9967bfe 100644 --- a/sdks/dotnet/docs/SubUnclaimedDraftSigner.md +++ b/sdks/dotnet/docs/SubUnclaimedDraftSigner.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | The email address of the signer. | -**Name** | **string** | The name of the signer. | -**Order** | **int?** | The order the signer is required to sign in. | [optional] +**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The order the signer is required to sign in. REPLACE_ME_WITH_DESCRIPTION_END | [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/SubUnclaimedDraftTemplateSigner.md b/sdks/dotnet/docs/SubUnclaimedDraftTemplateSigner.md index 79f09789e..c8a2970e3 100644 --- a/sdks/dotnet/docs/SubUnclaimedDraftTemplateSigner.md +++ b/sdks/dotnet/docs/SubUnclaimedDraftTemplateSigner.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Role** | **string** | Must match an existing role in chosen Template(s). | -**Name** | **string** | The name of the signer filling the role of `role`. | -**EmailAddress** | **string** | The email address of the signer filling the role of `role`. | +**Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must match an existing role in chosen Template(s). REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer filling the role of `role`. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer filling the role of `role`. REPLACE_ME_WITH_DESCRIPTION_END | [[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/SubWhiteLabelingOptions.md b/sdks/dotnet/docs/SubWhiteLabelingOptions.md index 295d243ad..2a5b2872f 100644 --- a/sdks/dotnet/docs/SubWhiteLabelingOptions.md +++ b/sdks/dotnet/docs/SubWhiteLabelingOptions.md @@ -5,21 +5,7 @@ An array of elements and values serialized to a string, to be used to customize Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HeaderBackgroundColor** | **string** | | [optional] [default to "#1A1A1A"] -**LegalVersion** | **string** | | [optional] [default to LegalVersionEnum.Terms1] -**LinkColor** | **string** | | [optional] [default to "#00B3E6"] -**PageBackgroundColor** | **string** | | [optional] [default to "#F7F8F9"] -**PrimaryButtonColor** | **string** | | [optional] [default to "#00B3E6"] -**PrimaryButtonColorHover** | **string** | | [optional] [default to "#00B3E6"] -**PrimaryButtonTextColor** | **string** | | [optional] [default to "#FFFFFF"] -**PrimaryButtonTextColorHover** | **string** | | [optional] [default to "#FFFFFF"] -**SecondaryButtonColor** | **string** | | [optional] [default to "#FFFFFF"] -**SecondaryButtonColorHover** | **string** | | [optional] [default to "#FFFFFF"] -**SecondaryButtonTextColor** | **string** | | [optional] [default to "#00B3E6"] -**SecondaryButtonTextColorHover** | **string** | | [optional] [default to "#00B3E6"] -**TextColor1** | **string** | | [optional] [default to "#808080"] -**TextColor2** | **string** | | [optional] [default to "#FFFFFF"] -**ResetToDefault** | **bool** | Resets white labeling options to defaults. Only useful when updating an API App. | [optional] +**HeaderBackgroundColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#1A1A1A"]**LegalVersion** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to LegalVersionEnum.Terms1]**LinkColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**PageBackgroundColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#F7F8F9"]**PrimaryButtonColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**PrimaryButtonColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**PrimaryButtonTextColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**PrimaryButtonTextColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**SecondaryButtonColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**SecondaryButtonColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**SecondaryButtonTextColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**SecondaryButtonTextColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**TextColor1** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#808080"]**TextColor2** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**ResetToDefault** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Resets white labeling options to defaults. Only useful when updating an API App. REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamAddMemberRequest.md b/sdks/dotnet/docs/TeamAddMemberRequest.md index 89478f0f0..c7e231eba 100644 --- a/sdks/dotnet/docs/TeamAddMemberRequest.md +++ b/sdks/dotnet/docs/TeamAddMemberRequest.md @@ -4,9 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | `account_id` or `email_address` is required. If both are provided, the account id prevails.

Account id of the user to invite to your Team. | [optional] -**EmailAddress** | **string** | `account_id` or `email_address` is required, If both are provided, the account id prevails.

Email address of the user to invite to your Team. | [optional] -**Role** | **string** | A role member will take in a new Team.

**NOTE:** This parameter is used only if `team_id` is provided. | [optional] +**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `account_id` or `email_address` is required. If both are provided, the account id prevails. + +Account id of the user to invite to your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `account_id` or `email_address` is required, If both are provided, the account id prevails. + +Email address of the user to invite to your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A role member will take in a new Team. + +**NOTE:** This parameter is used only if `team_id` is provided. REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamApi.md b/sdks/dotnet/docs/TeamApi.md index 90d89f025..7015c50c0 100644 --- a/sdks/dotnet/docs/TeamApi.md +++ b/sdks/dotnet/docs/TeamApi.md @@ -15,7 +15,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**TeamSubTeams**](TeamApi.md#teamsubteams) | **GET** /team/sub_teams/{team_id} | List Sub Teams | | [**TeamUpdate**](TeamApi.md#teamupdate) | **PUT** /team | Update Team | - + # **TeamAddMember** > TeamGetResponse TeamAddMember (TeamAddMemberRequest teamAddMemberRequest, string? teamId = null) @@ -25,43 +25,7 @@ Invites a user (specified using the `email_address` parameter) to your Team. If ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - - var data = new TeamAddMemberRequest( - emailAddress: "george@example.com" - ); - - try - { - var result = teamApi.TeamAddMember(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamAddMember_C#_CODE ``` #### Using the TeamAddMemberWithHttpInfo variant @@ -113,7 +77,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TeamCreate** > TeamGetResponse TeamCreate (TeamCreateRequest teamCreateRequest) @@ -123,43 +87,7 @@ Creates a new Team and makes you a member. You must not currently belong to a Te ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - - var data = new TeamCreateRequest( - name: "New Team Name" - ); - - try - { - var result = teamApi.TeamCreate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamCreate_C#_CODE ``` #### Using the TeamCreateWithHttpInfo variant @@ -210,7 +138,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TeamDelete** > void TeamDelete () @@ -220,38 +148,7 @@ Deletes your Team. Can only be invoked when you have a Team with only one member ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - - try - { - teamApi.TeamDelete(); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamDelete_C#_CODE ``` #### Using the TeamDeleteWithHttpInfo variant @@ -295,7 +192,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TeamGet** > TeamGetResponse TeamGet () @@ -305,39 +202,7 @@ Returns information about your Team as well as a list of its members. If you do ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - - try - { - var result = teamApi.TeamGet(); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamGet_C#_CODE ``` #### Using the TeamGetWithHttpInfo variant @@ -384,7 +249,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TeamInfo** > TeamGetInfoResponse TeamInfo (string? teamId = null) @@ -394,39 +259,7 @@ Provides information about a team. ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - - try - { - var result = teamApi.TeamInfo(); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamInfo_C#_CODE ``` #### Using the TeamInfoWithHttpInfo variant @@ -477,7 +310,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TeamInvites** > TeamInvitesResponse TeamInvites (string? emailAddress = null) @@ -487,40 +320,7 @@ Provides a list of team invites (and their roles). ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - var emailAddress = "user@dropboxsign.com"; - - try - { - var result = teamApi.TeamInvites(emailAddress); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamInvites_C#_CODE ``` #### Using the TeamInvitesWithHttpInfo variant @@ -571,7 +371,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TeamMembers** > TeamMembersResponse TeamMembers (string teamId, int? page = null, int? pageSize = null) @@ -581,40 +381,7 @@ Provides a paginated list of members (and their roles) that belong to a given te ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - var teamId = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"; - - try - { - var result = teamApi.TeamMembers(teamId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamMembers_C#_CODE ``` #### Using the TeamMembersWithHttpInfo variant @@ -642,8 +409,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamId** | **string** | The id of the team that a member list is being requested from. | | -| **page** | **int?** | Which page number of the team member list to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the team member list to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | ### Return type @@ -667,7 +434,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TeamRemoveMember** > TeamGetResponse TeamRemoveMember (TeamRemoveMemberRequest teamRemoveMemberRequest) @@ -677,44 +444,7 @@ Removes the provided user Account from your Team. If the Account had an outstand ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - - var data = new TeamRemoveMemberRequest( - emailAddress: "teammate@dropboxsign.com", - newOwnerEmailAddress: "new_teammate@dropboxsign.com" - ); - - try - { - var result = teamApi.TeamRemoveMember(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamRemoveMember_C#_CODE ``` #### Using the TeamRemoveMemberWithHttpInfo variant @@ -765,7 +495,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TeamSubTeams** > TeamSubTeamsResponse TeamSubTeams (string teamId, int? page = null, int? pageSize = null) @@ -775,40 +505,7 @@ Provides a paginated list of sub teams that belong to a given team. ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - var teamId = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"; - - try - { - var result = teamApi.TeamSubTeams(teamId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamSubTeams_C#_CODE ``` #### Using the TeamSubTeamsWithHttpInfo variant @@ -836,8 +533,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamId** | **string** | The id of the parent Team. | | -| **page** | **int?** | Which page number of the SubTeam List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the SubTeam List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | ### Return type @@ -861,7 +558,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TeamUpdate** > TeamGetResponse TeamUpdate (TeamUpdateRequest teamUpdateRequest) @@ -871,43 +568,7 @@ Updates the name of your Team. ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var teamApi = new TeamApi(config); - - var data = new TeamUpdateRequest( - name: "New Team Name" - ); - - try - { - var result = teamApi.TeamUpdate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TeamUpdate_C#_CODE ``` #### Using the TeamUpdateWithHttpInfo variant diff --git a/sdks/dotnet/docs/TeamCreateRequest.md b/sdks/dotnet/docs/TeamCreateRequest.md index e3727b07c..3c43124f8 100644 --- a/sdks/dotnet/docs/TeamCreateRequest.md +++ b/sdks/dotnet/docs/TeamCreateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of your Team. | [optional] [default to "Untitled Team"] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "Untitled Team"] [[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/TeamGetInfoResponse.md b/sdks/dotnet/docs/TeamGetInfoResponse.md index bacc7995c..7f954e95f 100644 --- a/sdks/dotnet/docs/TeamGetInfoResponse.md +++ b/sdks/dotnet/docs/TeamGetInfoResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Team** | [**TeamInfoResponse**](TeamInfoResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Team** | [**TeamInfoResponse**](TeamInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamGetResponse.md b/sdks/dotnet/docs/TeamGetResponse.md index 45046b1e1..1dc5d6740 100644 --- a/sdks/dotnet/docs/TeamGetResponse.md +++ b/sdks/dotnet/docs/TeamGetResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Team** | [**TeamResponse**](TeamResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Team** | [**TeamResponse**](TeamResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamInfoResponse.md b/sdks/dotnet/docs/TeamInfoResponse.md index ac3a4e8fc..324e6cb90 100644 --- a/sdks/dotnet/docs/TeamInfoResponse.md +++ b/sdks/dotnet/docs/TeamInfoResponse.md @@ -4,11 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamId** | **string** | The id of a team | [optional] -**TeamParent** | [**TeamParentResponse**](TeamParentResponse.md) | | [optional] -**Name** | **string** | The name of a team | [optional] -**NumMembers** | **int** | Number of members within a team | [optional] -**NumSubTeams** | **int** | Number of sub teams within a team | [optional] +**TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TeamParent** | [**TeamParentResponse**](TeamParentResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumMembers** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of members within a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumSubTeams** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of sub teams within a team REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamInviteResponse.md b/sdks/dotnet/docs/TeamInviteResponse.md index 125800019..9cdaa5dbe 100644 --- a/sdks/dotnet/docs/TeamInviteResponse.md +++ b/sdks/dotnet/docs/TeamInviteResponse.md @@ -4,12 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | Email address of the user invited to this team. | [optional] -**TeamId** | **string** | Id of the team. | [optional] -**Role** | **string** | Role of the user invited to this team. | [optional] -**SentAt** | **int** | Timestamp when the invitation was sent. | [optional] -**RedeemedAt** | **int** | Timestamp when the invitation was redeemed. | [optional] -**ExpiresAt** | **int** | Timestamp when the invitation is expiring. | [optional] +**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address of the user invited to this team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Id of the team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Role of the user invited to this team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SentAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Timestamp when the invitation was sent. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RedeemedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Timestamp when the invitation was redeemed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Timestamp when the invitation is expiring. REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamInvitesResponse.md b/sdks/dotnet/docs/TeamInvitesResponse.md index ffc82c408..ecb39301d 100644 --- a/sdks/dotnet/docs/TeamInvitesResponse.md +++ b/sdks/dotnet/docs/TeamInvitesResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamInvites** | [**List<TeamInviteResponse>**](TeamInviteResponse.md) | Contains a list of team invites and their roles. | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | | [optional] +**TeamInvites** | [**List<TeamInviteResponse>**](TeamInviteResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains a list of team invites and their roles. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamMemberResponse.md b/sdks/dotnet/docs/TeamMemberResponse.md index dde526641..0a9f1cd25 100644 --- a/sdks/dotnet/docs/TeamMemberResponse.md +++ b/sdks/dotnet/docs/TeamMemberResponse.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | Account id of the team member. | [optional] -**EmailAddress** | **string** | Email address of the team member. | [optional] -**Role** | **string** | The specific role a member has on the team. | [optional] +**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account id of the team member. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address of the team member. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The specific role a member has on the team. REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamMembersResponse.md b/sdks/dotnet/docs/TeamMembersResponse.md index fd51ffe8e..a9a3925b9 100644 --- a/sdks/dotnet/docs/TeamMembersResponse.md +++ b/sdks/dotnet/docs/TeamMembersResponse.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamMembers** | [**List<TeamMemberResponse>**](TeamMemberResponse.md) | Contains a list of team members and their roles for a specific team. | [optional] -**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | | [optional] +**TeamMembers** | [**List<TeamMemberResponse>**](TeamMemberResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains a list of team members and their roles for a specific team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamParentResponse.md b/sdks/dotnet/docs/TeamParentResponse.md index 56bd35be7..28ec41f8d 100644 --- a/sdks/dotnet/docs/TeamParentResponse.md +++ b/sdks/dotnet/docs/TeamParentResponse.md @@ -5,8 +5,7 @@ Information about the parent team if a team has one, set to `null` otherwise. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamId** | **string** | The id of a team | [optional] -**Name** | **string** | The name of a team | [optional] +**TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of a team REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamRemoveMemberRequest.md b/sdks/dotnet/docs/TeamRemoveMemberRequest.md index bc227b9fd..51487507e 100644 --- a/sdks/dotnet/docs/TeamRemoveMemberRequest.md +++ b/sdks/dotnet/docs/TeamRemoveMemberRequest.md @@ -4,11 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | **account_id** or **email_address** is required. If both are provided, the account id prevails.

Account id to remove from your Team. | [optional] -**EmailAddress** | **string** | **account_id** or **email_address** is required. If both are provided, the account id prevails.

Email address of the Account to remove from your Team. | [optional] -**NewOwnerEmailAddress** | **string** | The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account.

**NOTE:** Only available for Enterprise plans. | [optional] -**NewTeamId** | **string** | Id of the new Team. | [optional] -**NewRole** | **string** | A new role member will take in a new Team.

**NOTE:** This parameter is used only if `new_team_id` is provided. | [optional] +**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **account_id** or **email_address** is required. If both are provided, the account id prevails. + +Account id to remove from your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **account_id** or **email_address** is required. If both are provided, the account id prevails. + +Email address of the Account to remove from your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NewOwnerEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. + +**NOTE:** Only available for Enterprise plans. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NewTeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Id of the new Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NewRole** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A new role member will take in a new Team. + +**NOTE:** This parameter is used only if `new_team_id` is provided. REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamResponse.md b/sdks/dotnet/docs/TeamResponse.md index e8a14f5b6..95c68bad5 100644 --- a/sdks/dotnet/docs/TeamResponse.md +++ b/sdks/dotnet/docs/TeamResponse.md @@ -5,10 +5,7 @@ Contains information about your team and its members Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of your Team | [optional] -**Accounts** | [**List<AccountResponse>**](AccountResponse.md) | | [optional] -**InvitedAccounts** | [**List<AccountResponse>**](AccountResponse.md) | A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. | [optional] -**InvitedEmails** | **List<string>** | A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of your Team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Accounts** | [**List<AccountResponse>**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **InvitedAccounts** | [**List<AccountResponse>**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **InvitedEmails** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamSubTeamsResponse.md b/sdks/dotnet/docs/TeamSubTeamsResponse.md index 41faf831a..25e65f18e 100644 --- a/sdks/dotnet/docs/TeamSubTeamsResponse.md +++ b/sdks/dotnet/docs/TeamSubTeamsResponse.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SubTeams** | [**List<SubTeamResponse>**](SubTeamResponse.md) | Contains a list with sub teams. | [optional] -**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | | [optional] +**SubTeams** | [**List<SubTeamResponse>**](SubTeamResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains a list with sub teams. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/TeamUpdateRequest.md b/sdks/dotnet/docs/TeamUpdateRequest.md index e15e5f1d2..93edab445 100644 --- a/sdks/dotnet/docs/TeamUpdateRequest.md +++ b/sdks/dotnet/docs/TeamUpdateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of your Team. | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of your Team. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateAddUserRequest.md b/sdks/dotnet/docs/TemplateAddUserRequest.md index 059dc1ea0..fef8d27b8 100644 --- a/sdks/dotnet/docs/TemplateAddUserRequest.md +++ b/sdks/dotnet/docs/TemplateAddUserRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | The id of the Account to give access to the Template.
**NOTE:** The account id prevails if email address is also provided. | [optional] -**EmailAddress** | **string** | The email address of the Account to give access to the Template.
**NOTE:** The account id prevails if it is also provided. | [optional] -**SkipNotification** | **bool** | If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. | [optional] [default to false] +**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Account to give access to the Template. +**NOTE:** The account id prevails if email address is also provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the Account to give access to the Template. +**NOTE:** The account id prevails if it is also provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SkipNotification** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/TemplateApi.md b/sdks/dotnet/docs/TemplateApi.md index 60384f66a..d77224c27 100644 --- a/sdks/dotnet/docs/TemplateApi.md +++ b/sdks/dotnet/docs/TemplateApi.md @@ -16,7 +16,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**TemplateRemoveUser**](TemplateApi.md#templateremoveuser) | **POST** /template/remove_user/{template_id} | Remove User from Template | | [**TemplateUpdateFiles**](TemplateApi.md#templateupdatefiles) | **POST** /template/update_files/{template_id} | Update Template Files | - + # **TemplateAddUser** > TemplateGetResponse TemplateAddUser (string templateId, TemplateAddUserRequest templateAddUserRequest) @@ -26,45 +26,7 @@ Gives the specified Account access to the specified Template. The specified Acco ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - - var data = new TemplateAddUserRequest( - emailAddress: "george@dropboxsign.com" - ); - - try - { - var result = templateApi.TemplateAddUser(templateId, data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateAddUser_C#_CODE ``` #### Using the TemplateAddUserWithHttpInfo variant @@ -116,7 +78,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateCreate** > TemplateCreateResponse TemplateCreate (TemplateCreateRequest templateCreateRequest) @@ -126,86 +88,7 @@ Creates a template that can then be used. ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var role1 = new SubTemplateRole( - name: "Client", - order: 0 - ); - - var role2 = new SubTemplateRole( - name: "Witness", - order: 1 - ); - - var mergeField1 = new SubMergeField( - name: "Full Name", - type: SubMergeField.TypeEnum.Text - ); - - var mergeField2 = new SubMergeField( - name: "Is Registered?", - type: SubMergeField.TypeEnum.Checkbox - ); - - var subFieldOptions = new SubFieldOptions( - dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY - ); - - var files = new List { - new FileStream( - "./example_signature_request.pdf", - FileMode.Open, - FileAccess.Read, - FileShare.Read - ) - }; - - var data = new TemplateCreateRequest( - clientId: "37dee8d8440c66d54cfa05d92c160882", - files: files, - title: "Test Template", - subject: "Please sign this document", - message: "For your approval", - signerRoles: new List(){role1, role2}, - ccRoles: new List(){"Manager"}, - mergeFields: new List(){mergeField1, mergeField2}, - fieldOptions: subFieldOptions, - testMode: true - ); - - try - { - var result = templateApi.TemplateCreate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateCreate_C#_CODE ``` #### Using the TemplateCreateWithHttpInfo variant @@ -256,7 +139,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateCreateEmbeddedDraft** > TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft (TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) @@ -266,86 +149,7 @@ The first step in an embedded template workflow. Creates a draft template that c ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var role1 = new SubTemplateRole( - name: "Client", - order: 0 - ); - - var role2 = new SubTemplateRole( - name: "Witness", - order: 1 - ); - - var mergeField1 = new SubMergeField( - name: "Full Name", - type: SubMergeField.TypeEnum.Text - ); - - var mergeField2 = new SubMergeField( - name: "Is Registered?", - type: SubMergeField.TypeEnum.Checkbox - ); - - var subFieldOptions = new SubFieldOptions( - dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY - ); - - var files = new List { - new FileStream( - "./example_signature_request.pdf", - FileMode.Open, - FileAccess.Read, - FileShare.Read - ) - }; - - var data = new TemplateCreateEmbeddedDraftRequest( - clientId: "37dee8d8440c66d54cfa05d92c160882", - files: files, - title: "Test Template", - subject: "Please sign this document", - message: "For your approval", - signerRoles: new List(){role1, role2}, - ccRoles: new List(){"Manager"}, - mergeFields: new List(){mergeField1, mergeField2}, - fieldOptions: subFieldOptions, - testMode: true - ); - - try - { - var result = templateApi.TemplateCreateEmbeddedDraft(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateCreateEmbeddedDraft_C#_CODE ``` #### Using the TemplateCreateEmbeddedDraftWithHttpInfo variant @@ -396,7 +200,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateDelete** > void TemplateDelete (string templateId) @@ -406,40 +210,7 @@ Completely deletes the template specified from the account. ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - - try - { - templateApi.TemplateDelete(templateId); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateDelete_C#_CODE ``` #### Using the TemplateDeleteWithHttpInfo variant @@ -487,7 +258,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateFiles** > System.IO.Stream TemplateFiles (string templateId, string? fileType = null) @@ -497,45 +268,7 @@ Obtain a copy of the current documents specified by the `template_id` parameter. ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - - try - { - var result = templateApi.TemplateFiles(templateId, "pdf"); - - var fileStream = File.Create("file_response.pdf"); - result.Seek(0, SeekOrigin.Begin); - result.CopyTo(fileStream); - fileStream.Close(); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateFiles_C#_CODE ``` #### Using the TemplateFilesWithHttpInfo variant @@ -563,7 +296,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateId** | **string** | The id of the template files to retrieve. | | -| **fileType** | **string?** | Set to `pdf` for a single merged document or `zip` for a collection of individual documents. | [optional] | +| **fileType** | **string?** | Set to `pdf` for a single merged document or `zip` for a collection of individual documents. | [optional] | ### Return type @@ -587,7 +320,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateFilesAsDataUri** > FileResponseDataUri TemplateFilesAsDataUri (string templateId) @@ -597,41 +330,7 @@ Obtain a copy of the current documents specified by the `template_id` parameter. ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - - try - { - var result = templateApi.TemplateFilesAsDataUri(templateId, "pdf", false, false); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateFilesAsDataUri_C#_CODE ``` #### Using the TemplateFilesAsDataUriWithHttpInfo variant @@ -682,7 +381,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateFilesAsFileUrl** > FileResponse TemplateFilesAsFileUrl (string templateId, int? forceDownload = null) @@ -692,41 +391,7 @@ Obtain a copy of the current documents specified by the `template_id` parameter. ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - - try - { - var result = templateApi.TemplateFilesAsFileUrl(templateId, "pdf", false, false); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateFilesAsFileUrl_C#_CODE ``` #### Using the TemplateFilesAsFileUrlWithHttpInfo variant @@ -754,7 +419,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateId** | **string** | The id of the template files to retrieve. | | -| **forceDownload** | **int?** | By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. | [optional] [default to 1] | +| **forceDownload** | **int?** | By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. | [optional] [default to 1] | ### Return type @@ -778,7 +443,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateGet** > TemplateGetResponse TemplateGet (string templateId) @@ -788,41 +453,7 @@ Returns the Template specified by the `template_id` parameter. ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - - try - { - var result = templateApi.TemplateGet(templateId); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateGet_C#_CODE ``` #### Using the TemplateGetWithHttpInfo variant @@ -873,7 +504,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateList** > TemplateListResponse TemplateList (string? accountId = null, int? page = null, int? pageSize = null, string? query = null) @@ -883,41 +514,7 @@ Returns a list of the Templates that are accessible by you. Take a look at our ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var accountId = "f57db65d3f933b5316d398057a36176831451a35"; - - try - { - var result = templateApi.TemplateList(accountId, 1, 20, null); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateList_C#_CODE ``` #### Using the TemplateListWithHttpInfo variant @@ -944,9 +541,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **accountId** | **string?** | Which account to return Templates for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. | [optional] | -| **page** | **int?** | Which page number of the Template List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **accountId** | **string?** | Which account to return Templates for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. | [optional] | +| **page** | **int?** | Which page number of the Template List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | | **query** | **string?** | String that includes search terms and/or fields to be used to filter the Template objects. | [optional] | ### Return type @@ -971,7 +568,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateRemoveUser** > TemplateGetResponse TemplateRemoveUser (string templateId, TemplateRemoveUserRequest templateRemoveUserRequest) @@ -981,45 +578,7 @@ Removes the specified Account's access to the specified Template. ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var data = new TemplateRemoveUserRequest( - emailAddress: "george@dropboxsign.com" - ); - - var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; - - try - { - var result = templateApi.TemplateRemoveUser(templateId, data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateRemoveUser_C#_CODE ``` #### Using the TemplateRemoveUserWithHttpInfo variant @@ -1071,7 +630,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **TemplateUpdateFiles** > TemplateUpdateFilesResponse TemplateUpdateFiles (string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) @@ -1081,55 +640,7 @@ Overlays a new file with the overlay of an existing template. The new file(s) mu ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var templateApi = new TemplateApi(config); - - var files = new List { - new FileStream( - "./example_signature_request.pdf", - FileMode.Open, - FileAccess.Read, - FileShare.Read - ) - }; - - var data = new TemplateUpdateFilesRequest( - files: files, - ); - - var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; - - try - { - var result = templateApi.TemplateUpdateFiles(templateId, data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__TemplateUpdateFiles_C#_CODE ``` #### Using the TemplateUpdateFilesWithHttpInfo variant diff --git a/sdks/dotnet/docs/TemplateCreateEmbeddedDraftRequest.md b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftRequest.md index 0ce33cb02..7528baee1 100644 --- a/sdks/dotnet/docs/TemplateCreateEmbeddedDraftRequest.md +++ b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftRequest.md @@ -4,31 +4,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. | -**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**AllowCcs** | **bool** | This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. | [optional] [default to true] -**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false] -**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] -**CcRoles** | **List<string>** | The CC roles that must be assigned when using the template to send a signature request | [optional] -**EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] -**FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] -**ForceSignerRoles** | **bool** | Provide users the ability to review/edit the template signer roles. | [optional] [default to false] -**ForceSubjectMessage** | **bool** | Provide users the ability to review/edit the template subject and message. | [optional] [default to false] -**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] -**FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] -**FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] -**MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. | [optional] -**Message** | **string** | The default template email message. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**ShowPreview** | **bool** | This allows the requester to enable the editor/preview experience.

- `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. | [optional] [default to false] -**ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true] -**SignerRoles** | [**List<SubTemplateRole>**](SubTemplateRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | [optional] -**SkipMeNow** | **bool** | Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. | [optional] [default to false] -**Subject** | **string** | The template title (alias). | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] -**UsePreexistingFields** | **bool** | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | [optional] [default to false] +**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowCcs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. + +**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcRoles** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The CC roles that must be assigned when using the template to send a signature request REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ForceSignerRoles** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template signer roles. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ForceSubjectMessage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template subject and message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) + +**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. + +* Text Field use `SubFormFieldsPerDocumentText` +* Dropdown Field use `SubFormFieldsPerDocumentDropdown` +* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` +* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` +* Radio Field use `SubFormFieldsPerDocumentRadio` +* Signature Field use `SubFormFieldsPerDocumentSignature` +* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` +* Initials Field use `SubFormFieldsPerDocumentInitials` +* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` +* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. +If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The default template email message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowPreview** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the editor/preview experience. + +- `show_preview=true`: Allows requesters to enable the editor/preview experience. +- `show_preview=false`: Allows requesters to disable the editor/preview experience. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**SignerRoles** | [**List<SubTemplateRole>**](SubTemplateRole.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SkipMeNow** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The template title (alias). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UsePreexistingFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/TemplateCreateEmbeddedDraftResponse.md b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponse.md index cf5a67512..76a69eea1 100644 --- a/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponse.md +++ b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Template** | [**TemplateCreateEmbeddedDraftResponseTemplate**](TemplateCreateEmbeddedDraftResponseTemplate.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Template** | [**TemplateCreateEmbeddedDraftResponseTemplate**](TemplateCreateEmbeddedDraftResponseTemplate.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateCreateEmbeddedDraftResponseTemplate.md b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponseTemplate.md index 0e1309198..50b484b16 100644 --- a/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponseTemplate.md +++ b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponseTemplate.md @@ -5,10 +5,7 @@ Template object with parameters: `template_id`, `edit_url`, `expires_at`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | The id of the Template. | [optional] -**EditUrl** | **string** | Link to edit the template. | [optional] -**ExpiresAt** | **int** | When the link expires. | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Link to edit the template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the link expires. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateCreateRequest.md b/sdks/dotnet/docs/TemplateCreateRequest.md index a0e986083..9a87c3d34 100644 --- a/sdks/dotnet/docs/TemplateCreateRequest.md +++ b/sdks/dotnet/docs/TemplateCreateRequest.md @@ -4,24 +4,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | -**SignerRoles** | [**List<SubTemplateRole>**](SubTemplateRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | -**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false] -**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] -**CcRoles** | **List<string>** | The CC roles that must be assigned when using the template to send a signature request | [optional] -**ClientId** | **string** | Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. | [optional] -**FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] -**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] -**FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] -**MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. | [optional] -**Message** | **string** | The default template email message. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**Subject** | **string** | The template title (alias). | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] -**UsePreexistingFields** | **bool** | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | [optional] [default to false] +**FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) + +**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. + +* Text Field use `SubFormFieldsPerDocumentText` +* Dropdown Field use `SubFormFieldsPerDocumentDropdown` +* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` +* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` +* Radio Field use `SubFormFieldsPerDocumentRadio` +* Signature Field use `SubFormFieldsPerDocumentSignature` +* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` +* Initials Field use `SubFormFieldsPerDocumentInitials` +* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` +* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | **SignerRoles** | [**List<SubTemplateRole>**](SubTemplateRole.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. + +**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcRoles** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The CC roles that must be assigned when using the template to send a signature request REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. +If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The default template email message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The template title (alias). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UsePreexistingFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/TemplateCreateResponse.md b/sdks/dotnet/docs/TemplateCreateResponse.md index cbd87a781..9d1fd92c1 100644 --- a/sdks/dotnet/docs/TemplateCreateResponse.md +++ b/sdks/dotnet/docs/TemplateCreateResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Template** | [**TemplateCreateResponseTemplate**](TemplateCreateResponseTemplate.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Template** | [**TemplateCreateResponseTemplate**](TemplateCreateResponseTemplate.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateCreateResponseTemplate.md b/sdks/dotnet/docs/TemplateCreateResponseTemplate.md index 85941fc4e..0167b574b 100644 --- a/sdks/dotnet/docs/TemplateCreateResponseTemplate.md +++ b/sdks/dotnet/docs/TemplateCreateResponseTemplate.md @@ -5,7 +5,7 @@ Template object with parameters: `template_id`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | The id of the Template. | [optional] +**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateEditResponse.md b/sdks/dotnet/docs/TemplateEditResponse.md index 723cdfce4..c21ef5135 100644 --- a/sdks/dotnet/docs/TemplateEditResponse.md +++ b/sdks/dotnet/docs/TemplateEditResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | The id of the Template. | [optional] +**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateGetResponse.md b/sdks/dotnet/docs/TemplateGetResponse.md index ee781ceb5..eee21a7d5 100644 --- a/sdks/dotnet/docs/TemplateGetResponse.md +++ b/sdks/dotnet/docs/TemplateGetResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Template** | [**TemplateResponse**](TemplateResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Template** | [**TemplateResponse**](TemplateResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateListResponse.md b/sdks/dotnet/docs/TemplateListResponse.md index b5bb9aa96..18f8f3b45 100644 --- a/sdks/dotnet/docs/TemplateListResponse.md +++ b/sdks/dotnet/docs/TemplateListResponse.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Templates** | [**List<TemplateResponse>**](TemplateResponse.md) | List of templates that the API caller has access to. | [optional] -**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**Templates** | [**List<TemplateResponse>**](TemplateResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN List of templates that the API caller has access to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateRemoveUserRequest.md b/sdks/dotnet/docs/TemplateRemoveUserRequest.md index 1e2280fbc..67d0ad904 100644 --- a/sdks/dotnet/docs/TemplateRemoveUserRequest.md +++ b/sdks/dotnet/docs/TemplateRemoveUserRequest.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. | [optional] -**EmailAddress** | **string** | The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. | [optional] +**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponse.md b/sdks/dotnet/docs/TemplateResponse.md index f25de6a77..023b459df 100644 --- a/sdks/dotnet/docs/TemplateResponse.md +++ b/sdks/dotnet/docs/TemplateResponse.md @@ -5,21 +5,9 @@ Contains information about the templates you and your team have created. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | The id of the Template. | [optional] -**Title** | **string** | The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] -**Message** | **string** | The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] -**UpdatedAt** | **int** | Time the template was last updated. | [optional] -**IsEmbedded** | **bool?** | `true` if this template was created using an embedded flow, `false` if it was created on our website. | [optional] -**IsCreator** | **bool?** | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | [optional] -**CanEdit** | **bool?** | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | [optional] -**IsLocked** | **bool?** | Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. | [optional] -**Metadata** | **Object** | The metadata attached to the template. | [optional] -**SignerRoles** | [**List<TemplateResponseSignerRole>**](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | [optional] -**CcRoles** | [**List<TemplateResponseCCRole>**](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | [optional] -**Documents** | [**List<TemplateResponseDocument>**](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | [optional] -**CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] -**NamedFormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] -**Accounts** | [**List<TemplateResponseAccount>**](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | [optional] +**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UpdatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time the template was last updated. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsEmbedded** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` if this template was created using an embedded flow, `false` if it was created on our website. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsCreator** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` if you are the owner of this template, `false` if it's been shared with you by a team member. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CanEdit** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsLocked** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Indicates whether the template is locked. +If `true`, then the template was created outside your quota and can only be used in `test_mode`. +If `false`, then the template is within your quota and can be used to create signature requests. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Object** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The metadata attached to the template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerRoles** | [**List<TemplateResponseSignerRole>**](TemplateResponseSignerRole.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcRoles** | [**List<TemplateResponseCCRole>**](TemplateResponseCCRole.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Documents** | [**List<TemplateResponseDocument>**](TemplateResponseDocument.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array describing each document associated with this Template. Includes form field data for each document. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NamedFormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Accounts** | [**List<TemplateResponseAccount>**](TemplateResponseAccount.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the Accounts that can use this Template. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseAccount.md b/sdks/dotnet/docs/TemplateResponseAccount.md index 8713247ee..d97f06412 100644 --- a/sdks/dotnet/docs/TemplateResponseAccount.md +++ b/sdks/dotnet/docs/TemplateResponseAccount.md @@ -4,12 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | The id of the Account. | [optional] -**EmailAddress** | **string** | The email address associated with the Account. | [optional] -**IsLocked** | **bool** | Returns `true` if the user has been locked out of their account by a team admin. | [optional] -**IsPaidHs** | **bool** | Returns `true` if the user has a paid Dropbox Sign account. | [optional] -**IsPaidHf** | **bool** | Returns `true` if the user has a paid HelloFax account. | [optional] -**Quotas** | [**TemplateResponseAccountQuota**](TemplateResponseAccountQuota.md) | | [optional] +**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address associated with the Account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsLocked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has been locked out of their account by a team admin. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsPaidHs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has a paid Dropbox Sign account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsPaidHf** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has a paid HelloFax account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Quotas** | [**TemplateResponseAccountQuota**](TemplateResponseAccountQuota.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseAccountQuota.md b/sdks/dotnet/docs/TemplateResponseAccountQuota.md index c57a271f1..64a1a380d 100644 --- a/sdks/dotnet/docs/TemplateResponseAccountQuota.md +++ b/sdks/dotnet/docs/TemplateResponseAccountQuota.md @@ -5,10 +5,7 @@ An array of the designated CC roles that must be specified when sending a Signat Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplatesLeft** | **int** | API templates remaining. | [optional] -**ApiSignatureRequestsLeft** | **int** | API signature requests remaining. | [optional] -**DocumentsLeft** | **int** | Signature requests remaining. | [optional] -**SmsVerificationsLeft** | **int** | SMS verifications remaining. | [optional] +**TemplatesLeft** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN API templates remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ApiSignatureRequestsLeft** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN API signature requests remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DocumentsLeft** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signature requests remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsVerificationsLeft** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN SMS verifications remaining. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseCCRole.md b/sdks/dotnet/docs/TemplateResponseCCRole.md index 1e8067443..fc0a4b190 100644 --- a/sdks/dotnet/docs/TemplateResponseCCRole.md +++ b/sdks/dotnet/docs/TemplateResponseCCRole.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of the Role. | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocument.md b/sdks/dotnet/docs/TemplateResponseDocument.md index 09b0716a6..1a65fd3a4 100644 --- a/sdks/dotnet/docs/TemplateResponseDocument.md +++ b/sdks/dotnet/docs/TemplateResponseDocument.md @@ -4,12 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | Name of the associated file. | [optional] -**Index** | **int** | Document ordering, the lowest index is displayed first and the highest last (0-based indexing). | [optional] -**FieldGroups** | [**List<TemplateResponseDocumentFieldGroup>**](TemplateResponseDocumentFieldGroup.md) | An array of Form Field Group objects. | [optional] -**FormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | An array of Form Field objects containing the name and type of each named field. | [optional] -**CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | An array of Form Field objects containing the name and type of each named field. | [optional] -**StaticFields** | [**List<TemplateResponseDocumentStaticFieldBase>**](TemplateResponseDocumentStaticFieldBase.md) | An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Name of the associated file. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Index** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Document ordering, the lowest index is displayed first and the highest last (0-based indexing). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldGroups** | [**List<TemplateResponseDocumentFieldGroup>**](TemplateResponseDocumentFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Form Field Group objects. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Form Field objects containing the name and type of each named field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Form Field objects containing the name and type of each named field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **StaticFields** | [**List<TemplateResponseDocumentStaticFieldBase>**](TemplateResponseDocumentStaticFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocumentCustomFieldBase.md b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldBase.md index 6aba80b59..5848adb06 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldBase.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldBase.md @@ -5,16 +5,7 @@ An array of Form Field objects containing the name and type of each named field. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | | -**ApiId** | **string** | The unique ID for this field. | [optional] -**Name** | **string** | The name of the Custom Field. | [optional] -**Signer** | **string** | The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocumentCustomFieldCheckbox.md b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldCheckbox.md index 11a948265..8b2dd33a9 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldCheckbox.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldCheckbox.md @@ -5,16 +5,19 @@ This class extends `TemplateResponseDocumentCustomFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**Name** | **string** | The name of the Custom Field. | [optional] -**Signer** | **string** | The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this Custom Field. Only `text` and `checkbox` are currently supported.

* Text uses `TemplateResponseDocumentCustomFieldText`
* Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` | [default to "checkbox"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only `text` and `checkbox` are currently supported. + +* Text uses `TemplateResponseDocumentCustomFieldText` +* Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"] [[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/TemplateResponseDocumentCustomFieldText.md b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldText.md index 4a63e9dd3..505fad42b 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldText.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldText.md @@ -5,20 +5,19 @@ This class extends `TemplateResponseDocumentCustomFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | The unique ID for this field. | [optional] -**Name** | **string** | The name of the Custom Field. | [optional] -**Signer** | **string** | The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this Custom Field. Only `text` and `checkbox` are currently supported.

* Text uses `TemplateResponseDocumentCustomFieldText`
* Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` | [default to "text"] -**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] -**IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] -**OriginalFontSize** | **int** | Original font size used in this form field's text. | [optional] -**FontFamily** | **string** | Font family used in this form field's text. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only `text` and `checkbox` are currently supported. + +* Text uses `TemplateResponseDocumentCustomFieldText` +* Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsMultiline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this form field is multiline text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalFontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Original font size used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocumentFieldGroup.md b/sdks/dotnet/docs/TemplateResponseDocumentFieldGroup.md index a1e7f000d..b4757cd3b 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFieldGroup.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFieldGroup.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of the form field group. | [optional] -**Rule** | [**TemplateResponseDocumentFieldGroupRule**](TemplateResponseDocumentFieldGroupRule.md) | | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field group. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Rule** | [**TemplateResponseDocumentFieldGroupRule**](TemplateResponseDocumentFieldGroupRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocumentFieldGroupRule.md b/sdks/dotnet/docs/TemplateResponseDocumentFieldGroupRule.md index 0a92e924b..62b1f0792 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFieldGroupRule.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFieldGroupRule.md @@ -5,8 +5,11 @@ The rule used to validate checkboxes in the form field group. See [checkbox fiel Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Requirement** | **string** | Examples: `require_0-1` `require_1` `require_1-ormore`

- Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. | [optional] -**GroupLabel** | **string** | Name of the group | [optional] +**Requirement** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Examples: `require_0-1` `require_1` `require_1-ormore` + +- Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). +- Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). +- Radio groups require **at least** two fields per group. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **GroupLabel** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Name of the group REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocumentFormFieldBase.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldBase.md index 74429bf89..4ed6e482d 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldBase.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldBase.md @@ -5,16 +5,7 @@ An array of Form Field objects containing the name and type of each named field. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | | -**ApiId** | **string** | A unique id for the form field. | [optional] -**Name** | **string** | The name of the form field. | [optional] -**Signer** | **string** | The signer of the Form Field. | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**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** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocumentFormFieldCheckbox.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldCheckbox.md index 45636fa5a..680a6440d 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldCheckbox.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldCheckbox.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the form field. | [optional] -**Name** | **string** | The name of the form field. | [optional] -**Signer** | **string** | The signer of the Form Field. | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**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 "checkbox"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"] [[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/TemplateResponseDocumentFormFieldDateSigned.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDateSigned.md index 6bf5b02b3..4c5cc1873 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDateSigned.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDateSigned.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the form field. | [optional] -**Name** | **string** | The name of the form field. | [optional] -**Signer** | **string** | The signer of the Form Field. | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**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 "date_signed"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "date_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/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md index fa94587f3..a57d37be4 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the form field. | [optional] -**Name** | **string** | The name of the form field. | [optional] -**Signer** | **string** | The signer of the Form Field. | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**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"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "dropdown"] [[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/TemplateResponseDocumentFormFieldHyperlink.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldHyperlink.md index 125ba1d60..fa6e11f8c 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldHyperlink.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldHyperlink.md @@ -5,20 +5,25 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the form field. | [optional] -**Name** | **string** | The name of the form field. | [optional] -**Signer** | **string** | The signer of the Form Field. | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**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 "hyperlink"] -**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] -**IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] -**OriginalFontSize** | **int** | Original font size used in this form field's text. | [optional] -**FontFamily** | **string** | Font family used in this form field's text. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "hyperlink"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsMultiline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this form field is multiline text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalFontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Original font size used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocumentFormFieldInitials.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldInitials.md index ada79ecb1..403db7264 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldInitials.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldInitials.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the form field. | [optional] -**Name** | **string** | The name of the form field. | [optional] -**Signer** | **string** | The signer of the Form Field. | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**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 "initials"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "initials"] [[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/TemplateResponseDocumentFormFieldRadio.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldRadio.md index abc332ce9..c7ee69059 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldRadio.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldRadio.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the form field. | [optional] -**Name** | **string** | The name of the form field. | [optional] -**Signer** | **string** | The signer of the Form Field. | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**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 "radio"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "radio"] [[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/TemplateResponseDocumentFormFieldSignature.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldSignature.md index 429769c02..b61c5a1e9 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldSignature.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldSignature.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the form field. | [optional] -**Name** | **string** | The name of the form field. | [optional] -**Signer** | **string** | The signer of the Form Field. | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**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 "signature"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "signature"] [[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/TemplateResponseDocumentFormFieldText.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md index cc0c064b2..71150e742 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md @@ -5,21 +5,25 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the form field. | [optional] -**Name** | **string** | The name of the form field. | [optional] -**Signer** | **string** | The signer of the Form Field. | [optional] -**X** | **int** | The horizontal offset in pixels for this form field. | [optional] -**Y** | **int** | The vertical offset in pixels for this form field. | [optional] -**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] -**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 "text"] -**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] -**IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] -**OriginalFontSize** | **int** | Original font size used in this form field's text. | [optional] -**FontFamily** | **string** | Font family used in this form field's text. | [optional] -**ValidationType** | **string** | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | [optional] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsMultiline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this form field is multiline text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalFontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Original font size used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ValidationType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocumentStaticFieldBase.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldBase.md index 4af001900..dbf3ecc29 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldBase.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldBase.md @@ -5,16 +5,7 @@ An array describing static overlay fields. **NOTE:** Only available for certain Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | | -**ApiId** | **string** | A unique id for the static field. | [optional] -**Name** | **string** | The name of the static field. | [optional] -**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] -**X** | **int** | The horizontal offset in pixels for this static field. | [optional] -**Y** | **int** | The vertical offset in pixels for this static field. | [optional] -**Width** | **int** | The width in pixels of this static field. | [optional] -**Height** | **int** | The height in pixels of this static field. | [optional] -**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"]**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseDocumentStaticFieldCheckbox.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldCheckbox.md index cfa9ccb8c..e151b3fa1 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldCheckbox.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldCheckbox.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the static field. | [optional] -**Name** | **string** | The name of the static field. | [optional] -**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] -**X** | **int** | The horizontal offset in pixels for this static field. | [optional] -**Y** | **int** | The vertical offset in pixels for this static field. | [optional] -**Width** | **int** | The width in pixels of this static field. | [optional] -**Height** | **int** | The height in pixels of this static field. | [optional] -**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "checkbox"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). + +* Text Field uses `TemplateResponseDocumentStaticFieldText` +* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` +* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` +* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` +* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` +* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` +* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` +* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"] [[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/TemplateResponseDocumentStaticFieldDateSigned.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDateSigned.md index bae7b8ab4..c8b781a23 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDateSigned.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDateSigned.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the static field. | [optional] -**Name** | **string** | The name of the static field. | [optional] -**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] -**X** | **int** | The horizontal offset in pixels for this static field. | [optional] -**Y** | **int** | The vertical offset in pixels for this static field. | [optional] -**Width** | **int** | The width in pixels of this static field. | [optional] -**Height** | **int** | The height in pixels of this static field. | [optional] -**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "date_signed"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). + +* Text Field uses `TemplateResponseDocumentStaticFieldText` +* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` +* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` +* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` +* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` +* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` +* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` +* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "date_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/dotnet/docs/TemplateResponseDocumentStaticFieldDropdown.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDropdown.md index 7815923f9..ad3b1506b 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDropdown.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDropdown.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the static field. | [optional] -**Name** | **string** | The name of the static field. | [optional] -**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] -**X** | **int** | The horizontal offset in pixels for this static field. | [optional] -**Y** | **int** | The vertical offset in pixels for this static field. | [optional] -**Width** | **int** | The width in pixels of this static field. | [optional] -**Height** | **int** | The height in pixels of this static field. | [optional] -**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "dropdown"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). + +* Text Field uses `TemplateResponseDocumentStaticFieldText` +* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` +* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` +* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` +* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` +* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` +* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` +* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "dropdown"] [[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/TemplateResponseDocumentStaticFieldHyperlink.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldHyperlink.md index 81b419793..b476f0396 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldHyperlink.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldHyperlink.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the static field. | [optional] -**Name** | **string** | The name of the static field. | [optional] -**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] -**X** | **int** | The horizontal offset in pixels for this static field. | [optional] -**Y** | **int** | The vertical offset in pixels for this static field. | [optional] -**Width** | **int** | The width in pixels of this static field. | [optional] -**Height** | **int** | The height in pixels of this static field. | [optional] -**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "hyperlink"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). + +* Text Field uses `TemplateResponseDocumentStaticFieldText` +* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` +* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` +* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` +* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` +* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` +* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` +* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "hyperlink"] [[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/TemplateResponseDocumentStaticFieldInitials.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldInitials.md index a9dae476b..0bfda97f0 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldInitials.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldInitials.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the static field. | [optional] -**Name** | **string** | The name of the static field. | [optional] -**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] -**X** | **int** | The horizontal offset in pixels for this static field. | [optional] -**Y** | **int** | The vertical offset in pixels for this static field. | [optional] -**Width** | **int** | The width in pixels of this static field. | [optional] -**Height** | **int** | The height in pixels of this static field. | [optional] -**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "initials"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). + +* Text Field uses `TemplateResponseDocumentStaticFieldText` +* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` +* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` +* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` +* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` +* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` +* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` +* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "initials"] [[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/TemplateResponseDocumentStaticFieldRadio.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldRadio.md index a13dc60d2..42bceccc1 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldRadio.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldRadio.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the static field. | [optional] -**Name** | **string** | The name of the static field. | [optional] -**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] -**X** | **int** | The horizontal offset in pixels for this static field. | [optional] -**Y** | **int** | The vertical offset in pixels for this static field. | [optional] -**Width** | **int** | The width in pixels of this static field. | [optional] -**Height** | **int** | The height in pixels of this static field. | [optional] -**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "radio"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). + +* Text Field uses `TemplateResponseDocumentStaticFieldText` +* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` +* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` +* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` +* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` +* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` +* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` +* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "radio"] [[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/TemplateResponseDocumentStaticFieldSignature.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldSignature.md index 7d2481d97..2f55c81f8 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldSignature.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldSignature.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the static field. | [optional] -**Name** | **string** | The name of the static field. | [optional] -**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] -**X** | **int** | The horizontal offset in pixels for this static field. | [optional] -**Y** | **int** | The vertical offset in pixels for this static field. | [optional] -**Width** | **int** | The width in pixels of this static field. | [optional] -**Height** | **int** | The height in pixels of this static field. | [optional] -**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "signature"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). + +* Text Field uses `TemplateResponseDocumentStaticFieldText` +* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` +* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` +* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` +* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` +* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` +* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` +* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "signature"] [[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/TemplateResponseDocumentStaticFieldText.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldText.md index b44f3f3e4..13262f4fe 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldText.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldText.md @@ -5,16 +5,25 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | A unique id for the static field. | [optional] -**Name** | **string** | The name of the static field. | [optional] -**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] -**X** | **int** | The horizontal offset in pixels for this static field. | [optional] -**Y** | **int** | The vertical offset in pixels for this static field. | [optional] -**Width** | **int** | The width in pixels of this static field. | [optional] -**Height** | **int** | The height in pixels of this static field. | [optional] -**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] -**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "text"] +**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] +**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). + +* Text Field uses `TemplateResponseDocumentStaticFieldText` +* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` +* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` +* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` +* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` +* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` +* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` +* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"] [[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/TemplateResponseFieldAvgTextLength.md b/sdks/dotnet/docs/TemplateResponseFieldAvgTextLength.md index 7909e61bb..d6700d7d7 100644 --- a/sdks/dotnet/docs/TemplateResponseFieldAvgTextLength.md +++ b/sdks/dotnet/docs/TemplateResponseFieldAvgTextLength.md @@ -5,8 +5,7 @@ Average text length in this field. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NumLines** | **int** | Number of lines. | [optional] -**NumCharsPerLine** | **int** | Number of characters per line. | [optional] +**NumLines** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of lines. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumCharsPerLine** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of characters per line. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateResponseSignerRole.md b/sdks/dotnet/docs/TemplateResponseSignerRole.md index 20be54cd8..81ff41372 100644 --- a/sdks/dotnet/docs/TemplateResponseSignerRole.md +++ b/sdks/dotnet/docs/TemplateResponseSignerRole.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | The name of the Role. | [optional] -**Order** | **int** | If signer order is assigned this is the 0-based index for this role. | [optional] +**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Order** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN If signer order is assigned this is the 0-based index for this role. REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateUpdateFilesRequest.md b/sdks/dotnet/docs/TemplateUpdateFilesRequest.md index 77529c03e..f70a58085 100644 --- a/sdks/dotnet/docs/TemplateUpdateFilesRequest.md +++ b/sdks/dotnet/docs/TemplateUpdateFilesRequest.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | Client id of the app you're using to update this template. | [optional] -**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to use for the template.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**Message** | **string** | The new default template email message. | [optional] -**Subject** | **string** | The new default template email subject. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] +**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to update this template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to use for the template. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new default template email message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new default template email subject. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/TemplateUpdateFilesResponse.md b/sdks/dotnet/docs/TemplateUpdateFilesResponse.md index 5bd4210ef..4a00485bb 100644 --- a/sdks/dotnet/docs/TemplateUpdateFilesResponse.md +++ b/sdks/dotnet/docs/TemplateUpdateFilesResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Template** | [**TemplateUpdateFilesResponseTemplate**](TemplateUpdateFilesResponseTemplate.md) | | [optional] +**Template** | [**TemplateUpdateFilesResponseTemplate**](TemplateUpdateFilesResponseTemplate.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [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/TemplateUpdateFilesResponseTemplate.md b/sdks/dotnet/docs/TemplateUpdateFilesResponseTemplate.md index 34756c32f..208ab9128 100644 --- a/sdks/dotnet/docs/TemplateUpdateFilesResponseTemplate.md +++ b/sdks/dotnet/docs/TemplateUpdateFilesResponseTemplate.md @@ -5,8 +5,7 @@ Contains template id Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | The id of the Template. | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/UnclaimedDraftApi.md b/sdks/dotnet/docs/UnclaimedDraftApi.md index 458e5d313..79db47f9c 100644 --- a/sdks/dotnet/docs/UnclaimedDraftApi.md +++ b/sdks/dotnet/docs/UnclaimedDraftApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.hellosign.com/v3* | [**UnclaimedDraftCreateEmbeddedWithTemplate**](UnclaimedDraftApi.md#unclaimeddraftcreateembeddedwithtemplate) | **POST** /unclaimed_draft/create_embedded_with_template | Create Embedded Unclaimed Draft with Template | | [**UnclaimedDraftEditAndResend**](UnclaimedDraftApi.md#unclaimeddrafteditandresend) | **POST** /unclaimed_draft/edit_and_resend/{signature_request_id} | Edit and Resend Unclaimed Draft | - + # **UnclaimedDraftCreate** > UnclaimedDraftCreateResponse UnclaimedDraftCreate (UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) @@ -19,92 +19,7 @@ Creates a new Draft that can be claimed using the claim URL. The first authentic ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var unclaimedDraftApi = new UnclaimedDraftApi(config); - - var signer1 = new SubUnclaimedDraftSigner( - emailAddress: "jack@example.com", - name: "Jack", - order: 0 - ); - - var signer2 = new SubUnclaimedDraftSigner( - emailAddress: "jill@example.com", - name: "Jill", - order: 1 - ); - - var subSigningOptions = new SubSigningOptions( - draw: true, - type: true, - upload: true, - phone: false, - defaultType: SubSigningOptions.DefaultTypeEnum.Draw - ); - - var subFieldOptions = new SubFieldOptions( - dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY - ); - - var metadata = new Dictionary() - { - ["custom_id"] = 1234, - ["custom_text"] = "NDA #9" - }; - - var files = new List { - new FileStream( - "./example_signature_request.pdf", - FileMode.Open, - FileAccess.Read, - FileShare.Read - ) - }; - - var data = new UnclaimedDraftCreateRequest( - subject: "The NDA we talked about", - type: UnclaimedDraftCreateRequest.TypeEnum.RequestSignature, - message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List(){signer1, signer2}, - ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, - files: files, - metadata: metadata, - signingOptions: subSigningOptions, - fieldOptions: subFieldOptions, - testMode: true - ); - - try - { - var result = unclaimedDraftApi.UnclaimedDraftCreate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__UnclaimedDraftCreate_C#_CODE ``` #### Using the UnclaimedDraftCreateWithHttpInfo variant @@ -155,7 +70,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **UnclaimedDraftCreateEmbedded** > UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded (UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) @@ -165,56 +80,7 @@ Creates a new Draft that can be claimed and used in an embedded iFrame. The firs ### Example ```csharp -using System; -using System.Collections.Generic; -using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var unclaimedDraftApi = new UnclaimedDraftApi(config); - - var files = new List { - new FileStream( - "./example_signature_request.pdf", - FileMode.Open, - FileAccess.Read, - FileShare.Read - ) - }; - - var data = new UnclaimedDraftCreateEmbeddedRequest( - clientId: "ec64a202072370a737edf4a0eb7f4437", - files: files, - requesterEmailAddress: "jack@dropboxsign.com", - testMode: true - ); - - try - { - var result = unclaimedDraftApi.UnclaimedDraftCreateEmbedded(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__UnclaimedDraftCreateEmbedded_C#_CODE ``` #### Using the UnclaimedDraftCreateEmbeddedWithHttpInfo variant @@ -265,7 +131,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **UnclaimedDraftCreateEmbeddedWithTemplate** > UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate (UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) @@ -275,59 +141,7 @@ Creates a new Draft with a previously saved template(s) that can be claimed and ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var unclaimedDraftApi = new UnclaimedDraftApi(config); - - var signer = new SubUnclaimedDraftTemplateSigner( - role: "Client", - name: "George", - emailAddress: "george@example.com" - ); - - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@email.com" - ); - - var data = new UnclaimedDraftCreateEmbeddedWithTemplateRequest( - clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, - requesterEmailAddress: "jack@dropboxsign.com", - signers: new List(){signer}, - ccs: new List(){cc1}, - testMode: true - ); - - try - { - var result = unclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__UnclaimedDraftCreateEmbeddedWithTemplate_C#_CODE ``` #### Using the UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo variant @@ -378,7 +192,7 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - + # **UnclaimedDraftEditAndResend** > UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend (string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) @@ -388,46 +202,7 @@ Creates a new signature request from an embedded request that can be edited prio ### Example ```csharp -using System; -using System.Collections.Generic; -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var unclaimedDraftApi = new UnclaimedDraftApi(config); - - var data = new UnclaimedDraftEditAndResendRequest( - clientId: "1a659d9ad95bccd307ecad78d72192f8", - testMode: true - ); - - var signatureRequestId = "2f9781e1a83jdja934d808c153c2e1d3df6f8f2f"; - - try - { - var result = unclaimedDraftApi.UnclaimedDraftEditAndResend(signatureRequestId, data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} - +REPLACE_ME_WITH_EXAMPLE_FOR__UnclaimedDraftEditAndResend_C#_CODE ``` #### Using the UnclaimedDraftEditAndResendWithHttpInfo variant diff --git a/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedRequest.md b/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedRequest.md index 0da15d2d5..0b61b3d86 100644 --- a/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedRequest.md +++ b/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedRequest.md @@ -4,42 +4,39 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. | -**RequesterEmailAddress** | **string** | The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. | -**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**AllowCcs** | **bool** | This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. | [optional] [default to true] -**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false] -**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false] -**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] -**CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] -**CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] -**EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] -**FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] -**ForceSignerPage** | **bool** | Provide users the ability to review/edit the signers. | [optional] [default to false] -**ForceSubjectMessage** | **bool** | Provide users the ability to review/edit the subject and message. | [optional] [default to false] -**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] -**FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] -**FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] -**HideTextTags** | **bool** | Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. | [optional] [default to false] -**HoldRequest** | **bool** | The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. | [optional] [default to false] -**IsForEmbeddedSigning** | **bool** | The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. | [optional] [default to false] -**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**RequestingRedirectUrl** | **string** | The URL you want signers redirected to after they successfully request a signature. | [optional] -**ShowPreview** | **bool** | This allows the requester to enable the editor/preview experience.

- `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. | [optional] -**ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true] -**Signers** | [**List<SubUnclaimedDraftSigner>**](SubUnclaimedDraftSigner.md) | Add Signers to your Unclaimed Draft Signature Request. | [optional] -**SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] -**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] -**SkipMeNow** | **bool** | Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. | [optional] [default to false] -**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Type** | **string** | The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. | [optional] [default to TypeEnum.RequestSignature] -**UsePreexistingFields** | **bool** | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [optional] [default to false] -**UseTextTags** | **bool** | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [optional] [default to false] -**PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false] -**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.

**NOTE:** This does not correspond to the **expires_at** returned in the response. | [optional] +**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowCcs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. + +**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email addresses that should be CCed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. + +Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. + +For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ForceSignerPage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ForceSubjectMessage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the subject and message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) + +**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. + +* Text Field use `SubFormFieldsPerDocumentText` +* Dropdown Field use `SubFormFieldsPerDocumentDropdown` +* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` +* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` +* Radio Field use `SubFormFieldsPerDocumentRadio` +* Signature Field use `SubFormFieldsPerDocumentSignature` +* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` +* Initials Field use `SubFormFieldsPerDocumentInitials` +* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` +* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HideTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**HoldRequest** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsForEmbeddedSigning** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequestingRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully request a signature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowPreview** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the editor/preview experience. + +- `show_preview=true`: Allows requesters to enable the editor/preview experience. +- `show_preview=false`: Allows requesters to disable the editor/preview experience. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**Signers** | [**List<SubUnclaimedDraftSigner>**](SubUnclaimedDraftSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Unclaimed Draft Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SkipMeNow** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to TypeEnum.RequestSignature]**UsePreexistingFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**UseTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**PopulateAutoFillFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. + +**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. + +**NOTE:** This does not correspond to the **expires_at** returned in the response. REPLACE_ME_WITH_DESCRIPTION_END | [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/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md b/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md index 1dc85f621..7b9aaae45 100644 --- a/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md +++ b/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md @@ -4,36 +4,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. | -**RequesterEmailAddress** | **string** | The email address of the user that should be designated as the requester of this draft. | -**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. | -**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false] -**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false] -**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] -**CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | [optional] -**EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] -**FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] -**Files** | **List<System.IO.Stream>** | Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored.

**files** or **file_urls[]** is required, but not both. | [optional] -**FileUrls** | **List<string>** | Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored.

**files** or **file_urls[]** is required, but not both. | [optional] -**ForceSignerRoles** | **bool** | Provide users the ability to review/edit the template signer roles. | [optional] [default to false] -**ForceSubjectMessage** | **bool** | Provide users the ability to review/edit the template subject and message. | [optional] [default to false] -**HoldRequest** | **bool** | The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. | [optional] [default to false] -**IsForEmbeddedSigning** | **bool** | The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. | [optional] [default to false] -**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**PreviewOnly** | **bool** | This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor).

- `preview_only=true`: Allows requesters to enable the preview only experience. - `preview_only=false`: Allows requesters to disable the preview only experience.

**NOTE:** This parameter overwrites `show_preview=1` (if set). | [optional] [default to false] -**RequestingRedirectUrl** | **string** | The URL you want signers redirected to after they successfully request a signature. | [optional] -**ShowPreview** | **bool** | This allows the requester to enable the editor/preview experience.

- `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. | [optional] [default to false] -**ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true] -**Signers** | [**List<SubUnclaimedDraftTemplateSigner>**](SubUnclaimedDraftTemplateSigner.md) | Add Signers to your Templated-based Signature Request. | [optional] -**SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] -**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] -**SkipMeNow** | **bool** | Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. | [optional] [default to false] -**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] -**PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false] -**AllowCcs** | **bool** | This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. | [optional] [default to false] +**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the user that should be designated as the requester of this draft. REPLACE_ME_WITH_DESCRIPTION_END | **TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. REPLACE_ME_WITH_DESCRIPTION_END | **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. + +**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array defining values and options for custom fields. Required when a custom field exists in the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored. + +**files** or **file_urls[]** is required, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored. + +**files** or **file_urls[]** is required, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ForceSignerRoles** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template signer roles. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ForceSubjectMessage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template subject and message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**HoldRequest** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsForEmbeddedSigning** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PreviewOnly** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). + +- `preview_only=true`: Allows requesters to enable the preview only experience. +- `preview_only=false`: Allows requesters to disable the preview only experience. + +**NOTE:** This parameter overwrites `show_preview=1` (if set). REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**RequestingRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully request a signature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowPreview** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the editor/preview experience. + +- `show_preview=true`: Allows requesters to enable the editor/preview experience. +- `show_preview=false`: Allows requesters to disable the editor/preview experience. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**Signers** | [**List<SubUnclaimedDraftTemplateSigner>**](SubUnclaimedDraftTemplateSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Templated-based Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SkipMeNow** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PopulateAutoFillFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. + +**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowCcs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/UnclaimedDraftCreateRequest.md b/sdks/dotnet/docs/UnclaimedDraftCreateRequest.md index 71ef91fc0..edca26f53 100644 --- a/sdks/dotnet/docs/UnclaimedDraftCreateRequest.md +++ b/sdks/dotnet/docs/UnclaimedDraftCreateRequest.md @@ -4,30 +4,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. | -**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] -**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false] -**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] -**CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] -**ClientId** | **string** | Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. | [optional] -**CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] -**FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] -**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] -**FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] -**FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] -**HideTextTags** | **bool** | Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. | [optional] [default to false] -**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] -**Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] -**ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true] -**Signers** | [**List<SubUnclaimedDraftSigner>**](SubUnclaimedDraftSigner.md) | Add Signers to your Unclaimed Draft Signature Request. | [optional] -**SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] -**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] -**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] -**UsePreexistingFields** | **bool** | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [optional] [default to false] -**UseTextTags** | **bool** | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [optional] [default to false] -**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.

**NOTE:** This does not correspond to the **expires_at** returned in the response. | [optional] +**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. + +This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email addresses that should be CCed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. + +Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. + +For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) + +**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. + +* Text Field use `SubFormFieldsPerDocumentText` +* Dropdown Field use `SubFormFieldsPerDocumentDropdown` +* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` +* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` +* Radio Field use `SubFormFieldsPerDocumentRadio` +* Signature Field use `SubFormFieldsPerDocumentSignature` +* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` +* Initials Field use `SubFormFieldsPerDocumentInitials` +* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` +* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HideTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. + +Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**Signers** | [**List<SubUnclaimedDraftSigner>**](SubUnclaimedDraftSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Unclaimed Draft Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**UsePreexistingFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**UseTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. + +**NOTE:** This does not correspond to the **expires_at** returned in the response. REPLACE_ME_WITH_DESCRIPTION_END | [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/UnclaimedDraftCreateResponse.md b/sdks/dotnet/docs/UnclaimedDraftCreateResponse.md index 32584814d..3155680b2 100644 --- a/sdks/dotnet/docs/UnclaimedDraftCreateResponse.md +++ b/sdks/dotnet/docs/UnclaimedDraftCreateResponse.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UnclaimedDraft** | [**UnclaimedDraftResponse**](UnclaimedDraftResponse.md) | | [optional] -**Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [optional] +**UnclaimedDraft** | [**UnclaimedDraftResponse**](UnclaimedDraftResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [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/UnclaimedDraftEditAndResendRequest.md b/sdks/dotnet/docs/UnclaimedDraftEditAndResendRequest.md index 80051e3ab..29ba7e9fc 100644 --- a/sdks/dotnet/docs/UnclaimedDraftEditAndResendRequest.md +++ b/sdks/dotnet/docs/UnclaimedDraftEditAndResendRequest.md @@ -4,14 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. | -**EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] -**IsForEmbeddedSigning** | **bool** | The request created from this draft will also be signable in embedded mode if set to `true`. | [optional] -**RequesterEmailAddress** | **string** | The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. | [optional] -**RequestingRedirectUrl** | **string** | The URL you want signers redirected to after they successfully request a signature. | [optional] -**ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true] -**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] -**TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] +**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsForEmbeddedSigning** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request created from this draft will also be signable in embedded mode if set to `true`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequestingRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully request a signature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] [[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/UnclaimedDraftResponse.md b/sdks/dotnet/docs/UnclaimedDraftResponse.md index d9fe7da4c..587f0d115 100644 --- a/sdks/dotnet/docs/UnclaimedDraftResponse.md +++ b/sdks/dotnet/docs/UnclaimedDraftResponse.md @@ -5,12 +5,7 @@ A group of documents that a user can take ownership of via the claim URL. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureRequestId** | **string** | The ID of the signature request that is represented by this UnclaimedDraft. | [optional] -**ClaimUrl** | **string** | The URL to be used to claim this UnclaimedDraft. | [optional] -**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] -**RequestingRedirectUrl** | **string** | The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). | [optional] -**ExpiresAt** | **int?** | When the link expires. | [optional] -**TestMode** | **bool** | Whether this is a test draft. Signature requests made from test drafts have no legal value. | [optional] +**SignatureRequestId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature request that is represented by this UnclaimedDraft. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClaimUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL to be used to claim this UnclaimedDraft. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequestingRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the link expires. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test draft. Signature requests made from test drafts have no legal value. REPLACE_ME_WITH_DESCRIPTION_END | [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/WarningResponse.md b/sdks/dotnet/docs/WarningResponse.md index e5466e0cf..16b835467 100644 --- a/sdks/dotnet/docs/WarningResponse.md +++ b/sdks/dotnet/docs/WarningResponse.md @@ -5,8 +5,7 @@ A list of warnings. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**WarningMsg** | **string** | Warning message | -**WarningName** | **string** | Warning name | +**WarningMsg** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Warning message REPLACE_ME_WITH_DESCRIPTION_END | **WarningName** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Warning name REPLACE_ME_WITH_DESCRIPTION_END | [[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/openapi-config.yaml b/sdks/dotnet/openapi-config.yaml index 365e430d2..aa7c258d4 100644 --- a/sdks/dotnet/openapi-config.yaml +++ b/sdks/dotnet/openapi-config.yaml @@ -1,6 +1,6 @@ -generatorName: csharp-netcore +generatorName: csharp additionalProperties: - clientPackage: Dropbox.Sign.Api + clientPackage: Client packageName: Dropbox.Sign packageAuthors: Dropbox Sign API Team packageCompany: Dropbox Sign API Team @@ -12,6 +12,7 @@ additionalProperties: optionalEmitDefaultValues: true targetFramework: net6.0 packageGuid: "{F8C8232D-7020-4603-8E04-18D060AE530B}" + legacyDiscriminatorBehavior: true files: EventCallbackHelper.cs: templateType: SupportingFiles diff --git a/sdks/dotnet/run-build b/sdks/dotnet/run-build index 01f458f5d..dd2625f45 100755 --- a/sdks/dotnet/run-build +++ b/sdks/dotnet/run-build @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# see https://github.com/OpenAPITools/openapi-generator/tree/522a5df24ab2424dcd6e4e28393000045e3ea39e/modules/openapi-generator/src/main/resources/csharp-netcore +# see https://github.com/OpenAPITools/openapi-generator/tree/v7.7.0/modules/openapi-generator/src/main/resources/csharp set -e @@ -9,42 +9,8 @@ WORKING_DIR="/app/dotnet" docker run --rm \ -v "${DIR}/:/local" \ - openapitools/openapi-generator-cli:v6.0.0 generate \ + openapitools/openapi-generator-cli:v7.7.0 generate \ -i "/local/openapi-sdk.yaml" \ -c "/local/openapi-config.yaml" \ -t "/local/templates" \ -o "/local/" - -printf "\nInstalling composer dependencies ...\n" -mkdir -p "${DIR}/vendor" -bash "${DIR}/bin/php" composer install -printf "\n" - -printf "Adding examples to Docs ...\n" -bash "${DIR}/bin/php" ./bin/generate-examples.php - -printf "Replacing strings ...\n" -docker run --rm \ - -v "${DIR}:${WORKING_DIR}" \ - -w "${WORKING_DIR}" \ - perl bash ./bin/replace - -printf "Scanning for prohibited keywords ...\n" -docker run --rm \ - -v "${DIR}:${WORKING_DIR}" \ - -w "${WORKING_DIR}" \ - perl bash ./bin/scan_for - -# avoid docker messing with permissions -if [[ -z "$GITHUB_ACTIONS" ]]; then - chmod 644 "${DIR}/README.md" - find "${DIR}/docs/" -type f -exec chmod 644 {} \; - find "${DIR}/examples/" -type f -exec chmod 644 {} \; - find "${DIR}/test_fixtures/" -type f -exec chmod 644 {} \; - find "${DIR}/src/" -type f -exec chmod 644 {} \; -fi - -printf "Running tests ...\n" -bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/ - -printf "Success!\n" diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs index e9a3e6333..a20533479 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs @@ -43,7 +43,7 @@ public void ApiAppGetTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="DELETE /api_app/{client_id} skipped")] + [Fact(Skip = "DELETE /api_app/{client_id} skipped")] public void ApiAppDeleteTest() { } @@ -83,39 +83,5 @@ public void ApiAppUpdateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - - [Fact] - public void ValuesJsonifiedTest() - { - var oauth = new SubOAuth( - callbackUrl: "https://oauth-callback.test", - scopes: new List() {SubOAuth.ScopesEnum.TemplateAccess} - ); - - var customLogoFile = TestHelper.GetFile("pdf-sample.pdf"); - - var obj = new ApiAppCreateRequest( - name: "My name is", - callbackUrl: "https://awesome.test", - domains: new List() {"domain1.com", "domain2.com"}, - oauth: oauth, - customLogoFile: customLogoFile - ); - - var responseData = TestHelper.GetJsonContents(nameof(ApiAppGetResponse)); - - var responseObj = ApiAppGetResponse.Init(responseData.ToString()); - - var api = MockRestClientHelper.CreateApiExpectContentContains(responseObj, - HttpStatusCode.Accepted, - "application/json", - "[\"domain1.com\",\"domain2.com\"]", - "My name is", - "{\"scopes\":[\"template_access\"],\"callback_url\":\"https://oauth-callback.test\"}" - ); - var response = api.ApiAppCreate(obj); - - TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); - } } } diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Dropbox.Sign.Test.csproj b/sdks/dotnet/src/Dropbox.Sign.Test/Dropbox.Sign.Test.csproj index 67bb7610b..50c2bf70c 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Dropbox.Sign.Test.csproj +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Dropbox.Sign.Test.csproj @@ -12,8 +12,8 @@ - - + + diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs b/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs index 61431969a..5e9ed0285 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs @@ -1,13 +1,19 @@ using System; +using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Net.Http; +using System.Text.RegularExpressions; using Dropbox.Sign.Client; +using Dropbox.Sign.Model; using RestSharp; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Newtonsoft.Json.Serialization; +using RestSharp.Serializers; using RichardSzalay.MockHttp; +using FileIO = System.IO.File; namespace Dropbox.Sign.Test { @@ -76,11 +82,158 @@ private static T CreateApiInternal(MockHttpMessageHandler handler) ConfigureMessageHandler = _ => handler, BaseUrl = new Uri("https://api.hellosign.com") }; - var mockRestClient = new RestClient(options); + var mockRestClient = new RestClient(options, + configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, GlobalConfiguration.Instance)) + ); + Configuration config = new Configuration(); config.Username = "YOUR_API_KEY"; var client = new ApiClient(config.BasePath, mockRestClient); return (T)Activator.CreateInstance(typeof(T), client, client, config); } + + /// + /// Specifies the settings on a object. + /// These settings can be adjusted to accommodate custom serialization rules. + /// + private static JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + } + + // see ApiClient::CustomJsonCodec + internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer + { + private readonly IReadableConfiguration _configuration; + private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + public CustomJsonCodec(IReadableConfiguration configuration) + { + _configuration = configuration; + } + + public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) + { + _serializerSettings = serializerSettings; + _configuration = configuration; + } + + /// + /// Serialize the object into a JSON string. + /// + /// Object to be serialized. + /// A JSON string. + public string Serialize(object obj) + { + if (obj != null && obj is AbstractOpenAPISchema) + { + // the object to be serialized is an oneOf/anyOf schema + return ((AbstractOpenAPISchema)obj).ToJson(); + } + else + { + return JsonConvert.SerializeObject(obj, _serializerSettings); + } + } + + public string Serialize(Parameter bodyParameter) => Serialize(bodyParameter.Value); + + public T Deserialize(RestResponse response) + { + var result = (T)Deserialize(response, typeof(T)); + return result; + } + + /// + /// Deserialize the JSON string into a proper object. + /// + /// The HTTP response. + /// Object type. + /// Object representation of the JSON string. + internal object Deserialize(RestResponse response, Type type) + { + if (type == typeof(byte[])) // return byte array + { + return response.RawBytes; + } + + // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) + if (type == typeof(Stream)) + { + var bytes = response.RawBytes; + if (response.Headers != null) + { + var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath) + ? Path.GetTempPath() + : _configuration.TempFolderPath; + var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); + foreach (var header in response.Headers) + { + var match = regex.Match(header.ToString()); + if (match.Success) + { + string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); + FileIO.WriteAllBytes(fileName, bytes); + return new FileStream(fileName, FileMode.Open); + } + } + } + var stream = new MemoryStream(bytes); + return stream; + } + + if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object + { + return DateTime.Parse(response.Content, null, DateTimeStyles.RoundtripKind); + } + + if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type + { + return Convert.ChangeType(response.Content, type); + } + + // at this point, it must be a model (json) + try + { + return JsonConvert.DeserializeObject(response.Content, type, _serializerSettings); + } + catch (Exception e) + { + throw new ApiException(500, e.Message); + } + } + + public ISerializer Serializer => this; + public IDeserializer Deserializer => this; + + public string[] AcceptedContentTypes => ContentType.JsonAccept; + + public SupportsContentType SupportsContentType => contentType => + contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || + contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); + + public ContentType ContentType { get; set; } = ContentType.Json; + + public DataFormat DataFormat => DataFormat.Json; } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs index 0b1d311ce..35d8c46f6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs @@ -411,6 +411,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -503,6 +504,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -588,6 +590,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); } + localVarRequestOptions.Operation = "AccountApi.AccountGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -649,7 +652,6 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -676,6 +678,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); } + localVarRequestOptions.Operation = "AccountApi.AccountGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -766,6 +769,7 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -858,6 +862,7 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -948,6 +953,7 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1040,6 +1046,7 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs index 4213670e7..8e5245e0f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs @@ -463,6 +463,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -555,6 +556,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -636,6 +638,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.Operation = "ApiAppApi.ApiAppDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -700,7 +703,6 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -720,6 +722,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.Operation = "ApiAppApi.ApiAppDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -802,6 +805,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.Operation = "ApiAppApi.ApiAppGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -867,7 +871,6 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -887,6 +890,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.Operation = "ApiAppApi.ApiAppGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -972,6 +976,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "ApiAppApi.ApiAppList"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1033,7 +1038,6 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1060,6 +1064,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "ApiAppApi.ApiAppList"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1159,6 +1164,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1260,6 +1266,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs index f550e80bb..fc47749b5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs @@ -327,6 +327,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -396,7 +397,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -424,6 +424,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -509,6 +510,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobList"; localVarRequestOptions.OperationIndex = operationIndex; @@ -570,7 +572,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -597,6 +598,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobList"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs index da3f9e0a6..244202a30 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs @@ -324,6 +324,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; @@ -425,6 +426,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; @@ -507,6 +509,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW } localVarRequestOptions.PathParameters.Add("signature_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId)); // path parameter + localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedSignUrl"; localVarRequestOptions.OperationIndex = operationIndex; @@ -572,7 +575,6 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -592,6 +594,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW } localVarRequestOptions.PathParameters.Add("signature_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId)); // path parameter + localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedSignUrl"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs index a391c6257..d1a274cd2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs @@ -575,6 +575,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -661,6 +662,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -755,6 +757,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city)); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineAreaCodeGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -820,7 +823,6 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -852,6 +854,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city)); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineAreaCodeGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -936,6 +939,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1022,6 +1026,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1105,6 +1110,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1190,6 +1196,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1266,6 +1273,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s } localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number)); + localVarRequestOptions.Operation = "FaxLineApi.FaxLineGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1325,7 +1333,6 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1345,6 +1352,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s } localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number)); + localVarRequestOptions.Operation = "FaxLineApi.FaxLineGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1436,6 +1444,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "show_team_lines", showTeamLines)); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineList"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1495,7 +1504,6 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1530,6 +1538,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "show_team_lines", showTeamLines)); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineList"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1614,6 +1623,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1700,6 +1710,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs index 78d47c5df..2f651b2b8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs @@ -311,6 +311,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "OAuthApi.OauthTokenGenerate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -391,6 +392,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "OAuthApi.OauthTokenGenerate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -469,6 +471,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "OAuthApi.OauthTokenRefresh"; localVarRequestOptions.OperationIndex = operationIndex; @@ -549,6 +552,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "OAuthApi.OauthTokenRefresh"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs index 8f8a81b9c..72b26187a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs @@ -263,6 +263,7 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -349,6 +350,7 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs index 1ccec7fcd..0e84330f1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs @@ -1011,6 +1011,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1097,6 +1098,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1181,6 +1183,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1273,6 +1276,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1354,6 +1358,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1418,7 +1423,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1438,6 +1442,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1528,6 +1533,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1620,6 +1626,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1710,6 +1717,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1802,6 +1810,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1892,6 +1901,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFiles"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1959,7 +1969,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1985,6 +1994,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFiles"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2067,6 +2077,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2132,7 +2143,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -2152,6 +2162,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2240,6 +2251,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsFileUrl"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2307,7 +2319,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -2331,6 +2342,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsFileUrl"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2413,6 +2425,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2478,7 +2491,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -2498,6 +2510,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2595,6 +2608,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestList"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2660,7 +2674,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -2695,6 +2708,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestList"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2777,6 +2791,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2842,7 +2857,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -2862,6 +2876,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2961,6 +2976,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3062,6 +3078,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3143,6 +3160,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3201,7 +3219,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -3221,6 +3238,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3305,6 +3323,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3397,6 +3416,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3487,6 +3507,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3579,6 +3600,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3678,6 +3700,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3779,6 +3802,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs index 13b22c003..b309fb316 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs @@ -713,6 +713,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } + localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -811,6 +812,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } + localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -901,6 +903,7 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -993,6 +996,7 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1065,6 +1069,7 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1121,7 +1126,6 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1140,6 +1144,7 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1213,6 +1218,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1270,7 +1276,6 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1289,6 +1294,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1368,6 +1374,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } + localVarRequestOptions.Operation = "TeamApi.TeamInfo"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1427,7 +1434,6 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1450,6 +1456,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } + localVarRequestOptions.Operation = "TeamApi.TeamInfo"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1529,6 +1536,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); } + localVarRequestOptions.Operation = "TeamApi.TeamInvites"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1588,7 +1596,6 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1611,6 +1618,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); } + localVarRequestOptions.Operation = "TeamApi.TeamInvites"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1705,6 +1713,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "TeamApi.TeamMembers"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1774,7 +1783,6 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1802,6 +1810,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "TeamApi.TeamMembers"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1892,6 +1901,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1984,6 +1994,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2078,6 +2089,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "TeamApi.TeamSubTeams"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2147,7 +2159,6 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -2175,6 +2186,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } + localVarRequestOptions.Operation = "TeamApi.TeamSubTeams"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2265,6 +2277,7 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2357,6 +2370,7 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs index 103e31143..6211320d3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs @@ -784,6 +784,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -885,6 +886,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -975,6 +977,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1067,6 +1070,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1157,6 +1161,7 @@ public Dropbox.Sign.Client.ApiResponse Temp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1249,6 +1254,7 @@ public Dropbox.Sign.Client.ApiResponse Temp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1330,6 +1336,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1394,7 +1401,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1414,6 +1420,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1504,6 +1511,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); } + localVarRequestOptions.Operation = "TemplateApi.TemplateFiles"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1571,7 +1579,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1597,6 +1604,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); } + localVarRequestOptions.Operation = "TemplateApi.TemplateFiles"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1679,6 +1687,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1744,7 +1753,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1764,6 +1772,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1852,6 +1861,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); } + localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsFileUrl"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1919,7 +1929,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -1943,6 +1952,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); } + localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsFileUrl"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2025,6 +2035,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2090,7 +2101,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -2110,6 +2120,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2207,6 +2218,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); } + localVarRequestOptions.Operation = "TemplateApi.TemplateList"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2272,7 +2284,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header @@ -2307,6 +2318,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); } + localVarRequestOptions.Operation = "TemplateApi.TemplateList"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2406,6 +2418,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2507,6 +2520,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2606,6 +2620,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2707,6 +2722,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs index c42910389..9db3b6a4c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs @@ -411,6 +411,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -503,6 +504,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -593,6 +595,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -685,6 +688,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -775,6 +779,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -867,6 +872,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -966,6 +972,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1067,6 +1074,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs index 294ed4229..a1e43958a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs @@ -23,13 +23,14 @@ using System.Threading; using System.Text.RegularExpressions; using System.Threading.Tasks; -using System.Web; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using RestSharp; using RestSharp.Serializers; using RestSharpMethod = RestSharp.Method; +using FileIO = System.IO.File; using Polly; +using Dropbox.Sign.Model; namespace Dropbox.Sign.Client { @@ -39,7 +40,6 @@ namespace Dropbox.Sign.Client internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer { private readonly IReadableConfiguration _configuration; - private static readonly string _contentType = "application/json"; private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings { // OpenAPI generated types generally hide default constructors. @@ -71,10 +71,10 @@ public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfi /// A JSON string. public string Serialize(object obj) { - if (obj != null && obj is Dropbox.Sign.Model.AbstractOpenAPISchema) + if (obj != null && obj is AbstractOpenAPISchema) { // the object to be serialized is an oneOf/anyOf schema - return ((Dropbox.Sign.Model.AbstractOpenAPISchema)obj).ToJson(); + return ((AbstractOpenAPISchema)obj).ToJson(); } else { @@ -119,7 +119,7 @@ internal object Deserialize(RestResponse response, Type type) if (match.Success) { string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); - File.WriteAllBytes(fileName, bytes); + FileIO.WriteAllBytes(fileName, bytes); return new FileStream(fileName, FileMode.Open); } } @@ -130,7 +130,7 @@ internal object Deserialize(RestResponse response, Type type) if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object { - return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind); + return DateTime.Parse(response.Content, null, DateTimeStyles.RoundtripKind); } if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type @@ -152,17 +152,13 @@ internal object Deserialize(RestResponse response, Type type) public ISerializer Serializer => this; public IDeserializer Deserializer => this; - public string[] AcceptedContentTypes => RestSharp.Serializers.ContentType.JsonAccept; + public string[] AcceptedContentTypes => ContentType.JsonAccept; public SupportsContentType SupportsContentType => contentType => - contentType.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || - contentType.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); + contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || + contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); - public string ContentType - { - get { return _contentType; } - set { throw new InvalidOperationException("Not allowed to set content type."); } - } + public ContentType ContentType { get; set; } = ContentType.Json; public DataFormat DataFormat => DataFormat.Json; } @@ -211,7 +207,7 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// public ApiClient() { - _baseUrl = Dropbox.Sign.Client.GlobalConfiguration.Instance.BasePath; + _baseUrl = GlobalConfiguration.Instance.BasePath; } /// @@ -283,14 +279,14 @@ private RestSharpMethod Method(HttpMethod method) /// /// Provides all logic for constructing a new RestSharp . - /// At this point, all information for querying the service is known. Here, it is simply - /// mapped into the RestSharp request. + /// At this point, all information for querying the service is known. + /// Here, it is simply mapped into the RestSharp request. /// /// The http verb. /// The target path (or resource). /// The additional request options. - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. + /// A per-request configuration object. + /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. /// [private] A new RestRequest instance. /// private RestRequest NewRequest( @@ -398,7 +394,7 @@ private RestRequest NewRequest( var bytes = ClientUtils.ReadAsBytes(file); var fileStream = file as FileStream; if (fileStream != null) - request.AddFile(fileParam.Key, bytes, System.IO.Path.GetFileName(fileStream.Name)); + request.AddFile(fileParam.Key, bytes, Path.GetFileName(fileStream.Name)); else request.AddFile(fileParam.Key, bytes, "no_file_name_provided"); } @@ -408,6 +404,13 @@ private RestRequest NewRequest( return request; } + /// + /// Transforms a RestResponse instance into a new ApiResponse instance. + /// At this point, we have a concrete http response from the service. + /// Here, it is simply mapped into the [public] ApiResponse object. + /// + /// The RestSharp response object + /// A new ApiResponse instance. private ApiResponse ToApiResponse(RestResponse response) { T result = response.Data; @@ -452,199 +455,183 @@ private ApiResponse ToApiResponse(RestResponse response) return transformed; } - private ApiResponse Exec(RestRequest req, RequestOptions options, IReadableConfiguration configuration) + /// + /// Executes the HTTP request for the current service. + /// Based on functions received it can be async or sync. + /// + /// Local function that executes http request and returns http response. + /// Local function to specify options for the service. + /// The RestSharp request object + /// The RestSharp options object + /// A per-request configuration object. + /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. + /// A new ApiResponse instance. + private ApiResponse ExecClient(Func> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) { var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; - var cookies = new CookieContainer(); - - if (options.Cookies != null && options.Cookies.Count > 0) - { - foreach (var cookie in options.Cookies) - { - cookies.Add(new Cookie(cookie.Name, cookie.Value)); - } - } - var clientOptions = new RestClientOptions(baseUrl) { ClientCertificates = configuration.ClientCertificates, - CookieContainer = cookies, MaxTimeout = configuration.Timeout, Proxy = configuration.Proxy, - UserAgent = configuration.UserAgent + UserAgent = configuration.UserAgent, + UseDefaultCredentials = configuration.UseDefaultCredentials, + RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback }; - + setOptions(clientOptions); + RestClient client = _restClient; if (client == null) { - client = new RestClient(clientOptions); + client = new RestClient(clientOptions, + configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)) + ); } - client.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); + using (client) + { + InterceptRequest(request); - InterceptRequest(req); + RestResponse response = getResponse(client); - RestResponse response; - if (RetryConfiguration.RetryPolicy != null) - { - var policy = RetryConfiguration.RetryPolicy; - var policyResult = policy.ExecuteAndCapture(() => client.Execute(req)); - response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse + // if the response type is oneOf/anyOf, call FromJSON to deserialize the data + if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { - Request = req, - ErrorException = policyResult.FinalException - }; - } - else - { - response = client.Execute(req); - } - - // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(Dropbox.Sign.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) - { - try + try + { + response.Data = (T)typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + } + catch (Exception ex) + { + throw ex.InnerException != null ? ex.InnerException : ex; + } + } + else if (typeof(T).Name == "Stream") // for binary response { - response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + response.Data = (T)(object)new MemoryStream(response.RawBytes); } - catch (Exception ex) + else if (typeof(T).Name == "Byte[]") // for byte response { - throw ex.InnerException != null ? ex.InnerException : ex; + response.Data = (T)(object)response.RawBytes; + } + else if (typeof(T).Name == "String") // for string response + { + response.Data = (T)(object)response.Content; } - } - else if (typeof(T).Name == "Stream") // for binary response - { - response.Data = (T)(object)new MemoryStream(response.RawBytes); - } - else if (typeof(T).Name == "Byte[]") // for byte response - { - response.Data = (T)(object)response.RawBytes; - } - else if (typeof(T).Name == "String") // for string response - { - response.Data = (T)(object)response.Content; - } - InterceptResponse(req, response); + InterceptResponse(request, response); - var result = ToApiResponse(response); - if (response.ErrorMessage != null) - { - result.ErrorText = response.ErrorMessage; - } + var result = ToApiResponse(response); + if (response.ErrorMessage != null) + { + result.ErrorText = response.ErrorMessage; + } - if (response.Cookies != null && response.Cookies.Count > 0) - { - if (result.Cookies == null) result.Cookies = new List(); - foreach (var restResponseCookie in response.Cookies.Cast()) + if (response.Cookies != null && response.Cookies.Count > 0) { - var cookie = new Cookie( - restResponseCookie.Name, - restResponseCookie.Value, - restResponseCookie.Path, - restResponseCookie.Domain - ) + if (result.Cookies == null) result.Cookies = new List(); + foreach (var restResponseCookie in response.Cookies.Cast()) { - Comment = restResponseCookie.Comment, - CommentUri = restResponseCookie.CommentUri, - Discard = restResponseCookie.Discard, - Expired = restResponseCookie.Expired, - Expires = restResponseCookie.Expires, - HttpOnly = restResponseCookie.HttpOnly, - Port = restResponseCookie.Port, - Secure = restResponseCookie.Secure, - Version = restResponseCookie.Version - }; - - result.Cookies.Add(cookie); + var cookie = new Cookie( + restResponseCookie.Name, + restResponseCookie.Value, + restResponseCookie.Path, + restResponseCookie.Domain + ) + { + Comment = restResponseCookie.Comment, + CommentUri = restResponseCookie.CommentUri, + Discard = restResponseCookie.Discard, + Expired = restResponseCookie.Expired, + Expires = restResponseCookie.Expires, + HttpOnly = restResponseCookie.HttpOnly, + Port = restResponseCookie.Port, + Secure = restResponseCookie.Secure, + Version = restResponseCookie.Version + }; + + result.Cookies.Add(cookie); + } } + return result; } - return result; } - private async Task> ExecAsync(RestRequest req, RequestOptions options, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private RestResponse DeserializeRestResponseFromPolicy(RestClient client, RestRequest request, PolicyResult policyResult) { - var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; - - var clientOptions = new RestClientOptions(baseUrl) + if (policyResult.Outcome == OutcomeType.Successful) { - ClientCertificates = configuration.ClientCertificates, - MaxTimeout = configuration.Timeout, - Proxy = configuration.Proxy, - UserAgent = configuration.UserAgent - }; - - RestClient client = new RestClient(clientOptions) - .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); - - InterceptRequest(req); - - RestResponse response; - if (RetryConfiguration.AsyncRetryPolicy != null) + return client.Deserialize(policyResult.Result); + } + else { - var policy = RetryConfiguration.AsyncRetryPolicy; - var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(req, ct), cancellationToken).ConfigureAwait(false); - response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse + return new RestResponse(request) { - Request = req, ErrorException = policyResult.FinalException }; } - else + } + + private ApiResponse Exec(RestRequest request, RequestOptions options, IReadableConfiguration configuration) + { + Action setOptions = (clientOptions) => { - response = await client.ExecuteAsync(req, cancellationToken).ConfigureAwait(false); - } + var cookies = new CookieContainer(); - // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(Dropbox.Sign.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) - { - response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); - } - else if (typeof(T).Name == "Stream") // for binary response - { - response.Data = (T)(object)new MemoryStream(response.RawBytes); - } - else if (typeof(T).Name == "Byte[]") // for byte response + if (options.Cookies != null && options.Cookies.Count > 0) + { + foreach (var cookie in options.Cookies) + { + cookies.Add(new Cookie(cookie.Name, cookie.Value)); + } + } + clientOptions.CookieContainer = cookies; + }; + + Func> getResponse = (client) => { - response.Data = (T)(object)response.RawBytes; - } + if (RetryConfiguration.RetryPolicy != null) + { + var policy = RetryConfiguration.RetryPolicy; + var policyResult = policy.ExecuteAndCapture(() => client.Execute(request)); + return DeserializeRestResponseFromPolicy(client, request, policyResult); + } + else + { + return client.Execute(request); + } + }; - InterceptResponse(req, response); + return ExecClient(getResponse, setOptions, request, options, configuration); + } - var result = ToApiResponse(response); - if (response.ErrorMessage != null) + private Task> ExecAsync(RestRequest request, RequestOptions options, IReadableConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken)) + { + Action setOptions = (clientOptions) => { - result.ErrorText = response.ErrorMessage; - } + //no extra options + }; - if (response.Cookies != null && response.Cookies.Count > 0) + Func> getResponse = (client) => { - if (result.Cookies == null) result.Cookies = new List(); - foreach (var restResponseCookie in response.Cookies.Cast()) + Func>> action = async () => { - var cookie = new Cookie( - restResponseCookie.Name, - restResponseCookie.Value, - restResponseCookie.Path, - restResponseCookie.Domain - ) + if (RetryConfiguration.AsyncRetryPolicy != null) { - Comment = restResponseCookie.Comment, - CommentUri = restResponseCookie.CommentUri, - Discard = restResponseCookie.Discard, - Expired = restResponseCookie.Expired, - Expires = restResponseCookie.Expires, - HttpOnly = restResponseCookie.HttpOnly, - Port = restResponseCookie.Port, - Secure = restResponseCookie.Secure, - Version = restResponseCookie.Version - }; - - result.Cookies.Add(cookie); - } - } - return result; + var policy = RetryConfiguration.AsyncRetryPolicy; + var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); + return DeserializeRestResponseFromPolicy(client, request, policyResult); + } + else + { + return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false); + } + }; + return action().Result; + }; + + return Task.FromResult>(ExecClient(getResponse, setOptions, request, options, configuration)); } #region IAsynchronousClient @@ -657,7 +644,7 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), options, config, cancellationToken); @@ -672,7 +659,7 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), options, config, cancellationToken); @@ -687,7 +674,7 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), options, config, cancellationToken); @@ -702,7 +689,7 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), options, config, cancellationToken); @@ -717,7 +704,7 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), options, config, cancellationToken); @@ -732,7 +719,7 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), options, config, cancellationToken); @@ -747,7 +734,7 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), options, config, cancellationToken); diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs index e195cc258..c603a93ae 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs @@ -11,13 +11,13 @@ using System; using System.Collections; +using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; +using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using System.Collections.Generic; -using System.Runtime.Serialization; using Newtonsoft.Json; using Dropbox.Sign.Model; @@ -105,8 +105,12 @@ public static string ParameterToString(object obj, IReadableConfiguration config return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is bool boolean) return boolean ? "true" : "false"; - if (obj is ICollection collection) - return string.Join(",", collection.Cast()); + if (obj is ICollection collection) { + List entries = new List(); + foreach (var entry in collection) + entries.Add(ParameterToString(entry, configuration)); + return string.Join(",", entries); + } if (obj is Enum && HasEnumMemberAttrValue(obj)) return GetEnumMemberAttrValue(obj); @@ -293,7 +297,7 @@ public static void SetFormData(RequestOptions requestOptions, List item.Value.ToString() ); - continue; + continue; } if (item.Value is Enum) diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs index 26f71af03..4db83046b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs @@ -19,6 +19,7 @@ using System.Security.Cryptography.X509Certificates; using System.Text; using System.Net.Http; +using System.Net.Security; using Newtonsoft.Json; using Dropbox.Sign.Model; @@ -78,6 +79,8 @@ public class Configuration : IReadableConfiguration /// private string _basePath; + private bool _useDefaultCredentials = false; + /// /// Gets or sets the API key based on the authentication name. /// This is the key and value comprising the "secret" for accessing an API. @@ -207,11 +210,21 @@ public Configuration( /// /// Gets or sets the base path for API access. /// - public virtual string BasePath { + public virtual string BasePath + { get { return _basePath; } set { _basePath = value; } } + /// + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. + /// + public virtual bool UseDefaultCredentials + { + get { return _useDefaultCredentials; } + set { _useDefaultCredentials = value; } + } + /// /// Gets or sets the default header. /// @@ -476,7 +489,7 @@ public string GetOperationServerUrl(string operation, int index) /// The operation server URL. public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables) { - if (OperationServers.TryGetValue(operation, out var operationServer)) + if (operation != null && OperationServers.TryGetValue(operation, out var operationServer)) { return GetServerUrl(operationServer, index, inputVariables); } @@ -535,6 +548,11 @@ private string GetServerUrl(IList> servers, return url; } + + /// + /// Gets and Sets the RemoteCertificateValidationCallback + /// + public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; } #endregion Properties @@ -611,6 +629,8 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, + UseDefaultCredentials = second.UseDefaultCredentials, + RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? first.RemoteCertificateValidationCallback, }; return config; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs index 09535915b..a4e493e1c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs @@ -12,6 +12,7 @@ using System; using System.Collections.Generic; using System.Net; +using System.Net.Security; using System.Security.Cryptography.X509Certificates; namespace Dropbox.Sign.Client @@ -100,6 +101,11 @@ public interface IReadableConfiguration /// Password. string Password { get; } + /// + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. + /// + bool UseDefaultCredentials { get; } + /// /// Get the servers associated with the operation. /// @@ -126,5 +132,11 @@ public interface IReadableConfiguration /// /// X509 Certificate collection. X509CertificateCollection ClientCertificates { get; } + + /// + /// Callback function for handling the validation of remote certificates. Useful for certificate pinning and + /// overriding certificate errors in the scope of a request. + /// + RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/RequestOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Client/RequestOptions.cs index f1839c959..54db7aae6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/RequestOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/RequestOptions.cs @@ -34,7 +34,7 @@ public class RequestOptions public Multimap QueryParameters { get; set; } /// - /// Header parameters to be applied to to the request. + /// Header parameters to be applied to the request. /// Keys may have 1 or more values associated. /// public Multimap HeaderParameters { get; set; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj index 53f6e328f..9e83439b7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj +++ b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj @@ -21,11 +21,14 @@ - - - - - + + + + + + + + diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs index 98576e17c..95b17897d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountCreateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountCreateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -81,6 +81,7 @@ public static AccountCreateRequest Init(string jsonData) /// The email address which will be associated with the new Account. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) @@ -88,6 +89,7 @@ public static AccountCreateRequest Init(string jsonData) /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) @@ -95,6 +97,7 @@ public static AccountCreateRequest Init(string jsonData) /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) [DataMember(Name = "client_secret", EmitDefaultValue = true)] public string ClientSecret { get; set; } + /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. @@ -102,6 +105,7 @@ public static AccountCreateRequest Init(string jsonData) /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } + /// /// Returns the string presentation of the object @@ -200,12 +204,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs index 2aa6b3f03..a915bb715 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountCreateResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountCreateResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -73,12 +73,14 @@ public static AccountCreateResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } + /// /// Gets or Sets OauthData /// [DataMember(Name = "oauth_data", EmitDefaultValue = true)] public OAuthTokenResponse OauthData { get; set; } + /// /// A list of warnings. @@ -86,6 +88,7 @@ public static AccountCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -175,12 +178,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs index 30cf617b8..069b0cce7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountGetResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static AccountGetResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static AccountGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs index 06f1f74d2..45950883d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -90,6 +90,7 @@ public static AccountResponse Init(string jsonData) /// The ID of the Account [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The email address associated with the Account. @@ -97,6 +98,7 @@ public static AccountResponse Init(string jsonData) /// The email address associated with the Account. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns `true` if the user has been locked out of their account by a team admin. @@ -104,6 +106,7 @@ public static AccountResponse Init(string jsonData) /// Returns `true` if the user has been locked out of their account by a team admin. [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool IsLocked { get; set; } + /// /// Returns `true` if the user has a paid Dropbox Sign account. @@ -111,6 +114,7 @@ public static AccountResponse Init(string jsonData) /// Returns `true` if the user has a paid Dropbox Sign account. [DataMember(Name = "is_paid_hs", EmitDefaultValue = true)] public bool IsPaidHs { get; set; } + /// /// Returns `true` if the user has a paid HelloFax account. @@ -118,12 +122,14 @@ public static AccountResponse Init(string jsonData) /// Returns `true` if the user has a paid HelloFax account. [DataMember(Name = "is_paid_hf", EmitDefaultValue = true)] public bool IsPaidHf { get; set; } + /// /// Gets or Sets Quotas /// [DataMember(Name = "quotas", EmitDefaultValue = true)] public AccountResponseQuotas Quotas { get; set; } + /// /// The URL that Dropbox Sign events will `POST` to. @@ -131,6 +137,7 @@ public static AccountResponse Init(string jsonData) /// The URL that Dropbox Sign events will `POST` to. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// The membership role for the team. @@ -138,6 +145,7 @@ public static AccountResponse Init(string jsonData) /// The membership role for the team. [DataMember(Name = "role_code", EmitDefaultValue = true)] public string RoleCode { get; set; } + /// /// The id of the team account belongs to. @@ -145,6 +153,7 @@ public static AccountResponse Init(string jsonData) /// The id of the team account belongs to. [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. @@ -152,12 +161,14 @@ public static AccountResponse Init(string jsonData) /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } + /// /// Gets or Sets Usage /// [DataMember(Name = "usage", EmitDefaultValue = true)] public AccountResponseUsage Usage { get; set; } + /// /// Returns the string presentation of the object @@ -314,12 +325,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs index 59fa579a7..56ad16441 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountResponseQuotas")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountResponseQuotas : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountResponseQuotas : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,7 @@ public static AccountResponseQuotas Init(string jsonData) /// API signature requests remaining. [DataMember(Name = "api_signature_requests_left", EmitDefaultValue = true)] public int? ApiSignatureRequestsLeft { get; set; } + /// /// Signature requests remaining. @@ -87,6 +88,7 @@ public static AccountResponseQuotas Init(string jsonData) /// Signature requests remaining. [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int? DocumentsLeft { get; set; } + /// /// Total API templates allowed. @@ -94,6 +96,7 @@ public static AccountResponseQuotas Init(string jsonData) /// Total API templates allowed. [DataMember(Name = "templates_total", EmitDefaultValue = true)] public int? TemplatesTotal { get; set; } + /// /// API templates remaining. @@ -101,6 +104,7 @@ public static AccountResponseQuotas Init(string jsonData) /// API templates remaining. [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int? TemplatesLeft { get; set; } + /// /// SMS verifications remaining. @@ -108,6 +112,7 @@ public static AccountResponseQuotas Init(string jsonData) /// SMS verifications remaining. [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int? SmsVerificationsLeft { get; set; } + /// /// Number of fax pages left @@ -115,6 +120,7 @@ public static AccountResponseQuotas Init(string jsonData) /// Number of fax pages left [DataMember(Name = "num_fax_pages_left", EmitDefaultValue = true)] public int? NumFaxPagesLeft { get; set; } + /// /// Returns the string presentation of the object @@ -233,12 +239,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs index d71b98c73..7da9c698a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountResponseUsage")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountResponseUsage : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountResponseUsage : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -70,6 +70,7 @@ public static AccountResponseUsage Init(string jsonData) /// Number of fax pages sent [DataMember(Name = "fax_pages_sent", EmitDefaultValue = true)] public int? FaxPagesSent { get; set; } + /// /// Returns the string presentation of the object @@ -138,12 +139,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs index 390bc38c5..8d5e501f7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountUpdateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountUpdateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountUpdateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,6 +74,7 @@ public static AccountUpdateRequest Init(string jsonData) /// The ID of the Account [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The URL that Dropbox Sign should POST events to. @@ -81,6 +82,7 @@ public static AccountUpdateRequest Init(string jsonData) /// The URL that Dropbox Sign should POST events to. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. @@ -88,6 +90,7 @@ public static AccountUpdateRequest Init(string jsonData) /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } + /// /// Returns the string presentation of the object @@ -176,12 +179,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs index 0870f262d..ffa2d3fba 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountVerifyRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountVerifyRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountVerifyRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -75,6 +75,7 @@ public static AccountVerifyRequest Init(string jsonData) /// Email address to run the verification for. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -143,12 +144,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs index 26479ca29..53cd768c8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountVerifyResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountVerifyResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountVerifyResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static AccountVerifyResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountVerifyResponseAccount Account { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static AccountVerifyResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs index 4fc53b896..5b38e8ce5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountVerifyResponseAccount")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountVerifyResponseAccount : IOpenApiTyped, IEquatable, IValidatableObject + public partial class AccountVerifyResponseAccount : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -70,6 +70,7 @@ public static AccountVerifyResponseAccount Init(string jsonData) /// The email address associated with the Account. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -138,12 +139,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs index 0d3cf9bc8..8e6d4818e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppCreateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ApiAppCreateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -92,6 +92,7 @@ public static ApiAppCreateRequest Init(string jsonData) /// The domain names the ApiApp will be associated with. [DataMember(Name = "domains", IsRequired = true, EmitDefaultValue = true)] public List Domains { get; set; } + /// /// The name you want to assign to the ApiApp. @@ -99,6 +100,7 @@ public static ApiAppCreateRequest Init(string jsonData) /// The name you want to assign to the ApiApp. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The URL at which the ApiApp should receive event callbacks. @@ -106,6 +108,7 @@ public static ApiAppCreateRequest Init(string jsonData) /// The URL at which the ApiApp should receive event callbacks. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) @@ -113,24 +116,28 @@ public static ApiAppCreateRequest Init(string jsonData) /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) [DataMember(Name = "custom_logo_file", EmitDefaultValue = true)] public System.IO.Stream CustomLogoFile { get; set; } + /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public SubOAuth Oauth { get; set; } + /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public SubOptions Options { get; set; } + /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public SubWhiteLabelingOptions WhiteLabelingOptions { get; set; } + /// /// Returns the string presentation of the object @@ -260,12 +267,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs index 412c8427a..8489b05b2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppGetResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ApiAppGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static ApiAppGetResponse Init(string jsonData) /// [DataMember(Name = "api_app", EmitDefaultValue = true)] public ApiAppResponse ApiApp { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static ApiAppGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs index ca8ad13b7..10fce699c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppListResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppListResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ApiAppListResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,12 +74,14 @@ public static ApiAppListResponse Init(string jsonData) /// Contains information about API Apps. [DataMember(Name = "api_apps", EmitDefaultValue = true)] public List ApiApps { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// A list of warnings. @@ -87,6 +89,7 @@ public static ApiAppListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -177,12 +180,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs index a5cd961a3..a27044b2f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ApiAppResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -88,6 +88,7 @@ public static ApiAppResponse Init(string jsonData) /// The app's callback URL (for events) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// The app's client id @@ -95,6 +96,7 @@ public static ApiAppResponse Init(string jsonData) /// The app's client id [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// The time that the app was created @@ -102,6 +104,7 @@ public static ApiAppResponse Init(string jsonData) /// The time that the app was created [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// The domain name(s) associated with the app @@ -109,6 +112,7 @@ public static ApiAppResponse Init(string jsonData) /// The domain name(s) associated with the app [DataMember(Name = "domains", EmitDefaultValue = true)] public List Domains { get; set; } + /// /// The name of the app @@ -116,6 +120,7 @@ public static ApiAppResponse Init(string jsonData) /// The name of the app [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Boolean to indicate if the app has been approved @@ -123,30 +128,35 @@ public static ApiAppResponse Init(string jsonData) /// Boolean to indicate if the app has been approved [DataMember(Name = "is_approved", EmitDefaultValue = true)] public bool IsApproved { get; set; } + /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public ApiAppResponseOAuth Oauth { get; set; } + /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public ApiAppResponseOptions Options { get; set; } + /// /// Gets or Sets OwnerAccount /// [DataMember(Name = "owner_account", EmitDefaultValue = true)] public ApiAppResponseOwnerAccount OwnerAccount { get; set; } + /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public ApiAppResponseWhiteLabelingOptions WhiteLabelingOptions { get; set; } + /// /// Returns the string presentation of the object @@ -298,12 +308,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs index 916deae9a..70695cab8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseOAuth")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseOAuth : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ApiAppResponseOAuth : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,7 @@ public static ApiAppResponseOAuth Init(string jsonData) /// The app's OAuth callback URL. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// The app's OAuth secret, or null if the app does not belong to user. @@ -83,6 +84,7 @@ public static ApiAppResponseOAuth Init(string jsonData) /// The app's OAuth secret, or null if the app does not belong to user. [DataMember(Name = "secret", EmitDefaultValue = true)] public string Secret { get; set; } + /// /// Array of OAuth scopes used by the app. @@ -90,6 +92,7 @@ public static ApiAppResponseOAuth Init(string jsonData) /// Array of OAuth scopes used by the app. [DataMember(Name = "scopes", EmitDefaultValue = true)] public List Scopes { get; set; } + /// /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. @@ -97,6 +100,7 @@ public static ApiAppResponseOAuth Init(string jsonData) /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. [DataMember(Name = "charges_users", EmitDefaultValue = true)] public bool ChargesUsers { get; set; } + /// /// Returns the string presentation of the object @@ -192,12 +196,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs index 193561968..b662fbe2a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseOptions : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ApiAppResponseOptions : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -70,6 +70,7 @@ public static ApiAppResponseOptions Init(string jsonData) /// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document [DataMember(Name = "can_insert_everywhere", EmitDefaultValue = true)] public bool CanInsertEverywhere { get; set; } + /// /// Returns the string presentation of the object @@ -134,12 +135,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs index 1ffadc5c8..7f2adb90f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseOwnerAccount")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseOwnerAccount : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ApiAppResponseOwnerAccount : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) /// The owner account's ID [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The owner account's email address @@ -79,6 +80,7 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) /// The owner account's email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs index ce662e5e4..9f53b68ed 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseWhiteLabelingOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseWhiteLabelingOptions : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ApiAppResponseWhiteLabelingOptions : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -95,84 +95,98 @@ public static ApiAppResponseWhiteLabelingOptions Init(string jsonData) /// [DataMember(Name = "header_background_color", EmitDefaultValue = true)] public string HeaderBackgroundColor { get; set; } + /// /// Gets or Sets LegalVersion /// [DataMember(Name = "legal_version", EmitDefaultValue = true)] public string LegalVersion { get; set; } + /// /// Gets or Sets LinkColor /// [DataMember(Name = "link_color", EmitDefaultValue = true)] public string LinkColor { get; set; } + /// /// Gets or Sets PageBackgroundColor /// [DataMember(Name = "page_background_color", EmitDefaultValue = true)] public string PageBackgroundColor { get; set; } + /// /// Gets or Sets PrimaryButtonColor /// [DataMember(Name = "primary_button_color", EmitDefaultValue = true)] public string PrimaryButtonColor { get; set; } + /// /// Gets or Sets PrimaryButtonColorHover /// [DataMember(Name = "primary_button_color_hover", EmitDefaultValue = true)] public string PrimaryButtonColorHover { get; set; } + /// /// Gets or Sets PrimaryButtonTextColor /// [DataMember(Name = "primary_button_text_color", EmitDefaultValue = true)] public string PrimaryButtonTextColor { get; set; } + /// /// Gets or Sets PrimaryButtonTextColorHover /// [DataMember(Name = "primary_button_text_color_hover", EmitDefaultValue = true)] public string PrimaryButtonTextColorHover { get; set; } + /// /// Gets or Sets SecondaryButtonColor /// [DataMember(Name = "secondary_button_color", EmitDefaultValue = true)] public string SecondaryButtonColor { get; set; } + /// /// Gets or Sets SecondaryButtonColorHover /// [DataMember(Name = "secondary_button_color_hover", EmitDefaultValue = true)] public string SecondaryButtonColorHover { get; set; } + /// /// Gets or Sets SecondaryButtonTextColor /// [DataMember(Name = "secondary_button_text_color", EmitDefaultValue = true)] public string SecondaryButtonTextColor { get; set; } + /// /// Gets or Sets SecondaryButtonTextColorHover /// [DataMember(Name = "secondary_button_text_color_hover", EmitDefaultValue = true)] public string SecondaryButtonTextColorHover { get; set; } + /// /// Gets or Sets TextColor1 /// [DataMember(Name = "text_color1", EmitDefaultValue = true)] public string TextColor1 { get; set; } + /// /// Gets or Sets TextColor2 /// [DataMember(Name = "text_color2", EmitDefaultValue = true)] public string TextColor2 { get; set; } + /// /// Returns the string presentation of the object @@ -371,12 +385,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs index 5e4a74d3b..12c9ae00e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppUpdateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppUpdateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ApiAppUpdateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,7 @@ public static ApiAppUpdateRequest Init(string jsonData) /// The URL at which the API App should receive event callbacks. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) @@ -89,6 +90,7 @@ public static ApiAppUpdateRequest Init(string jsonData) /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) [DataMember(Name = "custom_logo_file", EmitDefaultValue = true)] public System.IO.Stream CustomLogoFile { get; set; } + /// /// The domain names the ApiApp will be associated with. @@ -96,6 +98,7 @@ public static ApiAppUpdateRequest Init(string jsonData) /// The domain names the ApiApp will be associated with. [DataMember(Name = "domains", EmitDefaultValue = true)] public List Domains { get; set; } + /// /// The name you want to assign to the ApiApp. @@ -103,24 +106,28 @@ public static ApiAppUpdateRequest Init(string jsonData) /// The name you want to assign to the ApiApp. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public SubOAuth Oauth { get; set; } + /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public SubOptions Options { get; set; } + /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public SubWhiteLabelingOptions WhiteLabelingOptions { get; set; } + /// /// Returns the string presentation of the object @@ -250,12 +257,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs index a520a677a..55bac37aa 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobGetResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class BulkSendJobGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -75,12 +75,14 @@ public static BulkSendJobGetResponse Init(string jsonData) /// [DataMember(Name = "bulk_send_job", EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// Contains information about the Signature Requests sent in bulk. @@ -88,6 +90,7 @@ public static BulkSendJobGetResponse Init(string jsonData) /// Contains information about the Signature Requests sent in bulk. [DataMember(Name = "signature_requests", EmitDefaultValue = true)] public List SignatureRequests { get; set; } + /// /// A list of warnings. @@ -95,6 +98,7 @@ public static BulkSendJobGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -195,12 +199,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index 95b160e28..de4b96fe1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobGetResponseSignatureRequests")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobGetResponseSignatureRequests : IOpenApiTyped, IEquatable, IValidatableObject + public partial class BulkSendJobGetResponseSignatureRequests : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -119,6 +119,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool? TestMode { get; set; } + /// /// The id of the SignatureRequest. @@ -126,6 +127,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The id of the SignatureRequest. [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } + /// /// The email address of the initiator of the SignatureRequest. @@ -133,6 +135,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The email address of the initiator of the SignatureRequest. [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// The title the specified Account uses for the SignatureRequest. @@ -140,6 +143,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The title the specified Account uses for the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Default Label for account. @@ -147,6 +151,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Default Label for account. [DataMember(Name = "original_title", EmitDefaultValue = true)] public string OriginalTitle { get; set; } + /// /// The subject in the email that was initially sent to the signers. @@ -154,6 +159,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The subject in the email that was initially sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// The custom message in the email that was initially sent to the signers. @@ -161,6 +167,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The custom message in the email that was initially sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// The metadata attached to the signature request. @@ -168,6 +175,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } + /// /// Time the signature request was created. @@ -175,6 +183,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Time the signature request was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -182,6 +191,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -189,6 +199,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether or not the SignatureRequest has been fully executed by all signers. [DataMember(Name = "is_complete", EmitDefaultValue = true)] public bool IsComplete { get; set; } + /// /// Whether or not the SignatureRequest has been declined by a signer. @@ -196,6 +207,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether or not the SignatureRequest has been declined by a signer. [DataMember(Name = "is_declined", EmitDefaultValue = true)] public bool IsDeclined { get; set; } + /// /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). @@ -203,6 +215,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). [DataMember(Name = "has_error", EmitDefaultValue = true)] public bool HasError { get; set; } + /// /// The URL where a copy of the request's documents can be downloaded. @@ -210,6 +223,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL where a copy of the request's documents can be downloaded. [DataMember(Name = "files_url", EmitDefaultValue = true)] public string FilesUrl { get; set; } + /// /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. @@ -217,6 +231,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. [DataMember(Name = "signing_url", EmitDefaultValue = true)] public string SigningUrl { get; set; } + /// /// The URL where the requester and the signers can view the current status of the SignatureRequest. @@ -224,6 +239,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL where the requester and the signers can view the current status of the SignatureRequest. [DataMember(Name = "details_url", EmitDefaultValue = true)] public string DetailsUrl { get; set; } + /// /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. @@ -231,6 +247,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// The URL you want the signer redirected to after they successfully sign. @@ -238,6 +255,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL you want the signer redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The path where the completed document can be downloaded @@ -245,6 +263,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The path where the completed document can be downloaded [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] public string FinalCopyUri { get; set; } + /// /// Templates IDs used in this SignatureRequest (if any). @@ -252,6 +271,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Templates IDs used in this SignatureRequest (if any). [DataMember(Name = "template_ids", EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` @@ -259,6 +279,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Signer attachments. @@ -266,6 +287,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Signer attachments. [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. @@ -273,6 +295,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. [DataMember(Name = "response_data", EmitDefaultValue = true)] public List ResponseData { get; set; } + /// /// An array of signature objects, 1 for each signer. @@ -280,6 +303,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// An array of signature objects, 1 for each signer. [DataMember(Name = "signatures", EmitDefaultValue = true)] public List Signatures { get; set; } + /// /// The id of the BulkSendJob. @@ -287,6 +311,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The id of the BulkSendJob. [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } + /// /// Returns the string presentation of the object @@ -581,12 +606,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs index 6ded2592b..3494c14c8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobListResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobListResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class BulkSendJobListResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,12 +74,14 @@ public static BulkSendJobListResponse Init(string jsonData) /// Contains a list of BulkSendJobs that the API caller has access to. [DataMember(Name = "bulk_send_jobs", EmitDefaultValue = true)] public List BulkSendJobs { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// A list of warnings. @@ -87,6 +89,7 @@ public static BulkSendJobListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -177,12 +180,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs index 0ca83c085..e61d3015a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class BulkSendJobResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,7 @@ public static BulkSendJobResponse Init(string jsonData) /// The id of the BulkSendJob. [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } + /// /// The total amount of Signature Requests queued for sending. @@ -83,6 +84,7 @@ public static BulkSendJobResponse Init(string jsonData) /// The total amount of Signature Requests queued for sending. [DataMember(Name = "total", EmitDefaultValue = true)] public int Total { get; set; } + /// /// True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. @@ -90,6 +92,7 @@ public static BulkSendJobResponse Init(string jsonData) /// True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. [DataMember(Name = "is_creator", EmitDefaultValue = true)] public bool IsCreator { get; set; } + /// /// Time that the BulkSendJob was created. @@ -97,6 +100,7 @@ public static BulkSendJobResponse Init(string jsonData) /// Time that the BulkSendJob was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// Returns the string presentation of the object @@ -183,12 +187,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs index 044178f18..48677a1c9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobSendResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobSendResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class BulkSendJobSendResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static BulkSendJobSendResponse Init(string jsonData) /// [DataMember(Name = "bulk_send_job", EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static BulkSendJobSendResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs index 52c8a6146..7854b27ec 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedEditUrlRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedEditUrlRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class EmbeddedEditUrlRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -88,6 +88,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// This allows the requester to enable/disable to add or change CC roles when editing the template. [DataMember(Name = "allow_edit_ccs", EmitDefaultValue = true)] public bool AllowEditCcs { get; set; } + /// /// The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. @@ -95,12 +96,14 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// Provide users the ability to review/edit the template signer roles. @@ -108,6 +111,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Provide users the ability to review/edit the template signer roles. [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } + /// /// Provide users the ability to review/edit the template subject and message. @@ -115,6 +119,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Provide users the ability to review/edit the template subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } + /// /// Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template. Remove all merge fields on the template by passing an empty array `[]`. @@ -122,6 +127,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template. Remove all merge fields on the template by passing an empty array `[]`. [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } + /// /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). **NOTE:** This parameter overwrites `show_preview=true` (if set). @@ -129,6 +135,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). **NOTE:** This parameter overwrites `show_preview=true` (if set). [DataMember(Name = "preview_only", EmitDefaultValue = true)] public bool PreviewOnly { get; set; } + /// /// This allows the requester to enable the editor/preview experience. @@ -136,6 +143,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// This allows the requester to enable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -143,6 +151,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. @@ -150,6 +159,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Returns the string presentation of the object @@ -282,12 +292,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs index 030385a03..9b6ac92d8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedEditUrlResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedEditUrlResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class EmbeddedEditUrlResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static EmbeddedEditUrlResponse Init(string jsonData) /// [DataMember(Name = "embedded", EmitDefaultValue = true)] public EmbeddedEditUrlResponseEmbedded Embedded { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static EmbeddedEditUrlResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs index 7163acc78..26da981f8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedEditUrlResponseEmbedded")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedEditUrlResponseEmbedded : IOpenApiTyped, IEquatable, IValidatableObject + public partial class EmbeddedEditUrlResponseEmbedded : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) /// A template url that can be opened in an iFrame. [DataMember(Name = "edit_url", EmitDefaultValue = true)] public string EditUrl { get; set; } + /// /// The specific time that the the `edit_url` link expires, in epoch. @@ -79,6 +80,7 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) /// The specific time that the the `edit_url` link expires, in epoch. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -153,12 +155,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs index c5eb3c7e6..df9fb1ac6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedSignUrlResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedSignUrlResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class EmbeddedSignUrlResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static EmbeddedSignUrlResponse Init(string jsonData) /// [DataMember(Name = "embedded", EmitDefaultValue = true)] public EmbeddedSignUrlResponseEmbedded Embedded { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static EmbeddedSignUrlResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs index 74f701f14..e87b0268d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedSignUrlResponseEmbedded")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedSignUrlResponseEmbedded : IOpenApiTyped, IEquatable, IValidatableObject + public partial class EmbeddedSignUrlResponseEmbedded : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) /// A signature url that can be opened in an iFrame. [DataMember(Name = "sign_url", EmitDefaultValue = true)] public string SignUrl { get; set; } + /// /// The specific time that the the `sign_url` link expires, in epoch. @@ -79,6 +80,7 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) /// The specific time that the the `sign_url` link expires, in epoch. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -153,12 +155,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs index 0ec26e8ea..01adc8eee 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ErrorResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ErrorResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ErrorResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,6 +74,7 @@ public static ErrorResponse Init(string jsonData) /// [DataMember(Name = "error", IsRequired = true, EmitDefaultValue = true)] public ErrorResponseError Error { get; set; } + /// /// Returns the string presentation of the object @@ -142,12 +143,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs index c99be2365..6cb22d019 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ErrorResponseError")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ErrorResponseError : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ErrorResponseError : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -84,6 +84,7 @@ public static ErrorResponseError Init(string jsonData) /// Message describing an error. [DataMember(Name = "error_msg", IsRequired = true, EmitDefaultValue = true)] public string ErrorMsg { get; set; } + /// /// Name of the error. @@ -91,6 +92,7 @@ public static ErrorResponseError Init(string jsonData) /// Name of the error. [DataMember(Name = "error_name", IsRequired = true, EmitDefaultValue = true)] public string ErrorName { get; set; } + /// /// Path at which an error occurred. @@ -98,6 +100,7 @@ public static ErrorResponseError Init(string jsonData) /// Path at which an error occurred. [DataMember(Name = "error_path", EmitDefaultValue = true)] public string ErrorPath { get; set; } + /// /// Returns the string presentation of the object @@ -186,12 +189,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs index 3752b9f1b..e293104a0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EventCallbackRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EventCallbackRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class EventCallbackRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -41,19 +41,19 @@ protected EventCallbackRequest() { } /// /// Initializes a new instance of the class. /// - /// _event (required). + /// varEvent (required). /// account. /// signatureRequest. /// template. - public EventCallbackRequest(EventCallbackRequestEvent _event = default(EventCallbackRequestEvent), AccountResponse account = default(AccountResponse), SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), TemplateResponse template = default(TemplateResponse)) + public EventCallbackRequest(EventCallbackRequestEvent varEvent = default(EventCallbackRequestEvent), AccountResponse account = default(AccountResponse), SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), TemplateResponse template = default(TemplateResponse)) { - // to ensure "_event" is required (not null) - if (_event == null) + // to ensure "varEvent" is required (not null) + if (varEvent == null) { - throw new ArgumentNullException("_event is a required property for EventCallbackRequest and cannot be null"); + throw new ArgumentNullException("varEvent is a required property for EventCallbackRequest and cannot be null"); } - this.Event = _event; + this.Event = varEvent; this.Account = account; this.SignatureRequest = signatureRequest; this.Template = template; @@ -80,24 +80,28 @@ public static EventCallbackRequest Init(string jsonData) /// [DataMember(Name = "event", IsRequired = true, EmitDefaultValue = true)] public EventCallbackRequestEvent Event { get; set; } + /// /// Gets or Sets Account /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } + /// /// Gets or Sets SignatureRequest /// [DataMember(Name = "signature_request", EmitDefaultValue = true)] public SignatureRequestResponse SignatureRequest { get; set; } + /// /// Gets or Sets Template /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateResponse Template { get; set; } + /// /// Returns the string presentation of the object @@ -196,12 +200,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs index f1b73f623..8208b889c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EventCallbackRequestEvent")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EventCallbackRequestEvent : IOpenApiTyped, IEquatable, IValidatableObject + public partial class EventCallbackRequestEvent : IEquatable, IValidatableObject { /// /// Type of callback event that was triggered. @@ -177,7 +177,6 @@ public enum EventTypeEnum /// [EnumMember(Value = "signature_request_signer_removed")] SignatureRequestSignerRemoved = 23 - } @@ -240,6 +239,7 @@ public static EventCallbackRequestEvent Init(string jsonData) /// Time the event was created (using Unix time). [DataMember(Name = "event_time", IsRequired = true, EmitDefaultValue = true)] public string EventTime { get; set; } + /// /// Generated hash used to verify source of event data. @@ -247,12 +247,14 @@ public static EventCallbackRequestEvent Init(string jsonData) /// Generated hash used to verify source of event data. [DataMember(Name = "event_hash", IsRequired = true, EmitDefaultValue = true)] public string EventHash { get; set; } + /// /// Gets or Sets EventMetadata /// [DataMember(Name = "event_metadata", EmitDefaultValue = true)] public EventCallbackRequestEventMetadata EventMetadata { get; set; } + /// /// Returns the string presentation of the object @@ -347,12 +349,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs index ab2164575..e8b39f5d8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EventCallbackRequestEventMetadata")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EventCallbackRequestEventMetadata : IOpenApiTyped, IEquatable, IValidatableObject + public partial class EventCallbackRequestEventMetadata : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,7 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// Signature ID for a specific signer. Applicable to `signature_request_signed` and `signature_request_viewed` events. [DataMember(Name = "related_signature_id", EmitDefaultValue = true)] public string RelatedSignatureId { get; set; } + /// /// Account ID the event was reported for. @@ -83,6 +84,7 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// Account ID the event was reported for. [DataMember(Name = "reported_for_account_id", EmitDefaultValue = true)] public string ReportedForAccountId { get; set; } + /// /// App ID the event was reported for. @@ -90,6 +92,7 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// App ID the event was reported for. [DataMember(Name = "reported_for_app_id", EmitDefaultValue = true)] public string ReportedForAppId { get; set; } + /// /// Message about a declined or failed (due to error) signature flow. @@ -97,6 +100,7 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// Message about a declined or failed (due to error) signature flow. [DataMember(Name = "event_message", EmitDefaultValue = true)] public string EventMessage { get; set; } + /// /// Returns the string presentation of the object @@ -195,12 +199,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs index 220e2d913..bb774265a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineAddUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineAddUserRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FaxLineAddUserRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,13 +79,16 @@ public static FaxLineAddUserRequest Init(string jsonData) /// The Fax Line number. [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } + /// /// Account ID /// /// Account ID + /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// Email address @@ -93,6 +96,7 @@ public static FaxLineAddUserRequest Init(string jsonData) /// Email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -181,12 +185,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs index efea05942..bf41606e5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs @@ -49,7 +49,6 @@ public enum FaxLineAreaCodeGetCountryEnum /// [EnumMember(Value = "UK")] UK = 3 - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs index 13c01beb4..1179ce049 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs @@ -109,7 +109,6 @@ public enum FaxLineAreaCodeGetProvinceEnum /// [EnumMember(Value = "YT")] YT = 13 - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs index 116322fd6..5136ad865 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineAreaCodeGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineAreaCodeGetResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FaxLineAreaCodeGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -69,6 +69,7 @@ public static FaxLineAreaCodeGetResponse Init(string jsonData) /// [DataMember(Name = "area_codes", EmitDefaultValue = true)] public List AreaCodes { get; set; } + /// /// Returns the string presentation of the object @@ -138,12 +139,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs index b42d0e327..c62661b55 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs @@ -337,7 +337,6 @@ public enum FaxLineAreaCodeGetStateEnum /// [EnumMember(Value = "WY")] WY = 51 - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs index 0600d270a..42717e772 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineCreateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FaxLineCreateRequest : IEquatable, IValidatableObject { /// /// Country @@ -57,7 +57,6 @@ public enum CountryEnum /// [EnumMember(Value = "UK")] UK = 3 - } @@ -110,6 +109,7 @@ public static FaxLineCreateRequest Init(string jsonData) /// Area code [DataMember(Name = "area_code", IsRequired = true, EmitDefaultValue = true)] public int AreaCode { get; set; } + /// /// City @@ -117,13 +117,16 @@ public static FaxLineCreateRequest Init(string jsonData) /// City [DataMember(Name = "city", EmitDefaultValue = true)] public string City { get; set; } + /// /// Account ID /// /// Account ID + /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// Returns the string presentation of the object @@ -214,12 +217,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs index 3b91fc96f..576797ef7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineDeleteRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineDeleteRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FaxLineDeleteRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -75,6 +75,7 @@ public static FaxLineDeleteRequest Init(string jsonData) /// The Fax Line number. [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } + /// /// Returns the string presentation of the object @@ -143,12 +144,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs index dcf14a3ea..383e9a7e7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineListResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineListResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FaxLineListResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -73,18 +73,21 @@ public static FaxLineListResponse Init(string jsonData) /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// Gets or Sets FaxLines /// [DataMember(Name = "fax_lines", EmitDefaultValue = true)] public List FaxLines { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public WarningResponse Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -174,12 +177,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs index e724004ed..49ef2d4b8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineRemoveUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineRemoveUserRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FaxLineRemoveUserRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,13 +79,16 @@ public static FaxLineRemoveUserRequest Init(string jsonData) /// The Fax Line number. [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } + /// /// Account ID /// /// Account ID + /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// Email address @@ -93,6 +96,7 @@ public static FaxLineRemoveUserRequest Init(string jsonData) /// Email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -181,12 +185,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs index eec34e07b..a281d57a1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FaxLineResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,12 +71,14 @@ public static FaxLineResponse Init(string jsonData) /// [DataMember(Name = "fax_line", EmitDefaultValue = true)] public FaxLineResponseFaxLine FaxLine { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public WarningResponse Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -155,12 +157,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs index 2cc9b0c01..52a0b0ca0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineResponseFaxLine")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineResponseFaxLine : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FaxLineResponseFaxLine : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,7 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Number [DataMember(Name = "number", EmitDefaultValue = true)] public string Number { get; set; } + /// /// Created at @@ -83,6 +84,7 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Created at [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// Updated at @@ -90,12 +92,14 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Updated at [DataMember(Name = "updated_at", EmitDefaultValue = true)] public int UpdatedAt { get; set; } + /// /// Gets or Sets Accounts /// [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } + /// /// Returns the string presentation of the object @@ -187,12 +191,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs index 71c95828d..e8381f689 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FileResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FileResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FileResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static FileResponse Init(string jsonData) /// URL to the file. [DataMember(Name = "file_url", EmitDefaultValue = true)] public string FileUrl { get; set; } + /// /// When the link expires. @@ -79,6 +80,7 @@ public static FileResponse Init(string jsonData) /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -153,12 +155,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs index 4831bc811..7d359e8c5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FileResponseDataUri")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FileResponseDataUri : IOpenApiTyped, IEquatable, IValidatableObject + public partial class FileResponseDataUri : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -70,6 +70,7 @@ public static FileResponseDataUri Init(string jsonData) /// File as base64 encoded string. [DataMember(Name = "data_uri", EmitDefaultValue = true)] public string DataUri { get; set; } + /// /// Returns the string presentation of the object @@ -138,12 +139,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs index 43a57afac..8597e03a9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ListInfoResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ListInfoResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ListInfoResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,7 @@ public static ListInfoResponse Init(string jsonData) /// Total number of pages available. [DataMember(Name = "num_pages", EmitDefaultValue = true)] public int NumPages { get; set; } + /// /// Total number of objects available. @@ -83,6 +84,7 @@ public static ListInfoResponse Init(string jsonData) /// Total number of objects available. [DataMember(Name = "num_results", EmitDefaultValue = true)] public int? NumResults { get; set; } + /// /// Number of the page being returned. @@ -90,6 +92,7 @@ public static ListInfoResponse Init(string jsonData) /// Number of the page being returned. [DataMember(Name = "page", EmitDefaultValue = true)] public int Page { get; set; } + /// /// Objects returned per page. @@ -97,6 +100,7 @@ public static ListInfoResponse Init(string jsonData) /// Objects returned per page. [DataMember(Name = "page_size", EmitDefaultValue = true)] public int PageSize { get; set; } + /// /// Returns the string presentation of the object @@ -183,12 +187,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs index 3afc2cc0e..872a93b07 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "OAuthTokenGenerateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class OAuthTokenGenerateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class OAuthTokenGenerateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -46,7 +46,7 @@ protected OAuthTokenGenerateRequest() { } /// The code passed to your callback when the user granted access. (required). /// When generating a new token use `authorization_code`. (required) (default to "authorization_code"). /// Same as the state you specified earlier. (required). - public OAuthTokenGenerateRequest(string clientId = default(string), string clientSecret = default(string), string code = default(string), string grantType = "authorization_code", string state = default(string)) + public OAuthTokenGenerateRequest(string clientId = default(string), string clientSecret = default(string), string code = default(string), string grantType = @"authorization_code", string state = default(string)) { // to ensure "clientId" is required (not null) @@ -103,6 +103,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// The client id of the app requesting authorization. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// The secret token of your app. @@ -110,6 +111,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// The secret token of your app. [DataMember(Name = "client_secret", IsRequired = true, EmitDefaultValue = true)] public string ClientSecret { get; set; } + /// /// The code passed to your callback when the user granted access. @@ -117,6 +119,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// The code passed to your callback when the user granted access. [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] public string Code { get; set; } + /// /// When generating a new token use `authorization_code`. @@ -124,6 +127,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// When generating a new token use `authorization_code`. [DataMember(Name = "grant_type", IsRequired = true, EmitDefaultValue = true)] public string GrantType { get; set; } + /// /// Same as the state you specified earlier. @@ -131,6 +135,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// Same as the state you specified earlier. [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] public string State { get; set; } + /// /// Returns the string presentation of the object @@ -239,12 +244,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs index 421913864..805664337 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "OAuthTokenRefreshRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class OAuthTokenRefreshRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class OAuthTokenRefreshRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -43,7 +43,7 @@ protected OAuthTokenRefreshRequest() { } /// /// When refreshing an existing token use `refresh_token`. (required) (default to "refresh_token"). /// The token provided when you got the expired access token. (required). - public OAuthTokenRefreshRequest(string grantType = "refresh_token", string refreshToken = default(string)) + public OAuthTokenRefreshRequest(string grantType = @"refresh_token", string refreshToken = default(string)) { // to ensure "grantType" is required (not null) @@ -82,6 +82,7 @@ public static OAuthTokenRefreshRequest Init(string jsonData) /// When refreshing an existing token use `refresh_token`. [DataMember(Name = "grant_type", IsRequired = true, EmitDefaultValue = true)] public string GrantType { get; set; } + /// /// The token provided when you got the expired access token. @@ -89,6 +90,7 @@ public static OAuthTokenRefreshRequest Init(string jsonData) /// The token provided when you got the expired access token. [DataMember(Name = "refresh_token", IsRequired = true, EmitDefaultValue = true)] public string RefreshToken { get; set; } + /// /// Returns the string presentation of the object @@ -167,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs index 684a656c5..785fe808f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "OAuthTokenResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class OAuthTokenResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class OAuthTokenResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -77,18 +77,21 @@ public static OAuthTokenResponse Init(string jsonData) /// [DataMember(Name = "access_token", EmitDefaultValue = true)] public string AccessToken { get; set; } + /// /// Gets or Sets TokenType /// [DataMember(Name = "token_type", EmitDefaultValue = true)] public string TokenType { get; set; } + /// /// Gets or Sets RefreshToken /// [DataMember(Name = "refresh_token", EmitDefaultValue = true)] public string RefreshToken { get; set; } + /// /// Number of seconds until the `access_token` expires. Uses epoch time. @@ -96,12 +99,14 @@ public static OAuthTokenResponse Init(string jsonData) /// Number of seconds until the `access_token` expires. Uses epoch time. [DataMember(Name = "expires_in", EmitDefaultValue = true)] public int ExpiresIn { get; set; } + /// /// Gets or Sets State /// [DataMember(Name = "state", EmitDefaultValue = true)] public string State { get; set; } + /// /// Returns the string presentation of the object @@ -206,12 +211,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs index 82621990c..8c0f5945f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ReportCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ReportCreateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ReportCreateRequest : IEquatable, IValidatableObject { /// /// Defines ReportType @@ -50,17 +50,8 @@ public enum ReportTypeEnum /// [EnumMember(Value = "document_status")] DocumentStatus = 2 - } - - - /// - /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). - /// - /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). - [DataMember(Name = "report_type", IsRequired = true, EmitDefaultValue = true)] - public List ReportType { get; set; } /// /// Initializes a new instance of the class. /// @@ -117,6 +108,15 @@ public static ReportCreateRequest Init(string jsonData) /// The (inclusive) end date for the report data in `MM/DD/YYYY` format. [DataMember(Name = "end_date", IsRequired = true, EmitDefaultValue = true)] public string EndDate { get; set; } + + + /// + /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). + /// + /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). + [DataMember(Name = "report_type", IsRequired = true, EmitDefaultValue = true)] + public List ReportType { get; set; } + /// /// The (inclusive) start date for the report data in `MM/DD/YYYY` format. @@ -124,6 +124,7 @@ public static ReportCreateRequest Init(string jsonData) /// The (inclusive) start date for the report data in `MM/DD/YYYY` format. [DataMember(Name = "start_date", IsRequired = true, EmitDefaultValue = true)] public string StartDate { get; set; } + /// /// Returns the string presentation of the object @@ -178,6 +179,8 @@ public bool Equals(ReportCreateRequest input) ) && ( this.ReportType == input.ReportType || + this.ReportType != null && + input.ReportType != null && this.ReportType.SequenceEqual(input.ReportType) ) && ( @@ -200,7 +203,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.EndDate.GetHashCode(); } - hashCode = (hashCode * 59) + this.ReportType.GetHashCode(); + if (this.ReportType != null) + { + hashCode = (hashCode * 59) + this.ReportType.GetHashCode(); + } if (this.StartDate != null) { hashCode = (hashCode * 59) + this.StartDate.GetHashCode(); @@ -208,12 +214,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -230,7 +237,7 @@ public List GetOpenApiTypes() types.Add(new OpenApiType(){ Name = "report_type", Property = "ReportType", - Type = "List", + Type = "List", Value = ReportType, }); types.Add(new OpenApiType(){ diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs index 39870ed2b..e361b4ecb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ReportCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ReportCreateResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ReportCreateResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static ReportCreateResponse Init(string jsonData) /// [DataMember(Name = "report", EmitDefaultValue = true)] public ReportResponse Report { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static ReportCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs index ac3995847..02759c3ff 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ReportResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ReportResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class ReportResponse : IEquatable, IValidatableObject { /// /// Defines ReportType @@ -50,17 +50,8 @@ public enum ReportTypeEnum /// [EnumMember(Value = "document_status")] DocumentStatus = 2 - } - - - /// - /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). - /// - /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). - [DataMember(Name = "report_type", EmitDefaultValue = true)] - public List ReportType { get; set; } /// /// Initializes a new instance of the class. /// @@ -104,6 +95,7 @@ public static ReportResponse Init(string jsonData) /// A message indicating the requested operation's success [DataMember(Name = "success", EmitDefaultValue = true)] public string Success { get; set; } + /// /// The (inclusive) start date for the report data in MM/DD/YYYY format. @@ -111,6 +103,7 @@ public static ReportResponse Init(string jsonData) /// The (inclusive) start date for the report data in MM/DD/YYYY format. [DataMember(Name = "start_date", EmitDefaultValue = true)] public string StartDate { get; set; } + /// /// The (inclusive) end date for the report data in MM/DD/YYYY format. @@ -118,6 +111,15 @@ public static ReportResponse Init(string jsonData) /// The (inclusive) end date for the report data in MM/DD/YYYY format. [DataMember(Name = "end_date", EmitDefaultValue = true)] public string EndDate { get; set; } + + + /// + /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). + /// + /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). + [DataMember(Name = "report_type", EmitDefaultValue = true)] + public List ReportType { get; set; } + /// /// Returns the string presentation of the object @@ -183,6 +185,8 @@ public bool Equals(ReportResponse input) ) && ( this.ReportType == input.ReportType || + this.ReportType != null && + input.ReportType != null && this.ReportType.SequenceEqual(input.ReportType) ); } @@ -208,16 +212,20 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.EndDate.GetHashCode(); } - hashCode = (hashCode * 59) + this.ReportType.GetHashCode(); + if (this.ReportType != null) + { + hashCode = (hashCode * 59) + this.ReportType.GetHashCode(); + } return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -246,7 +254,7 @@ public List GetOpenApiTypes() types.Add(new OpenApiType(){ Name = "report_type", Property = "ReportType", - Type = "List", + Type = "List", Value = ReportType, }); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs index 99815e03c..65fa89808 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestBulkCreateEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestBulkCreateEmbeddedWithTemplateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestBulkCreateEmbeddedWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -104,6 +104,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// Client id of the app you're using to create this embedded signature request. Used for security purposes. @@ -111,6 +112,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Client id of the app you're using to create this embedded signature request. Used for security purposes. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` @@ -118,6 +120,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` [DataMember(Name = "signer_file", EmitDefaultValue = true)] public System.IO.Stream SignerFile { get; set; } + /// /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. @@ -125,6 +128,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. [DataMember(Name = "signer_list", EmitDefaultValue = true)] public List SignerList { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -132,6 +136,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -139,6 +144,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -146,6 +152,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -153,6 +160,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -160,6 +168,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -167,6 +176,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -174,6 +184,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -181,6 +192,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -188,6 +200,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Returns the string presentation of the object @@ -373,29 +386,30 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs index cf24ef92e..7542ae15d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestBulkSendWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestBulkSendWithTemplateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestBulkSendWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -99,6 +99,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` @@ -106,6 +107,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` [DataMember(Name = "signer_file", EmitDefaultValue = true)] public System.IO.Stream SignerFile { get; set; } + /// /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. @@ -113,6 +115,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. [DataMember(Name = "signer_list", EmitDefaultValue = true)] public List SignerList { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -120,6 +123,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -127,6 +131,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. @@ -134,6 +139,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -141,6 +147,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -148,6 +155,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -155,6 +163,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -162,6 +171,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -169,6 +179,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -176,6 +187,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -183,6 +195,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Returns the string presentation of the object @@ -368,29 +381,30 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs index 7b91bdf2a..bfe4e51d3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestCreateEmbeddedRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestCreateEmbeddedRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestCreateEmbeddedRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -121,6 +121,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Client id of the app you're using to create this embedded signature request. Used for security purposes. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -128,6 +129,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -135,6 +137,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -142,6 +145,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -149,6 +153,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "grouped_signers", EmitDefaultValue = true)] public List GroupedSigners { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -156,6 +161,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan. @@ -163,6 +169,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -170,6 +177,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The email addresses that should be CCed. @@ -177,6 +185,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -184,12 +193,14 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -197,6 +208,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -204,6 +216,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -211,6 +224,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. @@ -218,6 +232,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -225,6 +240,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -232,12 +248,14 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -245,6 +263,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -252,6 +271,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -259,6 +279,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. @@ -266,6 +287,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } + /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -273,6 +295,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } + /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -280,6 +303,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -565,29 +589,30 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs index 206113b4d..682c38df4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestCreateEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestCreateEmbeddedWithTemplateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestCreateEmbeddedWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -113,6 +113,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// Client id of the app you're using to create this embedded signature request. Used for security purposes. @@ -120,6 +121,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Client id of the app you're using to create this embedded signature request. Used for security purposes. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Add Signers to your Templated-based Signature Request. @@ -127,6 +129,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Add Signers to your Templated-based Signature Request. [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -134,6 +137,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -141,6 +145,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. @@ -148,6 +153,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// An array defining values and options for custom fields. Required when a custom field exists in the Template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -155,6 +161,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -162,6 +169,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -169,6 +177,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -176,12 +185,14 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -189,6 +200,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -196,6 +208,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -203,6 +216,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -210,6 +224,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } + /// /// Returns the string presentation of the object @@ -413,29 +428,30 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs index 49d03b4b9..2b6c6d163 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestGetResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static SignatureRequestGetResponse Init(string jsonData) /// [DataMember(Name = "signature_request", EmitDefaultValue = true)] public SignatureRequestResponse SignatureRequest { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static SignatureRequestGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs index 98a0314a9..05a74cfca 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestListResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestListResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestListResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,12 +74,14 @@ public static SignatureRequestListResponse Init(string jsonData) /// Contains information about signature requests. [DataMember(Name = "signature_requests", EmitDefaultValue = true)] public List SignatureRequests { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// A list of warnings. @@ -87,6 +89,7 @@ public static SignatureRequestListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -177,12 +180,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs index e1a4fed11..ab313fc4e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestRemindRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestRemindRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestRemindRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -77,6 +77,7 @@ public static SignatureRequestRemindRequest Init(string jsonData) /// The email address of the signer to send a reminder to. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The name of the signer to send a reminder to. Include if two or more signers share an email address. @@ -84,6 +85,7 @@ public static SignatureRequestRemindRequest Init(string jsonData) /// The name of the signer to send a reminder to. Include if two or more signers share an email address. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -162,12 +164,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index 7c13cdb09..bc12bed71 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -119,6 +119,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool? TestMode { get; set; } + /// /// The id of the SignatureRequest. @@ -126,6 +127,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The id of the SignatureRequest. [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } + /// /// The email address of the initiator of the SignatureRequest. @@ -133,6 +135,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The email address of the initiator of the SignatureRequest. [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// The title the specified Account uses for the SignatureRequest. @@ -140,6 +143,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The title the specified Account uses for the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Default Label for account. @@ -147,6 +151,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Default Label for account. [DataMember(Name = "original_title", EmitDefaultValue = true)] public string OriginalTitle { get; set; } + /// /// The subject in the email that was initially sent to the signers. @@ -154,6 +159,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The subject in the email that was initially sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// The custom message in the email that was initially sent to the signers. @@ -161,6 +167,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The custom message in the email that was initially sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// The metadata attached to the signature request. @@ -168,6 +175,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } + /// /// Time the signature request was created. @@ -175,6 +183,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Time the signature request was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -182,6 +191,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -189,6 +199,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether or not the SignatureRequest has been fully executed by all signers. [DataMember(Name = "is_complete", EmitDefaultValue = true)] public bool IsComplete { get; set; } + /// /// Whether or not the SignatureRequest has been declined by a signer. @@ -196,6 +207,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether or not the SignatureRequest has been declined by a signer. [DataMember(Name = "is_declined", EmitDefaultValue = true)] public bool IsDeclined { get; set; } + /// /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). @@ -203,6 +215,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). [DataMember(Name = "has_error", EmitDefaultValue = true)] public bool HasError { get; set; } + /// /// The URL where a copy of the request's documents can be downloaded. @@ -210,6 +223,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL where a copy of the request's documents can be downloaded. [DataMember(Name = "files_url", EmitDefaultValue = true)] public string FilesUrl { get; set; } + /// /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. @@ -217,6 +231,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. [DataMember(Name = "signing_url", EmitDefaultValue = true)] public string SigningUrl { get; set; } + /// /// The URL where the requester and the signers can view the current status of the SignatureRequest. @@ -224,6 +239,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL where the requester and the signers can view the current status of the SignatureRequest. [DataMember(Name = "details_url", EmitDefaultValue = true)] public string DetailsUrl { get; set; } + /// /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. @@ -231,6 +247,7 @@ public static SignatureRequestResponse Init(string jsonData) /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// The URL you want the signer redirected to after they successfully sign. @@ -238,6 +255,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL you want the signer redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The path where the completed document can be downloaded @@ -245,6 +263,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The path where the completed document can be downloaded [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] public string FinalCopyUri { get; set; } + /// /// Templates IDs used in this SignatureRequest (if any). @@ -252,6 +271,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Templates IDs used in this SignatureRequest (if any). [DataMember(Name = "template_ids", EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` @@ -259,6 +279,7 @@ public static SignatureRequestResponse Init(string jsonData) /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Signer attachments. @@ -266,6 +287,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Signer attachments. [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. @@ -273,6 +295,7 @@ public static SignatureRequestResponse Init(string jsonData) /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. [DataMember(Name = "response_data", EmitDefaultValue = true)] public List ResponseData { get; set; } + /// /// An array of signature objects, 1 for each signer. @@ -280,6 +303,7 @@ public static SignatureRequestResponse Init(string jsonData) /// An array of signature objects, 1 for each signer. [DataMember(Name = "signatures", EmitDefaultValue = true)] public List Signatures { get; set; } + /// /// The ID of the Bulk Send job which sent the signature request, if applicable. @@ -287,6 +311,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The ID of the Bulk Send job which sent the signature request, if applicable. [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } + /// /// Returns the string presentation of the object @@ -581,12 +606,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs index 6399fc085..757001c70 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseAttachment")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseAttachment : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseAttachment : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -95,6 +95,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// The unique ID for this attachment. [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } + /// /// The Signer this attachment is assigned to. @@ -102,6 +103,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// The Signer this attachment is assigned to. [DataMember(Name = "signer", IsRequired = true, EmitDefaultValue = true)] public string Signer { get; set; } + /// /// The name of this attachment. @@ -109,6 +111,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// The name of this attachment. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// A boolean value denoting if this attachment is required. @@ -116,6 +119,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// A boolean value denoting if this attachment is required. [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] public bool Required { get; set; } + /// /// Instructions for Signer. @@ -123,6 +127,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// Instructions for Signer. [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } + /// /// Timestamp when attachment was uploaded by Signer. @@ -130,6 +135,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// Timestamp when attachment was uploaded by Signer. [DataMember(Name = "uploaded_at", EmitDefaultValue = true)] public int? UploadedAt { get; set; } + /// /// Returns the string presentation of the object @@ -244,12 +250,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs index 0bdd83eec..0b45e5aa3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs @@ -32,12 +32,10 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseCustomFieldBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldCheckbox), "SignatureRequestResponseCustomFieldCheckbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldText), "SignatureRequestResponseCustomFieldText")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseCustomFieldBase : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseCustomFieldBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +92,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// The name of the Custom Field. @@ -101,6 +100,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The name of the Custom Field. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// A boolean value denoting if this field is required. @@ -108,6 +108,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// A boolean value denoting if this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The unique ID for this field. @@ -115,6 +116,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The name of the Role that is able to edit this field. @@ -122,6 +124,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The name of the Role that is able to edit this field. [DataMember(Name = "editor", EmitDefaultValue = true)] public string Editor { get; set; } + /// /// Returns the string presentation of the object @@ -226,12 +229,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -241,7 +245,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs index 630b35414..1e69eed13 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,9 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SignatureRequestResponseCustomFieldBase`. /// [DataContract(Name = "SignatureRequestResponseCustomFieldCheckbox")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseCustomFieldCheckbox : SignatureRequestResponseCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -51,7 +47,7 @@ protected SignatureRequestResponseCustomFieldCheckbox() { } /// A boolean value denoting if this field is required.. /// The unique ID for this field.. /// The name of the Role that is able to edit this field.. - public SignatureRequestResponseCustomFieldCheckbox(string type = "checkbox", bool value = default(bool), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) + public SignatureRequestResponseCustomFieldCheckbox(string type = @"checkbox", bool value = default(bool), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) { this.Name = name; this.Required = required; @@ -89,6 +85,7 @@ public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) /// The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// A true/false for checkbox fields @@ -96,6 +93,7 @@ public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) /// A true/false for checkbox fields [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } + /// /// Returns the string presentation of the object @@ -171,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -186,7 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs index ac325b228..b037de58a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,9 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SignatureRequestResponseCustomFieldBase`. /// [DataContract(Name = "SignatureRequestResponseCustomFieldText")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseCustomFieldText : SignatureRequestResponseCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -51,7 +47,7 @@ protected SignatureRequestResponseCustomFieldText() { } /// A boolean value denoting if this field is required.. /// The unique ID for this field.. /// The name of the Role that is able to edit this field.. - public SignatureRequestResponseCustomFieldText(string type = "text", string value = default(string), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) + public SignatureRequestResponseCustomFieldText(string type = @"text", string value = default(string), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) { this.Name = name; this.Required = required; @@ -89,6 +85,7 @@ public static SignatureRequestResponseCustomFieldText Init(string jsonData) /// The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// A text string for text fields @@ -96,6 +93,7 @@ public static SignatureRequestResponseCustomFieldText Init(string jsonData) /// A text string for text fields [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -175,12 +173,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -190,7 +189,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs index f1de798d6..fc25c94fb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs @@ -43,7 +43,6 @@ public enum SignatureRequestResponseCustomFieldTypeEnum /// [EnumMember(Value = "checkbox")] Checkbox = 2 - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs index 5fc75797e..c1846dcc4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs @@ -32,15 +32,6 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "SignatureRequestResponseDataValueCheckbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "SignatureRequestResponseDataValueCheckboxMerge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "SignatureRequestResponseDataValueDateSigned")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "SignatureRequestResponseDataValueDropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "SignatureRequestResponseDataValueInitials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "SignatureRequestResponseDataValueRadio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "SignatureRequestResponseDataValueSignature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "SignatureRequestResponseDataValueText")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "SignatureRequestResponseDataValueTextMerge")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] @@ -51,7 +42,7 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataBase : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -98,6 +89,7 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The ID of the signature to which this response is linked. @@ -105,6 +97,7 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// The ID of the signature to which this response is linked. [DataMember(Name = "signature_id", EmitDefaultValue = true)] public string SignatureId { get; set; } + /// /// The name of the form field. @@ -112,6 +105,7 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// The name of the form field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// A boolean value denoting if this field is required. @@ -119,12 +113,14 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// A boolean value denoting if this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// Gets or Sets Type /// [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -229,12 +225,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -244,7 +241,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs index a2ddda7a9..25f045437 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs @@ -85,7 +85,6 @@ public enum SignatureRequestResponseDataTypeEnum /// [EnumMember(Value = "checkbox-merge")] CheckboxMerge = 9 - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs index 85ab84d1c..56a568383 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,16 +30,6 @@ namespace Dropbox.Sign.Model /// SignatureRequestResponseDataValueCheckbox /// [DataContract(Name = "SignatureRequestResponseDataValueCheckbox")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseDataValueCheckbox : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -58,7 +47,7 @@ protected SignatureRequestResponseDataValueCheckbox() { } /// 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 SignatureRequestResponseDataValueCheckbox(string type = "checkbox", bool value = default(bool), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueCheckbox(string type = @"checkbox", bool value = default(bool), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -92,6 +81,7 @@ public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) /// A yes/no checkbox [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -99,6 +89,7 @@ public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } + /// /// Returns the string presentation of the object @@ -174,12 +165,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -189,7 +181,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs index 0be785a6e..209028568 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,16 +30,6 @@ namespace Dropbox.Sign.Model /// SignatureRequestResponseDataValueCheckboxMerge /// [DataContract(Name = "SignatureRequestResponseDataValueCheckboxMerge")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseDataValueCheckboxMerge : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -58,7 +47,7 @@ protected SignatureRequestResponseDataValueCheckboxMerge() { } /// 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 SignatureRequestResponseDataValueCheckboxMerge(string type = "checkbox-merge", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueCheckboxMerge(string type = @"checkbox-merge", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -92,6 +81,7 @@ public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonDat /// A checkbox field that has default value set by the api [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -99,6 +89,7 @@ public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonDat /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -178,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -193,7 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs index 51c78629b..1229c2424 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,16 +30,6 @@ namespace Dropbox.Sign.Model /// SignatureRequestResponseDataValueDateSigned /// [DataContract(Name = "SignatureRequestResponseDataValueDateSigned")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseDataValueDateSigned : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -58,7 +47,7 @@ protected SignatureRequestResponseDataValueDateSigned() { } /// 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 SignatureRequestResponseDataValueDateSigned(string type = "date_signed", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueDateSigned(string type = @"date_signed", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -92,6 +81,7 @@ public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) /// A date [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -99,6 +89,7 @@ public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -178,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -193,7 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs index 1e509e552..d6061231a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,16 +30,6 @@ namespace Dropbox.Sign.Model /// SignatureRequestResponseDataValueDropdown /// [DataContract(Name = "SignatureRequestResponseDataValueDropdown")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseDataValueDropdown : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -58,7 +47,7 @@ protected SignatureRequestResponseDataValueDropdown() { } /// 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 SignatureRequestResponseDataValueDropdown(string type = "dropdown", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueDropdown(string type = @"dropdown", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -92,6 +81,7 @@ public static SignatureRequestResponseDataValueDropdown Init(string jsonData) /// An input field for dropdowns [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -99,6 +89,7 @@ public static SignatureRequestResponseDataValueDropdown Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -178,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -193,7 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index 6b90600ba..92a7b8fd7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,16 +30,6 @@ namespace Dropbox.Sign.Model /// SignatureRequestResponseDataValueInitials /// [DataContract(Name = "SignatureRequestResponseDataValueInitials")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseDataValueInitials : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -58,7 +47,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), 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), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -92,6 +81,7 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) /// An input field for initials [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -99,6 +89,7 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -178,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -193,7 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs index 9baad43be..565377f5b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,16 +30,6 @@ namespace Dropbox.Sign.Model /// SignatureRequestResponseDataValueRadio /// [DataContract(Name = "SignatureRequestResponseDataValueRadio")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseDataValueRadio : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -58,7 +47,7 @@ protected SignatureRequestResponseDataValueRadio() { } /// 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 SignatureRequestResponseDataValueRadio(string type = "radio", bool value = default(bool), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueRadio(string type = @"radio", bool value = default(bool), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -92,6 +81,7 @@ public static SignatureRequestResponseDataValueRadio Init(string jsonData) /// An input field for radios [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -99,6 +89,7 @@ public static SignatureRequestResponseDataValueRadio Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } + /// /// Returns the string presentation of the object @@ -174,12 +165,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -189,7 +181,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index d9405cacb..28b9e5a03 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,16 +30,6 @@ namespace Dropbox.Sign.Model /// SignatureRequestResponseDataValueSignature /// [DataContract(Name = "SignatureRequestResponseDataValueSignature")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseDataValueSignature : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -58,7 +47,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), 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), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -92,6 +81,7 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) /// A signature input field [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -99,6 +89,7 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -178,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -193,7 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs index ac5aec6e6..84a9330af 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,16 +30,6 @@ namespace Dropbox.Sign.Model /// SignatureRequestResponseDataValueText /// [DataContract(Name = "SignatureRequestResponseDataValueText")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseDataValueText : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -58,7 +47,7 @@ protected SignatureRequestResponseDataValueText() { } /// 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 SignatureRequestResponseDataValueText(string type = "text", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueText(string type = @"text", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -92,6 +81,7 @@ public static SignatureRequestResponseDataValueText Init(string jsonData) /// A text input field [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -99,6 +89,7 @@ public static SignatureRequestResponseDataValueText Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -178,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -193,7 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs index b33be2e8d..fa93108e2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,16 +30,6 @@ namespace Dropbox.Sign.Model /// SignatureRequestResponseDataValueTextMerge /// [DataContract(Name = "SignatureRequestResponseDataValueTextMerge")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SignatureRequestResponseDataValueTextMerge : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -58,7 +47,7 @@ protected SignatureRequestResponseDataValueTextMerge() { } /// 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 SignatureRequestResponseDataValueTextMerge(string type = "text-merge", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueTextMerge(string type = @"text-merge", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -92,6 +81,7 @@ public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) /// A text field that has default text set by the api [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -99,6 +89,7 @@ public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -178,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -193,7 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs index 02854bcae..ddb7c147b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseSignatures")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseSignatures : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseSignatures : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -106,6 +106,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Signature identifier. [DataMember(Name = "signature_id", EmitDefaultValue = true)] public string SignatureId { get; set; } + /// /// Signer Group GUID @@ -113,6 +114,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Signer Group GUID [DataMember(Name = "signer_group_guid", EmitDefaultValue = true)] public string SignerGroupGuid { get; set; } + /// /// The email address of the signer. @@ -120,6 +122,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The email address of the signer. [DataMember(Name = "signer_email_address", EmitDefaultValue = true)] public string SignerEmailAddress { get; set; } + /// /// The name of the signer. @@ -127,6 +130,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The name of the signer. [DataMember(Name = "signer_name", EmitDefaultValue = true)] public string SignerName { get; set; } + /// /// The role of the signer. @@ -134,6 +138,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The role of the signer. [DataMember(Name = "signer_role", EmitDefaultValue = true)] public string SignerRole { get; set; } + /// /// If signer order is assigned this is the 0-based index for this signer. @@ -141,6 +146,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// If signer order is assigned this is the 0-based index for this signer. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// The current status of the signature. eg: awaiting_signature, signed, declined. @@ -148,6 +154,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The current status of the signature. eg: awaiting_signature, signed, declined. [DataMember(Name = "status_code", EmitDefaultValue = true)] public string StatusCode { get; set; } + /// /// The reason provided by the signer for declining the request. @@ -155,6 +162,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The reason provided by the signer for declining the request. [DataMember(Name = "decline_reason", EmitDefaultValue = true)] public string DeclineReason { get; set; } + /// /// Time that the document was signed or null. @@ -162,6 +170,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Time that the document was signed or null. [DataMember(Name = "signed_at", EmitDefaultValue = true)] public int? SignedAt { get; set; } + /// /// The time that the document was last viewed by this signer or null. @@ -169,6 +178,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The time that the document was last viewed by this signer or null. [DataMember(Name = "last_viewed_at", EmitDefaultValue = true)] public int? LastViewedAt { get; set; } + /// /// The time the last reminder email was sent to the signer or null. @@ -176,6 +186,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The time the last reminder email was sent to the signer or null. [DataMember(Name = "last_reminded_at", EmitDefaultValue = true)] public int? LastRemindedAt { get; set; } + /// /// Boolean to indicate whether this signature requires a PIN to access. @@ -183,6 +194,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Boolean to indicate whether this signature requires a PIN to access. [DataMember(Name = "has_pin", EmitDefaultValue = true)] public bool HasPin { get; set; } + /// /// Boolean to indicate whether this signature has SMS authentication enabled. @@ -190,6 +202,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Boolean to indicate whether this signature has SMS authentication enabled. [DataMember(Name = "has_sms_auth", EmitDefaultValue = true)] public bool? HasSmsAuth { get; set; } + /// /// Boolean to indicate whether this signature has SMS delivery enabled. @@ -197,6 +210,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Boolean to indicate whether this signature has SMS delivery enabled. [DataMember(Name = "has_sms_delivery", EmitDefaultValue = true)] public bool? HasSmsDelivery { get; set; } + /// /// The SMS phone number used for authentication or signature request delivery. @@ -204,6 +218,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The SMS phone number used for authentication or signature request delivery. [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } + /// /// Email address of original signer who reassigned to this signer. @@ -211,6 +226,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Email address of original signer who reassigned to this signer. [DataMember(Name = "reassigned_by", EmitDefaultValue = true)] public string ReassignedBy { get; set; } + /// /// Reason provided by original signer who reassigned to this signer. @@ -218,6 +234,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Reason provided by original signer who reassigned to this signer. [DataMember(Name = "reassignment_reason", EmitDefaultValue = true)] public string ReassignmentReason { get; set; } + /// /// Previous signature identifier. @@ -225,6 +242,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Previous signature identifier. [DataMember(Name = "reassigned_from", EmitDefaultValue = true)] public string ReassignedFrom { get; set; } + /// /// Error message pertaining to this signer, or null. @@ -232,6 +250,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Error message pertaining to this signer, or null. [DataMember(Name = "error", EmitDefaultValue = true)] public string Error { get; set; } + /// /// Returns the string presentation of the object @@ -476,12 +495,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs index 62ea605bb..815366e24 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestSendRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestSendRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestSendRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -120,6 +120,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -127,6 +128,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -134,6 +136,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -141,6 +144,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "grouped_signers", EmitDefaultValue = true)] public List GroupedSigners { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -148,6 +152,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -155,6 +160,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -162,6 +168,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The email addresses that should be CCed. @@ -169,6 +176,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. @@ -176,6 +184,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -183,12 +192,14 @@ public static SignatureRequestSendRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -196,6 +207,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -203,6 +215,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -210,6 +223,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. @@ -217,6 +231,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } + /// /// Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br> **NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -225,6 +240,7 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "is_qualified_signature", EmitDefaultValue = true)] [Obsolete] public bool IsQualifiedSignature { get; set; } + /// /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -232,6 +248,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. [DataMember(Name = "is_eid", EmitDefaultValue = true)] public bool IsEid { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -239,6 +256,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -246,12 +264,14 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -259,6 +279,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -266,6 +287,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -273,6 +295,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -280,6 +303,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. @@ -287,6 +311,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } + /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -294,6 +319,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -595,29 +621,30 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs index ec6655419..181c4a721 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestSendWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestSendWithTemplateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestSendWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -112,6 +112,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// Add Signers to your Templated-based Signature Request. @@ -119,6 +120,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Add Signers to your Templated-based Signature Request. [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -126,6 +128,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -133,6 +136,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. @@ -140,6 +144,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. @@ -147,6 +152,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// An array defining values and options for custom fields. Required when a custom field exists in the Template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -154,6 +160,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -161,6 +168,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br> **NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -169,6 +177,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "is_qualified_signature", EmitDefaultValue = true)] [Obsolete] public bool IsQualifiedSignature { get; set; } + /// /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -176,6 +185,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. [DataMember(Name = "is_eid", EmitDefaultValue = true)] public bool IsEid { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -183,6 +193,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -190,12 +201,14 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -203,6 +216,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -210,6 +224,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -217,6 +232,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -224,6 +240,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Returns the string presentation of the object @@ -443,29 +460,30 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs index adff98749..8f9d4a916 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestUpdateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestUpdateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestUpdateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -81,6 +81,7 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The signature ID for the recipient. [DataMember(Name = "signature_id", IsRequired = true, EmitDefaultValue = true)] public string SignatureId { get; set; } + /// /// The new email address for the recipient. This will generate a new `signature_id` value. **NOTE:** Optional if `name` is provided. @@ -88,6 +89,7 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The new email address for the recipient. This will generate a new `signature_id` value. **NOTE:** Optional if `name` is provided. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The new name for the recipient. **NOTE:** Optional if `email_address` is provided. @@ -95,6 +97,7 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The new name for the recipient. **NOTE:** Optional if `email_address` is provided. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -102,6 +105,7 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -200,12 +204,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs index 8bdeca5e5..458d8d43d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubAttachment")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubAttachment : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubAttachment : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -81,6 +81,7 @@ public static SubAttachment Init(string jsonData) /// The name of attachment. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The signer's index in the `signers` parameter (0-based indexing). **NOTE:** Only one signer can be assigned per attachment. @@ -88,6 +89,7 @@ public static SubAttachment Init(string jsonData) /// The signer's index in the `signers` parameter (0-based indexing). **NOTE:** Only one signer can be assigned per attachment. [DataMember(Name = "signer_index", IsRequired = true, EmitDefaultValue = true)] public int SignerIndex { get; set; } + /// /// The instructions for uploading the attachment. @@ -95,6 +97,7 @@ public static SubAttachment Init(string jsonData) /// The instructions for uploading the attachment. [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } + /// /// Determines if the attachment must be uploaded. @@ -102,6 +105,7 @@ public static SubAttachment Init(string jsonData) /// Determines if the attachment must be uploaded. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// Returns the string presentation of the object @@ -192,12 +196,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs index 0563b89d1..6cb0453c4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubBulkSignerList")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubBulkSignerList : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubBulkSignerList : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static SubBulkSignerList Init(string jsonData) /// An array of custom field values. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. Currently only templates with a single role are supported. All signers must have the same `role` value. @@ -79,6 +80,7 @@ public static SubBulkSignerList Init(string jsonData) /// Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. Currently only templates with a single role are supported. All signers must have the same `role` value. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Returns the string presentation of the object @@ -159,12 +161,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs index 230e555a9..b03715cf8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubBulkSignerListCustomField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubBulkSignerListCustomField : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubBulkSignerListCustomField : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,7 @@ public static SubBulkSignerListCustomField Init(string jsonData) /// The name of the custom field. Must be the field's `name` or `api_id`. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The value of the custom field. @@ -89,6 +90,7 @@ public static SubBulkSignerListCustomField Init(string jsonData) /// The value of the custom field. [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -167,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs index b71485d71..152097511 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubCC")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubCC : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubCC : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,7 @@ public static SubCC Init(string jsonData) /// Must match an existing CC role in chosen Template(s). Multiple CC recipients cannot share the same CC role. [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } + /// /// The email address of the CC recipient. @@ -89,6 +90,7 @@ public static SubCC Init(string jsonData) /// The email address of the CC recipient. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -167,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs index 89e68881f..b2ef09c4e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubCustomField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubCustomField : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubCustomField : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -81,6 +81,7 @@ public static SubCustomField Init(string jsonData) /// The name of a custom field. When working with pre-filled data, the custom field's name must have a matching merge field name or the field will remain empty on the document during signing. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`. **NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. @@ -88,6 +89,7 @@ public static SubCustomField Init(string jsonData) /// Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`. **NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. [DataMember(Name = "editor", EmitDefaultValue = true)] public string Editor { get; set; } + /// /// Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. @@ -95,6 +97,7 @@ public static SubCustomField Init(string jsonData) /// Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The string that resolves (aka \"pre-fills\") to the merge field on the final document(s) used for signing. @@ -102,6 +105,7 @@ public static SubCustomField Init(string jsonData) /// The string that resolves (aka \"pre-fills\") to the merge field on the final document(s) used for signing. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -196,12 +200,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs index 93b4d5c57..584230378 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubEditorOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubEditorOptions : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubEditorOptions : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static SubEditorOptions Init(string jsonData) /// Allows requesters to edit the list of signers [DataMember(Name = "allow_edit_signers", EmitDefaultValue = true)] public bool AllowEditSigners { get; set; } + /// /// Allows requesters to edit documents, including delete and add @@ -79,6 +80,7 @@ public static SubEditorOptions Init(string jsonData) /// Allows requesters to edit documents, including delete and add [DataMember(Name = "allow_edit_documents", EmitDefaultValue = true)] public bool AllowEditDocuments { get; set; } + /// /// Returns the string presentation of the object @@ -149,12 +151,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs index 645148d2f..deefc0ed6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFieldOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFieldOptions : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFieldOptions : IEquatable, IValidatableObject { /// /// Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) **NOTE:** Only available for Premium and higher. @@ -75,7 +75,6 @@ public enum DateFormatEnum /// [EnumMember(Value = "YYYY - MM - DD")] YYYY_MM_DD = 6 - } @@ -179,12 +178,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs index 3e35e2104..47c5ba279 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldGroup")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldGroup : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldGroup : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -89,6 +89,7 @@ public static SubFormFieldGroup Init(string jsonData) /// ID of group. Use this to reference a specific group from the `group` value in `form_fields_per_document`. [DataMember(Name = "group_id", IsRequired = true, EmitDefaultValue = true)] public string GroupId { get; set; } + /// /// Name of the group @@ -96,6 +97,7 @@ public static SubFormFieldGroup Init(string jsonData) /// Name of the group [DataMember(Name = "group_label", IsRequired = true, EmitDefaultValue = true)] public string GroupLabel { get; set; } + /// /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. @@ -103,6 +105,7 @@ public static SubFormFieldGroup Init(string jsonData) /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. [DataMember(Name = "requirement", IsRequired = true, EmitDefaultValue = true)] public string Requirement { get; set; } + /// /// Returns the string presentation of the object @@ -191,12 +194,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs index 452440480..d214e456f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldRule")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldRule : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldRule : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -45,7 +45,7 @@ protected SubFormFieldRule() { } /// Currently only `AND` is supported. Support for `OR` is being worked on. (required) (default to "AND"). /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. (required). /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. (required). - public SubFormFieldRule(string id = default(string), string triggerOperator = "AND", List triggers = default(List), List actions = default(List)) + public SubFormFieldRule(string id = default(string), string triggerOperator = @"AND", List triggers = default(List), List actions = default(List)) { // to ensure "id" is required (not null) @@ -96,6 +96,7 @@ public static SubFormFieldRule Init(string jsonData) /// Must be unique across all defined rules. [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } + /// /// Currently only `AND` is supported. Support for `OR` is being worked on. @@ -103,6 +104,7 @@ public static SubFormFieldRule Init(string jsonData) /// Currently only `AND` is supported. Support for `OR` is being worked on. [DataMember(Name = "trigger_operator", IsRequired = true, EmitDefaultValue = true)] public string TriggerOperator { get; set; } + /// /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. @@ -110,6 +112,7 @@ public static SubFormFieldRule Init(string jsonData) /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. [DataMember(Name = "triggers", IsRequired = true, EmitDefaultValue = true)] public List Triggers { get; set; } + /// /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. @@ -117,6 +120,7 @@ public static SubFormFieldRule Init(string jsonData) /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. [DataMember(Name = "actions", IsRequired = true, EmitDefaultValue = true)] public List Actions { get; set; } + /// /// Returns the string presentation of the object @@ -217,12 +221,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs index 4e1e214ad..e2350b07c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldRuleAction")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldRuleAction : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldRuleAction : IEquatable, IValidatableObject { /// /// Defines Type @@ -50,7 +50,6 @@ public enum TypeEnum /// [EnumMember(Value = "change-group-visibility")] GroupVisibility = 2 - } @@ -102,6 +101,7 @@ public static SubFormFieldRuleAction Init(string jsonData) /// `true` to hide the target field when rule is satisfied, otherwise `false`. [DataMember(Name = "hidden", IsRequired = true, EmitDefaultValue = true)] public bool Hidden { get; set; } + /// /// **field_id** or **group_id** is required, but not both. Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Cannot use with `group_id`. Trigger and action fields must belong to the same signer. @@ -109,6 +109,7 @@ public static SubFormFieldRuleAction Init(string jsonData) /// **field_id** or **group_id** is required, but not both. Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Cannot use with `group_id`. Trigger and action fields must belong to the same signer. [DataMember(Name = "field_id", EmitDefaultValue = true)] public string FieldId { get; set; } + /// /// **group_id** or **field_id** is required, but not both. Must reference the ID of an existing group defined within `form_field_groups`. Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. @@ -116,6 +117,7 @@ public static SubFormFieldRuleAction Init(string jsonData) /// **group_id** or **field_id** is required, but not both. Must reference the ID of an existing group defined within `form_field_groups`. Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. [DataMember(Name = "group_id", EmitDefaultValue = true)] public string GroupId { get; set; } + /// /// Returns the string presentation of the object @@ -206,12 +208,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs index c6cf12d13..5719dcb4f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldRuleTrigger")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldRuleTrigger : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldRuleTrigger : IEquatable, IValidatableObject { /// /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value @@ -69,7 +69,6 @@ public enum OperatorEnum /// [EnumMember(Value = "not")] Not = 5 - } @@ -88,10 +87,10 @@ protected SubFormFieldRuleTrigger() { } /// Initializes a new instance of the class. /// /// Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Trigger and action fields and groups must belong to the same signer. (required). - /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value (required). + /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value (required). /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1`. /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none`. - public SubFormFieldRuleTrigger(string id = default(string), OperatorEnum _operator = default(OperatorEnum), string value = default(string), List values = default(List)) + public SubFormFieldRuleTrigger(string id = default(string), OperatorEnum varOperator = default(OperatorEnum), string value = default(string), List values = default(List)) { // to ensure "id" is required (not null) @@ -100,7 +99,7 @@ protected SubFormFieldRuleTrigger() { } throw new ArgumentNullException("id is a required property for SubFormFieldRuleTrigger and cannot be null"); } this.Id = id; - this.Operator = _operator; + this.Operator = varOperator; this.Value = value; this.Values = values; } @@ -127,6 +126,7 @@ public static SubFormFieldRuleTrigger Init(string jsonData) /// Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Trigger and action fields and groups must belong to the same signer. [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } + /// /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1` @@ -134,6 +134,7 @@ public static SubFormFieldRuleTrigger Init(string jsonData) /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1` [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none` @@ -141,6 +142,7 @@ public static SubFormFieldRuleTrigger Init(string jsonData) /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none` [DataMember(Name = "values", EmitDefaultValue = true)] public List Values { get; set; } + /// /// Returns the string presentation of the object @@ -236,12 +238,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs index 01d1b51a6..2c4a31227 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs @@ -32,16 +32,6 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "SubFormFieldsPerDocumentCheckbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "SubFormFieldsPerDocumentCheckboxMerge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "SubFormFieldsPerDocumentDateSigned")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "SubFormFieldsPerDocumentDropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "SubFormFieldsPerDocumentHyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "SubFormFieldsPerDocumentInitials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "SubFormFieldsPerDocumentRadio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "SubFormFieldsPerDocumentSignature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "SubFormFieldsPerDocumentText")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "SubFormFieldsPerDocumentTextMerge")] [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] @@ -53,7 +43,7 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentBase : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -127,6 +117,7 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// Represents the integer index of the `file` or `file_url` document the field should be attached to. [DataMember(Name = "document_index", IsRequired = true, EmitDefaultValue = true)] public int DocumentIndex { get; set; } + /// /// An identifier for the field that is unique across all documents in the request. @@ -134,6 +125,7 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// An identifier for the field that is unique across all documents in the request. [DataMember(Name = "api_id", IsRequired = true, EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// Size of the field in pixels. @@ -141,6 +133,7 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// Size of the field in pixels. [DataMember(Name = "height", IsRequired = true, EmitDefaultValue = true)] public int Height { get; set; } + /// /// Whether this field is required. @@ -148,6 +141,7 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// Whether this field is required. [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] public bool Required { get; set; } + /// /// Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. **NOTE:** To set the value of the field as the preparer you must set this to `me_now` **NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. @@ -166,6 +160,7 @@ public object Signer { /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Size of the field in pixels. @@ -173,6 +168,7 @@ public object Signer { /// Size of the field in pixels. [DataMember(Name = "width", IsRequired = true, EmitDefaultValue = true)] public int Width { get; set; } + /// /// Location coordinates of the field in pixels. @@ -180,6 +176,7 @@ public object Signer { /// Location coordinates of the field in pixels. [DataMember(Name = "x", IsRequired = true, EmitDefaultValue = true)] public int X { get; set; } + /// /// Location coordinates of the field in pixels. @@ -187,6 +184,7 @@ public object Signer { /// Location coordinates of the field in pixels. [DataMember(Name = "y", IsRequired = true, EmitDefaultValue = true)] public int Y { get; set; } + /// /// Display name for the field. @@ -194,6 +192,7 @@ public object Signer { /// Display name for the field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Page in the document where the field should be placed (requires documents be PDF files). - When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. @@ -201,6 +200,7 @@ public object Signer { /// Page in the document where the field should be placed (requires documents be PDF files). - When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. [DataMember(Name = "page", EmitDefaultValue = true)] public int? Page { get; set; } + /// /// Returns the string presentation of the object @@ -345,12 +345,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -360,7 +361,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs index f9c1d6a2f..6bde5b7de 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentCheckbox")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentCheckbox : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -66,7 +54,7 @@ protected SubFormFieldsPerDocumentCheckbox() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentCheckbox(string type = "checkbox", string group = default(string), bool isChecked = default(bool), int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentCheckbox(string type = @"checkbox", string group = default(string), bool isChecked = default(bool), int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -111,6 +99,7 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) /// A yes/no checkbox. Use the `SubFormFieldsPerDocumentCheckbox` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// `true` for checking the checkbox field by default, otherwise `false`. @@ -118,6 +107,7 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) /// `true` for checking the checkbox field by default, otherwise `false`. [DataMember(Name = "is_checked", IsRequired = true, EmitDefaultValue = true)] public bool IsChecked { get; set; } + /// /// String referencing group defined in `form_field_groups` parameter. @@ -125,6 +115,7 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) /// String referencing group defined in `form_field_groups` parameter. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// /// Returns the string presentation of the object @@ -210,12 +201,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -225,7 +217,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs index fba5b5b6d..3e4b9e569 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentCheckboxMerge")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentCheckboxMerge : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -64,7 +52,7 @@ protected SubFormFieldsPerDocumentCheckboxMerge() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentCheckboxMerge(string type = "checkbox-merge", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentCheckboxMerge(string type = @"checkbox-merge", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -107,6 +95,7 @@ public static SubFormFieldsPerDocumentCheckboxMerge Init(string jsonData) /// A checkbox field that has default value set using pre-filled data. Use the `SubFormFieldsPerDocumentCheckboxMerge` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -176,12 +165,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -191,7 +181,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs index 7a7d2e1fb..c317ee776 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentDateSigned")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentDateSigned : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -147,7 +135,6 @@ public enum FontFamilyEnum /// [EnumMember(Value = "notoSanThaiMerged")] NotoSanThaiMerged = 16 - } @@ -178,7 +165,7 @@ protected SubFormFieldsPerDocumentDateSigned() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentDateSigned(string type = "date_signed", FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentDateSigned(string type = @"date_signed", FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -223,6 +210,7 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) /// A date. Use the `SubFormFieldsPerDocumentDateSigned` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -230,6 +218,7 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -311,12 +300,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -326,7 +316,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs index 3ce9bf793..088afa90e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentDropdown")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentDropdown : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -147,7 +135,6 @@ public enum FontFamilyEnum /// [EnumMember(Value = "notoSanThaiMerged")] NotoSanThaiMerged = 16 - } @@ -180,7 +167,7 @@ protected SubFormFieldsPerDocumentDropdown() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentDropdown(string type = "dropdown", List options = default(List), string content = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentDropdown(string type = @"dropdown", List options = default(List), string content = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -232,6 +219,7 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// An input field for dropdowns. Use the `SubFormFieldsPerDocumentDropdown` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Array of string values representing dropdown values. @@ -239,6 +227,7 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// Array of string values representing dropdown values. [DataMember(Name = "options", IsRequired = true, EmitDefaultValue = true)] public List Options { get; set; } + /// /// Selected value in `options` array. Value must exist in array. @@ -246,6 +235,7 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// Selected value in `options` array. Value must exist in array. [DataMember(Name = "content", EmitDefaultValue = true)] public string Content { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -253,6 +243,7 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -355,12 +346,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -370,7 +362,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs index 692aacede..84b4ad0d7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs @@ -127,7 +127,6 @@ public enum SubFormFieldsPerDocumentFontEnum /// [EnumMember(Value = "notoSanThaiMerged")] NotoSanThaiMerged = 16 - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs index 97309cf07..57e7080ef 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentHyperlink")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentHyperlink : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -147,7 +135,6 @@ public enum FontFamilyEnum /// [EnumMember(Value = "notoSanThaiMerged")] NotoSanThaiMerged = 16 - } @@ -180,7 +167,7 @@ protected SubFormFieldsPerDocumentHyperlink() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentHyperlink(string type = "hyperlink", string content = default(string), string contentUrl = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentHyperlink(string type = @"hyperlink", string content = default(string), string contentUrl = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -237,6 +224,7 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// A hyperlink field. Use the `SubFormFieldsPerDocumentHyperlink` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Link Text. @@ -244,6 +232,7 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// Link Text. [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] public string Content { get; set; } + /// /// Link URL. @@ -251,6 +240,7 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// Link URL. [DataMember(Name = "content_url", IsRequired = true, EmitDefaultValue = true)] public string ContentUrl { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -258,6 +248,7 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -359,12 +350,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -374,7 +366,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs index 43989b939..6cb01dc29 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentInitials")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentInitials : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -64,7 +52,7 @@ protected SubFormFieldsPerDocumentInitials() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentInitials(string type = "initials", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentInitials(string type = @"initials", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -107,6 +95,7 @@ public static SubFormFieldsPerDocumentInitials Init(string jsonData) /// An input field for initials. Use the `SubFormFieldsPerDocumentInitials` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -176,12 +165,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -191,7 +181,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs index 3894208cd..8388b0554 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentRadio")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentRadio : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -66,7 +54,7 @@ protected SubFormFieldsPerDocumentRadio() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentRadio(string type = "radio", string group = default(string), bool isChecked = default(bool), int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentRadio(string type = @"radio", string group = default(string), bool isChecked = default(bool), int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -116,6 +104,7 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) /// An input field for radios. Use the `SubFormFieldsPerDocumentRadio` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// String referencing group defined in `form_field_groups` parameter. @@ -123,6 +112,7 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) /// String referencing group defined in `form_field_groups` parameter. [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] public string Group { get; set; } + /// /// `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. @@ -130,6 +120,7 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) /// `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. [DataMember(Name = "is_checked", IsRequired = true, EmitDefaultValue = true)] public bool IsChecked { get; set; } + /// /// Returns the string presentation of the object @@ -215,12 +206,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -230,7 +222,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs index 783e9af7d..366776a6f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentSignature")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentSignature : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -64,7 +52,7 @@ protected SubFormFieldsPerDocumentSignature() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentSignature(string type = "signature", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentSignature(string type = @"signature", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -107,6 +95,7 @@ public static SubFormFieldsPerDocumentSignature Init(string jsonData) /// A signature input field. Use the `SubFormFieldsPerDocumentSignature` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -176,12 +165,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -191,7 +181,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs index c7f0abea2..1dafc9d1c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentText")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentText : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -111,7 +99,6 @@ public enum ValidationTypeEnum /// [EnumMember(Value = "custom_regex")] CustomRegex = 10 - } @@ -223,7 +210,6 @@ public enum FontFamilyEnum /// [EnumMember(Value = "notoSanThaiMerged")] NotoSanThaiMerged = 16 - } @@ -262,7 +248,7 @@ protected SubFormFieldsPerDocumentText() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentText(string type = "text", string placeholder = default(string), string autoFillType = default(string), string linkId = default(string), bool masked = default(bool), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string validationCustomRegex = default(string), string validationCustomRegexFormatLabel = default(string), string content = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentText(string type = @"text", string placeholder = default(string), string autoFillType = default(string), string linkId = default(string), bool masked = default(bool), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string validationCustomRegex = default(string), string validationCustomRegexFormatLabel = default(string), string content = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -315,6 +301,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// A text input field. Use the `SubFormFieldsPerDocumentText` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Placeholder value for text field. @@ -322,6 +309,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Placeholder value for text field. [DataMember(Name = "placeholder", EmitDefaultValue = true)] public string Placeholder { get; set; } + /// /// Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. @@ -329,6 +317,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. [DataMember(Name = "auto_fill_type", EmitDefaultValue = true)] public string AutoFillType { get; set; } + /// /// Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. @@ -336,6 +325,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. [DataMember(Name = "link_id", EmitDefaultValue = true)] public string LinkId { get; set; } + /// /// Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. @@ -343,18 +333,21 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. [DataMember(Name = "masked", EmitDefaultValue = true)] public bool Masked { get; set; } + /// /// Gets or Sets ValidationCustomRegex /// [DataMember(Name = "validation_custom_regex", EmitDefaultValue = true)] public string ValidationCustomRegex { get; set; } + /// /// Gets or Sets ValidationCustomRegexFormatLabel /// [DataMember(Name = "validation_custom_regex_format_label", EmitDefaultValue = true)] public string ValidationCustomRegexFormatLabel { get; set; } + /// /// Content of a `me_now` text field @@ -362,6 +355,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Content of a `me_now` text field [DataMember(Name = "content", EmitDefaultValue = true)] public string Content { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -369,6 +363,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -522,12 +517,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -537,7 +533,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs index 4afda0f29..10010bae8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,17 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `SubFormFieldsPerDocumentBase`. /// [DataContract(Name = "SubFormFieldsPerDocumentTextMerge")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentCheckboxMerge), "checkbox-merge")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] - [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class SubFormFieldsPerDocumentTextMerge : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -147,7 +135,6 @@ public enum FontFamilyEnum /// [EnumMember(Value = "notoSanThaiMerged")] NotoSanThaiMerged = 16 - } @@ -178,7 +165,7 @@ protected SubFormFieldsPerDocumentTextMerge() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentTextMerge(string type = "text-merge", FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentTextMerge(string type = @"text-merge", FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -223,6 +210,7 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) /// A text field that has default text set using pre-filled data. Use the `SubFormFieldsPerDocumentTextMerge` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -230,6 +218,7 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -311,12 +300,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -326,7 +316,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs index f0158375d..4a45ad866 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs @@ -91,7 +91,6 @@ public enum SubFormFieldsPerDocumentTypeEnum /// [EnumMember(Value = "text-merge")] TextMerge = 10 - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs index e80df5c4a..c47d6ac3a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubMergeField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubMergeField : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubMergeField : IEquatable, IValidatableObject { /// /// The type of merge field. @@ -51,7 +51,6 @@ public enum TypeEnum /// [EnumMember(Value = "checkbox")] Checkbox = 2 - } @@ -105,6 +104,7 @@ public static SubMergeField Init(string jsonData) /// The name of the merge field. Must be unique. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -179,12 +179,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs index 0db223597..891963667 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubOAuth")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubOAuth : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubOAuth : IEquatable, IValidatableObject { /// /// Defines Scopes @@ -86,17 +86,8 @@ public enum ScopesEnum /// [EnumMember(Value = "")] Empty = 8 - } - - - /// - /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). - /// - /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). - [DataMember(Name = "scopes", EmitDefaultValue = true)] - public List Scopes { get; set; } /// /// Initializes a new instance of the class. /// @@ -136,6 +127,15 @@ public static SubOAuth Init(string jsonData) /// The callback URL to be used for OAuth flows. (Required if `oauth[scopes]` is provided) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + + + /// + /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). + /// + /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). + [DataMember(Name = "scopes", EmitDefaultValue = true)] + public List Scopes { get; set; } + /// /// Returns the string presentation of the object @@ -189,6 +189,8 @@ public bool Equals(SubOAuth input) ) && ( this.Scopes == input.Scopes || + this.Scopes != null && + input.Scopes != null && this.Scopes.SequenceEqual(input.Scopes) ); } @@ -206,16 +208,20 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CallbackUrl.GetHashCode(); } - hashCode = (hashCode * 59) + this.Scopes.GetHashCode(); + if (this.Scopes != null) + { + hashCode = (hashCode * 59) + this.Scopes.GetHashCode(); + } return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -232,7 +238,7 @@ public List GetOpenApiTypes() types.Add(new OpenApiType(){ Name = "scopes", Property = "Scopes", - Type = "List", + Type = "List", Value = Scopes, }); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs index 300a8870f..8e8e3fa40 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubOptions : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubOptions : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -70,6 +70,7 @@ public static SubOptions Init(string jsonData) /// Determines if signers can use \"Insert Everywhere\" when signing a document. [DataMember(Name = "can_insert_everywhere", EmitDefaultValue = true)] public bool CanInsertEverywhere { get; set; } + /// /// Returns the string presentation of the object @@ -134,12 +135,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs index 89df426c8..ef20bc635 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSignatureRequestGroupedSigners")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSignatureRequestGroupedSigners : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubSignatureRequestGroupedSigners : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -84,6 +84,7 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) /// The name of the group. [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] public string Group { get; set; } + /// /// Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. @@ -91,6 +92,7 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) /// Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } + /// /// The order the group is required to sign in. Use this instead of Signer-level `order`. @@ -98,6 +100,7 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) /// The order the group is required to sign in. Use this instead of Signer-level `order`. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// Returns the string presentation of the object @@ -187,12 +190,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs index 5b7cb6f51..f82ed3d33 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSignatureRequestSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSignatureRequestSigner : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubSignatureRequestSigner : IEquatable, IValidatableObject { /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). @@ -51,7 +51,6 @@ public enum SmsPhoneNumberTypeEnum /// [EnumMember(Value = "delivery")] Delivery = 2 - } @@ -118,6 +117,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The email address of the signer. @@ -125,6 +125,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The email address of the signer. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The order the signer is required to sign in. @@ -132,6 +133,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The order the signer is required to sign in. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// The 4- to 12-character access code that will secure this signer's signature page. @@ -139,6 +141,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The 4- to 12-character access code that will secure this signer's signature page. [DataMember(Name = "pin", EmitDefaultValue = true)] public string Pin { get; set; } + /// /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. @@ -146,6 +149,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } + /// /// Returns the string presentation of the object @@ -260,23 +264,24 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Pin (string) maxLength if (this.Pin != null && this.Pin.Length > 12) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); + yield return new ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); } // Pin (string) minLength if (this.Pin != null && this.Pin.Length < 4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); + yield return new ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs index ca78ce6ad..c6c7014e3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSignatureRequestTemplateSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSignatureRequestTemplateSigner : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubSignatureRequestTemplateSigner : IEquatable, IValidatableObject { /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). @@ -51,7 +51,6 @@ public enum SmsPhoneNumberTypeEnum /// [EnumMember(Value = "delivery")] Delivery = 2 - } @@ -123,6 +122,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// Must match an existing role in chosen Template(s). It's case-sensitive. [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } + /// /// The name of the signer. @@ -130,6 +130,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The email address of the signer. @@ -137,6 +138,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// The email address of the signer. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The 4- to 12-character access code that will secure this signer's signature page. @@ -144,6 +146,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// The 4- to 12-character access code that will secure this signer's signature page. [DataMember(Name = "pin", EmitDefaultValue = true)] public string Pin { get; set; } + /// /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. @@ -151,6 +154,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } + /// /// Returns the string presentation of the object @@ -265,23 +269,24 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Pin (string) maxLength if (this.Pin != null && this.Pin.Length > 12) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); + yield return new ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); } // Pin (string) minLength if (this.Pin != null && this.Pin.Length < 4) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); + yield return new ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs index e9f1288aa..81b37ad05 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSigningOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSigningOptions : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubSigningOptions : IEquatable, IValidatableObject { /// /// The default type shown (limited to the listed types) @@ -63,7 +63,6 @@ public enum DefaultTypeEnum /// [EnumMember(Value = "upload")] Upload = 4 - } @@ -118,6 +117,7 @@ public static SubSigningOptions Init(string jsonData) /// Allows drawing the signature [DataMember(Name = "draw", EmitDefaultValue = true)] public bool Draw { get; set; } + /// /// Allows using a smartphone to email the signature @@ -125,6 +125,7 @@ public static SubSigningOptions Init(string jsonData) /// Allows using a smartphone to email the signature [DataMember(Name = "phone", EmitDefaultValue = true)] public bool Phone { get; set; } + /// /// Allows typing the signature @@ -132,6 +133,7 @@ public static SubSigningOptions Init(string jsonData) /// Allows typing the signature [DataMember(Name = "type", EmitDefaultValue = true)] public bool Type { get; set; } + /// /// Allows uploading the signature @@ -139,6 +141,7 @@ public static SubSigningOptions Init(string jsonData) /// Allows uploading the signature [DataMember(Name = "upload", EmitDefaultValue = true)] public bool Upload { get; set; } + /// /// Returns the string presentation of the object @@ -227,12 +230,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs index 82c755ed2..4e662a311 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubTeamResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubTeamResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubTeamResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static SubTeamResponse Init(string jsonData) /// The id of a team [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// The name of a team @@ -79,6 +80,7 @@ public static SubTeamResponse Init(string jsonData) /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs index 6245a7601..a10e28c5f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubTemplateRole")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubTemplateRole : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubTemplateRole : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static SubTemplateRole Init(string jsonData) /// The role name of the signer that will be displayed when the template is used to create a signature request. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The order in which this signer role is required to sign. @@ -79,6 +80,7 @@ public static SubTemplateRole Init(string jsonData) /// The order in which this signer role is required to sign. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs index 2697fb05c..8dd1243e4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubUnclaimedDraftSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubUnclaimedDraftSigner : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubUnclaimedDraftSigner : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -84,6 +84,7 @@ public static SubUnclaimedDraftSigner Init(string jsonData) /// The email address of the signer. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The name of the signer. @@ -91,6 +92,7 @@ public static SubUnclaimedDraftSigner Init(string jsonData) /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The order the signer is required to sign in. @@ -98,6 +100,7 @@ public static SubUnclaimedDraftSigner Init(string jsonData) /// The order the signer is required to sign in. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// Returns the string presentation of the object @@ -186,12 +189,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs index 8f7b8d7d8..2d295102b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubUnclaimedDraftTemplateSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubUnclaimedDraftTemplateSigner : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubUnclaimedDraftTemplateSigner : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -89,6 +89,7 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) /// Must match an existing role in chosen Template(s). [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } + /// /// The name of the signer filling the role of `role`. @@ -96,6 +97,7 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) /// The name of the signer filling the role of `role`. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The email address of the signer filling the role of `role`. @@ -103,6 +105,7 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) /// The email address of the signer filling the role of `role`. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -191,12 +194,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs index c15d608d4..5a9571e5c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubWhiteLabelingOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubWhiteLabelingOptions : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubWhiteLabelingOptions : IEquatable, IValidatableObject { /// /// Defines LegalVersion @@ -50,7 +50,6 @@ public enum LegalVersionEnum /// [EnumMember(Value = "terms2")] Terms2 = 2 - } @@ -82,7 +81,7 @@ protected SubWhiteLabelingOptions() { } /// textColor1 (default to "#808080"). /// textColor2 (default to "#FFFFFF"). /// Resets white labeling options to defaults. Only useful when updating an API App.. - public SubWhiteLabelingOptions(string headerBackgroundColor = "#1A1A1A", LegalVersionEnum? legalVersion = LegalVersionEnum.Terms1, string linkColor = "#00B3E6", string pageBackgroundColor = "#F7F8F9", string primaryButtonColor = "#00B3E6", string primaryButtonColorHover = "#00B3E6", string primaryButtonTextColor = "#FFFFFF", string primaryButtonTextColorHover = "#FFFFFF", string secondaryButtonColor = "#FFFFFF", string secondaryButtonColorHover = "#FFFFFF", string secondaryButtonTextColor = "#00B3E6", string secondaryButtonTextColorHover = "#00B3E6", string textColor1 = "#808080", string textColor2 = "#FFFFFF", bool resetToDefault = default(bool)) + public SubWhiteLabelingOptions(string headerBackgroundColor = @"#1A1A1A", LegalVersionEnum? legalVersion = LegalVersionEnum.Terms1, string linkColor = @"#00B3E6", string pageBackgroundColor = @"#F7F8F9", string primaryButtonColor = @"#00B3E6", string primaryButtonColorHover = @"#00B3E6", string primaryButtonTextColor = @"#FFFFFF", string primaryButtonTextColorHover = @"#FFFFFF", string secondaryButtonColor = @"#FFFFFF", string secondaryButtonColorHover = @"#FFFFFF", string secondaryButtonTextColor = @"#00B3E6", string secondaryButtonTextColorHover = @"#00B3E6", string textColor1 = @"#808080", string textColor2 = @"#FFFFFF", bool resetToDefault = default(bool)) { // use default value if no "headerBackgroundColor" provided @@ -136,78 +135,91 @@ public static SubWhiteLabelingOptions Init(string jsonData) /// [DataMember(Name = "header_background_color", EmitDefaultValue = true)] public string HeaderBackgroundColor { get; set; } + /// /// Gets or Sets LinkColor /// [DataMember(Name = "link_color", EmitDefaultValue = true)] public string LinkColor { get; set; } + /// /// Gets or Sets PageBackgroundColor /// [DataMember(Name = "page_background_color", EmitDefaultValue = true)] public string PageBackgroundColor { get; set; } + /// /// Gets or Sets PrimaryButtonColor /// [DataMember(Name = "primary_button_color", EmitDefaultValue = true)] public string PrimaryButtonColor { get; set; } + /// /// Gets or Sets PrimaryButtonColorHover /// [DataMember(Name = "primary_button_color_hover", EmitDefaultValue = true)] public string PrimaryButtonColorHover { get; set; } + /// /// Gets or Sets PrimaryButtonTextColor /// [DataMember(Name = "primary_button_text_color", EmitDefaultValue = true)] public string PrimaryButtonTextColor { get; set; } + /// /// Gets or Sets PrimaryButtonTextColorHover /// [DataMember(Name = "primary_button_text_color_hover", EmitDefaultValue = true)] public string PrimaryButtonTextColorHover { get; set; } + /// /// Gets or Sets SecondaryButtonColor /// [DataMember(Name = "secondary_button_color", EmitDefaultValue = true)] public string SecondaryButtonColor { get; set; } + /// /// Gets or Sets SecondaryButtonColorHover /// [DataMember(Name = "secondary_button_color_hover", EmitDefaultValue = true)] public string SecondaryButtonColorHover { get; set; } + /// /// Gets or Sets SecondaryButtonTextColor /// [DataMember(Name = "secondary_button_text_color", EmitDefaultValue = true)] public string SecondaryButtonTextColor { get; set; } + /// /// Gets or Sets SecondaryButtonTextColorHover /// [DataMember(Name = "secondary_button_text_color_hover", EmitDefaultValue = true)] public string SecondaryButtonTextColorHover { get; set; } + /// /// Gets or Sets TextColor1 /// [DataMember(Name = "text_color1", EmitDefaultValue = true)] public string TextColor1 { get; set; } + /// /// Gets or Sets TextColor2 /// [DataMember(Name = "text_color2", EmitDefaultValue = true)] public string TextColor2 { get; set; } + /// /// Resets white labeling options to defaults. Only useful when updating an API App. @@ -215,6 +227,7 @@ public static SubWhiteLabelingOptions Init(string jsonData) /// Resets white labeling options to defaults. Only useful when updating an API App. [DataMember(Name = "reset_to_default", EmitDefaultValue = true)] public bool ResetToDefault { get; set; } + /// /// Returns the string presentation of the object @@ -415,12 +428,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs index 31f0c59d7..f9163653b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamAddMemberRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamAddMemberRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamAddMemberRequest : IEquatable, IValidatableObject { /// /// A role member will take in a new Team. **NOTE:** This parameter is used only if `team_id` is provided. @@ -63,7 +63,6 @@ public enum RoleEnum /// [EnumMember(Value = "Admin")] Admin = 4 - } @@ -114,6 +113,7 @@ public static TeamAddMemberRequest Init(string jsonData) /// `account_id` or `email_address` is required. If both are provided, the account id prevails. Account id of the user to invite to your Team. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// `account_id` or `email_address` is required, If both are provided, the account id prevails. Email address of the user to invite to your Team. @@ -121,6 +121,7 @@ public static TeamAddMemberRequest Init(string jsonData) /// `account_id` or `email_address` is required, If both are provided, the account id prevails. Email address of the user to invite to your Team. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -205,12 +206,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs index 20367fc25..f576caa6b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamCreateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamCreateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -42,7 +42,7 @@ protected TeamCreateRequest() { } /// Initializes a new instance of the class. /// /// The name of your Team. (default to "Untitled Team"). - public TeamCreateRequest(string name = "Untitled Team") + public TeamCreateRequest(string name = @"Untitled Team") { // use default value if no "name" provided @@ -71,6 +71,7 @@ public static TeamCreateRequest Init(string jsonData) /// The name of your Team. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -139,12 +140,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs index 12270e072..2e2e48d01 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamGetInfoResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamGetInfoResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamGetInfoResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static TeamGetInfoResponse Init(string jsonData) /// [DataMember(Name = "team", EmitDefaultValue = true)] public TeamInfoResponse Team { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static TeamGetInfoResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs index 842882286..e56f464ea 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamGetResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static TeamGetResponse Init(string jsonData) /// [DataMember(Name = "team", EmitDefaultValue = true)] public TeamResponse Team { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static TeamGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs index 7a48be533..cdca341b4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamInfoResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamInfoResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamInfoResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,12 +78,14 @@ public static TeamInfoResponse Init(string jsonData) /// The id of a team [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// Gets or Sets TeamParent /// [DataMember(Name = "team_parent", EmitDefaultValue = true)] public TeamParentResponse TeamParent { get; set; } + /// /// The name of a team @@ -91,6 +93,7 @@ public static TeamInfoResponse Init(string jsonData) /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Number of members within a team @@ -98,6 +101,7 @@ public static TeamInfoResponse Init(string jsonData) /// Number of members within a team [DataMember(Name = "num_members", EmitDefaultValue = true)] public int NumMembers { get; set; } + /// /// Number of sub teams within a team @@ -105,6 +109,7 @@ public static TeamInfoResponse Init(string jsonData) /// Number of sub teams within a team [DataMember(Name = "num_sub_teams", EmitDefaultValue = true)] public int NumSubTeams { get; set; } + /// /// Returns the string presentation of the object @@ -205,12 +210,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs index 24fa2f800..18b6893d2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamInviteResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamInviteResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamInviteResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,7 @@ public static TeamInviteResponse Init(string jsonData) /// Email address of the user invited to this team. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Id of the team. @@ -87,6 +88,7 @@ public static TeamInviteResponse Init(string jsonData) /// Id of the team. [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// Role of the user invited to this team. @@ -94,6 +96,7 @@ public static TeamInviteResponse Init(string jsonData) /// Role of the user invited to this team. [DataMember(Name = "role", EmitDefaultValue = true)] public string Role { get; set; } + /// /// Timestamp when the invitation was sent. @@ -101,6 +104,7 @@ public static TeamInviteResponse Init(string jsonData) /// Timestamp when the invitation was sent. [DataMember(Name = "sent_at", EmitDefaultValue = true)] public int SentAt { get; set; } + /// /// Timestamp when the invitation was redeemed. @@ -108,6 +112,7 @@ public static TeamInviteResponse Init(string jsonData) /// Timestamp when the invitation was redeemed. [DataMember(Name = "redeemed_at", EmitDefaultValue = true)] public int RedeemedAt { get; set; } + /// /// Timestamp when the invitation is expiring. @@ -115,6 +120,7 @@ public static TeamInviteResponse Init(string jsonData) /// Timestamp when the invitation is expiring. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -221,12 +227,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs index bd0f0799d..2e2390233 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamInvitesResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamInvitesResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamInvitesResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,12 +72,14 @@ public static TeamInvitesResponse Init(string jsonData) /// Contains a list of team invites and their roles. [DataMember(Name = "team_invites", EmitDefaultValue = true)] public List TeamInvites { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -158,12 +160,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs index bdfe00b75..a87f276d5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamMemberResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamMemberResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamMemberResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,6 +74,7 @@ public static TeamMemberResponse Init(string jsonData) /// Account id of the team member. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// Email address of the team member. @@ -81,6 +82,7 @@ public static TeamMemberResponse Init(string jsonData) /// Email address of the team member. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The specific role a member has on the team. @@ -88,6 +90,7 @@ public static TeamMemberResponse Init(string jsonData) /// The specific role a member has on the team. [DataMember(Name = "role", EmitDefaultValue = true)] public string Role { get; set; } + /// /// Returns the string presentation of the object @@ -176,12 +179,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs index 9cefff5bc..3732828d4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamMembersResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamMembersResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamMembersResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,18 +74,21 @@ public static TeamMembersResponse Init(string jsonData) /// Contains a list of team members and their roles for a specific team. [DataMember(Name = "team_members", EmitDefaultValue = true)] public List TeamMembers { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -176,12 +179,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs index b995a2314..72f7a88f9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamParentResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamParentResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamParentResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static TeamParentResponse Init(string jsonData) /// The id of a team [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// The name of a team @@ -79,6 +80,7 @@ public static TeamParentResponse Init(string jsonData) /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs index ab6d54a7c..c8081147d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamRemoveMemberRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamRemoveMemberRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamRemoveMemberRequest : IEquatable, IValidatableObject { /// /// A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided. @@ -63,7 +63,6 @@ public enum NewRoleEnum /// [EnumMember(Value = "Admin")] Admin = 4 - } @@ -118,6 +117,7 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Account id to remove from your Team. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Email address of the Account to remove from your Team. @@ -125,6 +125,7 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Email address of the Account to remove from your Team. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans. @@ -132,6 +133,7 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans. [DataMember(Name = "new_owner_email_address", EmitDefaultValue = true)] public string NewOwnerEmailAddress { get; set; } + /// /// Id of the new Team. @@ -139,6 +141,7 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// Id of the new Team. [DataMember(Name = "new_team_id", EmitDefaultValue = true)] public string NewTeamId { get; set; } + /// /// Returns the string presentation of the object @@ -243,12 +246,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs index 895076aa5..104c5021a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,12 +76,14 @@ public static TeamResponse Init(string jsonData) /// The name of your Team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Gets or Sets Accounts /// [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } + /// /// A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. @@ -89,6 +91,7 @@ public static TeamResponse Init(string jsonData) /// A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. [DataMember(Name = "invited_accounts", EmitDefaultValue = true)] public List InvitedAccounts { get; set; } + /// /// A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. @@ -96,6 +99,7 @@ public static TeamResponse Init(string jsonData) /// A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. [DataMember(Name = "invited_emails", EmitDefaultValue = true)] public List InvitedEmails { get; set; } + /// /// Returns the string presentation of the object @@ -197,12 +201,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs index 7651ec730..d1a945bdc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamSubTeamsResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamSubTeamsResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamSubTeamsResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,18 +74,21 @@ public static TeamSubTeamsResponse Init(string jsonData) /// Contains a list with sub teams. [DataMember(Name = "sub_teams", EmitDefaultValue = true)] public List SubTeams { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -176,12 +179,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs index eb50952ef..72441c90e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamUpdateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamUpdateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TeamUpdateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -70,6 +70,7 @@ public static TeamUpdateRequest Init(string jsonData) /// The name of your Team. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -138,12 +139,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs index cde613360..30a0c91da 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateAddUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateAddUserRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateAddUserRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,6 +74,7 @@ public static TemplateAddUserRequest Init(string jsonData) /// The id of the Account to give access to the Template. **NOTE:** The account id prevails if email address is also provided. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided. @@ -81,6 +82,7 @@ public static TemplateAddUserRequest Init(string jsonData) /// The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. @@ -88,6 +90,7 @@ public static TemplateAddUserRequest Init(string jsonData) /// If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. [DataMember(Name = "skip_notification", EmitDefaultValue = true)] public bool SkipNotification { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +175,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs index e3ede624a..70bad4fa6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateEmbeddedDraftRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateEmbeddedDraftRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateCreateEmbeddedDraftRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -123,6 +123,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -130,6 +131,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -137,6 +139,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. @@ -144,6 +147,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -151,6 +155,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -158,6 +163,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The CC roles that must be assigned when using the template to send a signature request @@ -165,18 +171,21 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The CC roles that must be assigned when using the template to send a signature request [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Provide users the ability to review/edit the template signer roles. @@ -184,6 +193,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Provide users the ability to review/edit the template signer roles. [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } + /// /// Provide users the ability to review/edit the template subject and message. @@ -191,6 +201,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Provide users the ability to review/edit the template subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -198,6 +209,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -205,6 +217,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -212,6 +225,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. @@ -219,6 +233,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } + /// /// The default template email message. @@ -226,6 +241,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -233,6 +249,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. @@ -240,6 +257,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -247,6 +265,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -254,6 +273,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "signer_roles", EmitDefaultValue = true)] public List SignerRoles { get; set; } + /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. @@ -261,6 +281,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } + /// /// The template title (alias). @@ -268,6 +289,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The template title (alias). [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -275,6 +297,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -282,6 +305,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). @@ -289,6 +313,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } + /// /// Returns the string presentation of the object @@ -571,23 +596,24 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs index 35862888a..0ed1bff0b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateEmbeddedDraftResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateEmbeddedDraftResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateCreateEmbeddedDraftResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateCreateEmbeddedDraftResponseTemplate Template { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs index ea0719eb4..5bc13da10 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateEmbeddedDraftResponseTemplate")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateEmbeddedDraftResponseTemplate : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateCreateEmbeddedDraftResponseTemplate : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,7 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// Link to edit the template. @@ -83,6 +84,7 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) /// Link to edit the template. [DataMember(Name = "edit_url", EmitDefaultValue = true)] public string EditUrl { get; set; } + /// /// When the link expires. @@ -90,6 +92,7 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// A list of warnings. @@ -98,6 +101,7 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] [Obsolete] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -193,12 +197,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs index ced4d2e75..4048b5a35 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateCreateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -114,6 +114,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", IsRequired = true, EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -121,6 +122,7 @@ public static TemplateCreateRequest Init(string jsonData) /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "signer_roles", IsRequired = true, EmitDefaultValue = true)] public List SignerRoles { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -128,6 +130,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -135,6 +138,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -142,6 +146,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -149,6 +154,7 @@ public static TemplateCreateRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The CC roles that must be assigned when using the template to send a signature request @@ -156,6 +162,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The CC roles that must be assigned when using the template to send a signature request [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } + /// /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. @@ -163,12 +170,14 @@ public static TemplateCreateRequest Init(string jsonData) /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -176,6 +185,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -183,6 +193,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. @@ -190,6 +201,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } + /// /// The default template email message. @@ -197,6 +209,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -204,6 +217,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// The template title (alias). @@ -211,6 +225,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The template title (alias). [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -218,6 +233,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -225,6 +241,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). @@ -232,6 +249,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } + /// /// Returns the string presentation of the object @@ -468,23 +486,24 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs index d74593d65..c8734bd57 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateCreateResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static TemplateCreateResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateCreateResponseTemplate Template { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static TemplateCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs index f10455e16..04586c21a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateResponseTemplate")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateResponseTemplate : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateCreateResponseTemplate : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -70,6 +70,7 @@ public static TemplateCreateResponseTemplate Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// Returns the string presentation of the object @@ -138,12 +139,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs index 060fa112e..8601c721a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateEditResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateEditResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateEditResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -70,6 +70,7 @@ public static TemplateEditResponse Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// Returns the string presentation of the object @@ -138,12 +139,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs index 48f647a1f..4f70c5fb6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateGetResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static TemplateGetResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateResponse Template { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static TemplateGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs index fcff65a2f..0577af964 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateListResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateListResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateListResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -74,12 +74,14 @@ public static TemplateListResponse Init(string jsonData) /// List of templates that the API caller has access to. [DataMember(Name = "templates", EmitDefaultValue = true)] public List Templates { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// A list of warnings. @@ -87,6 +89,7 @@ public static TemplateListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -177,12 +180,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs index 68d78136d..f99e5822a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateRemoveUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateRemoveUserRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateRemoveUserRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static TemplateRemoveUserRequest Init(string jsonData) /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. @@ -79,6 +80,7 @@ public static TemplateRemoveUserRequest Init(string jsonData) /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs index 4e2cc0292..5ae571ae7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -98,6 +98,7 @@ public static TemplateResponse Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. @@ -105,6 +106,7 @@ public static TemplateResponse Init(string jsonData) /// The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. @@ -112,6 +114,7 @@ public static TemplateResponse Init(string jsonData) /// The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Time the template was last updated. @@ -119,6 +122,7 @@ public static TemplateResponse Init(string jsonData) /// Time the template was last updated. [DataMember(Name = "updated_at", EmitDefaultValue = true)] public int UpdatedAt { get; set; } + /// /// `true` if this template was created using an embedded flow, `false` if it was created on our website. @@ -126,6 +130,7 @@ public static TemplateResponse Init(string jsonData) /// `true` if this template was created using an embedded flow, `false` if it was created on our website. [DataMember(Name = "is_embedded", EmitDefaultValue = true)] public bool? IsEmbedded { get; set; } + /// /// `true` if you are the owner of this template, `false` if it's been shared with you by a team member. @@ -133,6 +138,7 @@ public static TemplateResponse Init(string jsonData) /// `true` if you are the owner of this template, `false` if it's been shared with you by a team member. [DataMember(Name = "is_creator", EmitDefaultValue = true)] public bool? IsCreator { get; set; } + /// /// Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). @@ -140,6 +146,7 @@ public static TemplateResponse Init(string jsonData) /// Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). [DataMember(Name = "can_edit", EmitDefaultValue = true)] public bool? CanEdit { get; set; } + /// /// Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. @@ -147,6 +154,7 @@ public static TemplateResponse Init(string jsonData) /// Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool? IsLocked { get; set; } + /// /// The metadata attached to the template. @@ -154,6 +162,7 @@ public static TemplateResponse Init(string jsonData) /// The metadata attached to the template. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } + /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -161,6 +170,7 @@ public static TemplateResponse Init(string jsonData) /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "signer_roles", EmitDefaultValue = true)] public List SignerRoles { get; set; } + /// /// An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. @@ -168,6 +178,7 @@ public static TemplateResponse Init(string jsonData) /// An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } + /// /// An array describing each document associated with this Template. Includes form field data for each document. @@ -175,6 +186,7 @@ public static TemplateResponse Init(string jsonData) /// An array describing each document associated with this Template. Includes form field data for each document. [DataMember(Name = "documents", EmitDefaultValue = true)] public List Documents { get; set; } + /// /// Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. @@ -183,6 +195,7 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] [Obsolete] public List CustomFields { get; set; } + /// /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. @@ -191,6 +204,7 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "named_form_fields", EmitDefaultValue = true)] [Obsolete] public List NamedFormFields { get; set; } + /// /// An array of the Accounts that can use this Template. @@ -198,6 +212,7 @@ public static TemplateResponse Init(string jsonData) /// An array of the Accounts that can use this Template. [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } + /// /// Returns the string presentation of the object @@ -408,12 +423,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs index 3e95d2a49..c4c8f5e68 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseAccount")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseAccount : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseAccount : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,7 @@ public static TemplateResponseAccount Init(string jsonData) /// The id of the Account. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The email address associated with the Account. @@ -87,6 +88,7 @@ public static TemplateResponseAccount Init(string jsonData) /// The email address associated with the Account. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns `true` if the user has been locked out of their account by a team admin. @@ -94,6 +96,7 @@ public static TemplateResponseAccount Init(string jsonData) /// Returns `true` if the user has been locked out of their account by a team admin. [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool IsLocked { get; set; } + /// /// Returns `true` if the user has a paid Dropbox Sign account. @@ -101,6 +104,7 @@ public static TemplateResponseAccount Init(string jsonData) /// Returns `true` if the user has a paid Dropbox Sign account. [DataMember(Name = "is_paid_hs", EmitDefaultValue = true)] public bool IsPaidHs { get; set; } + /// /// Returns `true` if the user has a paid HelloFax account. @@ -108,12 +112,14 @@ public static TemplateResponseAccount Init(string jsonData) /// Returns `true` if the user has a paid HelloFax account. [DataMember(Name = "is_paid_hf", EmitDefaultValue = true)] public bool IsPaidHf { get; set; } + /// /// Gets or Sets Quotas /// [DataMember(Name = "quotas", EmitDefaultValue = true)] public TemplateResponseAccountQuota Quotas { get; set; } + /// /// Returns the string presentation of the object @@ -220,12 +226,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs index 9f7133aee..5fedca660 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseAccountQuota")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseAccountQuota : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseAccountQuota : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,7 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// API templates remaining. [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int TemplatesLeft { get; set; } + /// /// API signature requests remaining. @@ -83,6 +84,7 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// API signature requests remaining. [DataMember(Name = "api_signature_requests_left", EmitDefaultValue = true)] public int ApiSignatureRequestsLeft { get; set; } + /// /// Signature requests remaining. @@ -90,6 +92,7 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// Signature requests remaining. [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int DocumentsLeft { get; set; } + /// /// SMS verifications remaining. @@ -97,6 +100,7 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// SMS verifications remaining. [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int SmsVerificationsLeft { get; set; } + /// /// Returns the string presentation of the object @@ -179,12 +183,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs index 1e4ac68bc..325f4ee65 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseCCRole")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseCCRole : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseCCRole : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -70,6 +70,7 @@ public static TemplateResponseCCRole Init(string jsonData) /// The name of the Role. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -138,12 +139,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs index cc0df4128..2617cb50a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocument")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocument : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocument : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,7 @@ public static TemplateResponseDocument Init(string jsonData) /// Name of the associated file. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Document ordering, the lowest index is displayed first and the highest last (0-based indexing). @@ -87,6 +88,7 @@ public static TemplateResponseDocument Init(string jsonData) /// Document ordering, the lowest index is displayed first and the highest last (0-based indexing). [DataMember(Name = "index", EmitDefaultValue = true)] public int Index { get; set; } + /// /// An array of Form Field Group objects. @@ -94,6 +96,7 @@ public static TemplateResponseDocument Init(string jsonData) /// An array of Form Field Group objects. [DataMember(Name = "field_groups", EmitDefaultValue = true)] public List FieldGroups { get; set; } + /// /// An array of Form Field objects containing the name and type of each named field. @@ -101,6 +104,7 @@ public static TemplateResponseDocument Init(string jsonData) /// An array of Form Field objects containing the name and type of each named field. [DataMember(Name = "form_fields", EmitDefaultValue = true)] public List FormFields { get; set; } + /// /// An array of Form Field objects containing the name and type of each named field. @@ -108,6 +112,7 @@ public static TemplateResponseDocument Init(string jsonData) /// An array of Form Field objects containing the name and type of each named field. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. @@ -115,6 +120,7 @@ public static TemplateResponseDocument Init(string jsonData) /// An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. [DataMember(Name = "static_fields", EmitDefaultValue = true)] public List StaticFields { get; set; } + /// /// Returns the string presentation of the object @@ -233,12 +239,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs index dbfd9f0f3..7527da3d4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs @@ -32,12 +32,10 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentCustomFieldBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldCheckbox), "TemplateResponseDocumentCustomFieldCheckbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldText), "TemplateResponseDocumentCustomFieldText")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentCustomFieldBase : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentCustomFieldBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -98,6 +96,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// The unique ID for this field. @@ -105,6 +104,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The name of the Custom Field. @@ -112,6 +112,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The name of the Custom Field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). @@ -119,6 +120,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } + /// /// The horizontal offset in pixels for this form field. @@ -126,6 +128,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The horizontal offset in pixels for this form field. [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } + /// /// The vertical offset in pixels for this form field. @@ -133,6 +136,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The vertical offset in pixels for this form field. [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } + /// /// The width in pixels of this form field. @@ -140,6 +144,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The width in pixels of this form field. [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } + /// /// The height in pixels of this form field. @@ -147,6 +152,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The height in pixels of this form field. [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } + /// /// Boolean showing whether or not this field is required. @@ -154,6 +160,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// Boolean showing whether or not this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The name of the group this field is in. If this field is not a group, this defaults to `null`. @@ -161,6 +168,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The name of the group this field is in. If this field is not a group, this defaults to `null`. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// /// Returns the string presentation of the object @@ -299,12 +307,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -314,7 +323,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs index abde53682..c0a789487 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,9 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentCustomFieldBase` /// [DataContract(Name = "TemplateResponseDocumentCustomFieldCheckbox")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentCustomFieldCheckbox : TemplateResponseDocumentCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -55,7 +51,7 @@ protected TemplateResponseDocumentCustomFieldCheckbox() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentCustomFieldCheckbox(string type = "checkbox", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentCustomFieldCheckbox(string type = @"checkbox", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -97,6 +93,7 @@ public static TemplateResponseDocumentCustomFieldCheckbox Init(string jsonData) /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. * Text uses `TemplateResponseDocumentCustomFieldText` * Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -166,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -181,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs index 45600586c..131bd7309 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,9 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentCustomFieldBase` /// [DataContract(Name = "TemplateResponseDocumentCustomFieldText")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentCustomFieldText : TemplateResponseDocumentCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -59,7 +55,7 @@ protected TemplateResponseDocumentCustomFieldText() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentCustomFieldText(string type = "text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentCustomFieldText(string type = @"text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -105,12 +101,14 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. * Text uses `TemplateResponseDocumentCustomFieldText` * Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } + /// /// Whether this form field is multiline text. @@ -118,6 +116,7 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// Whether this form field is multiline text. [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } + /// /// Original font size used in this form field's text. @@ -125,6 +124,7 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// Original font size used in this form field's text. [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } + /// /// Font family used in this form field's text. @@ -132,6 +132,7 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// Font family used in this form field's text. [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } + /// /// Returns the string presentation of the object @@ -233,12 +234,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -248,7 +250,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs index a58a8e204..14fddf98f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFieldGroup")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFieldGroup : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFieldGroup : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,12 +72,14 @@ public static TemplateResponseDocumentFieldGroup Init(string jsonData) /// The name of the form field group. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Gets or Sets Rule /// [DataMember(Name = "rule", EmitDefaultValue = true)] public TemplateResponseDocumentFieldGroupRule Rule { get; set; } + /// /// Returns the string presentation of the object @@ -156,12 +158,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs index 9eebbb812..75e15429b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFieldGroupRule")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFieldGroupRule : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFieldGroupRule : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. [DataMember(Name = "requirement", EmitDefaultValue = true)] public string Requirement { get; set; } + /// /// Name of the group @@ -79,6 +80,7 @@ public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) /// Name of the group [DataMember(Name = "groupLabel", EmitDefaultValue = true)] public string GroupLabel { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs index 3a8244efc..f5104a607 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs @@ -32,14 +32,6 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "TemplateResponseDocumentFormFieldCheckbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "TemplateResponseDocumentFormFieldDateSigned")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "TemplateResponseDocumentFormFieldDropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldHyperlink), "TemplateResponseDocumentFormFieldHyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldInitials), "TemplateResponseDocumentFormFieldInitials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldRadio), "TemplateResponseDocumentFormFieldRadio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "TemplateResponseDocumentFormFieldSignature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "TemplateResponseDocumentFormFieldText")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "date_signed")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "dropdown")] @@ -49,7 +41,7 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldBase : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -110,6 +102,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// A unique id for the form field. @@ -117,6 +110,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// A unique id for the form field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The name of the form field. @@ -124,6 +118,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The name of the form field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The signer of the Form Field. @@ -131,6 +126,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The signer of the Form Field. [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } + /// /// The horizontal offset in pixels for this form field. @@ -138,6 +134,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The horizontal offset in pixels for this form field. [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } + /// /// The vertical offset in pixels for this form field. @@ -145,6 +142,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The vertical offset in pixels for this form field. [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } + /// /// The width in pixels of this form field. @@ -152,6 +150,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The width in pixels of this form field. [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } + /// /// The height in pixels of this form field. @@ -159,6 +158,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The height in pixels of this form field. [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } + /// /// Boolean showing whether or not this field is required. @@ -166,6 +166,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// Boolean showing whether or not this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. @@ -173,6 +174,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// /// Returns the string presentation of the object @@ -311,12 +313,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -326,7 +329,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs index 181dcc3c8..cd0c77f4d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentFormFieldBase` /// [DataContract(Name = "TemplateResponseDocumentFormFieldCheckbox")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentFormFieldCheckbox : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentFormFieldCheckbox() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldCheckbox(string type = "checkbox", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldCheckbox(string type = @"checkbox", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentFormFieldCheckbox Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs index 8e7865db0..f71e255af 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentFormFieldBase` /// [DataContract(Name = "TemplateResponseDocumentFormFieldDateSigned")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentFormFieldDateSigned : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentFormFieldDateSigned() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldDateSigned(string type = "date_signed", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldDateSigned(string type = @"date_signed", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentFormFieldDateSigned Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs index 4d8602736..f264253a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentFormFieldBase` /// [DataContract(Name = "TemplateResponseDocumentFormFieldDropdown")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentFormFieldDropdown : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldDropdown(string type = "dropdown", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldDropdown(string type = @"dropdown", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentFormFieldDropdown Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs index a7c1191bb..a7d3ab4f4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentFormFieldBase` /// [DataContract(Name = "TemplateResponseDocumentFormFieldHyperlink")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentFormFieldHyperlink : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -65,7 +55,7 @@ protected TemplateResponseDocumentFormFieldHyperlink() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldHyperlink(string type = "hyperlink", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldHyperlink(string type = @"hyperlink", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -111,12 +101,14 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } + /// /// Whether this form field is multiline text. @@ -124,6 +116,7 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// Whether this form field is multiline text. [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } + /// /// Original font size used in this form field's text. @@ -131,6 +124,7 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// Original font size used in this form field's text. [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } + /// /// Font family used in this form field's text. @@ -138,6 +132,7 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// Font family used in this form field's text. [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } + /// /// Returns the string presentation of the object @@ -239,12 +234,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -254,7 +250,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs index 8952606b8..f7f2e4726 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentFormFieldBase` /// [DataContract(Name = "TemplateResponseDocumentFormFieldInitials")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentFormFieldInitials : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentFormFieldInitials() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldInitials(string type = "initials", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldInitials(string type = @"initials", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentFormFieldInitials Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs index 6266ac8d3..ec514c828 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentFormFieldBase` /// [DataContract(Name = "TemplateResponseDocumentFormFieldRadio")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentFormFieldRadio : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentFormFieldRadio() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. (required). - public TemplateResponseDocumentFormFieldRadio(string type = "radio", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldRadio(string type = @"radio", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentFormFieldRadio Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs index 32f42e960..8e317385f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentFormFieldBase` /// [DataContract(Name = "TemplateResponseDocumentFormFieldSignature")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentFormFieldSignature : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentFormFieldSignature() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldSignature(string type = "signature", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldSignature(string type = @"signature", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentFormFieldSignature Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs index a10148573..60a2c2f7e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentFormFieldBase` /// [DataContract(Name = "TemplateResponseDocumentFormFieldText")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentFormFieldText : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -109,7 +99,6 @@ public enum ValidationTypeEnum /// [EnumMember(Value = "custom_regex")] CustomRegex = 10 - } @@ -142,7 +131,7 @@ protected TemplateResponseDocumentFormFieldText() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldText(string type = "text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldText(string type = @"text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -189,12 +178,14 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } + /// /// Whether this form field is multiline text. @@ -202,6 +193,7 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// Whether this form field is multiline text. [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } + /// /// Original font size used in this form field's text. @@ -209,6 +201,7 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// Original font size used in this form field's text. [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } + /// /// Font family used in this form field's text. @@ -216,6 +209,7 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// Font family used in this form field's text. [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } + /// /// Returns the string presentation of the object @@ -323,12 +317,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -338,7 +333,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs index 1c40eee35..a1a69e715 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs @@ -32,14 +32,6 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "TemplateResponseDocumentStaticFieldCheckbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "TemplateResponseDocumentStaticFieldDateSigned")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "TemplateResponseDocumentStaticFieldDropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "TemplateResponseDocumentStaticFieldHyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "TemplateResponseDocumentStaticFieldInitials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldRadio), "TemplateResponseDocumentStaticFieldRadio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "TemplateResponseDocumentStaticFieldSignature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "TemplateResponseDocumentStaticFieldText")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] @@ -49,7 +41,7 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldBase : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -69,7 +61,7 @@ protected TemplateResponseDocumentStaticFieldBase() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldBase(string apiId = default(string), string name = default(string), string type = default(string), string signer = "me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldBase(string apiId = default(string), string name = default(string), string type = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { // to ensure "type" is required (not null) @@ -111,6 +103,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// A unique id for the static field. @@ -118,6 +111,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// A unique id for the static field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The name of the static field. @@ -125,6 +119,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The name of the static field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The signer of the Static Field. @@ -132,6 +127,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The signer of the Static Field. [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } + /// /// The horizontal offset in pixels for this static field. @@ -139,6 +135,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The horizontal offset in pixels for this static field. [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } + /// /// The vertical offset in pixels for this static field. @@ -146,6 +143,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The vertical offset in pixels for this static field. [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } + /// /// The width in pixels of this static field. @@ -153,6 +151,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The width in pixels of this static field. [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } + /// /// The height in pixels of this static field. @@ -160,6 +159,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The height in pixels of this static field. [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } + /// /// Boolean showing whether or not this field is required. @@ -167,6 +167,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// Boolean showing whether or not this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The name of the group this field is in. If this field is not a group, this defaults to `null`. @@ -174,6 +175,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The name of the group this field is in. If this field is not a group, this defaults to `null`. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// /// Returns the string presentation of the object @@ -312,12 +314,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -327,7 +330,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs index 4a13f714d..05cc2e671 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentStaticFieldBase` /// [DataContract(Name = "TemplateResponseDocumentStaticFieldCheckbox")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentStaticFieldCheckbox : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentStaticFieldCheckbox() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldCheckbox(string type = "checkbox", string apiId = default(string), string name = default(string), string signer = "me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldCheckbox(string type = @"checkbox", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldCheckbox Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs index d948423f3..fbab7d413 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentStaticFieldBase` /// [DataContract(Name = "TemplateResponseDocumentStaticFieldDateSigned")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentStaticFieldDateSigned : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentStaticFieldDateSigned() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldDateSigned(string type = "date_signed", string apiId = default(string), string name = default(string), string signer = "me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldDateSigned(string type = @"date_signed", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldDateSigned Init(string jsonData /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs index 439eefb7f..cc88f41a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentStaticFieldBase` /// [DataContract(Name = "TemplateResponseDocumentStaticFieldDropdown")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentStaticFieldDropdown : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentStaticFieldDropdown() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldDropdown(string type = "dropdown", string apiId = default(string), string name = default(string), string signer = "me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldDropdown(string type = @"dropdown", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldDropdown Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs index cc0e7f479..ed07a9557 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentStaticFieldBase` /// [DataContract(Name = "TemplateResponseDocumentStaticFieldHyperlink")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentStaticFieldHyperlink : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentStaticFieldHyperlink() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldHyperlink(string type = "hyperlink", string apiId = default(string), string name = default(string), string signer = "me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldHyperlink(string type = @"hyperlink", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldHyperlink Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs index eaa28c9f9..d487f0696 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentStaticFieldBase` /// [DataContract(Name = "TemplateResponseDocumentStaticFieldInitials")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentStaticFieldInitials : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentStaticFieldInitials() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldInitials(string type = "initials", string apiId = default(string), string name = default(string), string signer = "me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldInitials(string type = @"initials", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldInitials Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs index e3756619e..6176430d0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentStaticFieldBase` /// [DataContract(Name = "TemplateResponseDocumentStaticFieldRadio")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentStaticFieldRadio : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentStaticFieldRadio() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldRadio(string type = "radio", string apiId = default(string), string name = default(string), string signer = "me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldRadio(string type = @"radio", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldRadio Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs index 505d3ea02..c48408c0f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentStaticFieldBase` /// [DataContract(Name = "TemplateResponseDocumentStaticFieldSignature")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentStaticFieldSignature : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentStaticFieldSignature() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldSignature(string type = "signature", string apiId = default(string), string name = default(string), string signer = "me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldSignature(string type = @"signature", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldSignature Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs index 7c075e5fd..b5a382a67 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs @@ -21,7 +21,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; @@ -31,15 +30,6 @@ namespace Dropbox.Sign.Model /// This class extends `TemplateResponseDocumentStaticFieldBase` /// [DataContract(Name = "TemplateResponseDocumentStaticFieldText")] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldRadio), "radio")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public partial class TemplateResponseDocumentStaticFieldText : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { @@ -61,7 +51,7 @@ protected TemplateResponseDocumentStaticFieldText() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldText(string type = "text", string apiId = default(string), string name = default(string), string signer = "me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldText(string type = @"text", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -103,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldText Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -172,12 +163,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -187,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { foreach (var x in BaseValidate(validationContext)) { diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs index 716049b76..48d527e71 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseFieldAvgTextLength")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseFieldAvgTextLength : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseFieldAvgTextLength : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) /// Number of lines. [DataMember(Name = "num_lines", EmitDefaultValue = true)] public int NumLines { get; set; } + /// /// Number of characters per line. @@ -79,6 +80,7 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) /// Number of characters per line. [DataMember(Name = "num_chars_per_line", EmitDefaultValue = true)] public int NumCharsPerLine { get; set; } + /// /// Returns the string presentation of the object @@ -149,12 +151,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs index c55b8ce8f..9b893d6a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseSignerRole")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseSignerRole : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseSignerRole : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static TemplateResponseSignerRole Init(string jsonData) /// The name of the Role. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// If signer order is assigned this is the 0-based index for this role. @@ -79,6 +80,7 @@ public static TemplateResponseSignerRole Init(string jsonData) /// If signer order is assigned this is the 0-based index for this role. [DataMember(Name = "order", EmitDefaultValue = true)] public int Order { get; set; } + /// /// Returns the string presentation of the object @@ -153,12 +155,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs index 80b7fb8b0..8d23d43a1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateUpdateFilesRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateUpdateFilesRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateUpdateFilesRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Client id of the app you're using to update this template. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -87,6 +88,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -94,6 +96,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// The new default template email message. @@ -101,6 +104,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// The new default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// The new default template email subject. @@ -108,6 +112,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// The new default template email subject. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -115,6 +120,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Returns the string presentation of the object @@ -231,23 +237,24 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 100) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 100.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 100.", new [] { "Subject" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs index 20fd8d4db..e5fa70551 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateUpdateFilesResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateUpdateFilesResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateUpdateFilesResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -69,6 +69,7 @@ public static TemplateUpdateFilesResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateUpdateFilesResponseTemplate Template { get; set; } + /// /// Returns the string presentation of the object @@ -137,12 +138,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs index a7d1e289d..f04a63472 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateUpdateFilesResponseTemplate")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateUpdateFilesResponseTemplate : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateUpdateFilesResponseTemplate : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,7 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// A list of warnings. @@ -80,6 +81,7 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] [Obsolete] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -159,12 +161,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs index c7678d756..850ea5f1f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateEmbeddedRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateEmbeddedRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class UnclaimedDraftCreateEmbeddedRequest : IEquatable, IValidatableObject { /// /// The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. @@ -51,7 +51,6 @@ public enum TypeEnum /// [EnumMember(Value = "request_signature")] RequestSignature = 2 - } @@ -178,6 +177,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. @@ -185,6 +185,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. [DataMember(Name = "requester_email_address", IsRequired = true, EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -192,6 +193,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -199,6 +201,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. @@ -206,6 +209,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -213,6 +217,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -220,6 +225,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -227,6 +233,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The email addresses that should be CCed. @@ -234,6 +241,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -241,18 +249,21 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Provide users the ability to review/edit the signers. @@ -260,6 +271,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Provide users the ability to review/edit the signers. [DataMember(Name = "force_signer_page", EmitDefaultValue = true)] public bool ForceSignerPage { get; set; } + /// /// Provide users the ability to review/edit the subject and message. @@ -267,6 +279,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Provide users the ability to review/edit the subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -274,6 +287,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -281,6 +295,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -288,6 +303,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. @@ -295,6 +311,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } + /// /// The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. @@ -302,6 +319,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. [DataMember(Name = "hold_request", EmitDefaultValue = true)] public bool HoldRequest { get; set; } + /// /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. @@ -309,6 +327,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -316,6 +335,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -323,6 +343,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// The URL you want signers redirected to after they successfully request a signature. @@ -330,6 +351,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully request a signature. [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } + /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. @@ -337,6 +359,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -344,6 +367,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// Add Signers to your Unclaimed Draft Signature Request. @@ -351,12 +375,14 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Add Signers to your Unclaimed Draft Signature Request. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -364,6 +390,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. @@ -371,6 +398,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -378,6 +406,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -385,6 +414,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -392,6 +422,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } + /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -399,6 +430,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } + /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -406,6 +438,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } + /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. @@ -413,6 +446,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -777,23 +811,24 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs index 6096d17a8..52e3f3bb2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateEmbeddedWithTemplateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class UnclaimedDraftCreateEmbeddedWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -143,6 +143,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// The email address of the user that should be designated as the requester of this draft. @@ -150,6 +151,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The email address of the user that should be designated as the requester of this draft. [DataMember(Name = "requester_email_address", IsRequired = true, EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. @@ -157,6 +159,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -164,6 +167,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -171,6 +175,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -178,6 +183,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. @@ -185,18 +191,21 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// An array defining values and options for custom fields. Required when a custom field exists in the Template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. @@ -204,6 +213,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. @@ -211,6 +221,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Provide users the ability to review/edit the template signer roles. @@ -218,6 +229,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Provide users the ability to review/edit the template signer roles. [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } + /// /// Provide users the ability to review/edit the template subject and message. @@ -225,6 +237,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Provide users the ability to review/edit the template subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } + /// /// The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. @@ -232,6 +245,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. [DataMember(Name = "hold_request", EmitDefaultValue = true)] public bool HoldRequest { get; set; } + /// /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. @@ -239,6 +253,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -246,6 +261,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -253,6 +269,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). - `preview_only=true`: Allows requesters to enable the preview only experience. - `preview_only=false`: Allows requesters to disable the preview only experience. **NOTE:** This parameter overwrites `show_preview=1` (if set). @@ -260,6 +277,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). - `preview_only=true`: Allows requesters to enable the preview only experience. - `preview_only=false`: Allows requesters to disable the preview only experience. **NOTE:** This parameter overwrites `show_preview=1` (if set). [DataMember(Name = "preview_only", EmitDefaultValue = true)] public bool PreviewOnly { get; set; } + /// /// The URL you want signers redirected to after they successfully request a signature. @@ -267,6 +285,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The URL you want signers redirected to after they successfully request a signature. [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } + /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. @@ -274,6 +293,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -281,6 +301,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// Add Signers to your Templated-based Signature Request. @@ -288,12 +309,14 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Add Signers to your Templated-based Signature Request. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -301,6 +324,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. @@ -308,6 +332,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -315,6 +340,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -322,6 +348,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -329,6 +356,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -336,6 +364,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } + /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. @@ -343,6 +372,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } + /// /// Returns the string presentation of the object @@ -656,29 +686,30 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs index 1f3e8c102..3c87d3c56 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class UnclaimedDraftCreateRequest : IEquatable, IValidatableObject { /// /// The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. @@ -51,7 +51,6 @@ public enum TypeEnum /// [EnumMember(Value = "request_signature")] RequestSignature = 2 - } @@ -144,6 +143,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -151,6 +151,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -158,6 +159,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// A list describing the attachments @@ -165,6 +167,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The email addresses that should be CCed. @@ -172,6 +175,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. @@ -179,6 +183,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -186,12 +191,14 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -199,6 +206,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -206,6 +214,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -213,6 +222,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. @@ -220,6 +230,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -227,6 +238,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -234,6 +246,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -241,6 +254,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// Add Signers to your Unclaimed Draft Signature Request. @@ -248,12 +262,14 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Add Signers to your Unclaimed Draft Signature Request. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -261,6 +277,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -268,6 +285,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -275,6 +293,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -282,6 +301,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } + /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -289,6 +309,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } + /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. @@ -296,6 +317,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -576,23 +598,24 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); } yield break; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs index 749f526e1..4b598103d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class UnclaimedDraftCreateResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,7 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) /// [DataMember(Name = "unclaimed_draft", EmitDefaultValue = true)] public UnclaimedDraftResponse UnclaimedDraft { get; set; } + /// /// A list of warnings. @@ -78,6 +79,7 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -157,12 +159,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs index 397d7c916..1dc04b47a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftEditAndResendRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftEditAndResendRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class UnclaimedDraftEditAndResendRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -89,12 +89,14 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// The request created from this draft will also be signable in embedded mode if set to `true`. @@ -102,6 +104,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The request created from this draft will also be signable in embedded mode if set to `true`. [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } + /// /// The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. @@ -109,6 +112,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// The URL you want signers redirected to after they successfully request a signature. @@ -116,6 +120,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully request a signature. [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -123,6 +128,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -130,6 +136,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -137,6 +144,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Returns the string presentation of the object @@ -263,12 +271,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs index 7e3b1e1fc..8d7597ae8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class UnclaimedDraftResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The ID of the signature request that is represented by this UnclaimedDraft. [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } + /// /// The URL to be used to claim this UnclaimedDraft. @@ -87,6 +88,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The URL to be used to claim this UnclaimedDraft. [DataMember(Name = "claim_url", EmitDefaultValue = true)] public string ClaimUrl { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -94,6 +96,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). @@ -101,6 +104,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } + /// /// When the link expires. @@ -108,6 +112,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Whether this is a test draft. Signature requests made from test drafts have no legal value. @@ -115,6 +120,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// Whether this is a test draft. Signature requests made from test drafts have no legal value. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Returns the string presentation of the object @@ -229,12 +235,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs index f8998eda2..b3ddd9a32 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs @@ -31,7 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "WarningResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class WarningResponse : IOpenApiTyped, IEquatable, IValidatableObject + public partial class WarningResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,7 @@ public static WarningResponse Init(string jsonData) /// Warning message [DataMember(Name = "warning_msg", IsRequired = true, EmitDefaultValue = true)] public string WarningMsg { get; set; } + /// /// Warning name @@ -89,6 +90,7 @@ public static WarningResponse Init(string jsonData) /// Warning name [DataMember(Name = "warning_name", IsRequired = true, EmitDefaultValue = true)] public string WarningName { get; set; } + /// /// Returns the string presentation of the object @@ -167,12 +169,13 @@ public override int GetHashCode() return hashCode; } } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } diff --git a/sdks/dotnet/templates/ApiClient.mustache b/sdks/dotnet/templates/ApiClient.mustache index 74ed7a67e..95de085ef 100644 --- a/sdks/dotnet/templates/ApiClient.mustache +++ b/sdks/dotnet/templates/ApiClient.mustache @@ -14,20 +14,22 @@ using System.Text; using System.Threading; using System.Text.RegularExpressions; using System.Threading.Tasks; -{{^netStandard}} +{{^net60OrLater}} using System.Web; -{{/netStandard}} +{{/net60OrLater}} using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using RestSharp; using RestSharp.Serializers; using RestSharpMethod = RestSharp.Method; +using FileIO = System.IO.File; {{#supportsRetry}} using Polly; {{/supportsRetry}} {{#hasOAuthMethods}} using {{packageName}}.Client.Auth; {{/hasOAuthMethods}} +using {{packageName}}.{{modelPackage}}; namespace {{packageName}}.Client { @@ -37,7 +39,6 @@ namespace {{packageName}}.Client internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer { private readonly IReadableConfiguration _configuration; - private static readonly string _contentType = "application/json"; private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings { // OpenAPI generated types generally hide default constructors. @@ -69,10 +70,10 @@ namespace {{packageName}}.Client /// A JSON string. public string Serialize(object obj) { - if (obj != null && obj is {{{packageName}}}.{{modelPackage}}.AbstractOpenAPISchema) + if (obj != null && obj is AbstractOpenAPISchema) { // the object to be serialized is an oneOf/anyOf schema - return (({{{packageName}}}.{{modelPackage}}.AbstractOpenAPISchema)obj).ToJson(); + return ((AbstractOpenAPISchema)obj).ToJson(); } else { @@ -117,7 +118,7 @@ namespace {{packageName}}.Client if (match.Success) { string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); - File.WriteAllBytes(fileName, bytes); + FileIO.WriteAllBytes(fileName, bytes); return new FileStream(fileName, FileMode.Open); } } @@ -128,7 +129,7 @@ namespace {{packageName}}.Client if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object { - return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind); + return DateTime.Parse(response.Content, null, DateTimeStyles.RoundtripKind); } if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type @@ -150,17 +151,13 @@ namespace {{packageName}}.Client public ISerializer Serializer => this; public IDeserializer Deserializer => this; - public string[] AcceptedContentTypes => RestSharp.Serializers.ContentType.JsonAccept; + public string[] AcceptedContentTypes => ContentType.JsonAccept; public SupportsContentType SupportsContentType => contentType => - contentType.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || - contentType.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); + contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || + contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); - public string ContentType - { - get { return _contentType; } - set { throw new InvalidOperationException("Not allowed to set content type."); } - } + public ContentType ContentType { get; set; } = ContentType.Json; public DataFormat DataFormat => DataFormat.Json; } @@ -212,7 +209,7 @@ namespace {{packageName}}.Client /// public ApiClient() { - _baseUrl = {{packageName}}.Client.GlobalConfiguration.Instance.BasePath; + _baseUrl = GlobalConfiguration.Instance.BasePath; } /// @@ -286,14 +283,14 @@ namespace {{packageName}}.Client /// /// Provides all logic for constructing a new RestSharp . - /// At this point, all information for querying the service is known. Here, it is simply - /// mapped into the RestSharp request. + /// At this point, all information for querying the service is known. + /// Here, it is simply mapped into the RestSharp request. /// /// The http verb. /// The target path (or resource). /// The additional request options. - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. + /// A per-request configuration object. + /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. /// [private] A new RestRequest instance. /// private RestRequest NewRequest( @@ -401,7 +398,7 @@ namespace {{packageName}}.Client var bytes = ClientUtils.ReadAsBytes(file); var fileStream = file as FileStream; if (fileStream != null) - request.AddFile(fileParam.Key, bytes, System.IO.Path.GetFileName(fileStream.Name)); + request.AddFile(fileParam.Key, bytes, Path.GetFileName(fileStream.Name)); else request.AddFile(fileParam.Key, bytes, "no_file_name_provided"); } @@ -411,6 +408,13 @@ namespace {{packageName}}.Client return request; } + /// + /// Transforms a RestResponse instance into a new ApiResponse instance. + /// At this point, we have a concrete http response from the service. + /// Here, it is simply mapped into the [public] ApiResponse object. + /// + /// The RestSharp response object + /// A new ApiResponse instance. private ApiResponse ToApiResponse(RestResponse response) { T result = response.Data; @@ -455,242 +459,211 @@ namespace {{packageName}}.Client return transformed; } - private ApiResponse Exec(RestRequest req, RequestOptions options, IReadableConfiguration configuration) + /// + /// Executes the HTTP request for the current service. + /// Based on functions received it can be async or sync. + /// + /// Local function that executes http request and returns http response. + /// Local function to specify options for the service. + /// The RestSharp request object + /// The RestSharp options object + /// A per-request configuration object. + /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. + /// A new ApiResponse instance. + private ApiResponse ExecClient(Func> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) { var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; - var cookies = new CookieContainer(); - - if (options.Cookies != null && options.Cookies.Count > 0) - { - foreach (var cookie in options.Cookies) - { - cookies.Add(new Cookie(cookie.Name, cookie.Value)); - } - } - var clientOptions = new RestClientOptions(baseUrl) { ClientCertificates = configuration.ClientCertificates, - CookieContainer = cookies, MaxTimeout = configuration.Timeout, Proxy = configuration.Proxy, - UserAgent = configuration.UserAgent + UserAgent = configuration.UserAgent, + UseDefaultCredentials = configuration.UseDefaultCredentials, + RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback }; - -{{#vendorExtensions.x-ignore-block}} - RestClient client = new RestClient(clientOptions) - .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} - RestClient client = _restClient; - if (client == null) - { - client = new RestClient(clientOptions); - } - - client.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); -{{! CUSTOM - END }} - + setOptions(clientOptions); + {{#hasOAuthMethods}} if (!string.IsNullOrEmpty(configuration.OAuthTokenUrl) && !string.IsNullOrEmpty(configuration.OAuthClientId) && !string.IsNullOrEmpty(configuration.OAuthClientSecret) && configuration.OAuthFlow != null) { - client = client.UseAuthenticator(new OAuthAuthenticator( + clientOptions.Authenticator = new OAuthAuthenticator( configuration.OAuthTokenUrl, configuration.OAuthClientId, configuration.OAuthClientSecret, configuration.OAuthFlow, SerializerSettings, - configuration)); + configuration); } {{/hasOAuthMethods}} - InterceptRequest(req); - - RestResponse response; - if (RetryConfiguration.RetryPolicy != null) +{{#vendorExtensions.x-ignore-block}} + using (RestClient client = new RestClient(clientOptions, + configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)))) { - var policy = RetryConfiguration.RetryPolicy; - var policyResult = policy.ExecuteAndCapture(() => client.Execute(req)); - response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse - { - Request = req, - ErrorException = policyResult.FinalException - }; - } - else +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} + RestClient client = _restClient; + if (client == null) { - response = client.Execute(req); + client = new RestClient(clientOptions, + configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)) + ); } - // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof({{{packageName}}}.{{modelPackage}}.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + using (client) +{{! CUSTOM - END }} { - try + InterceptRequest(request); + + RestResponse response = getResponse(client); + + // if the response type is oneOf/anyOf, call FromJSON to deserialize the data + if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { - response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + try + { + response.Data = (T)typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + } + catch (Exception ex) + { + throw ex.InnerException != null ? ex.InnerException : ex; + } } - catch (Exception ex) + else if (typeof(T).Name == "Stream") // for binary response { - throw ex.InnerException != null ? ex.InnerException : ex; + response.Data = (T)(object)new MemoryStream(response.RawBytes); + } + else if (typeof(T).Name == "Byte[]") // for byte response + { + response.Data = (T)(object)response.RawBytes; + } + else if (typeof(T).Name == "String") // for string response + { + response.Data = (T)(object)response.Content; } - } - else if (typeof(T).Name == "Stream") // for binary response - { - response.Data = (T)(object)new MemoryStream(response.RawBytes); - } - else if (typeof(T).Name == "Byte[]") // for byte response - { - response.Data = (T)(object)response.RawBytes; - } - else if (typeof(T).Name == "String") // for string response - { - response.Data = (T)(object)response.Content; - } - InterceptResponse(req, response); + InterceptResponse(request, response); - var result = ToApiResponse(response); - if (response.ErrorMessage != null) - { - result.ErrorText = response.ErrorMessage; - } + var result = ToApiResponse(response); + if (response.ErrorMessage != null) + { + result.ErrorText = response.ErrorMessage; + } - if (response.Cookies != null && response.Cookies.Count > 0) - { - if (result.Cookies == null) result.Cookies = new List(); - foreach (var restResponseCookie in response.Cookies.Cast()) + if (response.Cookies != null && response.Cookies.Count > 0) { - var cookie = new Cookie( - restResponseCookie.Name, - restResponseCookie.Value, - restResponseCookie.Path, - restResponseCookie.Domain - ) + if (result.Cookies == null) result.Cookies = new List(); + foreach (var restResponseCookie in response.Cookies.Cast()) { - Comment = restResponseCookie.Comment, - CommentUri = restResponseCookie.CommentUri, - Discard = restResponseCookie.Discard, - Expired = restResponseCookie.Expired, - Expires = restResponseCookie.Expires, - HttpOnly = restResponseCookie.HttpOnly, - Port = restResponseCookie.Port, - Secure = restResponseCookie.Secure, - Version = restResponseCookie.Version - }; - - result.Cookies.Add(cookie); + var cookie = new Cookie( + restResponseCookie.Name, + restResponseCookie.Value, + restResponseCookie.Path, + restResponseCookie.Domain + ) + { + Comment = restResponseCookie.Comment, + CommentUri = restResponseCookie.CommentUri, + Discard = restResponseCookie.Discard, + Expired = restResponseCookie.Expired, + Expires = restResponseCookie.Expires, + HttpOnly = restResponseCookie.HttpOnly, + Port = restResponseCookie.Port, + Secure = restResponseCookie.Secure, + Version = restResponseCookie.Version + }; + + result.Cookies.Add(cookie); + } } + return result; } - return result; } - {{#supportsAsync}} - private async Task> ExecAsync(RestRequest req, RequestOptions options, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private RestResponse DeserializeRestResponseFromPolicy(RestClient client, RestRequest request, PolicyResult policyResult) { - var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; - - var clientOptions = new RestClientOptions(baseUrl) + if (policyResult.Outcome == OutcomeType.Successful) { - ClientCertificates = configuration.ClientCertificates, - MaxTimeout = configuration.Timeout, - Proxy = configuration.Proxy, - UserAgent = configuration.UserAgent - }; - - RestClient client = new RestClient(clientOptions) - .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); - - {{#hasOAuthMethods}} - if (!string.IsNullOrEmpty(configuration.OAuthTokenUrl) && - !string.IsNullOrEmpty(configuration.OAuthClientId) && - !string.IsNullOrEmpty(configuration.OAuthClientSecret) && - configuration.OAuthFlow != null) - { - client = client.UseAuthenticator(new OAuthAuthenticator( - configuration.OAuthTokenUrl, - configuration.OAuthClientId, - configuration.OAuthClientSecret, - configuration.OAuthFlow, - SerializerSettings, - configuration)); + return client.Deserialize(policyResult.Result); } - - {{/hasOAuthMethods}} - InterceptRequest(req); - - RestResponse response; - {{#supportsRetry}} - if (RetryConfiguration.AsyncRetryPolicy != null) + else { - var policy = RetryConfiguration.AsyncRetryPolicy; - var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(req, ct), cancellationToken).ConfigureAwait(false); - response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse + return new RestResponse(request) { - Request = req, ErrorException = policyResult.FinalException }; } - else + } + + private ApiResponse Exec(RestRequest request, RequestOptions options, IReadableConfiguration configuration) + { + Action setOptions = (clientOptions) => { - {{/supportsRetry}} - response = await client.ExecuteAsync(req, cancellationToken).ConfigureAwait(false); - {{#supportsRetry}} - } - {{/supportsRetry}} + var cookies = new CookieContainer(); - // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof({{{packageName}}}.{{modelPackage}}.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) - { - response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); - } - else if (typeof(T).Name == "Stream") // for binary response - { - response.Data = (T)(object)new MemoryStream(response.RawBytes); - } - else if (typeof(T).Name == "Byte[]") // for byte response + if (options.Cookies != null && options.Cookies.Count > 0) + { + foreach (var cookie in options.Cookies) + { + cookies.Add(new Cookie(cookie.Name, cookie.Value)); + } + } + clientOptions.CookieContainer = cookies; + }; + + Func> getResponse = (client) => { - response.Data = (T)(object)response.RawBytes; - } + if (RetryConfiguration.RetryPolicy != null) + { + var policy = RetryConfiguration.RetryPolicy; + var policyResult = policy.ExecuteAndCapture(() => client.Execute(request)); + return DeserializeRestResponseFromPolicy(client, request, policyResult); + } + else + { + return client.Execute(request); + } + }; - InterceptResponse(req, response); + return ExecClient(getResponse, setOptions, request, options, configuration); + } - var result = ToApiResponse(response); - if (response.ErrorMessage != null) + {{#supportsAsync}} + private Task> ExecAsync(RestRequest request, RequestOptions options, IReadableConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken)) + { + Action setOptions = (clientOptions) => { - result.ErrorText = response.ErrorMessage; - } + //no extra options + }; - if (response.Cookies != null && response.Cookies.Count > 0) + Func> getResponse = (client) => { - if (result.Cookies == null) result.Cookies = new List(); - foreach (var restResponseCookie in response.Cookies.Cast()) + Func>> action = async () => { - var cookie = new Cookie( - restResponseCookie.Name, - restResponseCookie.Value, - restResponseCookie.Path, - restResponseCookie.Domain - ) + {{#supportsRetry}} + if (RetryConfiguration.AsyncRetryPolicy != null) { - Comment = restResponseCookie.Comment, - CommentUri = restResponseCookie.CommentUri, - Discard = restResponseCookie.Discard, - Expired = restResponseCookie.Expired, - Expires = restResponseCookie.Expires, - HttpOnly = restResponseCookie.HttpOnly, - Port = restResponseCookie.Port, - Secure = restResponseCookie.Secure, - Version = restResponseCookie.Version - }; - - result.Cookies.Add(cookie); - } - } - return result; + var policy = RetryConfiguration.AsyncRetryPolicy; + var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); + return DeserializeRestResponseFromPolicy(client, request, policyResult); + } + else + { + {{/supportsRetry}} + return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false); + {{#supportsRetry}} + } + {{/supportsRetry}} + }; + return action().Result; + }; + + return Task.FromResult>(ExecClient(getResponse, setOptions, request, options, configuration)); } #region IAsynchronousClient @@ -703,7 +676,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), options, config, cancellationToken); @@ -718,7 +691,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), options, config, cancellationToken); @@ -733,7 +706,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), options, config, cancellationToken); @@ -748,7 +721,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), options, config, cancellationToken); @@ -763,7 +736,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), options, config, cancellationToken); @@ -778,7 +751,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), options, config, cancellationToken); @@ -793,7 +766,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), options, config, cancellationToken); diff --git a/sdks/dotnet/templates/ClientUtils.mustache b/sdks/dotnet/templates/ClientUtils.mustache index 2fc19e92a..36cbb7db1 100644 --- a/sdks/dotnet/templates/ClientUtils.mustache +++ b/sdks/dotnet/templates/ClientUtils.mustache @@ -2,17 +2,17 @@ using System; using System.Collections; +using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; +using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; {{#useCompareNetObjects}} using KellermanSoftware.CompareNetObjects; {{/useCompareNetObjects}} {{! CUSTOM - BEGIN }} -using System.Collections.Generic; -using System.Runtime.Serialization; using Newtonsoft.Json; using {{packageName}}.Model; {{! CUSTOM - END }} @@ -35,7 +35,11 @@ namespace {{packageName}}.Client /// static ClientUtils() { - compareLogic = new CompareLogic(); + {{#equatable}} + ComparisonConfig comparisonConfig = new{{^net70OrLater}} ComparisonConfig{{/net70OrLater}}(); + comparisonConfig.UseHashCodeIdentifier = true; + {{/equatable}} + compareLogic = new{{^net70OrLater}} CompareLogic{{/net70OrLater}}({{#equatable}}comparisonConfig{{/equatable}}); } {{/useCompareNetObjects}} @@ -116,12 +120,14 @@ namespace {{packageName}}.Client return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is bool boolean) return boolean ? "true" : "false"; - if (obj is ICollection collection) - return string.Join(",", collection.Cast()); -{{! CUSTOM - BEGIN }} + if (obj is ICollection collection) { + List entries = new List(); + foreach (var entry in collection) + entries.Add(ParameterToString(entry, configuration)); + return string.Join(",", entries); + } if (obj is Enum && HasEnumMemberAttrValue(obj)) return GetEnumMemberAttrValue(obj); -{{! CUSTOM - END }} return Convert.ToString(obj, CultureInfo.InvariantCulture); } @@ -220,7 +226,6 @@ namespace {{packageName}}.Client return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); } -{{! CUSTOM - BEGIN }} /// /// Is the Enum decorated with EnumMember Attribute @@ -243,7 +248,12 @@ namespace {{packageName}}.Client /// /// /// EnumMember value as string otherwise null +{{#vendorExtensions.x-ignore-block}} + private static string GetEnumMemberAttrValue(object enumVal) +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} public static string GetEnumMemberAttrValue(object enumVal) +{{! CUSTOM - END }} { if (enumVal == null) throw new ArgumentNullException(nameof(enumVal)); @@ -256,6 +266,7 @@ namespace {{packageName}}.Client } return null; } +{{! CUSTOM - BEGIN }} /// /// Tests if value is a System.IO.Stream or list of System.IO.Stream @@ -307,7 +318,7 @@ namespace {{packageName}}.Client item.Value.ToString() ); - continue; + continue; } if (item.Value is Enum) diff --git a/sdks/dotnet/templates/Configuration.mustache b/sdks/dotnet/templates/Configuration.mustache index 0c8abcf43..e75b957f5 100644 --- a/sdks/dotnet/templates/Configuration.mustache +++ b/sdks/dotnet/templates/Configuration.mustache @@ -12,6 +12,7 @@ using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Net.Http; +using System.Net.Security; {{#useRestSharp}} {{#hasOAuthMethods}}using {{packageName}}.Client.Auth; {{/hasOAuthMethods}} @@ -89,6 +90,8 @@ namespace {{packageName}}.Client /// private string _basePath; + private bool _useDefaultCredentials = false; + /// /// Gets or sets the API key based on the authentication name. /// This is the key and value comprising the "secret" for accessing an API. @@ -159,7 +162,7 @@ namespace {{packageName}}.Client { "{{{name}}}", new Dictionary { {"description", "{{{description}}}{{^description}}No description provided{{/description}}"}, - {"default_value", "{{{defaultValue}}}"}, + {"default_value", {{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}"{{{defaultValue}}}"}, {{#enumValues}} {{#-first}} { @@ -260,11 +263,21 @@ namespace {{packageName}}.Client /// /// Gets or sets the base path for API access. /// - public virtual string BasePath { + public virtual string BasePath + { get { return _basePath; } set { _basePath = value; } } + /// + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. + /// + public virtual bool UseDefaultCredentials + { + get { return _useDefaultCredentials; } + set { _useDefaultCredentials = value; } + } + /// /// Gets or sets the default header. /// @@ -558,7 +571,7 @@ namespace {{packageName}}.Client /// The operation server URL. public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables) { - if (OperationServers.TryGetValue(operation, out var operationServer)) + if (operation != null && OperationServers.TryGetValue(operation, out var operationServer)) { return GetServerUrl(operationServer, index, inputVariables); } @@ -629,6 +642,11 @@ namespace {{packageName}}.Client set { _HttpSigningConfiguration = value; } } {{/hasHttpSignatureMethods}} + + /// + /// Gets and Sets the RemoteCertificateValidationCallback + /// + public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; } #endregion Properties @@ -716,6 +734,8 @@ namespace {{packageName}}.Client TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, + UseDefaultCredentials = second.UseDefaultCredentials, + RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? first.RemoteCertificateValidationCallback, }; return config; } diff --git a/sdks/dotnet/templates/HttpSigningConfiguration.mustache b/sdks/dotnet/templates/HttpSigningConfiguration.mustache index 6b773b8d5..9566e1f1a 100644 --- a/sdks/dotnet/templates/HttpSigningConfiguration.mustache +++ b/sdks/dotnet/templates/HttpSigningConfiguration.mustache @@ -18,7 +18,6 @@ namespace {{packageName}}.Client /// public class HttpSigningConfiguration { - #region /// /// Initialize the HashAlgorithm and SigningAlgorithm to default value /// @@ -27,9 +26,7 @@ namespace {{packageName}}.Client HashAlgorithm = HashAlgorithmName.SHA256; SigningAlgorithm = "PKCS1-v15"; } - #endregion - #region Properties /// ///Gets the Api keyId /// @@ -40,6 +37,11 @@ namespace {{packageName}}.Client /// public string KeyFilePath { get; set; } + /// + /// Specify the API key in the form of a string, either configure the KeyString property or configure the KeyFilePath property. + /// + public string KeyString { get; set; } + /// /// Gets the key pass phrase for password protected key /// @@ -65,18 +67,13 @@ namespace {{packageName}}.Client /// public int SignatureValidityPeriod { get; set; } - #endregion - - #region enum private enum PrivateKeyType { None = 0, RSA = 1, ECDSA = 2, } - #endregion - #region Methods /// /// Gets the Headers for HttpSigning /// @@ -85,7 +82,7 @@ namespace {{packageName}}.Client /// Path /// Request options /// Http signed headers - internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions) + public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions) { const string HEADER_REQUEST_TARGET = "(request-target)"; //The time when the HTTP signature expires. The API server should reject HTTP requests @@ -104,6 +101,16 @@ namespace {{packageName}}.Client //the list of signed headers and a base64-encoded signature. const string HEADER_AUTHORIZATION = "Authorization"; + //Read the api key from the file + if(File.Exists(KeyFilePath)) + { + this.KeyString = ReadApiKeyFromFile(KeyFilePath); + } + else if(string.IsNullOrEmpty(KeyString)) + { + throw new Exception("No API key has been provided. Supply it using either KeyFilePath or KeyString"); + } + //Hash table to store singed headers var HttpSignedRequestHeader = new Dictionary(); var HttpSignatureHeader = new Dictionary(); @@ -167,12 +174,12 @@ namespace {{packageName}}.Client if (HashAlgorithm == HashAlgorithmName.SHA256) { - var bodyDigest = GetStringHash(HashAlgorithm.ToString(), requestBody); + var bodyDigest = GetStringHash(HashAlgorithm, requestBody); Digest = string.Format("SHA-256={0}", Convert.ToBase64String(bodyDigest)); } else if (HashAlgorithm == HashAlgorithmName.SHA512) { - var bodyDigest = GetStringHash(HashAlgorithm.ToString(), requestBody); + var bodyDigest = GetStringHash(HashAlgorithm, requestBody); Digest = string.Format("SHA-512={0}", Convert.ToBase64String(bodyDigest)); } else @@ -240,9 +247,9 @@ namespace {{packageName}}.Client } //Concatenate headers value separated by new line var headerValuesString = string.Join("\n", headerValuesList); - var signatureStringHash = GetStringHash(HashAlgorithm.ToString(), headerValuesString); + var signatureStringHash = GetStringHash(HashAlgorithm, headerValuesString); string headerSignatureStr = null; - var keyType = GetKeyType(KeyFilePath); + var keyType = GetKeyType(KeyString); if (keyType == PrivateKeyType.RSA) { @@ -276,11 +283,27 @@ namespace {{packageName}}.Client return HttpSignedRequestHeader; } - private byte[] GetStringHash(string hashName, string stringToBeHashed) + private byte[] GetStringHash(HashAlgorithmName hashAlgorithmName, string stringToBeHashed) { - var hashAlgorithm = System.Security.Cryptography.HashAlgorithm.Create(hashName); - var bytes = Encoding.UTF8.GetBytes(stringToBeHashed); - var stringHash = hashAlgorithm.ComputeHash(bytes); + HashAlgorithm{{nrt?}} hashAlgorithm = null; + + if (hashAlgorithmName == HashAlgorithmName.SHA1) + hashAlgorithm = SHA1.Create(); + + if (hashAlgorithmName == HashAlgorithmName.SHA256) + hashAlgorithm = SHA256.Create(); + + if (hashAlgorithmName == HashAlgorithmName.SHA512) + hashAlgorithm = SHA512.Create(); + + if (hashAlgorithmName == HashAlgorithmName.MD5) + hashAlgorithm = MD5.Create(); + + if (hashAlgorithm == null) + throw new NullReferenceException($"{ nameof(hashAlgorithm) } was null."); + + byte[] bytes = Encoding.UTF8.GetBytes(stringToBeHashed); + byte[] stringHash = hashAlgorithm.ComputeHash(bytes); return stringHash; } @@ -293,7 +316,11 @@ namespace {{packageName}}.Client private string GetRSASignature(byte[] stringToSign) { - RSA rsa = GetRSAProviderFromPemFile(KeyFilePath, KeyPassPhrase); + if (string.IsNullOrEmpty(KeyString)) + { + throw new Exception("No API key has been provided."); + } + RSA rsa = GetRSAProviderFromPemFile(KeyString, KeyPassPhrase); if (SigningAlgorithm == "RSASSA-PSS") { var signedbytes = rsa.SignHash(stringToSign, HashAlgorithm, RSASignaturePadding.Pss); @@ -317,23 +344,19 @@ namespace {{packageName}}.Client /// ECDSA signature private string GetECDSASignature(byte[] dataToSign) { - string keyStr = string.Empty; - if (File.Exists(KeyFilePath)) - { - keyStr = File.ReadAllText(KeyFilePath); - } - else + {{#net60OrLater}} + if (!File.Exists(KeyFilePath) && string.IsNullOrEmpty(KeyString)) { - keyStr = KeyFilePath; + throw new Exception("No API key has been provided."); } + var keyStr = KeyString; const string ecKeyHeader = "-----BEGIN EC PRIVATE KEY-----"; const string ecKeyFooter = "-----END EC PRIVATE KEY-----"; var ecKeyBase64String = keyStr.Replace(ecKeyHeader, "").Replace(ecKeyFooter, "").Trim(); var keyBytes = System.Convert.FromBase64String(ecKeyBase64String); var ecdsa = ECDsa.Create(); -#if (NETCOREAPP3_0 || NETCOREAPP3_1 || NET5_0) var byteCount = 0; if (KeyPassPhrase != null) { @@ -353,19 +376,23 @@ namespace {{packageName}}.Client } } else - { ecdsa.ImportPkcs8PrivateKey(keyBytes, out byteCount); - } - var signedBytes = ecdsa.SignHash(dataToSign); - var derBytes = ConvertToECDSAANS1Format(signedBytes); + + var derBytes = ecdsa.SignHash(dataToSign, DSASignatureFormat.Rfc3279DerSequence); var signedString = System.Convert.ToBase64String(derBytes); return signedString; -#else + {{/net60OrLater}} + {{^net60OrLater}} throw new Exception("ECDSA signing is supported only on NETCOREAPP3_0 and above"); -#endif + {{/net60OrLater}} } + /// + /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// + /// + /// private byte[] ConvertToECDSAANS1Format(byte[] signedBytes) { var derBytes = new List(); @@ -419,22 +446,18 @@ namespace {{packageName}}.Client return derBytes.ToArray(); } - private RSACryptoServiceProvider GetRSAProviderFromPemFile(string pemfile, SecureString keyPassPhrase = null) + private RSACryptoServiceProvider GetRSAProviderFromPemFile(string keyString, SecureString keyPassPhrase = null) { + if (string.IsNullOrEmpty(KeyString)) + { + throw new Exception("No API key has been provided."); + } + const string pempubheader = "-----BEGIN PUBLIC KEY-----"; const string pempubfooter = "-----END PUBLIC KEY-----"; bool isPrivateKeyFile = true; byte[] pemkey = null; - - string pemstr = string.Empty; - if (File.Exists(pemfile)) - { - pemstr = File.ReadAllText(pemfile).Trim(); - } - else - { - pemstr = pemfile; - } + string pemstr = keyString; if (pemstr.StartsWith(pempubheader) && pemstr.EndsWith(pempubfooter)) { @@ -663,7 +686,7 @@ namespace {{packageName}}.Client Array.Copy(salt, 0, data00, psbytes.Length, salt.Length); //concatenate the salt bytes // ---- do multi-hashing and concatenate results D1, D2 ... into keymaterial bytes ---- - MD5 md5 = new MD5CryptoServiceProvider(); + MD5 md5 = MD5.Create(); byte[] result = null; byte[] hashtarget = new byte[HASHLENGTH + data00.Length]; //fixed length initial hashtarget @@ -721,20 +744,15 @@ namespace {{packageName}}.Client /// /// Detect the key type from the pem file. /// - /// key file path in pem format + /// api key in string format /// Private Key Type - private PrivateKeyType GetKeyType(string keyFilePath) + private PrivateKeyType GetKeyType(string keyString) { string[] key = null; - if (File.Exists(keyFilePath)) - { - key = File.ReadAllLines(keyFilePath); - } - else + if (string.IsNullOrEmpty(keyString)) { - // The ApiKeyFilePath is passed as string - key = new string[] { keyFilePath }; + throw new Exception("No API key has been provided."); } const string ecPrivateKeyHeader = "BEGIN EC PRIVATE KEY"; @@ -744,6 +762,7 @@ namespace {{packageName}}.Client //var pkcs8Header = "BEGIN PRIVATE KEY"; //var pkcs8Footer = "END PRIVATE KEY"; PrivateKeyType keyType; + key = KeyString.TrimEnd().Split('\n'); if (key[0].Contains(rsaPrivateKeyHeader) && key[key.Length - 1].ToString().Contains(rsaPrivateFooter)) @@ -761,6 +780,24 @@ namespace {{packageName}}.Client } return keyType; } - #endregion + + /// + /// Read the api key form the api key file path and stored it in KeyString property. + /// + /// api key file path + private string ReadApiKeyFromFile(string apiKeyFilePath) + { + string apiKeyString = null; + + if(File.Exists(apiKeyFilePath)) + { + apiKeyString = File.ReadAllText(apiKeyFilePath); + } + else + { + throw new Exception("Provided API key file path does not exists."); + } + return apiKeyString; + } } } diff --git a/sdks/dotnet/templates/IReadableConfiguration.mustache b/sdks/dotnet/templates/IReadableConfiguration.mustache index 3d364834a..78c998b34 100644 --- a/sdks/dotnet/templates/IReadableConfiguration.mustache +++ b/sdks/dotnet/templates/IReadableConfiguration.mustache @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; using System.Net; +using System.Net.Security; using System.Security.Cryptography.X509Certificates; {{#useRestSharp}} {{#hasOAuthMethods}}using {{packageName}}.Client.Auth; @@ -123,6 +124,11 @@ namespace {{packageName}}.Client /// Password. string Password { get; } + /// + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. + /// + bool UseDefaultCredentials { get; } + /// /// Get the servers associated with the operation. /// @@ -156,5 +162,11 @@ namespace {{packageName}}.Client /// HttpSigningConfiguration HttpSigningConfiguration { get; } {{/hasHttpSignatureMethods}} + + /// + /// Callback function for handling the validation of remote certificates. Useful for certificate pinning and + /// overriding certificate errors in the scope of a request. + /// + RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; } } } diff --git a/sdks/dotnet/templates/NullConditionalParameter.mustache b/sdks/dotnet/templates/NullConditionalParameter.mustache new file mode 100644 index 000000000..d8ad92666 --- /dev/null +++ b/sdks/dotnet/templates/NullConditionalParameter.mustache @@ -0,0 +1 @@ +{{#isNullable}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}}{{/isNullable}} \ No newline at end of file diff --git a/sdks/dotnet/templates/NullConditionalProperty.mustache b/sdks/dotnet/templates/NullConditionalProperty.mustache new file mode 100644 index 000000000..7dcafa803 --- /dev/null +++ b/sdks/dotnet/templates/NullConditionalProperty.mustache @@ -0,0 +1 @@ +{{#lambda.first}}{{#isNullable}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/isNullable}}{{^required}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/required}}{{/lambda.first}} \ No newline at end of file diff --git a/sdks/dotnet/templates/README.mustache b/sdks/dotnet/templates/README.mustache index 78e685946..999b7a907 100644 --- a/sdks/dotnet/templates/README.mustache +++ b/sdks/dotnet/templates/README.mustache @@ -4,6 +4,7 @@ {{{.}}} {{/appDescriptionWithNewLines}} +{{! CUSTOM - BEGIN }} ## Migrating from legacy SDK This SDK is generated from our officially maintained [OpenAPI spec](https://github.com/hellosign/hellosign-openapi/blob/main/openapi.yaml). @@ -22,6 +23,7 @@ Pull Requests *must* be opened against the You must make SDK code changes in the mustache file within the `templates` directory that corresponds to the file you want updated. +{{! CUSTOM - END }} This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: {{appVersion}} @@ -29,11 +31,13 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap {{^hideGenerationTimestamp}} - Build date: {{generatedDate}} {{/hideGenerationTimestamp}} +- Generator version: {{generatorVersion}} - Build package: {{generatorClass}} {{#infoUrl}} For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) {{/infoUrl}} +{{! CUSTOM - BEGIN }} ### Building You must have `docker` (or `podman` linked to `docker`) installed. Highly @@ -50,7 +54,8 @@ Run the following and everything is done for you: to the OAS file and/or the mustache template files _will be lost_ when you run this command. - +{{! CUSTOM - END }} + ## Frameworks supported {{#netStandard}} - .NET Core >=1.0 @@ -58,14 +63,14 @@ this command. - Mono/Xamarin >=vNext {{/netStandard}} - + ## Dependencies {{#useRestSharp}} -- [RestSharp](https://www.nuget.org/packages/RestSharp) - 108.0.1 or later +- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later {{/useRestSharp}} -- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 or later -- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.9.0 or later +- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.2 or later +- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later {{#useCompareNetObjects}} - [CompareNETObjects](https://www.nuget.org/packages/CompareNETObjects) - 4.61.0 or later {{/useCompareNetObjects}} @@ -73,7 +78,65 @@ this command. - [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later {{/validatable}} - +{{#vendorExtensions.x-ignore-block}} +The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages: +``` +{{#useRestSharp}} +Install-Package RestSharp +{{/useRestSharp}} +Install-Package Newtonsoft.Json +Install-Package JsonSubTypes +{{#validatable}} +Install-Package System.ComponentModel.Annotations +{{/validatable}} +{{#useCompareNetObjects}} +Install-Package CompareNETObjects +{{/useCompareNetObjects}} +``` +{{#useRestSharp}} + +NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742). +NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See [RestSharp#1406](https://github.com/restsharp/RestSharp/issues/1406). + +{{/useRestSharp}} + +## Installation +{{#netStandard}} +Generate the DLL using your preferred tool (e.g. `dotnet build`) +{{/netStandard}} +{{^netStandard}} +Run the following command to generate the DLL +- [Mac/Linux] `/bin/sh build.sh` +- [Windows] `build.bat` +{{/netStandard}} + +Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces: +```csharp +using {{packageName}}.{{apiPackage}}; +using {{packageName}}.Client; +using {{packageName}}.{{modelPackage}}; +``` +{{^netStandard}} + +## Packaging + +A `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages. + +This `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly: + +``` +nuget pack -Build -OutputDirectory out {{packageName}}.csproj +``` + +Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual. + +{{/netStandard}} +{{/vendorExtensions.x-ignore-block}} + +{{#vendorExtensions.x-ignore-block}} +## Usage +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} ## Installation & Usage ### NuGet Package Manager @@ -85,6 +148,7 @@ The Dropbox Sign .NET SDK can be installed using the NuGet package manager, unde You can follow the NuGet quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-the-dotnet-cli) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-the-dotnet-cli#publish-the-package) the package via the dotnet CLI. Or, you can [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio?tabs=netcore-cli) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio?tabs=netcore-cli#publish-the-package) using Visual Studio. Alternatively, the .nupkg can be published to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consumed via NuGet as usual. +{{! CUSTOM - END }} To use the API client with a HTTP proxy, setup a `System.Net.WebProxy` ```csharp @@ -123,14 +187,103 @@ services.AddHttpClient(httpClient => {{/useHttpClient}} - + +{{#vendorExtensions.x-ignore-block}} +## Getting Started + +```csharp +using System.Collections.Generic; +using System.Diagnostics; +{{#useHttpClient}} +using System.Net.Http; +{{/useHttpClient}} +using {{packageName}}.{{apiPackage}}; +using {{packageName}}.Client; +using {{packageName}}.{{modelPackage}}; + +namespace Example +{ + public class {{operationId}}Example + { + public static void Main() + { +{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}} + Configuration config = new Configuration(); + config.BasePath = "{{{basePath}}}"; + {{#hasAuthMethods}} + {{#authMethods}} + {{#isBasicBasic}} + // Configure HTTP basic authorization: {{{name}}} + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + {{/isBasicBasic}} + {{#isBasicBearer}} + // Configure Bearer token for authorization: {{{name}}} + config.AccessToken = "YOUR_BEARER_TOKEN"; + {{/isBasicBearer}} + {{#isApiKey}} + // Configure API key authorization: {{{name}}} + config.ApiKey.Add("{{{keyParamName}}}", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.ApiKeyPrefix.Add("{{{keyParamName}}}", "Bearer"); + {{/isApiKey}} + {{#isOAuth}} + // Configure OAuth2 access token for authorization: {{{name}}} + config.AccessToken = "YOUR_ACCESS_TOKEN"; + {{/isOAuth}} + {{/authMethods}} + + {{/hasAuthMethods}} + {{#useHttpClient}} + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new {{classname}}(httpClient, config, httpClientHandler); + {{/useHttpClient}} + {{^useHttpClient}} + var apiInstance = new {{classname}}(config); + {{/useHttpClient}} + {{#allParams}} + {{#isPrimitiveType}} + var {{paramName}} = {{{example}}}; // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/isPrimitiveType}} + {{^isPrimitiveType}} + var {{paramName}} = new {{{dataType}}}(); // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/isPrimitiveType}} + {{/allParams}} + + try + { + {{#summary}} + // {{{.}}} + {{/summary}} + {{#returnType}}{{{.}}} result = {{/returnType}}apiInstance.{{{operationId}}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} + Debug.WriteLine(result);{{/returnType}} + } + catch (ApiException e) + { + Debug.Print("Exception when calling {{classname}}.{{operationId}}: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } +{{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}} + } + } +} +``` +{{/vendorExtensions.x-ignore-block}} + +{{! CUSTOM - BEGIN }} ## Getting Started + {{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}} ```csharp REPLACE_ME_WITH_EXAMPLE_FOR__{{{operationId}}}_C#_CODE ``` {{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}} - +{{! CUSTOM - END }} + + ## Documentation for API Endpoints All URIs are relative to *{{{basePath}}}* @@ -140,7 +293,7 @@ Class | Method | HTTP request | Description {{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{{summary}}} {{/operation}}{{/operations}}{{/apis}}{{/apiInfo}} - + ## Documentation for Models {{#modelPackage}} @@ -151,19 +304,13 @@ Class | Method | HTTP request | Description No model defined in this package {{/modelPackage}} - + ## Documentation for Authorization -{{^authMethods}} -All endpoints do not require authorization. -{{/authMethods}} -{{#authMethods}} -{{#last}} -Authentication schemes defined for the API: -{{/last}} -{{/authMethods}} +{{^authMethods}}Endpoints do not require authorization.{{/authMethods}} +{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}} {{#authMethods}} - + ### {{name}} {{#isApiKey}}- **Type**: API key @@ -174,6 +321,8 @@ Authentication schemes defined for the API: {{/isBasicBasic}} {{#isBasicBearer}}- **Type**: Bearer Authentication {{/isBasicBearer}} +{{#isHttpSignature}}- **Type**: HTTP signature authentication +{{/isHttpSignature}} {{#isOAuth}}- **Type**: OAuth - **Flow**: {{flow}} - **Authorization URL**: {{authorizationUrl}} diff --git a/sdks/dotnet/templates/RequestOptions.mustache b/sdks/dotnet/templates/RequestOptions.mustache index 40436b965..cfc146925 100644 --- a/sdks/dotnet/templates/RequestOptions.mustache +++ b/sdks/dotnet/templates/RequestOptions.mustache @@ -25,7 +25,7 @@ namespace {{packageName}}.Client public Multimap QueryParameters { get; set; } /// - /// Header parameters to be applied to to the request. + /// Header parameters to be applied to the request. /// Keys may have 1 or more values associated. /// public Multimap HeaderParameters { get; set; } @@ -35,10 +35,12 @@ namespace {{packageName}}.Client /// public Dictionary FormParameters { get; set; } + {{#supportsFileParameters}} /// /// File parameters to be sent along with the request. /// public Multimap FileParameters { get; set; } + {{/supportsFileParameters}} /// /// Cookies to be sent along with the request. @@ -76,7 +78,9 @@ namespace {{packageName}}.Client QueryParameters = new Multimap(); HeaderParameters = new Multimap(); FormParameters = new Dictionary(); + {{#supportsFileParameters}} FileParameters = new Multimap(); + {{/supportsFileParameters}} Cookies = new List(); } } diff --git a/sdks/dotnet/templates/Solution.mustache b/sdks/dotnet/templates/Solution.mustache index 1981c94a5..8c210e8e2 100644 --- a/sdks/dotnet/templates/Solution.mustache +++ b/sdks/dotnet/templates/Solution.mustache @@ -10,9 +10,8 @@ EndProject {{/excludeTests}}Global {{/vendorExtensions.x-ignore-block}} {{! CUSTOM - BEGIN }} -{{^excludeTests}}Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "{{testPackageName}}", "src\{{testPackageName}}\{{testPackageName}}.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign", "src\Dropbox.Sign\Dropbox.Sign.csproj", "{F8C8232D-7020-4603-8E04-18D060AE530B}" EndProject -{{/excludeTests}} Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign.Test", "src\Dropbox.Sign.Test\Dropbox.Sign.Test.csproj", "{C305EB17-93FE-4BDA-89A4-120BD8C8A88A}" EndProject Global diff --git a/sdks/dotnet/templates/TestProject.mustache b/sdks/dotnet/templates/TestProject.mustache index 16097edf3..84de5ed14 100644 --- a/sdks/dotnet/templates/TestProject.mustache +++ b/sdks/dotnet/templates/TestProject.mustache @@ -29,8 +29,8 @@ {{! CUSTOM - END }} - - + + diff --git a/sdks/dotnet/templates/ValidateRegex.mustache b/sdks/dotnet/templates/ValidateRegex.mustache new file mode 100644 index 000000000..15cf626dc --- /dev/null +++ b/sdks/dotnet/templates/ValidateRegex.mustache @@ -0,0 +1,6 @@ +// {{{name}}} ({{{dataType}}}) pattern +Regex regex{{{name}}} = new Regex(@"{{{vendorExtensions.x-regex}}}"{{#vendorExtensions.x-modifiers}}{{#-first}}, {{/-first}}RegexOptions.{{{.}}}{{^-last}} | {{/-last}}{{/vendorExtensions.x-modifiers}}); +if (!regex{{{name}}}.Match(this.{{{name}}}{{#isUuid}}.ToString(){{/isUuid}}).Success) +{ + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, must match a pattern of " + regex{{{name}}}, new [] { "{{{name}}}" }); +} \ No newline at end of file diff --git a/sdks/dotnet/templates/api.mustache b/sdks/dotnet/templates/api.mustache index 2fe32d7b9..fc855feb3 100644 --- a/sdks/dotnet/templates/api.mustache +++ b/sdks/dotnet/templates/api.mustache @@ -356,7 +356,7 @@ namespace {{packageName}}.{{apiPackage}} {{#items.vars}} if ({{paramName}}.{{name}} != null) { - localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}}.{{name}})); + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{paramName}}[{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}]", {{paramName}}.{{name}})); } {{/items.vars}} {{^items}} @@ -384,13 +384,17 @@ namespace {{packageName}}.{{apiPackage}} {{#required}} {{#isFile}} {{#isArray}} + {{#supportsFileParameters}} foreach (var file in {{paramName}}) { localVarRequestOptions.FileParameters.Add("{{baseName}}", file); } + {{/supportsFileParameters}} {{/isArray}} {{^isArray}} + {{#supportsFileParameters}} localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}}); + {{/supportsFileParameters}} {{/isArray}} {{/isFile}} {{^isFile}} @@ -402,17 +406,21 @@ namespace {{packageName}}.{{apiPackage}} { {{#isFile}} {{#isArray}} + {{#supportsFileParameters}} foreach (var file in {{paramName}}) { localVarRequestOptions.FileParameters.Add("{{baseName}}", file); } + {{/supportsFileParameters}} {{/isArray}} {{^isArray}} + {{#supportsFileParameters}} localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}}); + {{/supportsFileParameters}} {{/isArray}} {{/isFile}} {{^isFile}} - localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.{{#isPrimitiveType}}ParameterToString{{/isPrimitiveType}}{{^isPrimitiveType}}Serialize{{/isPrimitiveType}}({{paramName}})); // form parameter {{/isFile}} } {{/required}} @@ -422,6 +430,7 @@ namespace {{packageName}}.{{apiPackage}} localVarRequestOptions.Data = {{paramName}}; {{/bodyParam}} {{/vendorExtensions.x-ignore-block}} + localVarRequestOptions.Operation = "{{classname}}.{{operationId}}"; localVarRequestOptions.OperationIndex = operationIndex; @@ -586,7 +595,6 @@ namespace {{packageName}}.{{apiPackage}} "{{{mediaType}}}"{{^-last}}, {{/-last}} {{/consumes}} }; - {{! CUSTOM - BEGIN }} var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); {{/bodyParam}} @@ -613,6 +621,12 @@ namespace {{packageName}}.{{apiPackage}} localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + {{#constantParams}} + {{#isPathParam}} + // Set client side default value of Path Param "{{baseName}}". + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{#_enum}}"{{{.}}}"{{/_enum}})); // Constant path parameter + {{/isPathParam}} + {{/constantParams}} {{#pathParams}} {{#required}} localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter @@ -624,17 +638,52 @@ namespace {{packageName}}.{{apiPackage}} } {{/required}} {{/pathParams}} + {{#constantParams}} + {{#isQueryParam}} + // Set client side default value of Query Param "{{baseName}}". + localVarRequestOptions.QueryParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{#_enum}}"{{{.}}}"{{/_enum}})); // Constant query parameter + {{/isQueryParam}} + {{/constantParams}} {{#queryParams}} {{#required}} + {{#isDeepObject}} + {{#items.vars}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}}.{{name}})); + {{/items.vars}} + {{^items}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("deepObject", "{{baseName}}", {{paramName}})); + {{/items}} + {{/isDeepObject}} + {{^isDeepObject}} localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}})); + {{/isDeepObject}} {{/required}} {{^required}} if ({{paramName}} != null) { + {{#isDeepObject}} + {{#items.vars}} + if ({{paramName}}.{{name}} != null) + { + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{paramName}}[{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}]", {{paramName}}.{{name}})); + } + {{/items.vars}} + {{^items}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("deepObject", "{{baseName}}", {{paramName}})); + {{/items}} + {{/isDeepObject}} + {{^isDeepObject}} localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}})); + {{/isDeepObject}} } {{/required}} {{/queryParams}} + {{#constantParams}} + {{#isHeaderParam}} + // Set client side default value of Header Param "{{baseName}}". + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{#_enum}}"{{{.}}}"{{/_enum}})); // Constant header parameter + {{/isHeaderParam}} + {{/constantParams}} {{#headerParams}} {{#required}} localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter @@ -650,17 +699,21 @@ namespace {{packageName}}.{{apiPackage}} {{#required}} {{#isFile}} {{#isArray}} + {{#supportsFileParameters}} foreach (var file in {{paramName}}) { localVarRequestOptions.FileParameters.Add("{{baseName}}", file); } + {{/supportsFileParameters}} {{/isArray}} {{^isArray}} + {{#supportsFileParameters}} localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}}); + {{/supportsFileParameters}} {{/isArray}} {{/isFile}} {{^isFile}} - localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.{{#isPrimitiveType}}ParameterToString{{/isPrimitiveType}}{{^isPrimitiveType}}Serialize{{/isPrimitiveType}}({{paramName}})); // form parameter {{/isFile}} {{/required}} {{^required}} @@ -668,17 +721,21 @@ namespace {{packageName}}.{{apiPackage}} { {{#isFile}} {{#isArray}} + {{#supportsFileParameters}} foreach (var file in {{paramName}}) { localVarRequestOptions.FileParameters.Add("{{baseName}}", file); } + {{/supportsFileParameters}} {{/isArray}} {{^isArray}} + {{#supportsFileParameters}} localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}}); + {{/supportsFileParameters}} {{/isArray}} {{/isFile}} {{^isFile}} - localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.{{#isPrimitiveType}}ParameterToString{{/isPrimitiveType}}{{^isPrimitiveType}}Serialize{{/isPrimitiveType}}({{paramName}})); // form parameter {{/isFile}} } {{/required}} @@ -688,6 +745,7 @@ namespace {{packageName}}.{{apiPackage}} localVarRequestOptions.Data = {{paramName}}; {{/bodyParam}} {{/vendorExtensions.x-ignore-block}} + localVarRequestOptions.Operation = "{{classname}}.{{operationId}}"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/templates/api_doc.mustache b/sdks/dotnet/templates/api_doc.mustache index 24578dff0..b03e48177 100644 --- a/sdks/dotnet/templates/api_doc.mustache +++ b/sdks/dotnet/templates/api_doc.mustache @@ -13,7 +13,7 @@ All URIs are relative to *{{{basePath}}}* {{#operations}} {{#operation}} - + # **{{{operationId}}}** > {{returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) @@ -22,9 +22,91 @@ All URIs are relative to *{{{basePath}}}* {{{.}}}{{/notes}} ### Example +{{#vendorExtensions.x-ignore-block}} +```csharp +using System.Collections.Generic; +using System.Diagnostics; +{{#useHttpClient}} +using System.Net.Http; +{{/useHttpClient}} +using {{packageName}}.{{apiPackage}}; +using {{packageName}}.Client; +using {{packageName}}.{{modelPackage}}; + +namespace Example +{ + public class {{operationId}}Example + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "{{{basePath}}}"; + {{#hasAuthMethods}} + {{#authMethods}} + {{#isBasicBasic}} + // Configure HTTP basic authorization: {{{name}}} + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + {{/isBasicBasic}} + {{#isBasicBearer}} + // Configure Bearer token for authorization: {{{name}}} + config.AccessToken = "YOUR_BEARER_TOKEN"; + {{/isBasicBearer}} + {{#isApiKey}} + // Configure API key authorization: {{{name}}} + config.AddApiKey("{{{keyParamName}}}", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("{{{keyParamName}}}", "Bearer"); + {{/isApiKey}} + {{#isOAuth}} + // Configure OAuth2 access token for authorization: {{{name}}} + config.AccessToken = "YOUR_ACCESS_TOKEN"; + {{/isOAuth}} + {{/authMethods}} + + {{/hasAuthMethods}} + {{#useHttpClient}} + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new {{classname}}(httpClient, config, httpClientHandler); + {{/useHttpClient}} + {{^useHttpClient}} + var apiInstance = new {{classname}}(config); + {{/useHttpClient}} + {{#allParams}} + {{#isPrimitiveType}} + var {{paramName}} = {{{example}}}; // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/isPrimitiveType}} + {{^isPrimitiveType}} + var {{paramName}} = new {{{dataType}}}(); // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/isPrimitiveType}} + {{/allParams}} + + try + { + {{#summary}} + // {{{.}}} + {{/summary}} + {{#returnType}}{{{.}}} result = {{/returnType}}apiInstance.{{{operationId}}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} + Debug.WriteLine(result);{{/returnType}} + } + catch (ApiException e) + { + Debug.Print("Exception when calling {{classname}}.{{operationId}}: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} ```csharp REPLACE_ME_WITH_EXAMPLE_FOR__{{{operationId}}}_C#_CODE ``` +{{! CUSTOM - END }} #### Using the {{operationId}}WithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. diff --git a/sdks/dotnet/templates/auth/OAuthAuthenticator.mustache b/sdks/dotnet/templates/auth/OAuthAuthenticator.mustache index cc0b3894a..ae8f3c753 100644 --- a/sdks/dotnet/templates/auth/OAuthAuthenticator.mustache +++ b/sdks/dotnet/templates/auth/OAuthAuthenticator.mustache @@ -63,7 +63,7 @@ namespace {{packageName}}.Client.Auth /// An authentication parameter. protected override async ValueTask GetAuthenticationParameter(string accessToken) { - var token = string.IsNullOrEmpty(Token) ? await GetToken() : Token; + var token = string.IsNullOrEmpty(Token) ? await GetToken().ConfigureAwait(false) : Token; return new HeaderParameter(KnownHeaders.Authorization, token); } @@ -73,15 +73,25 @@ namespace {{packageName}}.Client.Auth /// An authentication token. async Task GetToken() { - var client = new RestClient(_tokenUrl) - .UseSerializer(() => new CustomJsonCodec(_serializerSettings, _configuration)); + var client = new RestClient(_tokenUrl, + configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(_serializerSettings, _configuration))); var request = new RestRequest() .AddParameter("grant_type", _grantType) .AddParameter("client_id", _clientId) .AddParameter("client_secret", _clientSecret); - var response = await client.PostAsync(request); - return $"{response.TokenType} {response.AccessToken}"; + var response = await client.PostAsync(request).ConfigureAwait(false); + + // RFC6749 - token_type is case insensitive. + // RFC6750 - In Authorization header Bearer should be capitalized. + // Fix the capitalization irrespective of token_type casing. + switch (response.TokenType?.ToLower()) + { + case "bearer": + return $"Bearer {response.AccessToken}"; + default: + return $"{response.TokenType} {response.AccessToken}"; + } } } } diff --git a/sdks/dotnet/templates/libraries/generichost/AfterOperationDefaultImplementation.mustache b/sdks/dotnet/templates/libraries/generichost/AfterOperationDefaultImplementation.mustache new file mode 100644 index 000000000..394c65720 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/AfterOperationDefaultImplementation.mustache @@ -0,0 +1,2 @@ + if (!suppressDefaultLog) + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/ApiException.mustache b/sdks/dotnet/templates/libraries/generichost/ApiException.mustache index 7777fd09c..c14c1010f 100644 --- a/sdks/dotnet/templates/libraries/generichost/ApiException.mustache +++ b/sdks/dotnet/templates/libraries/generichost/ApiException.mustache @@ -6,7 +6,7 @@ {{/nrt}} using System; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// API Exception @@ -29,7 +29,7 @@ namespace {{packageName}}.Client public string RawContent { get; } /// - /// Construct the ApiException from parts of the reponse + /// Construct the ApiException from parts of the response /// /// /// diff --git a/sdks/dotnet/templates/libraries/generichost/ApiFactory.mustache b/sdks/dotnet/templates/libraries/generichost/ApiFactory.mustache new file mode 100644 index 000000000..a445d2169 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/ApiFactory.mustache @@ -0,0 +1,49 @@ +using System; +using Microsoft.Extensions.DependencyInjection; +using {{packageName}}.{{apiPackage}}; + +namespace {{packageName}}.{{clientPackage}} +{ + /// + /// An IApiFactory interface + /// + {{>visibility}} interface IApiFactory + { + /// + /// A method to create an IApi of type IResult + /// + /// + /// + IResult Create() where IResult : IApi; + } + + /// + /// An ApiFactory + /// + {{>visibility}} class ApiFactory : IApiFactory + { + /// + /// The service provider + /// + public IServiceProvider Services { get; } + + /// + /// Initializes a new instance of the class. + /// + /// + public ApiFactory(IServiceProvider services) + { + Services = services; + } + + /// + /// A method to create an IApi of type IResult + /// + /// + /// + public IResult Create() where IResult : IApi + { + return Services.GetRequiredService(); + } + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/ApiKeyToken.mustache b/sdks/dotnet/templates/libraries/generichost/ApiKeyToken.mustache index 25a751ad6..273eb2cc7 100644 --- a/sdks/dotnet/templates/libraries/generichost/ApiKeyToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/ApiKeyToken.mustache @@ -6,56 +6,51 @@ {{/nrt}} using System; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// A token constructed from an apiKey. /// - public class ApiKeyToken : TokenBase + {{>visibility}} class ApiKeyToken : TokenBase { private string _raw; + /// + /// The header that this token will be used with. + /// + public ClientUtils.ApiKeyHeader Header { get; } + /// /// Constructs an ApiKeyToken object. /// /// + /// /// - /// - public ApiKeyToken(string value, string prefix = "Bearer ", TimeSpan? timeout = null) : base(timeout) + /// + public ApiKeyToken(string value, ClientUtils.ApiKeyHeader header, string prefix = "Bearer ", TimeSpan? timeout = null) : base(timeout) { + Header = header; _raw = $"{ prefix }{ value }"; } - /// - /// Places the token in the cookie. - /// - /// - /// - public virtual void UseInCookie(System.Net.Http.HttpRequestMessage request, string cookieName) - { - request.Headers.Add("Cookie", $"{ cookieName }=_raw"); - } - /// /// Places the token in the header. /// /// - /// - public virtual void UseInHeader(System.Net.Http.HttpRequestMessage request, string headerName) + public virtual void UseInHeader(System.Net.Http.HttpRequestMessage request) { - request.Headers.Add(headerName, _raw); + request.Headers.Add(ClientUtils.ApiKeyHeaderToString(Header), _raw); } - + /// /// Places the token in the query. /// /// /// /// - /// - public virtual void UseInQuery(System.Net.Http.HttpRequestMessage request, UriBuilder uriBuilder, System.Collections.Specialized.NameValueCollection parseQueryString, string parameterName) + public virtual void UseInQuery(System.Net.Http.HttpRequestMessage request, UriBuilder uriBuilder, System.Collections.Specialized.NameValueCollection parseQueryString) { - parseQueryString[parameterName] = Uri.EscapeDataString(_raw).ToString(){{nrt!}}; + parseQueryString[ClientUtils.ApiKeyHeaderToString(Header)] = Uri.EscapeDataString(_raw).ToString(){{nrt!}}; } } } \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/ApiResponseEventArgs.mustache b/sdks/dotnet/templates/libraries/generichost/ApiResponseEventArgs.mustache deleted file mode 100644 index 5ff161993..000000000 --- a/sdks/dotnet/templates/libraries/generichost/ApiResponseEventArgs.mustache +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Net; - -namespace {{packageName}}.Client -{ - /// - /// Useful for tracking server health. - /// - public class ApiResponseEventArgs : EventArgs - { - /// - /// The time the request was sent. - /// - public DateTime RequestedAt { get; } - /// - /// The time the response was received. - /// - public DateTime ReceivedAt { get; } - /// - /// The HttpStatusCode received. - /// - public HttpStatusCode HttpStatus { get; } - /// - /// The path requested. - /// - public string Path { get; } - /// - /// The elapsed time from request to response. - /// - public TimeSpan ToTimeSpan => this.ReceivedAt - this.RequestedAt; - - /// - /// The event args used to track server health. - /// - /// - /// - /// - /// - public ApiResponseEventArgs(DateTime requestedAt, DateTime receivedAt, HttpStatusCode httpStatus, string path) - { - RequestedAt = requestedAt; - ReceivedAt = receivedAt; - HttpStatus = httpStatus; - Path = path; - } - } -} diff --git a/sdks/dotnet/templates/libraries/generichost/ApiResponseEventArgs`1.mustache b/sdks/dotnet/templates/libraries/generichost/ApiResponseEventArgs`1.mustache new file mode 100644 index 000000000..aea35fae1 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/ApiResponseEventArgs`1.mustache @@ -0,0 +1,24 @@ +using System; + +namespace {{packageName}}.{{clientPackage}} +{ + /// + /// Useful for tracking server health + /// + {{>visibility}} class ApiResponseEventArgs : EventArgs + { + /// + /// The ApiResponse + /// + public ApiResponse ApiResponse { get; } + + /// + /// The ApiResponseEventArgs + /// + /// + public ApiResponseEventArgs(ApiResponse apiResponse) + { + ApiResponse = apiResponse; + } + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/ApiResponse`1.mustache b/sdks/dotnet/templates/libraries/generichost/ApiResponse`1.mustache index 1bcf4a841..5b097c224 100644 --- a/sdks/dotnet/templates/libraries/generichost/ApiResponse`1.mustache +++ b/sdks/dotnet/templates/libraries/generichost/ApiResponse`1.mustache @@ -5,64 +5,80 @@ {{/nrt}} using System; -using System.Collections.Generic; +{{^netStandard}} +using System.Diagnostics.CodeAnalysis; +{{/netStandard}} using System.Net; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// Provides a non-generic contract for the ApiResponse wrapper. /// - public interface IApiResponse + {{>visibility}} partial interface IApiResponse { /// - /// The data type of + /// The IsSuccessStatusCode from the api response /// - Type ResponseType { get; } + bool IsSuccessStatusCode { get; } /// - /// Gets or sets the status code (HTTP status code) + /// Gets the status code (HTTP status code) /// /// The status code. HttpStatusCode StatusCode { get; } /// - /// The raw content of this response + /// The raw content of this response. /// string RawContent { get; } - } - /// - /// API Response - /// - {{>visibility}} partial class ApiResponse : IApiResponse - { - #region Properties + /// + /// The DateTime when the request was retrieved. + /// + DateTime DownloadedAt { get; } /// - /// The deserialized content + /// The headers contained in the api response /// - {{! .net 3.1 does not support unconstrained nullable T }} - public T{{#nrt}}{{^netcoreapp3.1}}?{{/netcoreapp3.1}}{{/nrt}} Content { get; set; } + System.Net.Http.Headers.HttpResponseHeaders Headers { get; } /// - /// Gets or sets the status code (HTTP status code) + /// The path used when making the request. /// - /// The status code. - public HttpStatusCode StatusCode { get; } + string Path { get; } /// - /// The content of this response + /// The reason phrase contained in the api response /// - public Type ResponseType - { - get { return typeof(T); } - } + string{{nrt?}} ReasonPhrase { get; } + + /// + /// The DateTime when the request was sent. + /// + DateTime RequestedAt { get; } + + /// + /// The Uri used when making the request. + /// + Uri{{nrt?}} RequestUri { get; } + } + + /// + /// API Response + /// + {{>visibility}} partial class ApiResponse : IApiResponse + { + /// + /// Gets the status code (HTTP status code) + /// + /// The status code. + public HttpStatusCode StatusCode { get; } /// /// The raw data /// - public string RawContent { get; } + public string RawContent { get; protected set; } /// /// The IsSuccessStatusCode from the api response @@ -79,20 +95,76 @@ namespace {{packageName}}.Client /// public System.Net.Http.Headers.HttpResponseHeaders Headers { get; } - #endregion Properties + /// + /// The DateTime when the request was retrieved. + /// + public DateTime DownloadedAt { get; } = DateTime.UtcNow; + + /// + /// The DateTime when the request was sent. + /// + public DateTime RequestedAt { get; } + + /// + /// The path used when making the request. + /// + public string Path { get; } /// - /// Construct the reponse using an HttpResponseMessage + /// The Uri used when making the request. /// - /// + public Uri{{nrt?}} RequestUri { get; } + + /// + /// The + /// + protected System.Text.Json.JsonSerializerOptions _jsonSerializerOptions; + + /// + /// Construct the response using an HttpResponseMessage + /// + /// + /// /// - public ApiResponse(System.Net.Http.HttpResponseMessage response, string rawContent) + /// + /// + /// + public ApiResponse(System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage, string rawContent, string path, DateTime requestedAt, System.Text.Json.JsonSerializerOptions jsonSerializerOptions) { - StatusCode = response.StatusCode; - Headers = response.Headers; - IsSuccessStatusCode = response.IsSuccessStatusCode; - ReasonPhrase = response.ReasonPhrase; + StatusCode = httpResponseMessage.StatusCode; + Headers = httpResponseMessage.Headers; + IsSuccessStatusCode = httpResponseMessage.IsSuccessStatusCode; + ReasonPhrase = httpResponseMessage.ReasonPhrase; RawContent = rawContent; + Path = path; + RequestUri = httpRequestMessage.RequestUri; + RequestedAt = requestedAt; + _jsonSerializerOptions = jsonSerializerOptions; + OnCreated(httpRequestMessage, httpResponseMessage); } + + partial void OnCreated(System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + } + {{#x-http-statuses-with-return}} + + /// + /// An interface for responses of type {{TType}} + /// + /// + {{>visibility}} interface I{{.}} : IApiResponse + { + /// + /// Deserializes the response if the response is {{.}} + /// + /// + TType {{.}}(); + + /// + /// Returns true if the response is {{.}} and the deserialized response is not null + /// + /// + /// + bool Try{{.}}({{#net60OrLater}}[NotNullWhen(true)]{{/net60OrLater}}out TType{{nrt?}} result); } + {{/x-http-statuses-with-return}} } diff --git a/sdks/dotnet/templates/libraries/generichost/ApiTestsBase.mustache b/sdks/dotnet/templates/libraries/generichost/ApiTestsBase.mustache index 57dd3c7ed..3292a1e86 100644 --- a/sdks/dotnet/templates/libraries/generichost/ApiTestsBase.mustache +++ b/sdks/dotnet/templates/libraries/generichost/ApiTestsBase.mustache @@ -3,14 +3,15 @@ using System; using System.Collections.Generic; using System.Security.Cryptography; using Microsoft.Extensions.Hosting; -using {{packageName}}.Client;{{#hasImport}} +using {{packageName}}.{{clientPackage}};{{#hasImport}} using {{packageName}}.{{modelPackage}};{{/hasImport}} +using {{packageName}}.Extensions; -{{{testInstructions}}} +{{>testInstructions}} -namespace {{packageName}}.Test.Api +namespace {{packageName}}.Test.{{apiPackage}} { /// /// Base class for API tests @@ -25,23 +26,40 @@ namespace {{packageName}}.Test.Api } public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) - .Configure{{apiName}}((context, options) => + .Configure{{apiName}}((context, services, options) => { - {{#hasApiKeyMethods}}ApiKeyToken apiKeyToken = new ApiKeyToken(context.Configuration[""], timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(apiKeyToken); - {{/hasApiKeyMethods}}{{#hasHttpBearerMethods}} - BearerToken bearerToken = new BearerToken(context.Configuration[""], timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(bearerToken); - {{/hasHttpBearerMethods}}{{#hasHttpBasicMethods}} - BasicToken basicToken = new BasicToken(context.Configuration[""], context.Configuration[""], timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(basicToken); - {{/hasHttpBasicMethods}}{{#hasHttpSignatureMethods}} - HttpSigningConfiguration config = new HttpSigningConfiguration("", "", null, new List(), HashAlgorithmName.SHA256, "", 0); - HttpSignatureToken httpSignatureToken = new HttpSignatureToken(config, timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(httpSignatureToken); - {{/hasHttpSignatureMethods}}{{#hasOAuthMethods}} - OAuthToken oauthToken = new OAuthToken(context.Configuration[""], timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(oauthToken);{{/hasOAuthMethods}} + {{#lambda.trimTrailingWithNewLine}} + {{#apiKeyMethods}} + string apiKeyTokenValue{{-index}} = context.Configuration[""] ?? throw new Exception("Token not found."); + ApiKeyToken apiKeyToken{{-index}} = new{{^net70OrLater}} ApiKeyToken{{/net70OrLater}}(apiKeyTokenValue{{-index}}, ClientUtils.ApiKeyHeader.{{#lambda.titlecase}}{{keyParamName}}{{/lambda.titlecase}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(apiKeyToken{{-index}}); + + {{/apiKeyMethods}} + {{#httpBearerMethods}} + string bearerTokenValue{{-index}} = context.Configuration[""] ?? throw new Exception("Token not found."); + BearerToken bearerToken{{-index}} = new{{^net70OrLater}} BearerToken{{/net70OrLater}}(bearerTokenValue{{-index}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(bearerToken{{-index}}); + + {{/httpBearerMethods}} + {{#httpBasicMethods}} + string basicTokenUsername{{-index}} = context.Configuration[""] ?? throw new Exception("Username not found."); + string basicTokenPassword{{-index}} = context.Configuration[""] ?? throw new Exception("Password not found."); + BasicToken basicToken{{-index}} = new{{^net70OrLater}} BasicToken{{/net70OrLater}}(basicTokenUsername{{-index}}, basicTokenPassword{{-index}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(basicToken{{-index}}); + + {{/httpBasicMethods}} + {{#httpSignatureMethods}} + HttpSigningConfiguration config{{-index}} = new{{^net70OrLater}} HttpSigningConfiguration{{/net70OrLater}}("", "", null, new List(), HashAlgorithmName.SHA256, "", 0); + HttpSignatureToken httpSignatureToken{{-index}} = new{{^net70OrLater}} HttpSignatureToken{{/net70OrLater}}(config{{-index}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(httpSignatureToken{{-index}}); + + {{/httpSignatureMethods}} + {{#oauthMethods}} + string oauthTokenValue{{-index}} = context.Configuration[""] ?? throw new Exception("Token not found."); + OAuthToken oauthToken{{-index}} = new{{^net70OrLater}} OAuthToken{{/net70OrLater}}(oauthTokenValue{{-index}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(oauthToken{{-index}}); + {{/oauthMethods}} + {{/lambda.trimTrailingWithNewLine}} }); } } diff --git a/sdks/dotnet/templates/libraries/generichost/AsModel.mustache b/sdks/dotnet/templates/libraries/generichost/AsModel.mustache new file mode 100644 index 000000000..96bedfa46 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/AsModel.mustache @@ -0,0 +1,4 @@ +// This logic may be modified with the AsModel.mustache template +return Is{{vendorExtensions.x-http-status}} + ? System.Text.Json.JsonSerializer.Deserialize<{{#isModel}}{{^containerType}}{{packageName}}.{{modelPackage}}.{{/containerType}}{{/isModel}}{{{dataType}}}>(RawContent, _jsonSerializerOptions) + : {{#net60OrLater}}null{{/net60OrLater}}{{^net60OrLater}}default{{/net60OrLater}}; diff --git a/sdks/dotnet/templates/libraries/generichost/Assembly.mustache b/sdks/dotnet/templates/libraries/generichost/Assembly.mustache new file mode 100644 index 000000000..a22cc2326 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/Assembly.mustache @@ -0,0 +1,2 @@ +[assembly: InternalsVisibleTo("{{packageName}}.Test")] + diff --git a/sdks/dotnet/templates/libraries/generichost/BasicToken.mustache b/sdks/dotnet/templates/libraries/generichost/BasicToken.mustache index a8a2b910a..4cb7023f7 100644 --- a/sdks/dotnet/templates/libraries/generichost/BasicToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/BasicToken.mustache @@ -9,12 +9,12 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// A token constructed from a username and password. /// - public class BasicToken : TokenBase + {{>visibility}} class BasicToken : TokenBase { private string _username; diff --git a/sdks/dotnet/templates/libraries/generichost/BearerToken.mustache b/sdks/dotnet/templates/libraries/generichost/BearerToken.mustache index b6062bfc2..b0fc0a5d2 100644 --- a/sdks/dotnet/templates/libraries/generichost/BearerToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/BearerToken.mustache @@ -9,12 +9,12 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// A token constructed from a token from a bearer token. /// - public class BearerToken : TokenBase + {{>visibility}} class BearerToken : TokenBase { private string _raw; diff --git a/sdks/dotnet/templates/libraries/generichost/ClientUtils.mustache b/sdks/dotnet/templates/libraries/generichost/ClientUtils.mustache index 572565262..271dfa678 100644 --- a/sdks/dotnet/templates/libraries/generichost/ClientUtils.mustache +++ b/sdks/dotnet/templates/libraries/generichost/ClientUtils.mustache @@ -6,24 +6,21 @@ using System; using System.IO; using System.Linq; -using System.Net.Http; +using System.Collections; +using System.Collections.Generic; using System.Text; using System.Text.Json; -using System.Text.RegularExpressions; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.DependencyInjection;{{#supportsRetry}} -using Polly.Timeout; -using Polly.Extensions.Http; -using Polly;{{/supportsRetry}} -using {{packageName}}.Api;{{#useCompareNetObjects}} +using System.Text.RegularExpressions;{{#useCompareNetObjects}} using KellermanSoftware.CompareNetObjects;{{/useCompareNetObjects}} +using {{packageName}}.{{modelPackage}}; +using System.Runtime.CompilerServices; -namespace {{packageName}}.Client +{{>Assembly}}namespace {{packageName}}.{{clientPackage}} { /// /// Utility functions providing some benefit to API client consumers. /// - public static class ClientUtils + {{>visibility}} static class ClientUtils { {{#useCompareNetObjects}} /// @@ -36,7 +33,11 @@ namespace {{packageName}}.Client /// static ClientUtils() { - compareLogic = new CompareLogic(); + {{#equatable}} + ComparisonConfig comparisonConfig = new{{^net70OrLater}} ComparisonConfig{{/net70OrLater}}(); + comparisonConfig.UseHashCodeIdentifier = true; + {{/equatable}} + compareLogic = new{{^net70OrLater}} CompareLogic{{/net70OrLater}}({{#equatable}}comparisonConfig{{/equatable}}); } {{/useCompareNetObjects}} @@ -49,6 +50,51 @@ namespace {{packageName}}.Client /// public delegate void EventHandler(object sender, T e) where T : EventArgs; + {{#hasApiKeyMethods}} + /// + /// An enum of headers + /// + public enum ApiKeyHeader + { + {{#apiKeyMethods}} + /// + /// The {{keyParamName}} header + /// + {{#lambda.titlecase}}{{keyParamName}}{{/lambda.titlecase}}{{^-last}},{{/-last}} + {{/apiKeyMethods}} + } + + /// + /// Converte an ApiKeyHeader to a string + /// + /// + /// + /// + {{>visibility}} static string ApiKeyHeaderToString(ApiKeyHeader value) + { + {{#net80OrLater}} + return value switch + { + {{#apiKeyMethods}} + ApiKeyHeader.{{#lambda.titlecase}}{{keyParamName}}{{/lambda.titlecase}} => "{{keyParamName}}", + {{/apiKeyMethods}} + _ => throw new System.ComponentModel.InvalidEnumArgumentException(nameof(value), (int)value, typeof(ApiKeyHeader)), + }; + {{/net80OrLater}} + {{^net80OrLater}} + switch(value) + { + {{#apiKeyMethods}} + case ApiKeyHeader.{{#lambda.titlecase}}{{keyParamName}}{{/lambda.titlecase}}: + return "{{keyParamName}}"; + {{/apiKeyMethods}} + default: + throw new System.ComponentModel.InvalidEnumArgumentException(nameof(value), (int)value, typeof(ApiKeyHeader)); + } + {{/net80OrLater}} + } + + {{/hasApiKeyMethods}} /// /// Returns true when deserialization succeeds. /// @@ -57,7 +103,7 @@ namespace {{packageName}}.Client /// /// /// - public static bool TryDeserialize(string json, JsonSerializerOptions options, {{^netStandard}}[System.Diagnostics.CodeAnalysis.NotNullWhen(true)] {{/netStandard}}out T{{#nrt}}{{^netStandard}}?{{/netStandard}}{{/nrt}} result) + public static bool TryDeserialize(string json, JsonSerializerOptions options, {{#net60OrLater}}[System.Diagnostics.CodeAnalysis.NotNullWhen(true)] {{/net60OrLater}}out T{{#nrt}}{{#net60OrLater}}?{{/net60OrLater}}{{/nrt}} result) { try { @@ -79,7 +125,7 @@ namespace {{packageName}}.Client /// /// /// - public static bool TryDeserialize(ref Utf8JsonReader reader, JsonSerializerOptions options, {{^netStandard}}[System.Diagnostics.CodeAnalysis.NotNullWhen(true)] {{/netStandard}}out T{{#nrt}}{{^netStandard}}?{{/netStandard}}{{/nrt}} result) + public static bool TryDeserialize(ref Utf8JsonReader reader, JsonSerializerOptions options, {{#net60OrLater}}[System.Diagnostics.CodeAnalysis.NotNullWhen(true)] {{/net60OrLater}}out T{{#nrt}}{{#net60OrLater}}?{{/net60OrLater}}{{/nrt}} result) { try { @@ -112,7 +158,7 @@ namespace {{packageName}}.Client /// The parameter (header, path, query, form). /// The DateTime serialization format. /// Formatted string. - public static string{{nrt?}} ParameterToString(object obj, string{{nrt?}} format = ISO8601_DATETIME_FORMAT) + public static string{{nrt?}} ParameterToString(object{{nrt?}} obj, string{{nrt?}} format = ISO8601_DATETIME_FORMAT) { if (obj is DateTime dateTime) // Return a formatted date string - Can be customized with Configuration.DateTimeFormat @@ -127,9 +173,45 @@ namespace {{packageName}}.Client // For example: 2009-06-15T13:45:30.0000000 return dateTimeOffset.ToString(format); if (obj is bool boolean) - return boolean ? "true" : "false"; - if (obj is System.Collections.ICollection collection) - return string.Join(",", collection.Cast()); + return boolean + ? "true" + : "false"; + {{#models}} + {{#model}} + {{#isEnum}} + if (obj is {{classname}} {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}) + {{! below has #isNumeric as a work around but should probably have ^isString instead https://github.com/OpenAPITools/openapi-generator/issues/15038}} + return {{classname}}ValueConverter.{{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}}ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}){{#isNumeric}}.ToString(){{/isNumeric}}; + {{/isEnum}} + {{^isEnum}} + {{#vars}} + {{#items.isEnum}} + {{#items}} + {{^complexType}} + if (obj is {{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}} {{#lambda.camelcase_sanitize_param}}{{classname}}{{{datatypeWithEnum}}}{{/lambda.camelcase_sanitize_param}}) + {{! below has #isNumeric as a work around but should probably have ^isString instead https://github.com/OpenAPITools/openapi-generator/issues/15038}} + return {{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}}ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{{datatypeWithEnum}}}{{/lambda.camelcase_sanitize_param}}){{#isNumeric}}.ToString(){{/isNumeric}}; + {{/complexType}} + {{/items}} + {{/items.isEnum}} + {{#isEnum}} + {{^complexType}} + if (obj is {{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}} {{#lambda.camelcase_sanitize_param}}{{classname}}{{{datatypeWithEnum}}}{{/lambda.camelcase_sanitize_param}}) + {{! below has #isNumeric as a work around but should probably have ^isString instead https://github.com/OpenAPITools/openapi-generator/issues/15038}} + return {{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}}ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{{datatypeWithEnum}}}{{/lambda.camelcase_sanitize_param}}){{#isNumeric}}.ToString(){{/isNumeric}}; + {{/complexType}} + {{/isEnum}} + {{/vars}} + {{/isEnum}} + {{/model}} + {{/models}} + if (obj is ICollection collection) + { + List entries = new{{^net70OrLater}} List{{/net70OrLater}}(); + foreach (var entry in collection) + entries.Add(ParameterToString(entry)); + return string.Join(",", entries); + } return Convert.ToString(obj, System.Globalization.CultureInfo.InvariantCulture); } @@ -255,169 +337,65 @@ namespace {{packageName}}.Client } /// - /// The base path of the API - /// - public const string BASE_ADDRESS = "{{{basePath}}}"; - - /// - /// The scheme of the API + /// Get the discriminator /// - public const string SCHEME = "{{{scheme}}}"; - - /// - /// The context path of the API - /// - public const string CONTEXT_PATH = "{{contextPath}}"; - - /// - /// The host of the API - /// - public const string HOST = "{{{host}}}"; - - /// - /// The format to use for DateTime serialization - /// - public const string ISO8601_DATETIME_FORMAT = "o"; - - {{^hasAuthMethods}} - /// - /// Add the api to your host builder. - /// - /// - /// - public static IHostBuilder Configure{{apiName}}(this IHostBuilder builder) + /// + /// + /// + /// + public static string{{nrt?}} GetDiscriminator(Utf8JsonReader utf8JsonReader, string discriminator) { - builder.ConfigureServices((context, services) => - { - HostConfiguration config = new HostConfiguration(services); + int currentDepth = utf8JsonReader.CurrentDepth; - Add{{apiName}}(services, config); - }); + if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray) + throw new JsonException(); - return builder; - } + JsonTokenType startingTokenType = utf8JsonReader.TokenType; - {{/hasAuthMethods}} - /// - /// Add the api to your host builder. - /// - /// - /// - public static IHostBuilder Configure{{apiName}}(this IHostBuilder builder, Action options) - { - builder.ConfigureServices((context, services) => + while (utf8JsonReader.Read()) { - HostConfiguration config = new HostConfiguration(services); + if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth) + break; + + if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth) + break; - options(context, config); + if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1) + { + string{{nrt?}} localVarJsonPropertyName = utf8JsonReader.GetString(); + utf8JsonReader.Read(); - Add{{apiName}}(services, config); - }); + if (localVarJsonPropertyName != null && localVarJsonPropertyName.Equals(discriminator)) + return utf8JsonReader.GetString(); + } + } - return builder; + throw new JsonException("The specified discriminator was not found."); } - {{^hasAuthMethods}} /// - /// Add the api to your host builder. + /// The base path of the API /// - /// - /// - public static void Add{{apiName}}(this IServiceCollection services) - { - HostConfiguration config = new HostConfiguration(services); - Add{{apiName}}(services, config); - } + public const string BASE_ADDRESS = "{{{basePath}}}"; - {{/hasAuthMethods}} /// - /// Add the api to your host builder. + /// The scheme of the API /// - /// - /// - public static void Add{{apiName}}(this IServiceCollection services, Action options) - { - HostConfiguration config = new HostConfiguration(services); - options(config); - Add{{apiName}}(services, config); - } - - private static void Add{{apiName}}(IServiceCollection services, HostConfiguration host) - { - if (!host.HttpClientsAdded) - host.Add{{apiName}}HttpClients(); - - // ensure that a token provider was provided for this token type - // if not, default to RateLimitProvider - var containerServices = services.Where(s => s.ServiceType.IsGenericType && - s.ServiceType.GetGenericTypeDefinition().IsAssignableFrom(typeof(TokenContainer<>))).ToArray(); - - foreach(var containerService in containerServices) - { - var tokenType = containerService.ServiceType.GenericTypeArguments[0]; - - var provider = services.FirstOrDefault(s => s.ServiceType.IsAssignableFrom(typeof(TokenProvider<>).MakeGenericType(tokenType))); - - if (provider == null) - { - services.AddSingleton(typeof(RateLimitProvider<>).MakeGenericType(tokenType)); - services.AddSingleton(typeof(TokenProvider<>).MakeGenericType(tokenType), - s => s.GetRequiredService(typeof(RateLimitProvider<>).MakeGenericType(tokenType))); - } - } - }{{#supportsRetry}} + public const string SCHEME = "{{{scheme}}}"; /// - /// Adds a Polly retry policy to your clients. + /// The context path of the API /// - /// - /// - /// - public static IHttpClientBuilder AddRetryPolicy(this IHttpClientBuilder client, int retries) - { - client.AddPolicyHandler(RetryPolicy(retries)); - - return client; - } + public const string CONTEXT_PATH = "{{contextPath}}"; /// - /// Adds a Polly timeout policy to your clients. + /// The host of the API /// - /// - /// - /// - public static IHttpClientBuilder AddTimeoutPolicy(this IHttpClientBuilder client, TimeSpan timeout) - { - client.AddPolicyHandler(TimeoutPolicy(timeout)); - - return client; - } + public const string HOST = "{{{host}}}"; /// - /// Adds a Polly circiut breaker to your clients. + /// The format to use for DateTime serialization /// - /// - /// - /// - /// - public static IHttpClientBuilder AddCircuitBreakerPolicy(this IHttpClientBuilder client, int handledEventsAllowedBeforeBreaking, TimeSpan durationOfBreak) - { - client.AddTransientHttpErrorPolicy(builder => CircuitBreakerPolicy(builder, handledEventsAllowedBeforeBreaking, durationOfBreak)); - - return client; - } - - private static Polly.Retry.AsyncRetryPolicy RetryPolicy(int retries) - => HttpPolicyExtensions - .HandleTransientHttpError() - .Or() - .RetryAsync(retries); - - private static AsyncTimeoutPolicy TimeoutPolicy(TimeSpan timeout) - => Policy.TimeoutAsync(timeout); - - private static Polly.CircuitBreaker.AsyncCircuitBreakerPolicy CircuitBreakerPolicy( - PolicyBuilder builder, int handledEventsAllowedBeforeBreaking, TimeSpan durationOfBreak) - => builder.CircuitBreakerAsync(handledEventsAllowedBeforeBreaking, durationOfBreak);{{/supportsRetry}} + public const string ISO8601_DATETIME_FORMAT = "o"; } } diff --git a/sdks/dotnet/templates/libraries/generichost/CookieContainer.mustache b/sdks/dotnet/templates/libraries/generichost/CookieContainer.mustache new file mode 100644 index 000000000..f96d4fb41 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/CookieContainer.mustache @@ -0,0 +1,22 @@ +// +{{partial_header}} +{{#nrt}} +#nullable enable + +{{/nrt}} +using System.Linq; +using System.Collections.Generic; + +namespace {{packageName}}.{{clientPackage}} +{ + /// + /// A class containing a CookieContainer + /// + {{>visibility}} sealed class CookieContainer + { + /// + /// The collection of tokens + /// + public System.Net.CookieContainer Value { get; } = new System.Net.CookieContainer(); + } +} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/DateFormats.mustache b/sdks/dotnet/templates/libraries/generichost/DateFormats.mustache new file mode 100644 index 000000000..920ecda88 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/DateFormats.mustache @@ -0,0 +1,2 @@ + "yyyy'-'MM'-'dd", + "yyyyMMdd" diff --git a/sdks/dotnet/templates/libraries/generichost/DateOnlyJsonConverter.mustache b/sdks/dotnet/templates/libraries/generichost/DateOnlyJsonConverter.mustache new file mode 100644 index 000000000..209979c8d --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/DateOnlyJsonConverter.mustache @@ -0,0 +1,51 @@ +{{>partial_header}} +using System; +using System.Globalization; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace {{packageName}}.{{clientPackage}} +{ + /// + /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types + /// + {{>visibility}} class DateOnlyJsonConverter : JsonConverter + { + /// + /// The formats used to deserialize the date + /// + public static string[] Formats { get; } = { +{{>DateFormats}} + }; + + /// + /// Returns a DateOnly from the Json object + /// + /// + /// + /// + /// + public override DateOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { + if (reader.TokenType == JsonTokenType.Null) + throw new NotSupportedException(); + + string value = reader.GetString(){{nrt!}}; + + foreach(string format in Formats) + if (DateOnly.TryParseExact(value, format, CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out DateOnly result)) + return result; + + throw new NotSupportedException(); + } + + /// + /// Writes the DateOnly to the json writer + /// + /// + /// + /// + public override void Write(Utf8JsonWriter writer, DateOnly dateOnlyValue, JsonSerializerOptions options) => + writer.WriteStringValue(dateOnlyValue.ToString("{{{dateFormat}}}", CultureInfo.InvariantCulture)); + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/DateOnlyNullableJsonConverter.mustache b/sdks/dotnet/templates/libraries/generichost/DateOnlyNullableJsonConverter.mustache new file mode 100644 index 000000000..17c847365 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/DateOnlyNullableJsonConverter.mustache @@ -0,0 +1,56 @@ +{{>partial_header}} +using System; +using System.Globalization; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace {{packageName}}.{{clientPackage}} +{ + /// + /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types + /// + {{>visibility}} class DateOnlyNullableJsonConverter : JsonConverter + { + /// + /// The formats used to deserialize the date + /// + public static string[] Formats { get; } = { +{{>DateFormats}} + }; + + /// + /// Returns a DateOnly from the Json object + /// + /// + /// + /// + /// + public override DateOnly? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { + if (reader.TokenType == JsonTokenType.Null) + return null; + + string value = reader.GetString(){{nrt!}}; + + foreach(string format in Formats) + if (DateOnly.TryParseExact(value, format, CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out DateOnly result)) + return result; + + throw new NotSupportedException(); + } + + /// + /// Writes the DateOnly to the json writer + /// + /// + /// + /// + public override void Write(Utf8JsonWriter writer, DateOnly? dateOnlyValue, JsonSerializerOptions options) + { + if (dateOnlyValue == null) + writer.WriteNullValue(); + else + writer.WriteStringValue(dateOnlyValue.Value.ToString("{{{dateFormat}}}", CultureInfo.InvariantCulture)); + } + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/DateTimeFormats.mustache b/sdks/dotnet/templates/libraries/generichost/DateTimeFormats.mustache new file mode 100644 index 000000000..85ed99a2c --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/DateTimeFormats.mustache @@ -0,0 +1,22 @@ + "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffffffK", + "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffffffK", + "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffffK", + "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffffK", + "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffK", + "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffK", + "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fK", + "yyyy'-'MM'-'dd'T'HH':'mm':'ssK", + {{^supportsDateOnly}} + "yyyy'-'MM'-'dd", + {{/supportsDateOnly}} + "yyyyMMddTHHmmss.fffffffK", + "yyyyMMddTHHmmss.ffffffK", + "yyyyMMddTHHmmss.fffffK", + "yyyyMMddTHHmmss.ffffK", + "yyyyMMddTHHmmss.fffK", + "yyyyMMddTHHmmss.ffK", + "yyyyMMddTHHmmss.fK", + "yyyyMMddTHHmmssK", + {{^supportsDateOnly}} + "yyyyMMdd" + {{/supportsDateOnly}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/DateTimeJsonConverter.mustache b/sdks/dotnet/templates/libraries/generichost/DateTimeJsonConverter.mustache new file mode 100644 index 000000000..c5187f508 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/DateTimeJsonConverter.mustache @@ -0,0 +1,51 @@ +{{>partial_header}} +using System; +using System.Globalization; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace {{packageName}}.{{clientPackage}} +{ + /// + /// Formatter for {{#supportsDateOnly}}'date-time'{{/supportsDateOnly}}{{^supportsDateOnly}}'date' and 'date-time'{{/supportsDateOnly}} openapi formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types + /// + {{>visibility}} class DateTimeJsonConverter : JsonConverter + { + /// + /// The formats used to deserialize the date + /// + public static string[] Formats { get; } = { +{{>DateTimeFormats}} + }; + + /// + /// Returns a DateTime from the Json object + /// + /// + /// + /// + /// + public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { + if (reader.TokenType == JsonTokenType.Null) + throw new NotSupportedException(); + + string value = reader.GetString(){{nrt!}}; + + foreach(string format in Formats) + if (DateTime.TryParseExact(value, format, CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out DateTime result)) + return result; + + throw new NotSupportedException(); + } + + /// + /// Writes the DateTime to the json writer + /// + /// + /// + /// + public override void Write(Utf8JsonWriter writer, DateTime dateTimeValue, JsonSerializerOptions options) => + writer.WriteStringValue(dateTimeValue.ToString("{{{dateTimeFormat}}}", CultureInfo.InvariantCulture)); + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/DateTimeNullableJsonConverter.mustache b/sdks/dotnet/templates/libraries/generichost/DateTimeNullableJsonConverter.mustache new file mode 100644 index 000000000..646c72947 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/DateTimeNullableJsonConverter.mustache @@ -0,0 +1,56 @@ +{{>partial_header}} +using System; +using System.Globalization; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace {{packageName}}.{{clientPackage}} +{ + /// + /// Formatter for {{#supportsDateOnly}}'date-time'{{/supportsDateOnly}}{{^supportsDateOnly}}'date' and 'date-time'{{/supportsDateOnly}} openapi formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types + /// + {{>visibility}} class DateTimeNullableJsonConverter : JsonConverter + { + /// + /// The formats used to deserialize the date + /// + public static string[] Formats { get; } = { +{{>DateTimeFormats}} + }; + + /// + /// Returns a DateTime from the Json object + /// + /// + /// + /// + /// + public override DateTime? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { + if (reader.TokenType == JsonTokenType.Null) + return null; + + string value = reader.GetString(){{nrt!}}; + + foreach(string format in Formats) + if (DateTime.TryParseExact(value, format, CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out DateTime result)) + return result; + + return null; + } + + /// + /// Writes the DateTime to the json writer + /// + /// + /// + /// + public override void Write(Utf8JsonWriter writer, DateTime? dateTimeValue, JsonSerializerOptions options) + { + if (dateTimeValue == null) + writer.WriteNullValue(); + else + writer.WriteStringValue(dateTimeValue.Value.ToString("{{{dateTimeFormat}}}", CultureInfo.InvariantCulture)); + } + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/DependencyInjectionTests.mustache b/sdks/dotnet/templates/libraries/generichost/DependencyInjectionTests.mustache index ac4a4d8e2..aadf2c731 100644 --- a/sdks/dotnet/templates/libraries/generichost/DependencyInjectionTests.mustache +++ b/sdks/dotnet/templates/libraries/generichost/DependencyInjectionTests.mustache @@ -4,104 +4,157 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.DependencyInjection; using System.Collections.Generic; using System.Security.Cryptography; -using {{packageName}}.Client; +using {{packageName}}.{{clientPackage}}; using {{packageName}}.{{apiPackage}}; +using {{packageName}}.Extensions; using Xunit; -namespace {{packageName}}.Test.Api +namespace {{packageName}}.Test.{{apiPackage}} { /// /// Tests the dependency injection. /// public class DependencyInjectionTest { - private readonly IHost _hostUsingConfigureWithoutAClient = - Host.CreateDefaultBuilder(Array.Empty()).Configure{{apiName}}((context, options) => + private readonly IHost _hostUsingConfigureWithoutAClient = + Host.CreateDefaultBuilder({{#net80OrLater}}[]{{/net80OrLater}}{{^net80OrLater}}Array.Empty(){{/net80OrLater}}).Configure{{apiName}}((context, services, options) => { - {{#hasApiKeyMethods}}ApiKeyToken apiKeyToken = new ApiKeyToken($"", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(apiKeyToken); - {{/hasApiKeyMethods}}{{#hasHttpBearerMethods}} - BearerToken bearerToken = new BearerToken($"", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(bearerToken); - {{/hasHttpBearerMethods}}{{#hasHttpBasicMethods}} - BasicToken basicToken = new BasicToken("", "", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(basicToken); - {{/hasHttpBasicMethods}}{{#hasHttpSignatureMethods}} - HttpSigningConfiguration config = new HttpSigningConfiguration("", "", null, new List(), HashAlgorithmName.SHA256, "", 0); - HttpSignatureToken httpSignatureToken = new HttpSignatureToken(config, timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(httpSignatureToken); - {{/hasHttpSignatureMethods}}{{#hasOAuthMethods}} - OAuthToken oauthToken = new OAuthToken("token", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(oauthToken);{{/hasOAuthMethods}} + {{#lambda.trimTrailingWithNewLine}} + {{#apiKeyMethods}} + ApiKeyToken apiKeyToken{{-index}} = new{{^net70OrLater}} ApiKeyToken{{/net70OrLater}}("", ClientUtils.ApiKeyHeader.{{#lambda.titlecase}}{{keyParamName}}{{/lambda.titlecase}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(apiKeyToken{{-index}}); + + {{/apiKeyMethods}} + {{#httpBearerMethods}} + BearerToken bearerToken{{-index}} = new{{^net70OrLater}} BearerToken{{/net70OrLater}}("", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(bearerToken{{-index}}); + + {{/httpBearerMethods}} + {{#httpBasicMethods}} + BasicToken basicToken{{-index}} = new{{^net70OrLater}} BasicToken{{/net70OrLater}}("", "", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(basicToken{{-index}}); + + {{/httpBasicMethods}} + {{#httpSignatureMethods}} + HttpSigningConfiguration config{{-index}} = new{{^net70OrLater}} HttpSigningConfiguration{{/net70OrLater}}("", "", null, {{#net80OrLater}}[]{{/net80OrLater}}{{^net80OrLater}}new List(){{/net80OrLater}}, HashAlgorithmName.SHA256, "", 0); + HttpSignatureToken httpSignatureToken{{-index}} = new{{^net70OrLater}} HttpSignatureToken{{/net70OrLater}}(config{{-index}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(httpSignatureToken{{-index}}); + + {{/httpSignatureMethods}} + {{#oauthMethods}} + OAuthToken oauthToken{{-index}} = new{{^net70OrLater}} OAuthToken{{/net70OrLater}}("token", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(oauthToken{{-index}}); + + {{/oauthMethods}} + {{/lambda.trimTrailingWithNewLine}} }) .Build(); private readonly IHost _hostUsingConfigureWithAClient = - Host.CreateDefaultBuilder(Array.Empty()).Configure{{apiName}}((context, options) => + Host.CreateDefaultBuilder({{#net80OrLater}}[]{{/net80OrLater}}{{^net80OrLater}}Array.Empty(){{/net80OrLater}}).Configure{{apiName}}((context, services, options) => { - {{#hasApiKeyMethods}}ApiKeyToken apiKeyToken = new ApiKeyToken($"", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(apiKeyToken); - {{/hasApiKeyMethods}}{{#hasHttpBearerMethods}} - BearerToken bearerToken = new BearerToken($"", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(bearerToken); - {{/hasHttpBearerMethods}}{{#hasHttpBasicMethods}} - BasicToken basicToken = new BasicToken("", "", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(basicToken); - {{/hasHttpBasicMethods}}{{#hasHttpSignatureMethods}} - HttpSigningConfiguration config = new HttpSigningConfiguration("", "", null, new List(), HashAlgorithmName.SHA256, "", 0); - HttpSignatureToken httpSignatureToken = new HttpSignatureToken(config, timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(httpSignatureToken); - {{/hasHttpSignatureMethods}}{{#hasOAuthMethods}} - OAuthToken oauthToken = new OAuthToken("token", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(oauthToken);{{/hasOAuthMethods}} + {{#lambda.trimTrailingWithNewLine}} + {{#apiKeyMethods}} + ApiKeyToken apiKeyToken{{-index}} = new{{^net70OrLater}} ApiKeyToken{{/net70OrLater}}("", ClientUtils.ApiKeyHeader.{{#lambda.titlecase}}{{keyParamName}}{{/lambda.titlecase}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(apiKeyToken{{-index}}); + + {{/apiKeyMethods}} + {{#httpBearerMethods}} + BearerToken bearerToken{{-index}} = new{{^net70OrLater}} BearerToken{{/net70OrLater}}("", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(bearerToken{{-index}}); + + {{/httpBearerMethods}} + {{#httpBasicMethods}} + BasicToken basicToken{{-index}} = new{{^net70OrLater}} BasicToken{{/net70OrLater}}("", "", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(basicToken{{-index}}); + + {{/httpBasicMethods}} + {{#httpSignatureMethods}} + HttpSigningConfiguration config{{-index}} = new{{^net70OrLater}} HttpSigningConfiguration{{/net70OrLater}}("", "", null, {{#net80OrLater}}[]{{/net80OrLater}}{{^net80OrLater}}new List(){{/net80OrLater}}, HashAlgorithmName.SHA256, "", 0); + HttpSignatureToken httpSignatureToken{{-index}} = new{{^net70OrLater}} HttpSignatureToken{{/net70OrLater}}(config{{-index}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(httpSignatureToken{{-index}}); + + {{/httpSignatureMethods}} + {{#oauthMethods}} + OAuthToken oauthToken = new{{^net70OrLater}} OAuthToken{{/net70OrLater}}("token", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(oauthToken); + + {{/oauthMethods}} + {{/lambda.trimTrailingWithNewLine}} options.Add{{apiName}}HttpClients(client => client.BaseAddress = new Uri(ClientUtils.BASE_ADDRESS)); }) .Build(); private readonly IHost _hostUsingAddWithoutAClient = - Host.CreateDefaultBuilder(Array.Empty()).ConfigureServices((host, services) => + Host.CreateDefaultBuilder({{#net80OrLater}}[]{{/net80OrLater}}{{^net80OrLater}}Array.Empty(){{/net80OrLater}}).ConfigureServices((host, services) => { services.Add{{apiName}}(options => { - {{#hasApiKeyMethods}}ApiKeyToken apiKeyToken = new ApiKeyToken($"", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(apiKeyToken); - {{/hasApiKeyMethods}}{{#hasHttpBearerMethods}} - BearerToken bearerToken = new BearerToken($"", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(bearerToken); - {{/hasHttpBearerMethods}}{{#hasHttpBasicMethods}} - BasicToken basicToken = new BasicToken("", "", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(basicToken); - {{/hasHttpBasicMethods}}{{#hasHttpSignatureMethods}} - HttpSigningConfiguration config = new HttpSigningConfiguration("", "", null, new List(), HashAlgorithmName.SHA256, "", 0); - HttpSignatureToken httpSignatureToken = new HttpSignatureToken(config, timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(httpSignatureToken); - {{/hasHttpSignatureMethods}}{{#hasOAuthMethods}} - OAuthToken oauthToken = new OAuthToken("token", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(oauthToken);{{/hasOAuthMethods}} + {{#lambda.trimTrailingWithNewLine}} + {{#apiKeyMethods}} + ApiKeyToken apiKeyToken{{-index}} = new{{^net70OrLater}} ApiKeyToken{{/net70OrLater}}("", ClientUtils.ApiKeyHeader.{{#lambda.titlecase}}{{keyParamName}}{{/lambda.titlecase}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(apiKeyToken{{-index}}); + + {{/apiKeyMethods}} + {{#httpBearerMethods}} + BearerToken bearerToken{{-index}} = new{{^net70OrLater}} BearerToken{{/net70OrLater}}("", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(bearerToken{{-index}}); + + {{/httpBearerMethods}} + {{#httpBasicMethods}} + BasicToken basicToken{{-index}} = new{{^net70OrLater}} BasicToken{{/net70OrLater}}("", "", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(basicToken{{-index}}); + + {{/httpBasicMethods}} + {{#httpSignatureMethods}} + HttpSigningConfiguration config{{-index}} = new{{^net70OrLater}} HttpSigningConfiguration{{/net70OrLater}}("", "", null, {{#net80OrLater}}[]{{/net80OrLater}}{{^net80OrLater}}new List(){{/net80OrLater}}, HashAlgorithmName.SHA256, "", 0); + HttpSignatureToken httpSignatureToken{{-index}} = new{{^net70OrLater}} HttpSignatureToken{{/net70OrLater}}(config{{-index}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(httpSignatureToken{{-index}}); + + {{/httpSignatureMethods}} + {{#oauthMethods}} + OAuthToken oauthToken{{-index}} = new{{^net70OrLater}} OAuthToken{{/net70OrLater}}("token", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(oauthToken{{-index}}); + + {{/oauthMethods}} + {{/lambda.trimTrailingWithNewLine}} }); }) .Build(); private readonly IHost _hostUsingAddWithAClient = - Host.CreateDefaultBuilder(Array.Empty()).ConfigureServices((host, services) => + Host.CreateDefaultBuilder({{#net80OrLater}}[]{{/net80OrLater}}{{^net80OrLater}}Array.Empty(){{/net80OrLater}}).ConfigureServices((host, services) => { services.Add{{apiName}}(options => { - {{#hasApiKeyMethods}}ApiKeyToken apiKeyToken = new ApiKeyToken($"", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(apiKeyToken); - {{/hasApiKeyMethods}}{{#hasHttpBearerMethods}} - BearerToken bearerToken = new BearerToken($"", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(bearerToken); - {{/hasHttpBearerMethods}}{{#hasHttpBasicMethods}} - BasicToken basicToken = new BasicToken("", "", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(basicToken); - {{/hasHttpBasicMethods}}{{#hasHttpSignatureMethods}} - HttpSigningConfiguration config = new HttpSigningConfiguration("", "", null, new List(), HashAlgorithmName.SHA256, "", 0); - HttpSignatureToken httpSignatureToken = new HttpSignatureToken(config, timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(httpSignatureToken); - {{/hasHttpSignatureMethods}}{{#hasOAuthMethods}} - OAuthToken oauthToken = new OAuthToken("token", timeout: TimeSpan.FromSeconds(1)); - options.AddTokens(oauthToken);{{/hasOAuthMethods}} + {{#lambda.trimTrailingWithNewLine}} + {{#apiKeyMethods}} + ApiKeyToken apiKeyToken{{-index}} = new{{^net70OrLater}} ApiKeyToken{{/net70OrLater}}("", ClientUtils.ApiKeyHeader.{{#lambda.titlecase}}{{keyParamName}}{{/lambda.titlecase}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(apiKeyToken{{-index}}); + + {{/apiKeyMethods}} + {{#httpBearerMethods}} + BearerToken bearerToken{{-index}} = new{{^net70OrLater}} BearerToken{{/net70OrLater}}("", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(bearerToken{{-index}}); + + {{/httpBearerMethods}} + {{#httpBasicMethods}} + BasicToken basicToken{{-index}} = new{{^net70OrLater}} BasicToken{{/net70OrLater}}("", "", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(basicToken{{-index}}); + + {{/httpBasicMethods}} + {{#httpSignatureMethods}} + HttpSigningConfiguration config{{-index}} = new{{^net70OrLater}} HttpSigningConfiguration{{/net70OrLater}}("", "", null, {{#net80OrLater}}[]{{/net80OrLater}}{{^net80OrLater}}new List(){{/net80OrLater}}, HashAlgorithmName.SHA256, "", 0); + HttpSignatureToken httpSignatureToken{{-index}} = new{{^net70OrLater}} HttpSignatureToken{{/net70OrLater}}(config{{-index}}, timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(httpSignatureToken{{-index}}); + + {{/httpSignatureMethods}} + {{#oauthMethods}} + OAuthToken oauthToken{{-index}} = new{{^net70OrLater}} OAuthToken{{/net70OrLater}}("token", timeout: TimeSpan.FromSeconds(1)); + options.AddTokens(oauthToken{{-index}}); + + {{/oauthMethods}} + {{/lambda.trimTrailingWithNewLine}} options.Add{{apiName}}HttpClients(client => client.BaseAddress = new Uri(ClientUtils.BASE_ADDRESS)); }); }) @@ -113,9 +166,9 @@ namespace {{packageName}}.Test.Api [Fact] public void ConfigureApiWithAClientTest() { - {{#apiInfo}}{{#apis}}var {{#lambda.camelcase}}{{classname}}{{/lambda.camelcase}} = _hostUsingConfigureWithAClient.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); - Assert.True({{#lambda.camelcase}}{{classname}}{{/lambda.camelcase}}.HttpClient.BaseAddress != null);{{^-last}} - + {{#apiInfo}}{{#apis}}var {{#lambda.camel_case}}{{classname}}{{/lambda.camel_case}} = _hostUsingConfigureWithAClient.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); + Assert.True({{#lambda.camel_case}}{{classname}}{{/lambda.camel_case}}.HttpClient.BaseAddress != null);{{^-last}} + {{/-last}}{{/apis}}{{/apiInfo}} } @@ -125,9 +178,9 @@ namespace {{packageName}}.Test.Api [Fact] public void ConfigureApiWithoutAClientTest() { - {{#apiInfo}}{{#apis}}var {{#lambda.camelcase}}{{classname}}{{/lambda.camelcase}} = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); - Assert.True({{#lambda.camelcase}}{{classname}}{{/lambda.camelcase}}.HttpClient.BaseAddress != null);{{^-last}} - + {{#apiInfo}}{{#apis}}var {{#lambda.camel_case}}{{classname}}{{/lambda.camel_case}} = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); + Assert.True({{#lambda.camel_case}}{{classname}}{{/lambda.camel_case}}.HttpClient.BaseAddress != null);{{^-last}} + {{/-last}}{{/apis}}{{/apiInfo}} } @@ -137,8 +190,8 @@ namespace {{packageName}}.Test.Api [Fact] public void AddApiWithAClientTest() { - {{#apiInfo}}{{#apis}}var {{#lambda.camelcase}}{{classname}}{{/lambda.camelcase}} = _hostUsingAddWithAClient.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); - Assert.True({{#lambda.camelcase}}{{classname}}{{/lambda.camelcase}}.HttpClient.BaseAddress != null);{{^-last}} + {{#apiInfo}}{{#apis}}var {{#lambda.camel_case}}{{classname}}{{/lambda.camel_case}} = _hostUsingAddWithAClient.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); + Assert.True({{#lambda.camel_case}}{{classname}}{{/lambda.camel_case}}.HttpClient.BaseAddress != null);{{^-last}} {{/-last}}{{/apis}}{{/apiInfo}} } @@ -149,9 +202,9 @@ namespace {{packageName}}.Test.Api [Fact] public void AddApiWithoutAClientTest() { - {{#apiInfo}}{{#apis}}var {{#lambda.camelcase}}{{classname}}{{/lambda.camelcase}} = _hostUsingAddWithoutAClient.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); - Assert.True({{#lambda.camelcase}}{{classname}}{{/lambda.camelcase}}.HttpClient.BaseAddress != null);{{^-last}} - + {{#apiInfo}}{{#apis}}var {{#lambda.camel_case}}{{classname}}{{/lambda.camel_case}} = _hostUsingAddWithoutAClient.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); + Assert.True({{#lambda.camel_case}}{{classname}}{{/lambda.camel_case}}.HttpClient.BaseAddress != null);{{^-last}} + {{/-last}}{{/apis}}{{/apiInfo}} } } diff --git a/sdks/dotnet/templates/libraries/generichost/EnumValueDataType.mustache b/sdks/dotnet/templates/libraries/generichost/EnumValueDataType.mustache new file mode 100644 index 000000000..e92e67b36 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/EnumValueDataType.mustache @@ -0,0 +1 @@ +{{#allowableValues}}{{#enumVars}}{{#-first}}{{#isString}}{{^isNumeric}}string{{/isNumeric}}{{/isString}}{{#isNumeric}}{{#isLong}}long{{/isLong}}{{#isFloat}}float{{/isFloat}}{{#isDouble}}double{{/isDouble}}{{#isDecimal}}decimal{{/isDecimal}}{{^isLong}}{{^isFloat}}{{^isDouble}}{{^isDecimal}}int{{/isDecimal}}{{/isDouble}}{{/isFloat}}{{/isLong}}{{/isNumeric}}{{/-first}}{{/enumVars}}{{/allowableValues}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/ExceptionEventArgs.mustache b/sdks/dotnet/templates/libraries/generichost/ExceptionEventArgs.mustache new file mode 100644 index 000000000..016ef7c69 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/ExceptionEventArgs.mustache @@ -0,0 +1,24 @@ +using System; + +namespace {{packageName}}.{{clientPackage}} +{ + /// + /// Useful for tracking server health + /// + {{>visibility}} class ExceptionEventArgs : EventArgs + { + /// + /// The ApiResponse + /// + public Exception Exception { get; } + + /// + /// The ExcepetionEventArgs + /// + /// + public ExceptionEventArgs(Exception exception) + { + Exception = exception; + } + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/HostConfiguration.mustache b/sdks/dotnet/templates/libraries/generichost/HostConfiguration.mustache index e74707baa..d7d1e3bf3 100644 --- a/sdks/dotnet/templates/libraries/generichost/HostConfiguration.mustache +++ b/sdks/dotnet/templates/libraries/generichost/HostConfiguration.mustache @@ -10,18 +10,18 @@ using System.Text.Json; using System.Text.Json.Serialization; using System.Net.Http; using Microsoft.Extensions.DependencyInjection; -using {{packageName}}.Api; -using {{packageName}}.Model; +using {{packageName}}.{{apiPackage}}; +using {{packageName}}.{{modelPackage}}; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// Provides hosting configuration for {{packageName}} /// - public class HostConfiguration + {{>visibility}} class HostConfiguration { private readonly IServiceCollection _services; - private JsonSerializerOptions _jsonOptions = new JsonSerializerOptions(); + private readonly JsonSerializerOptions _jsonOptions = new JsonSerializerOptions(); internal bool HttpClientsAdded { get; private set; } @@ -33,30 +33,51 @@ namespace {{packageName}}.Client { _services = services; _jsonOptions.Converters.Add(new JsonStringEnumConverter()); - _jsonOptions.Converters.Add(new OpenAPIDateJsonConverter()); -{{#models}} -{{#model}} -{{^isEnum}} -{{#allOf}} -{{#-first}} + _jsonOptions.Converters.Add(new DateTimeJsonConverter()); + _jsonOptions.Converters.Add(new DateTimeNullableJsonConverter()); + {{#supportsDateOnly}} + _jsonOptions.Converters.Add(new DateOnlyJsonConverter()); + _jsonOptions.Converters.Add(new DateOnlyNullableJsonConverter()); + {{/supportsDateOnly}} + {{#models}} + {{#model}} + {{#isEnum}} + _jsonOptions.Converters.Add(new {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}JsonConverter()); + _jsonOptions.Converters.Add(new {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}NullableJsonConverter()); + {{/isEnum}} + {{^isEnum}} _jsonOptions.Converters.Add(new {{classname}}JsonConverter()); -{{/-first}} -{{/allOf}} -{{#anyOf}} -{{#-first}} - _jsonOptions.Converters.Add(new {{classname}}JsonConverter()); -{{/-first}} -{{/anyOf}} -{{#oneOf}} -{{#-first}} - _jsonOptions.Converters.Add(new {{classname}}JsonConverter()); -{{/-first}} -{{/oneOf}} -{{/isEnum}} -{{/model}} -{{/models}} - _services.AddSingleton(new JsonSerializerOptionsProvider(_jsonOptions));{{#apiInfo}}{{#apis}} - _services.AddSingleton<{{interfacePrefix}}{{classname}}, {{classname}}>();{{/apis}}{{/apiInfo}} + {{/isEnum}} + {{/model}} + {{/models}} + JsonSerializerOptionsProvider jsonSerializerOptionsProvider = new{{^net60OrLater}} JsonSerializerOptionsProvider{{/net60OrLater}}(_jsonOptions); + _services.AddSingleton(jsonSerializerOptionsProvider); + {{#useSourceGeneration}} + + {{#models}} + {{#-first}} + _jsonOptions.TypeInfoResolver = System.Text.Json.Serialization.Metadata.JsonTypeInfoResolver.Combine( + {{/-first}} + {{/models}} + {{#lambda.joinLinesWithComma}} + {{#models}} + {{#model}} + new {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}SerializationContext(){{#-last}},{{/-last}} + {{/model}} + {{/models}} + {{/lambda.joinLinesWithComma}} + {{#models}} + {{#-last}} + + new System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver() + ); + {{/-last}} + {{/models}} + + {{/useSourceGeneration}} + _services.AddSingleton();{{#apiInfo}}{{#apis}} + _services.AddSingleton<{{classname}}Events>(); + _services.AddTransient<{{interfacePrefix}}{{classname}}, {{classname}}>();{{/apis}}{{/apiInfo}} } /// @@ -65,17 +86,16 @@ namespace {{packageName}}.Client /// /// /// - public HostConfiguration Add{{apiName}}HttpClients<{{#apiInfo}}{{#apis}}T{{classname}}{{^-last}}, {{/-last}}{{/apis}}> + public HostConfiguration Add{{apiName}}HttpClients ( - Action{{nrt?}} client = null, Action{{nrt?}} builder = null){{#apis}} - where T{{classname}} : class, {{interfacePrefix}}{{classname}}{{/apis}} + Action{{nrt?}} client = null, Action{{nrt?}} builder = null) { if (client == null) client = c => c.BaseAddress = new Uri(ClientUtils.BASE_ADDRESS); List builders = new List(); - - {{#apis}}builders.Add(_services.AddHttpClient<{{interfacePrefix}}{{classname}}, T{{classname}}>(client)); + + {{#apiInfo}}{{#apis}}builders.Add(_services.AddHttpClient<{{interfacePrefix}}{{classname}}, {{classname}}>(client)); {{/apis}}{{/apiInfo}} if (builder != null) foreach (IHttpClientBuilder instance in builders) @@ -86,19 +106,6 @@ namespace {{packageName}}.Client return this; } - /// - /// Configures the HttpClients. - /// - /// - /// - /// - public HostConfiguration Add{{apiName}}HttpClients(Action{{nrt?}} client = null, Action{{nrt?}} builder = null) - { - Add{{apiName}}HttpClients<{{#apiInfo}}{{#apis}}{{classname}}{{^-last}}, {{/-last}}{{/apis}}{{/apiInfo}}>(client, builder); - - return this; - } - /// /// Configures the JsonSerializerSettings /// diff --git a/sdks/dotnet/templates/libraries/generichost/HttpSigningConfiguration.mustache b/sdks/dotnet/templates/libraries/generichost/HttpSigningConfiguration.mustache index 29ea23594..2e99b3c9b 100644 --- a/sdks/dotnet/templates/libraries/generichost/HttpSigningConfiguration.mustache +++ b/sdks/dotnet/templates/libraries/generichost/HttpSigningConfiguration.mustache @@ -13,14 +13,13 @@ using System.Security.Cryptography; using System.Text; using System.Web; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// Class for HttpSigning auth related parameter and methods /// - public class HttpSigningConfiguration + {{>visibility}} class HttpSigningConfiguration { - #region /// /// Create an instance /// @@ -34,9 +33,7 @@ namespace {{packageName}}.Client SigningAlgorithm = signingAlgorithm; SignatureValidityPeriod = signatureValidityPeriod; } - #endregion - #region Properties /// ///Gets the Api keyId /// @@ -72,25 +69,20 @@ namespace {{packageName}}.Client /// public int SignatureValidityPeriod { get; set; } - #endregion - - #region enum private enum PrivateKeyType { None = 0, RSA = 1, ECDSA = 2, } - #endregion - #region Methods /// /// Gets the Headers for HttpSigning /// /// /// /// - internal Dictionary GetHttpSignedHeader(System.Net.Http.HttpRequestMessage request, string requestBody, System.Threading.CancellationToken? cancellationToken = null) + internal Dictionary GetHttpSignedHeader(System.Net.Http.HttpRequestMessage request, string requestBody, System.Threading.CancellationToken cancellationToken = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}) { if (request.RequestUri == null) throw new NullReferenceException("The request URI was null"); @@ -130,12 +122,12 @@ namespace {{packageName}}.Client if (HashAlgorithm == HashAlgorithmName.SHA256) { - var bodyDigest = GetStringHash(HashAlgorithm.ToString(), requestBody); + var bodyDigest = GetStringHash(HashAlgorithm, requestBody); digest = string.Format("SHA-256={0}", Convert.ToBase64String(bodyDigest)); } else if (HashAlgorithm == HashAlgorithmName.SHA512) { - var bodyDigest = GetStringHash(HashAlgorithm.ToString(), requestBody); + var bodyDigest = GetStringHash(HashAlgorithm, requestBody); digest = string.Format("SHA-512={0}", Convert.ToBase64String(bodyDigest)); } else @@ -190,9 +182,9 @@ namespace {{packageName}}.Client foreach (var keyVal in httpSignatureHeader) headerValuesList.Add(string.Format("{0}: {1}", keyVal.Key, keyVal.Value)); - //Concatinate headers value separated by new line + //Concatenate headers value separated by new line var headerValuesString = string.Join("\n", headerValuesList); - var signatureStringHash = GetStringHash(HashAlgorithm.ToString(), headerValuesString); + var signatureStringHash = GetStringHash(HashAlgorithm, headerValuesString); string{{nrt?}} headerSignatureStr = null; var keyType = GetKeyType(KeyFilePath); @@ -219,15 +211,27 @@ namespace {{packageName}}.Client return HttpSignedRequestHeader; } - private byte[] GetStringHash(string hashName, string stringToBeHashed) + private byte[] GetStringHash(HashAlgorithmName hashAlgorithmName, string stringToBeHashed) { - var hashAlgorithm = System.Security.Cryptography.HashAlgorithm.Create(hashName); + HashAlgorithm{{nrt?}} hashAlgorithm = null; + + if (hashAlgorithmName == HashAlgorithmName.SHA1) + hashAlgorithm = SHA1.Create(); + + if (hashAlgorithmName == HashAlgorithmName.SHA256) + hashAlgorithm = SHA256.Create(); + + if (hashAlgorithmName == HashAlgorithmName.SHA512) + hashAlgorithm = SHA512.Create(); + + if (hashAlgorithmName == HashAlgorithmName.MD5) + hashAlgorithm = MD5.Create(); if (hashAlgorithm == null) throw new NullReferenceException($"{ nameof(hashAlgorithm) } was null."); - var bytes = Encoding.UTF8.GetBytes(stringToBeHashed); - var stringHash = hashAlgorithm.ComputeHash(bytes); + byte[] bytes = Encoding.UTF8.GetBytes(stringToBeHashed); + byte[] stringHash = hashAlgorithm.ComputeHash(bytes); return stringHash; } @@ -268,10 +272,9 @@ namespace {{packageName}}.Client /// private string GetECDSASignature(byte[] dataToSign) { + {{#net60OrLater}} if (!File.Exists(KeyFilePath)) - { throw new Exception("key file path does not exist."); - } var ecKeyHeader = "-----BEGIN EC PRIVATE KEY-----"; var ecKeyFooter = "-----END EC PRIVATE KEY-----"; @@ -280,7 +283,6 @@ namespace {{packageName}}.Client var keyBytes = System.Convert.FromBase64String(ecKeyBase64String); var ecdsa = ECDsa.Create(); -#if (NETCOREAPP3_0 || NETCOREAPP3_1 || NET5_0) var byteCount = 0; if (KeyPassPhrase != null) { @@ -301,24 +303,23 @@ namespace {{packageName}}.Client } } else - { ecdsa.ImportPkcs8PrivateKey(keyBytes, out byteCount); - } + var signedBytes = ecdsa.SignHash(dataToSign); var derBytes = ConvertToECDSAANS1Format(signedBytes); var signedString = System.Convert.ToBase64String(derBytes); return signedString; -#else + {{/net60OrLater}} + {{^net60OrLater}} throw new Exception("ECDSA signing is supported only on NETCOREAPP3_0 and above"); -#endif - + {{/net60OrLater}} } private byte[] ConvertToECDSAANS1Format(byte[] signedBytes) { var derBytes = new List(); - byte derLength = 68; //default lenght for ECDSA code signinged bit 0x44 + byte derLength = 68; //default length for ECDSA code signing bit 0x44 byte rbytesLength = 32; //R length 0x20 byte sbytesLength = 32; //S length 0x20 var rBytes = new List(); @@ -353,7 +354,7 @@ namespace {{packageName}}.Client } derBytes.Add(48); //start of the sequence 0x30 - derBytes.Add(derLength); //total length r lenth, type and r bytes + derBytes.Add(derLength); //total length r length, type and r bytes derBytes.Add(2); //tag for integer derBytes.Add(rbytesLength); //length of r @@ -365,7 +366,7 @@ namespace {{packageName}}.Client return derBytes.ToArray(); } - private RSACryptoServiceProvider{{nrt?}} GetRSAProviderFromPemFile(String pemfile, SecureString{{nrt?}} keyPassPharse = null) + private RSACryptoServiceProvider{{nrt?}} GetRSAProviderFromPemFile(String pemfile, SecureString{{nrt?}} keyPassPhrase = null) { const String pempubheader = "-----BEGIN PUBLIC KEY-----"; const String pempubfooter = "-----END PUBLIC KEY-----"; @@ -382,7 +383,7 @@ namespace {{packageName}}.Client if (isPrivateKeyFile) { - pemkey = ConvertPrivateKeyToBytes(pemstr, keyPassPharse); + pemkey = ConvertPrivateKeyToBytes(pemstr, keyPassPhrase); if (pemkey == null) return null; @@ -392,7 +393,7 @@ namespace {{packageName}}.Client return null; } - private byte[]{{nrt?}} ConvertPrivateKeyToBytes(String instr, SecureString{{nrt?}} keyPassPharse = null) + private byte[]{{nrt?}} ConvertPrivateKeyToBytes(String instr, SecureString{{nrt?}} keyPassPhrase = null) { const String pemprivheader = "-----BEGIN RSA PRIVATE KEY-----"; const String pemprivfooter = "-----END RSA PRIVATE KEY-----"; @@ -440,12 +441,12 @@ namespace {{packageName}}.Client binkey = Convert.FromBase64String(encryptedstr); } catch (System.FormatException) - { //data is not in base64 fromat + { //data is not in base64 format return null; } - // TODO: what do we do here if keyPassPharse is null? - byte[] deskey = GetEncryptedKey(salt, keyPassPharse{{nrt!}}, 1, 2); // count=1 (for OpenSSL implementation); 2 iterations to get at least 24 bytes + // TODO: what do we do here if keyPassPhrase is null? + byte[] deskey = GetEncryptedKey(salt, keyPassPhrase{{nrt!}}, 1, 2); // count=1 (for OpenSSL implementation); 2 iterations to get at least 24 bytes if (deskey == null) return null; @@ -584,7 +585,7 @@ namespace {{packageName}}.Client Array.Copy(salt, 0, data00, psbytes.Length, salt.Length); //concatenate the salt bytes // ---- do multi-hashing and concatenate results D1, D2 ... into keymaterial bytes ---- - MD5 md5 = new MD5CryptoServiceProvider(); + MD5 md5 = MD5.Create(); byte[]{{nrt?}} result = null; byte[] hashtarget = new byte[HASHLENGTH + data00.Length]; //fixed length initial hashtarget @@ -673,6 +674,5 @@ namespace {{packageName}}.Client return keyType; } - #endregion } } diff --git a/sdks/dotnet/templates/libraries/generichost/HttpSigningToken.mustache b/sdks/dotnet/templates/libraries/generichost/HttpSigningToken.mustache index 224714027..f9c0167aa 100644 --- a/sdks/dotnet/templates/libraries/generichost/HttpSigningToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/HttpSigningToken.mustache @@ -9,12 +9,12 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// A token constructed from an HttpSigningConfiguration /// - public class HttpSignatureToken : TokenBase + {{>visibility}} class HttpSignatureToken : TokenBase { private HttpSigningConfiguration _configuration; @@ -34,7 +34,7 @@ namespace {{packageName}}.Client /// /// /// - public void UseInHeader(System.Net.Http.HttpRequestMessage request, string requestBody, CancellationToken? cancellationToken = null) + public void UseInHeader(System.Net.Http.HttpRequestMessage request, string requestBody, CancellationToken cancellationToken = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}) { var signedHeaders = _configuration.GetHttpSignedHeader(request, requestBody, cancellationToken); diff --git a/sdks/dotnet/templates/libraries/generichost/IApi.mustache b/sdks/dotnet/templates/libraries/generichost/IApi.mustache index 019132830..af31cffe9 100644 --- a/sdks/dotnet/templates/libraries/generichost/IApi.mustache +++ b/sdks/dotnet/templates/libraries/generichost/IApi.mustache @@ -1,21 +1,15 @@ using System.Net.Http; -namespace {{packageName}}.Client +namespace {{packageName}}.{{apiPackage}} { /// /// Any Api client /// - public interface {{interfacePrefix}}Api + {{>visibility}} interface {{interfacePrefix}}Api { /// /// The HttpClient /// HttpClient HttpClient { get; } - - /// - /// An event to track the health of the server. - /// If you store these event args, be sure to purge old event args to prevent a memory leak. - /// - event ClientUtils.EventHandler{{nrt?}} ApiResponded; } } \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/IHostBuilderExtensions.mustache b/sdks/dotnet/templates/libraries/generichost/IHostBuilderExtensions.mustache new file mode 100644 index 000000000..948f06648 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/IHostBuilderExtensions.mustache @@ -0,0 +1,55 @@ +{{>partial_header}} +{{#nrt}} +#nullable enable + +{{/nrt}} +using System; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using {{packageName}}.{{clientPackage}}; + +namespace {{packageName}}.Extensions +{ + /// + /// Extension methods for IHostBuilder + /// + {{>visibility}} static class IHostBuilderExtensions + { + {{^hasAuthMethods}} + /// + /// Add the api to your host builder. + /// + /// + public static IHostBuilder Configure{{apiName}}(this IHostBuilder builder) + { + builder.ConfigureServices((context, services) => + { + HostConfiguration config = new HostConfiguration(services); + + IServiceCollectionExtensions.Add{{apiName}}(services, config); + }); + + return builder; + } + + {{/hasAuthMethods}} + /// + /// Add the api to your host builder. + /// + /// + /// + public static IHostBuilder Configure{{apiName}}(this IHostBuilder builder, Action options) + { + builder.ConfigureServices((context, services) => + { + HostConfiguration config = new HostConfiguration(services); + + options(context, services, config); + + IServiceCollectionExtensions.Add{{apiName}}(services, config); + }); + + return builder; + } + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/IHttpClientBuilderExtensions.mustache b/sdks/dotnet/templates/libraries/generichost/IHttpClientBuilderExtensions.mustache new file mode 100644 index 000000000..053c0226a --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/IHttpClientBuilderExtensions.mustache @@ -0,0 +1,75 @@ +{{>partial_header}} +{{#nrt}} +#nullable enable + +{{/nrt}} +using System; +using System.Net.Http; +using Microsoft.Extensions.DependencyInjection;{{#supportsRetry}} +using Polly.Timeout; +using Polly.Extensions.Http; +using Polly;{{/supportsRetry}} + +namespace {{packageName}}.Extensions +{ + /// + /// Extension methods for IHttpClientBuilder + /// + {{>visibility}} static class IHttpClientBuilderExtensions + { + {{#supportsRetry}} + /// + /// Adds a Polly retry policy to your clients. + /// + /// + /// + /// + public static IHttpClientBuilder AddRetryPolicy(this IHttpClientBuilder client, int retries) + { + client.AddPolicyHandler(RetryPolicy(retries)); + + return client; + } + + /// + /// Adds a Polly timeout policy to your clients. + /// + /// + /// + /// + public static IHttpClientBuilder AddTimeoutPolicy(this IHttpClientBuilder client, TimeSpan timeout) + { + client.AddPolicyHandler(TimeoutPolicy(timeout)); + + return client; + } + + /// + /// Adds a Polly circuit breaker to your clients. + /// + /// + /// + /// + /// + public static IHttpClientBuilder AddCircuitBreakerPolicy(this IHttpClientBuilder client, int handledEventsAllowedBeforeBreaking, TimeSpan durationOfBreak) + { + client.AddTransientHttpErrorPolicy(builder => CircuitBreakerPolicy(builder, handledEventsAllowedBeforeBreaking, durationOfBreak)); + + return client; + } + + private static Polly.Retry.AsyncRetryPolicy RetryPolicy(int retries) + => HttpPolicyExtensions + .HandleTransientHttpError() + .Or() + .RetryAsync(retries); + + private static AsyncTimeoutPolicy TimeoutPolicy(TimeSpan timeout) + => Policy.TimeoutAsync(timeout); + + private static Polly.CircuitBreaker.AsyncCircuitBreakerPolicy CircuitBreakerPolicy( + PolicyBuilder builder, int handledEventsAllowedBeforeBreaking, TimeSpan durationOfBreak) + => builder.CircuitBreakerAsync(handledEventsAllowedBeforeBreaking, durationOfBreak); + {{/supportsRetry}} + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/IServiceCollectionExtensions.mustache b/sdks/dotnet/templates/libraries/generichost/IServiceCollectionExtensions.mustache new file mode 100644 index 000000000..14184ac4a --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/IServiceCollectionExtensions.mustache @@ -0,0 +1,69 @@ +{{>partial_header}} +{{#nrt}} +#nullable enable + +{{/nrt}} +using System; +using System.Linq; +using Microsoft.Extensions.DependencyInjection; +using {{packageName}}.{{clientPackage}}; + +namespace {{packageName}}.Extensions +{ + /// + /// Extension methods for IServiceCollection + /// + {{>visibility}} static class IServiceCollectionExtensions + { + {{^hasAuthMethods}} + /// + /// Add the api to your host builder. + /// + /// + public static void Add{{apiName}}(this IServiceCollection services) + { + HostConfiguration config = new{{^net70OrLater}} HostConfiguration{{/net70OrLater}}(services); + Add{{apiName}}(services, config); + } + + {{/hasAuthMethods}} + /// + /// Add the api to your host builder. + /// + /// + /// + public static void Add{{apiName}}(this IServiceCollection services, Action options) + { + HostConfiguration config = new{{^net70OrLater}} HostConfiguration{{/net70OrLater}}(services); + options(config); + Add{{apiName}}(services, config); + } + + internal static void Add{{apiName}}(IServiceCollection services, HostConfiguration host) + { + if (!host.HttpClientsAdded) + host.Add{{apiName}}HttpClients(); + + services.AddSingleton(); + + // ensure that a token provider was provided for this token type + // if not, default to RateLimitProvider + var containerServices = services.Where(s => s.ServiceType.IsGenericType && + s.ServiceType.GetGenericTypeDefinition().IsAssignableFrom(typeof(TokenContainer<>))).ToArray(); + + foreach(var containerService in containerServices) + { + var tokenType = containerService.ServiceType.GenericTypeArguments[0]; + + var provider = services.FirstOrDefault(s => s.ServiceType.IsAssignableFrom(typeof(TokenProvider<>).MakeGenericType(tokenType))); + + if (provider == null) + { + services.AddSingleton(typeof(RateLimitProvider<>).MakeGenericType(tokenType)); + services.AddSingleton(typeof(TokenProvider<>).MakeGenericType(tokenType), + s => s.GetRequiredService(typeof(RateLimitProvider<>).MakeGenericType(tokenType))); + } + } + } + } +} diff --git a/sdks/dotnet/templates/libraries/generichost/ImplementsIEquatable.mustache b/sdks/dotnet/templates/libraries/generichost/ImplementsIEquatable.mustache new file mode 100644 index 000000000..dd576dd0f --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/ImplementsIEquatable.mustache @@ -0,0 +1 @@ +{{#equatable}}{{#readOnlyVars}}{{#-first}}IEquatable<{{classname}}{{nrt?}}> {{/-first}}{{/readOnlyVars}}{{/equatable}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/ImplementsValidatable.mustache b/sdks/dotnet/templates/libraries/generichost/ImplementsValidatable.mustache new file mode 100644 index 000000000..7c3f0e02a --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/ImplementsValidatable.mustache @@ -0,0 +1 @@ +{{#validatable}}IValidatableObject {{/validatable}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/JsonConverter.mustache b/sdks/dotnet/templates/libraries/generichost/JsonConverter.mustache index 0a0f7540c..189acfd74 100644 --- a/sdks/dotnet/templates/libraries/generichost/JsonConverter.mustache +++ b/sdks/dotnet/templates/libraries/generichost/JsonConverter.mustache @@ -1,131 +1,648 @@ /// - /// A Json converter for type {{classname}} + /// A Json converter for type /// - public class {{classname}}JsonConverter : JsonConverter<{{classname}}> + {{>visibility}} class {{classname}}JsonConverter : JsonConverter<{{classname}}> { + {{#allVars}} + {{#isDateTime}} /// - /// Returns a boolean if the type is compatible with this converter. + /// The format to use to serialize {{name}} /// - /// - /// - public override bool CanConvert(Type typeToConvert) => typeof({{classname}}).IsAssignableFrom(typeToConvert); + public static string {{name}}Format { get; set; } = "{{{dateTimeFormat}}}"; + + {{/isDateTime}} + {{#isDate}} + /// + /// The format to use to serialize {{name}} + /// + public static string {{name}}Format { get; set; } = "{{{dateFormat}}}"; + {{/isDate}} + {{/allVars}} /// - /// A Json reader. + /// Deserializes json to /// - /// + /// /// - /// + /// /// /// - public override {{classname}} Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + public override {{classname}} Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions) { - int currentDepth = reader.CurrentDepth; + {{#lambda.trimTrailingWithNewLine}} + {{#lambda.trimLineBreaks}} + int currentDepth = utf8JsonReader.CurrentDepth; - if (reader.TokenType != JsonTokenType.StartObject) + if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray) throw new JsonException(); - {{#composedSchemas.anyOf}} - Utf8JsonReader {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Reader = reader; - bool {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Deserialized = Client.ClientUtils.TryDeserialize<{{{dataType}}}>(ref {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Reader, options, out {{{dataType}}}{{^isBoolean}}{{nrt?}}{{/isBoolean}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}); - - {{/composedSchemas.anyOf}} - {{#composedSchemas.oneOf}} - Utf8JsonReader {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Reader = reader; - bool {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Deserialized = Client.ClientUtils.TryDeserialize<{{{dataType}}}>(ref {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Reader, options, out {{{dataType}}}{{^isBoolean}}{{nrt?}}{{/isBoolean}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}); - - {{/composedSchemas.oneOf}} - {{#composedSchemas.allOf}} - {{^isInherited}} - Utf8JsonReader {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Reader = reader; - bool {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Deserialized = Client.ClientUtils.TryDeserialize<{{{dataType}}}>(ref {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Reader, options, out {{{dataType}}}{{^isBoolean}}{{nrt?}}{{/isBoolean}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}); + JsonTokenType startingTokenType = utf8JsonReader.TokenType; - {{/isInherited}} - {{/composedSchemas.allOf}} {{#allVars}} - {{#lambda.optional}}{{{datatypeWithEnum}}}{{/lambda.optional}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = default; + Option<{{#isInnerEnum}}{{^isMap}}{{classname}}.{{/isMap}}{{/isInnerEnum}}{{{datatypeWithEnum}}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}}> {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = default; + {{#-last}} + + {{/-last}} {{/allVars}} + {{#discriminator}} + {{#children}} + {{#-first}} + string{{nrt?}} discriminator = ClientUtils.GetDiscriminator(utf8JsonReader, "{{discriminator.propertyBaseName}}"); + + {{/-first}} + if (discriminator != null && discriminator.Equals("{{name}}")) + return JsonSerializer.Deserialize<{{{name}}}>(ref utf8JsonReader, jsonSerializerOptions) ?? throw new JsonException("The result was an unexpected value."); + + {{/children}} + {{/discriminator}} + {{#model.discriminator}} + {{#model.hasDiscriminatorWithNonEmptyMapping}} + {{#mappedModels}} + {{#model}} + {{^vendorExtensions.x-duplicated-data-type}} + {{classname}}{{nrt?}} {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}} = null; + {{#-last}} + + {{/-last}} + {{/vendorExtensions.x-duplicated-data-type}} + {{/model}} + {{/mappedModels}} + Utf8JsonReader utf8JsonReaderDiscriminator = utf8JsonReader; + while (utf8JsonReaderDiscriminator.Read()) + { + if (startingTokenType == JsonTokenType.StartObject && utf8JsonReaderDiscriminator.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReaderDiscriminator.CurrentDepth) + break; - while (reader.Read()) + if (startingTokenType == JsonTokenType.StartArray && utf8JsonReaderDiscriminator.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReaderDiscriminator.CurrentDepth) + break; + + if (utf8JsonReaderDiscriminator.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderDiscriminator.CurrentDepth - 1) + { + string{{nrt?}} localVarJsonPropertyName = utf8JsonReaderDiscriminator.GetString(); + utf8JsonReaderDiscriminator.Read(); + if (localVarJsonPropertyName{{nrt?}}.Equals("{{propertyBaseName}}"){{#nrt}} ?? false{{/nrt}}) + { + string{{nrt?}} discriminator = utf8JsonReaderDiscriminator.GetString(); + {{#mappedModels}} + if (discriminator{{nrt?}}.Equals("{{mappingName}}"){{#nrt}} ?? false{{/nrt}}) + { + Utf8JsonReader utf8JsonReader{{model.classname}} = utf8JsonReader; + {{#lambda.camelcase_sanitize_param}}{{model.classname}}{{/lambda.camelcase_sanitize_param}} = JsonSerializer.Deserialize<{{{model.classname}}}>(ref utf8JsonReader{{model.classname}}, jsonSerializerOptions); + } + {{/mappedModels}} + } + } + } + + {{/model.hasDiscriminatorWithNonEmptyMapping}} + {{/model.discriminator}} + {{^model.discriminator}} + {{#composedSchemas}} + {{#oneOf}} + {{^vendorExtensions.x-duplicated-data-type}} + {{{datatypeWithEnum}}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = default; + {{#-last}} + + Utf8JsonReader utf8JsonReaderOneOf = utf8JsonReader; + while (utf8JsonReaderOneOf.Read()) { - if (reader.TokenType == JsonTokenType.EndObject && currentDepth == reader.CurrentDepth) + if (startingTokenType == JsonTokenType.StartObject && utf8JsonReaderOneOf.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReaderOneOf.CurrentDepth) + break; + + if (startingTokenType == JsonTokenType.StartArray && utf8JsonReaderOneOf.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReaderOneOf.CurrentDepth) break; - if (reader.TokenType == JsonTokenType.PropertyName) + if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1) { - string{{nrt?}} propertyName = reader.GetString(); - reader.Read(); + {{#oneOf}} + Utf8JsonReader utf8JsonReader{{name}} = utf8JsonReader; + ClientUtils.TryDeserialize<{{{datatypeWithEnum}}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}}>(ref utf8JsonReader{{name}}, jsonSerializerOptions, out {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}); + {{^-last}} - switch (propertyName) + {{/-last}} + {{/oneOf}} + } + } + {{/-last}} + {{/vendorExtensions.x-duplicated-data-type}} + {{/oneOf}} + + {{#anyOf}} + {{^vendorExtensions.x-duplicated-data-type}} + {{{datatypeWithEnum}}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = default; + {{#-last}} + + Utf8JsonReader utf8JsonReaderAnyOf = utf8JsonReader; + while (utf8JsonReaderAnyOf.Read()) + { + if (startingTokenType == JsonTokenType.StartObject && utf8JsonReaderAnyOf.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReaderAnyOf.CurrentDepth) + break; + + if (startingTokenType == JsonTokenType.StartArray && utf8JsonReaderAnyOf.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReaderAnyOf.CurrentDepth) + break; + + if (utf8JsonReaderAnyOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderAnyOf.CurrentDepth - 1) + { + {{#anyOf}} + Utf8JsonReader utf8JsonReader{{name}} = utf8JsonReader; + ClientUtils.TryDeserialize<{{{datatypeWithEnum}}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}}>(ref utf8JsonReader{{name}}, jsonSerializerOptions, out {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}); + {{^-last}} + + {{/-last}} + {{/anyOf}} + } + } + {{/-last}} + {{/vendorExtensions.x-duplicated-data-type}} + {{/anyOf}} + + {{/composedSchemas}} + {{/model.discriminator}} + while (utf8JsonReader.Read()) + { + if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth) + break; + + if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth) + break; + + if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1) + { + string{{nrt?}} localVarJsonPropertyName = utf8JsonReader.GetString(); + utf8JsonReader.Read(); + + switch (localVarJsonPropertyName) { {{#allVars}} case "{{baseName}}": {{#isString}} - {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = reader.GetString(); + {{^isMap}} + {{^isEnum}} + {{^isUuid}} + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetString(){{^isNullable}}{{nrt!}}{{/isNullable}}); + {{/isUuid}} + {{/isEnum}} + {{/isMap}} {{/isString}} {{#isBoolean}} - {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = reader.GetBoolean(); + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetBoolean()); {{/isBoolean}} + {{#isNumeric}} + {{^isEnum}} + {{#isDouble}} + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetDouble()); + {{/isDouble}} {{#isDecimal}} - {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = reader.GetDecimal(); + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetDecimal()); {{/isDecimal}} - {{#isNumeric}} - {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = reader.GetInt32(); - {{/isNumeric}} + {{#isFloat}} + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}(float)utf8JsonReader.GetDouble()); + {{/isFloat}} {{#isLong}} - {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = reader.GetInt64(); + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int64()); {{/isLong}} - {{#isDouble}} - {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = reader.GetDouble(); + {{^isLong}} + {{^isFloat}} + {{^isDecimal}} + {{^isDouble}} + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int32()); {{/isDouble}} + {{/isDecimal}} + {{/isFloat}} + {{/isLong}} + {{/isEnum}} + {{/isNumeric}} {{#isDate}} - {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = reader.GetDateTime(); + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}JsonSerializer.Deserialize<{{#supportsDateOnly}}DateOnly{{/supportsDateOnly}}{{^supportsDateOnly}}DateTime{{/supportsDateOnly}}{{#isNullable}}?{{/isNullable}}>(ref utf8JsonReader, jsonSerializerOptions)); {{/isDate}} {{#isDateTime}} - {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = reader.GetDateTime(); + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}JsonSerializer.Deserialize(ref utf8JsonReader, jsonSerializerOptions)); {{/isDateTime}} + {{#isEnum}} + {{^isMap}} + {{#isNumeric}} + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}({{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}})utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int32()); + {{/isNumeric}} + {{^isNumeric}} + string{{nrt?}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue = utf8JsonReader.GetString(); + {{^isInnerEnum}} + if ({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue != null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}{{{datatypeWithEnum}}}ValueConverter.FromStringOrDefault({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue)); + {{/isInnerEnum}} + {{#isInnerEnum}} + if ({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue != null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}{{classname}}.{{{datatypeWithEnum}}}FromStringOrDefault({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue)); + {{/isInnerEnum}} + {{/isNumeric}} + {{/isMap}} + {{/isEnum}} + {{#isUuid}} + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetGuid()); + {{/isUuid}} + {{^isUuid}} + {{^isEnum}} {{^isString}} {{^isBoolean}} - {{^isDecimal}} {{^isNumeric}} - {{^isLong}} - {{^isDouble}} {{^isDate}} {{^isDateTime}} - {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = JsonSerializer.Deserialize<{{{datatypeWithEnum}}}>(ref reader, options); + if (utf8JsonReader.TokenType != JsonTokenType.Null) + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}JsonSerializer.Deserialize<{{{datatypeWithEnum}}}>(ref utf8JsonReader, jsonSerializerOptions){{^isNullable}}{{nrt!}}{{/isNullable}}); {{/isDateTime}} {{/isDate}} - {{/isDouble}} - {{/isLong}} {{/isNumeric}} - {{/isDecimal}} {{/isBoolean}} {{/isString}} + {{/isEnum}} + {{/isUuid}} break; {{/allVars}} + default: + break; } } } - {{#composedSchemas.oneOf}} - if ({{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Deserialized) - return new {{classname}}({{#lambda.joinWithComma}}{{#lambda.camelcase_param}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/lambda.camelcase_param}} {{#model.composedSchemas.allOf}}{{^isInherited}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/isInherited}}{{/model.composedSchemas.allOf}}{{#model.composedSchemas.anyOf}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/model.composedSchemas.anyOf}}{{#allVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} {{/allVars}}{{/lambda.joinWithComma}}); + {{#allVars}} + {{#required}} + if (!{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}.IsSet) + throw new ArgumentException("Property is required for class {{classname}}.", nameof({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}})); + + {{/required}} + {{/allVars}} + {{#allVars}} + {{^isNullable}} + if ({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}.IsSet && {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}.Value == null) + throw new ArgumentNullException(nameof({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}), "Property is not nullable for class {{classname}}."); + + {{/isNullable}} + {{/allVars}} + {{^vendorExtensions.x-duplicated-data-type}} + {{#model.discriminator}} + {{#model.hasDiscriminatorWithNonEmptyMapping}} + {{#mappedModels}} + if ({{#lambda.camelcase_sanitize_param}}{{model.classname}}{{/lambda.camelcase_sanitize_param}} != null) + return new {{classname}}({{#lambda.joinWithComma}}{{#lambda.camelcase_sanitize_param}}{{model.classname}}{{/lambda.camelcase_sanitize_param}}{{#vendorExtensions.x-is-value-type}}{{^isNullable}}.Value{{/isNullable}}{{/vendorExtensions.x-is-value-type}} {{#model.composedSchemas.anyOf}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{#vendorExtensions.x-is-value-type}}{{^isNullable}}.Value{{/isNullable}}{{/vendorExtensions.x-is-value-type}} {{/model.composedSchemas.anyOf}}{{#allVars}}{{^isDiscriminator}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{#required}}.Value{{nrt!}}{{^isNullable}}{{#vendorExtensions.x-is-value-type}}.Value{{/vendorExtensions.x-is-value-type}}{{/isNullable}}{{/required}} {{/isDiscriminator}}{{/allVars}}{{/lambda.joinWithComma}}); {{#-last}} throw new JsonException(); {{/-last}} - {{/composedSchemas.oneOf}} + {{/mappedModels}} + {{/model.hasDiscriminatorWithNonEmptyMapping}} + {{/model.discriminator}} {{^composedSchemas.oneOf}} - return new {{classname}}({{#lambda.joinWithComma}}{{#model.composedSchemas.anyOf}}{{#lambda.camelcase_param}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/lambda.camelcase_param}} {{/model.composedSchemas.anyOf}}{{#model.composedSchemas.allOf}}{{^isInherited}}{{#lambda.camelcase_param}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/lambda.camelcase_param}} {{/isInherited}}{{/model.composedSchemas.allOf}}{{#allVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} {{/allVars}}{{/lambda.joinWithComma}}); + {{^required}} + {{#model.composedSchemas.anyOf}} + Option<{{baseType}}{{>NullConditionalProperty}}> {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}ParsedValue = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} == null + ? default + : new Option<{{baseType}}{{>NullConditionalProperty}}>({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}); + {{/model.composedSchemas.anyOf}} + {{#-last}} + + {{/-last}} + {{/required}} + return new {{classname}}({{#lambda.joinWithComma}}{{#model.composedSchemas.anyOf}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}ParsedValue{{#required}}.Value{{#vendorExtensions.x-is-value-type}}{{nrt!}}.Value{{nrt!}}{{/vendorExtensions.x-is-value-type}}{{/required}} {{/model.composedSchemas.anyOf}}{{#allVars}}{{^isDiscriminator}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{#required}}.Value{{nrt!}}{{^isNullable}}{{#vendorExtensions.x-is-value-type}}.Value{{nrt!}}{{/vendorExtensions.x-is-value-type}}{{/isNullable}}{{/required}} {{/isDiscriminator}}{{/allVars}}{{/lambda.joinWithComma}}); + {{/composedSchemas.oneOf}} + {{^model.discriminator}} + {{#composedSchemas}} + {{#oneOf}} + {{^vendorExtensions.x-duplicated-data-type}} + if ({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} != null) + return new {{classname}}({{#lambda.joinWithComma}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{#vendorExtensions.x-is-value-type}}.Value{{/vendorExtensions.x-is-value-type}} {{#model.composedSchemas.anyOf}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{#vendorExtensions.x-is-value-type}}{{^isNullable}}.Value{{/isNullable}}{{/vendorExtensions.x-is-value-type}} {{/model.composedSchemas.anyOf}}{{#allVars}}{{^isDiscriminator}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{#required}}ParsedValue{{/required}} {{/isDiscriminator}}{{/allVars}}{{/lambda.joinWithComma}}); + + {{/vendorExtensions.x-duplicated-data-type}} + {{#-last}} + throw new JsonException(); + {{/-last}} + {{/oneOf}} + {{/composedSchemas}} + {{/model.discriminator}} + {{/vendorExtensions.x-duplicated-data-type}} + {{/lambda.trimLineBreaks}} + {{/lambda.trimTrailingWithNewLine}} + } + + /// + /// Serializes a + /// + /// + /// + /// + /// + public override void Write(Utf8JsonWriter writer, {{classname}} {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}, JsonSerializerOptions jsonSerializerOptions) + { + {{#lambda.trimLineBreaks}} + {{#lambda.copy}} + {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}} + {{/lambda.copy}} + {{#discriminator}} + {{#children}} + if ({{#lambda.pasteLine}}{{/lambda.pasteLine}} is {{classname}} {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}){ + JsonSerializer.Serialize<{{{name}}}>(writer, {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}, jsonSerializerOptions); + return; + } + + {{/children}} + {{/discriminator}} + writer.WriteStartObject(); + + {{#model.discriminator}} + {{#model.hasDiscriminatorWithNonEmptyMapping}} + {{#composedSchemas.oneOf}} + {{^vendorExtensions.x-duplicated-data-type}} + if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}} != null) + {{#isPrimitiveType}} + {{#isString}} + writer.WriteString("{{vendorExtensions.x-base-name}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.Value); + {{/isString}} + {{#isBoolean}} + writer.WriteBoolean("{{vendorExtensions.x-base-name}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.Value.Value); + {{/isBoolean}} + {{#isNumeric}} + writer.WriteNumber("{{vendorExtensions.x-base-name}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.Value.Value); + {{/isNumeric}} + {{/isPrimitiveType}} + {{^isPrimitiveType}} + { + {{baseType}}JsonConverter {{#lambda.camelcase_sanitize_param}}{{baseType}}JsonConverter{{/lambda.camelcase_sanitize_param}} = ({{baseType}}JsonConverter) jsonSerializerOptions.Converters.First(c => c.CanConvert({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}.GetType())); + {{#lambda.camelcase_sanitize_param}}{{baseType}}JsonConverter{{/lambda.camelcase_sanitize_param}}.WriteProperties(writer, {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}, jsonSerializerOptions); + } + {{/isPrimitiveType}} + + {{/vendorExtensions.x-duplicated-data-type}} {{/composedSchemas.oneOf}} + {{/model.hasDiscriminatorWithNonEmptyMapping}} + {{/model.discriminator}} + {{^model.discriminator}} + {{#composedSchemas}} + {{#anyOf}} + if ({{#lambda.joinWithAmpersand}}{{^required}}{{#lambda.camelcase_sanitize_param}}{{model.classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.IsSet {{/required}}{{#lambda.camelcase_sanitize_param}}{{model.classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{/required}} != null{{/lambda.joinWithAmpersand}}) + {{#isPrimitiveType}} + {{#isString}} + writer.WriteString("{{vendorExtensions.x-base-name}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.Value); + {{/isString}} + {{#isBoolean}} + writer.WriteBoolean("{{vendorExtensions.x-base-name}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.Value.Value); + {{/isBoolean}} + {{#isNumeric}} + writer.WriteNumber("{{vendorExtensions.x-base-name}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.Value.Value); + {{/isNumeric}} + {{/isPrimitiveType}} + {{^isPrimitiveType}} + { + {{datatypeWithEnum}}JsonConverter {{datatypeWithEnum}}JsonConverter = ({{datatypeWithEnum}}JsonConverter) jsonSerializerOptions.Converters.First(c => c.CanConvert({{#lambda.camelcase_sanitize_param}}{{model.classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{/required}}.GetType())); + {{datatypeWithEnum}}JsonConverter.WriteProperties(writer, {{#lambda.camelcase_sanitize_param}}{{model.classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{/required}}, jsonSerializerOptions); + } + {{/isPrimitiveType}} + + {{/anyOf}} + {{/composedSchemas}} + {{/model.discriminator}} + WriteProperties(writer, {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}, jsonSerializerOptions); + writer.WriteEndObject(); + {{/lambda.trimLineBreaks}} } /// - /// A Json writer + /// Serializes the properties of /// /// - /// - /// + /// + /// /// - public override void Write(Utf8JsonWriter writer, {{classname}} {{#lambda.camelcase_param}}{{classname}}{{/lambda.camelcase_param}}, JsonSerializerOptions options) => throw new NotImplementedException(); + public void WriteProperties(Utf8JsonWriter writer, {{classname}} {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}, JsonSerializerOptions jsonSerializerOptions) + { + {{#lambda.trimTrailingWithNewLine}} + {{#lambda.trimLineBreaks}} + {{#allVars}} + {{^isDiscriminator}} + {{^isNullable}} + {{#vendorExtensions.x-is-reference-type}} + if ({{^required}}{{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.IsSet && {{/required}}{{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}} == null) + throw new ArgumentNullException(nameof({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}), "Property is required for class {{classname}}."); + + {{/vendorExtensions.x-is-reference-type}} + {{/isNullable}} + {{/isDiscriminator}} + {{/allVars}} + {{#allVars}} + {{#isDiscriminator}} + {{^model.composedSchemas.anyOf}} + {{^model.composedSchemas.oneOf}} + writer.WriteString("{{baseName}}", {{^isEnum}}{{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{/isEnum}}{{#isNew}}{{#isEnum}}{{#isInnerEnum}}{{classname}}.{{{datatypeWithEnum}}}ToJsonValue{{/isInnerEnum}}{{^isInnerEnum}}{{{datatypeWithEnum}}}ValueConverter.ToJsonValue{{/isInnerEnum}}({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}.Value{{/required}}){{/isEnum}}{{/isNew}}); + + {{/model.composedSchemas.oneOf}} + {{/model.composedSchemas.anyOf}} + {{/isDiscriminator}} + {{^isDiscriminator}} + {{#isString}} + {{^isMap}} + {{^isEnum}} + {{^isUuid}} + {{#lambda.copy}} + writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}); + {{/lambda.copy}} + {{#lambda.indent3}} + {{>WriteProperty}} + {{/lambda.indent3}} + {{/isUuid}} + {{/isEnum}} + {{/isMap}} + {{/isString}} + {{#isBoolean}} + {{#lambda.copy}} + writer.WriteBoolean("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{#vendorExtensions.x-is-value-type}}{{nrt!}}.Value{{/vendorExtensions.x-is-value-type}}{{/required}}{{#required}}{{#isNullable}}.Value{{/isNullable}}{{/required}}); + {{/lambda.copy}} + {{#lambda.indent3}} + {{>WriteProperty}} + {{/lambda.indent3}} + {{/isBoolean}} + {{^isEnum}} + {{#isNumeric}} + {{#lambda.copy}} + writer.WriteNumber("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{#vendorExtensions.x-is-value-type}}{{nrt!}}.Value{{/vendorExtensions.x-is-value-type}}{{/required}}{{#required}}{{#isNullable}}.Value{{/isNullable}}{{/required}}); + {{/lambda.copy}} + {{#lambda.indent3}} + {{>WriteProperty}} + {{/lambda.indent3}} + {{/isNumeric}} + {{/isEnum}} + {{#isDate}} + {{#lambda.copy}} + writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{#vendorExtensions.x-is-value-type}}{{nrt!}}.Value{{/vendorExtensions.x-is-value-type}}{{/required}}{{#required}}{{#isNullable}}.Value{{/isNullable}}{{/required}}.ToString({{name}}Format)); + {{/lambda.copy}} + {{#lambda.indent3}} + {{>WriteProperty}} + {{/lambda.indent3}} + {{/isDate}} + {{#isDateTime}} + {{#lambda.copy}} + writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{#vendorExtensions.x-is-value-type}}{{nrt!}}.Value{{/vendorExtensions.x-is-value-type}}{{/required}}{{#required}}{{#isNullable}}.Value{{/isNullable}}{{/required}}.ToString({{name}}Format)); + {{/lambda.copy}} + {{#lambda.indent3}} + {{>WriteProperty}} + {{/lambda.indent3}} + {{/isDateTime}} + {{#isEnum}} + {{#isNumeric}} + {{#lambda.copy}} + writer.WriteNumber("{{baseName}}", {{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}}ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{#vendorExtensions.x-is-value-type}}{{nrt!}}.Value{{/vendorExtensions.x-is-value-type}}{{/required}}{{#required}}{{#isNullable}}.Value{{/isNullable}}{{/required}})); + {{/lambda.copy}} + {{#lambda.indent3}} + {{>WriteProperty}} + {{/lambda.indent3}} + {{/isNumeric}} + {{^isMap}} + {{^isNumeric}} + {{#isInnerEnum}} + {{#isNullable}} + var {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue = {{classname}}.{{{datatypeWithEnum}}}ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{#vendorExtensions.x-is-value-type}}{{nrt!}}.Value{{/vendorExtensions.x-is-value-type}}{{/required}}{{#required}}{{#isNullable}}{{nrt!}}.Value{{/isNullable}}{{/required}}); + if ({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue != null) + writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue); + else + writer.WriteNull("{{baseName}}"); + + {{/isNullable}} + {{^isNullable}} + var {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue = {{classname}}.{{{datatypeWithEnum}}}ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{#vendorExtensions.x-is-value-type}}{{nrt!}}.Value{{/vendorExtensions.x-is-value-type}}{{/required}}{{#required}}{{#isNullable}}{{nrt!}}.Value{{/isNullable}}{{/required}}); + writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue); + {{/isNullable}} + {{/isInnerEnum}} + {{^isInnerEnum}} + {{#lambda.copy}} + {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} + {{/lambda.copy}} + {{#required}} + {{#isNullable}} + if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}} == null) + writer.WriteNull("{{baseName}}"); + else + { + var {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue = {{{datatypeWithEnum}}}ValueConverter.ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}.Value); + {{#allowableValues}} + {{#enumVars}} + {{#-first}} + {{#isString}} + if ({{#lambda.pasteLine}}{{/lambda.pasteLine}}RawValue != null){{! we cant use name here because enumVar also has a name property, so use the paste lambda instead }} + writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{nameInPascalCase}}{{/lambda.camelcase_sanitize_param}}RawValue); + else + writer.WriteNull("{{baseName}}"); + {{/isString}} + {{^isString}} + writer.WriteNumber("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{nameInPascalCase}}{{/lambda.camelcase_sanitize_param}}RawValue); + {{/isString}} + {{/-first}} + {{/enumVars}} + {{/allowableValues}} + } + {{/isNullable}} + {{^isNullable}} + var {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue = {{{datatypeWithEnum}}}ValueConverter.ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}); + {{#allowableValues}} + {{#enumVars}} + {{#-first}} + {{^isNumeric}} + writer.WriteString("{{baseName}}", {{#lambda.pasteLine}}{{/lambda.pasteLine}}RawValue); + {{/isNumeric}} + {{#isNumeric}} + writer.WriteNumber("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{#lambda.pasteLine}}{{/lambda.pasteLine}}{{/lambda.camelcase_sanitize_param}}RawValue); + {{/isNumeric}} + {{/-first}} + {{/enumVars}} + {{/allowableValues}} + {{/isNullable}} + + {{/required}} + {{^required}} + if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.IsSet) + {{#isNullable}} + if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option{{nrt!}}.Value != null) + { + var {{#lambda.pasteLine}}{{/lambda.pasteLine}}RawValue = {{{datatypeWithEnum}}}ValueConverter.ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.Value{{nrt!}}.Value); + writer.{{#lambda.first}}{{#allowableValues}}{{#enumVars}}{{^isNumeric}}WriteString {{/isNumeric}}{{#isNumeric}}WriteNumber {{/isNumeric}}{{/enumVars}}{{/allowableValues}}{{/lambda.first}}("{{baseName}}", {{#lambda.pasteLine}}{{/lambda.pasteLine}}RawValue); + } + else + writer.WriteNull("{{baseName}}"); + {{/isNullable}} + {{^isNullable}} + { + var {{#lambda.pasteLine}}{{/lambda.pasteLine}}RawValue = {{{datatypeWithEnum}}}ValueConverter.ToJsonValue({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{nrt!}}.Value); + writer.{{#lambda.first}}{{#allowableValues}}{{#enumVars}}{{^isNumeric}}WriteString {{/isNumeric}}{{#isNumeric}}WriteNumber {{/isNumeric}}{{/enumVars}}{{/allowableValues}}{{/lambda.first}}("{{baseName}}", {{#lambda.pasteLine}}{{/lambda.pasteLine}}RawValue); + } + {{/isNullable}} + {{/required}} + {{/isInnerEnum}} + {{/isNumeric}} + {{/isMap}} + {{/isEnum}} + {{#isUuid}} + {{#lambda.copy}} + writer.WriteString("{{baseName}}", {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{#vendorExtensions.x-is-value-type}}{{nrt!}}.Value{{/vendorExtensions.x-is-value-type}}{{/required}}{{#required}}{{#isNullable}}.Value{{/isNullable}}{{/required}}); + {{/lambda.copy}} + {{#lambda.indent3}} + {{>WriteProperty}} + {{/lambda.indent3}} + {{/isUuid}} + {{^isUuid}} + {{^isEnum}} + {{^isString}} + {{^isBoolean}} + {{^isNumeric}} + {{^isDate}} + {{^isDateTime}} + {{#required}} + {{#isNullable}} + if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}} != null) + { + writer.WritePropertyName("{{baseName}}"); + JsonSerializer.Serialize(writer, {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}, jsonSerializerOptions); + } + else + writer.WriteNull("{{baseName}}"); + {{/isNullable}} + {{^isNullable}} + writer.WritePropertyName("{{baseName}}"); + JsonSerializer.Serialize(writer, {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}, jsonSerializerOptions); + {{/isNullable}} + {{/required}} + {{^required}} + if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.IsSet) + {{#isNullable}} + if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.Value != null) + { + writer.WritePropertyName("{{baseName}}"); + JsonSerializer.Serialize(writer, {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}, jsonSerializerOptions); + } + else + writer.WriteNull("{{baseName}}"); + {{/isNullable}} + {{^isNullable}} + { + writer.WritePropertyName("{{baseName}}"); + JsonSerializer.Serialize(writer, {{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}, jsonSerializerOptions); + } + {{/isNullable}} + {{/required}} + {{/isDateTime}} + {{/isDate}} + {{/isNumeric}} + {{/isBoolean}} + {{/isString}} + {{/isEnum}} + {{/isUuid}} + {{/isDiscriminator}} + {{/allVars}} + {{/lambda.trimLineBreaks}} + {{/lambda.trimTrailingWithNewLine}} + } } \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/JsonSerializerOptionsProvider.mustache b/sdks/dotnet/templates/libraries/generichost/JsonSerializerOptionsProvider.mustache index 4b28944a2..93f805403 100644 --- a/sdks/dotnet/templates/libraries/generichost/JsonSerializerOptionsProvider.mustache +++ b/sdks/dotnet/templates/libraries/generichost/JsonSerializerOptionsProvider.mustache @@ -6,12 +6,12 @@ {{/nrt}} using System.Text.Json; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// Provides the JsonSerializerOptions /// - public class JsonSerializerOptionsProvider + {{>visibility}} class JsonSerializerOptionsProvider { /// /// the JsonSerializerOptions diff --git a/sdks/dotnet/templates/libraries/generichost/ModelBaseSignature.mustache b/sdks/dotnet/templates/libraries/generichost/ModelBaseSignature.mustache new file mode 100644 index 000000000..909a68e35 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/ModelBaseSignature.mustache @@ -0,0 +1 @@ +{{#parentModel.composedSchemas.anyOf}}{{#lambda.camelcase_sanitize_param}}{{parent}}{{/lambda.camelcase_sanitize_param}}.{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} {{/parentModel.composedSchemas.anyOf}}{{#allVars}}{{^isDiscriminator}}{{#isInherited}}{{^isNew}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/isNew}}{{#isNew}}{{#isEnum}}{{#isInnerEnum}}{{classname}}.{{{datatypeWithEnum}}}ToJsonValue{{/isInnerEnum}}{{^isInnerEnum}}{{{datatypeWithEnum}}}ValueConverter.ToJsonValue{{/isInnerEnum}}({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^required}}.Value{{/required}}){{/isEnum}}{{^isEnum}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}.ToString(){{/isEnum}}{{/isNew}} {{/isInherited}}{{/isDiscriminator}}{{/allVars}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/ModelSignature.mustache b/sdks/dotnet/templates/libraries/generichost/ModelSignature.mustache new file mode 100644 index 000000000..39aa11f82 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/ModelSignature.mustache @@ -0,0 +1 @@ +{{#model.allVars}}{{^isDiscriminator}}{{^required}}Option<{{/required}}{{{datatypeWithEnum}}}{{>NullConditionalProperty}}{{^required}}>{{/required}} {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}}{{#defaultValue}} = {{^required}}default{{/required}}{{#required}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{.}}}{{/isDateTime}}{{#isDateTime}}default{{/isDateTime}}{{/required}}{{/defaultValue}}{{^defaultValue}}{{#lambda.first}}{{#isNullable}} = default {{/isNullable}}{{^required}} = default {{/required}}{{/lambda.first}}{{/defaultValue}} {{/isDiscriminator}}{{/model.allVars}} diff --git a/sdks/dotnet/templates/libraries/generichost/OAuthToken.mustache b/sdks/dotnet/templates/libraries/generichost/OAuthToken.mustache index b5410ea07..f450c3d09 100644 --- a/sdks/dotnet/templates/libraries/generichost/OAuthToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/OAuthToken.mustache @@ -9,12 +9,12 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// A token constructed with OAuth. /// - public class OAuthToken : TokenBase + {{>visibility}} class OAuthToken : TokenBase { private string _raw; diff --git a/sdks/dotnet/templates/libraries/generichost/OnDeserializationError.mustache b/sdks/dotnet/templates/libraries/generichost/OnDeserializationError.mustache new file mode 100644 index 000000000..ff83a5076 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/OnDeserializationError.mustache @@ -0,0 +1,2 @@ +if (!suppressDefaultLog) + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/OnErrorDefaultImplementation.mustache b/sdks/dotnet/templates/libraries/generichost/OnErrorDefaultImplementation.mustache new file mode 100644 index 000000000..7af8e0760 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/OnErrorDefaultImplementation.mustache @@ -0,0 +1,2 @@ + if (!suppressDefaultLog) + Logger.LogError(exception, "An error occurred while sending the request to the server."); \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/OpenAPIDateConverter.mustache b/sdks/dotnet/templates/libraries/generichost/OpenAPIDateConverter.mustache deleted file mode 100644 index 144ac7328..000000000 --- a/sdks/dotnet/templates/libraries/generichost/OpenAPIDateConverter.mustache +++ /dev/null @@ -1,34 +0,0 @@ -{{>partial_header}} -using System; -using System.Globalization; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace {{packageName}}.Client -{ - /// - /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 - /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types - /// - public class OpenAPIDateJsonConverter : JsonConverter - { - /// - /// Returns a DateTime from the Json object - /// - /// - /// - /// - /// - public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) => - DateTime.ParseExact(reader.GetString(){{nrt!}}, "yyyy-MM-dd", CultureInfo.InvariantCulture); - - /// - /// Writes the DateTime to the json writer - /// - /// - /// - /// - public override void Write(Utf8JsonWriter writer, DateTime dateTimeValue, JsonSerializerOptions options) => - writer.WriteStringValue(dateTimeValue.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture)); - } -} diff --git a/sdks/dotnet/templates/libraries/generichost/OperationSignature.mustache b/sdks/dotnet/templates/libraries/generichost/OperationSignature.mustache new file mode 100644 index 000000000..83076f2b1 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/OperationSignature.mustache @@ -0,0 +1 @@ +{{#lambda.joinWithComma}}{{#allParams}}{{#required}}{{{dataType}}}{{>NullConditionalParameter}}{{/required}}{{^required}}Option<{{{dataType}}}{{>NullConditionalParameter}}>{{/required}} {{paramName}}{{#notRequiredOrIsNullable}} = default{{/notRequiredOrIsNullable}} {{/allParams}}System.Threading.CancellationToken cancellationToken = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}{{/lambda.joinWithComma}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/Option.mustache b/sdks/dotnet/templates/libraries/generichost/Option.mustache new file mode 100644 index 000000000..eed49143e --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/Option.mustache @@ -0,0 +1,47 @@ +// +{{>partial_header}} +{{#nrt}} +#nullable enable + +{{/nrt}} + +namespace {{packageName}}.{{clientPackage}} +{ + /// + /// A wrapper for operation parameters which are not required + /// + public struct Option + { + /// + /// The value to send to the server + /// + public TType Value { get; } + + /// + /// When true the value will be sent to the server + /// + internal bool IsSet { get; } + + /// + /// A wrapper for operation parameters which are not required + /// + /// + public Option(TType value) + { + IsSet = true; + Value = value; + } + + /// + /// Implicitly converts this option to the contained type + /// + /// + public static implicit operator TType(Option option) => option.Value; + + /// + /// Implicitly converts the provided value to an Option + /// + /// + public static implicit operator Option(TType value) => new Option(value); + } +} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/OptionProperty.mustache b/sdks/dotnet/templates/libraries/generichost/OptionProperty.mustache new file mode 100644 index 000000000..d75041887 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/OptionProperty.mustache @@ -0,0 +1 @@ +new Option<{{#isInnerEnum}}{{^isMap}}{{classname}}.{{/isMap}}{{/isInnerEnum}}{{{datatypeWithEnum}}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}}>( \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/README.mustache b/sdks/dotnet/templates/libraries/generichost/README.client.mustache similarity index 76% rename from sdks/dotnet/templates/libraries/generichost/README.mustache rename to sdks/dotnet/templates/libraries/generichost/README.client.mustache index 28ace9bfd..371b9daa9 100644 --- a/sdks/dotnet/templates/libraries/generichost/README.mustache +++ b/sdks/dotnet/templates/libraries/generichost/README.client.mustache @@ -1,6 +1,6 @@ # Created with Openapi Generator - + ## Run the following powershell command to generate the library ```ps1 @@ -42,7 +42,7 @@ java -jar "/openapi-generator/modules/openapi-generator-cli/target/openapi # -t templates ``` - + ## Using the library in your project ```cs @@ -61,21 +61,37 @@ namespace YourProject public static async Task Main(string[] args) { var host = CreateHostBuilder(args).Build();{{#apiInfo}}{{#apis}}{{#-first}} - var api = host.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>();{{#operations}}{{#-first}}{{#operation}}{{#-first}} - ApiResponse<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}> foo = await api.{{operationId}}WithHttpInfoAsync("todo");{{/-first}}{{/operation}}{{/-first}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}} + var api = host.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); + {{#operations}} + {{#-first}} + {{#operation}} + {{#-first}} + {{operationId}}ApiResponse apiResponse = await api.{{operationId}}Async("todo"); + {{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}object{{/returnType}} model = apiResponse.Ok(); + {{/-first}} + {{/operation}} + {{/-first}} + {{/operations}} + {{/-first}} + {{/apis}} + {{/apiInfo}} } public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .Configure{{apiName}}((context, options) => { - {{#authMethods}}// the type of token here depends on the api security specifications - ApiKeyToken token = new(""); + {{#authMethods}} + {{#-first}} + // the type of token here depends on the api security specifications + ApiKeyToken token = new("", ClientUtils.ApiKeyHeader.Authorization); options.AddTokens(token); // optionally choose the method the tokens will be provided with, default is RateLimitProvider options.UseProvider, ApiKeyToken>(); - {{/authMethods}}options.ConfigureJsonOptions((jsonOptions) => + {{/-first}} + {{/authMethods}} + options.ConfigureJsonOptions((jsonOptions) => { // your custom converters if any }); @@ -90,7 +106,7 @@ namespace YourProject } } ``` - + ## Questions - What about HttpRequest failures and retries? @@ -102,20 +118,20 @@ namespace YourProject It depends how you made the request. If the return type is ApiResponse no error will be thrown, though the Content property will be null. StatusCode and ReasonPhrase will contain information about the error. If the return type is T, then it will throw. If the return type is TOrDefault, it will return null. +- How do I validate requests and process responses? + Use the provided On and After methods in the Api class from the namespace {{packageName}}.Rest.DefaultApi. + Or provide your own class by using the generic Configure{{apiName}} method. - + ## Dependencies - [Microsoft.Extensions.Hosting](https://www.nuget.org/packages/Microsoft.Extensions.Hosting/) - 5.0.0 or later - [Microsoft.Extensions.Http](https://www.nuget.org/packages/Microsoft.Extensions.Http/) - 5.0.0 or later{{#supportsRetry}} -- [Microsoft.Extensions.Http.Polly](https://www.nuget.org/packages/Microsoft.Extensions.Http.Polly/) - 5.0.1 or later -- [Polly](https://www.nuget.org/packages/Polly/) - 7.2.3 or later{{/supportsRetry}} -- [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 or later -- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.7.0 or later{{#useCompareNetObjects}} +- [Microsoft.Extensions.Http.Polly](https://www.nuget.org/packages/Microsoft.Extensions.Http.Polly/) - 5.0.1 or later{{/supportsRetry}}{{#useCompareNetObjects}} - [CompareNETObjects](https://www.nuget.org/packages/CompareNETObjects) - 4.61.0 or later{{/useCompareNetObjects}}{{#validatable}} - [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 4.7.0 or later{{/validatable}}{{#apiDocs}} - + ## Documentation for API Endpoints All URIs are relative to *{{{basePath}}}* @@ -124,34 +140,50 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | -------------{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}} *{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{{summary}}}{{/summary}}{{/operation}}{{/operations}}{{/apis}}{{/apiInfo}}{{/apiDocs}}{{#modelDocs}} - + ## Documentation for Models {{#modelPackage}}{{#models}}{{#model}} - [{{{modelPackage}}}.{{{classname}}}]({{modelDocPath}}{{{classname}}}.md){{/model}}{{/models}}{{/modelPackage}} {{^modelPackage}}No model defined in this package{{/modelPackage}}{{/modelDocs}} - + ## Documentation for Authorization -{{^authMethods}}All endpoints do not require authorization.{{/authMethods}}{{#authMethods}}{{#-last}}Authentication schemes defined for the API:{{/-last}}{{/authMethods}}{{#authMethods}} - - +{{^authMethods}}Endpoints do not require authorization.{{/authMethods}} +{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}} +{{#authMethods}} + ### {{name}} {{#isApiKey}}- **Type**: API key - **API key parameter name**: {{keyParamName}} -- **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}}{{/isApiKey}}{{#isBasicBasic}} -- **Type**: HTTP basic authentication{{/isBasicBasic}}{{#isBasicBearer}} -- **Type**: Bearer Authentication{{/isBasicBearer}}{{#isOAuth}} +- **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}} +{{/isApiKey}} +{{#isBasicBasic}} +- **Type**: HTTP basic authentication +{{/isBasicBasic}} +{{#isBasicBearer}} +- **Type**: Bearer Authentication +{{/isBasicBearer}} +{{#isHttpSignature}} +- **Type**: HTTP signature authentication +{{/isHttpSignature}} +{{#isOAuth}} - **Type**: OAuth - **Flow**: {{flow}} - **Authorization URL**: {{authorizationUrl}} - **Scopes**: {{^scopes}}N/A{{/scopes}}{{#scopes}} -- {{scope}}: {{description}}{{/scopes}}{{/isOAuth}}{{/authMethods}} +- {{scope}}: {{description}}{{/scopes}} +{{/isOAuth}} + +{{/authMethods}} ## Build -- SDK version: {{packageVersion}}{{^hideGenerationTimestamp}} -- Build date: {{generatedDate}}{{/hideGenerationTimestamp}} +- SDK version: {{packageVersion}} +{{^hideGenerationTimestamp}} +- Build date: {{generatedDate}} +{{/hideGenerationTimestamp}} +- Generator version: {{generatorVersion}} - Build package: {{generatorClass}} ## Api Information @@ -168,9 +200,8 @@ Class | Method | HTTP request | Description - modelDocs: {{generateModelDocs}} - apiTests: {{generateApiTests}} - modelTests: {{generateModelTests}} -- withXml: {{withXml}} -## [OpenApi Generator Parameteres](https://openapi-generator.tech/docs/generators/csharp-netcore) +## [OpenApi Generator Parameters](https://openapi-generator.tech/docs/generators/csharp-netcore) - allowUnicodeIdentifiers: {{allowUnicodeIdentifiers}} - apiName: {{apiName}} - caseInsensitiveResponseHeaders: {{caseInsensitiveResponseHeaders}} diff --git a/sdks/dotnet/templates/libraries/generichost/README.solution.mustache b/sdks/dotnet/templates/libraries/generichost/README.solution.mustache new file mode 100644 index 000000000..f9c1c7f74 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/README.solution.mustache @@ -0,0 +1 @@ +# Created with Openapi Generator diff --git a/sdks/dotnet/templates/libraries/generichost/README.test.mustache b/sdks/dotnet/templates/libraries/generichost/README.test.mustache new file mode 100644 index 000000000..e69de29bb diff --git a/sdks/dotnet/templates/libraries/generichost/RateLimitProvider`1.mustache b/sdks/dotnet/templates/libraries/generichost/RateLimitProvider`1.mustache index 944c0061f..4e44b3fd5 100644 --- a/sdks/dotnet/templates/libraries/generichost/RateLimitProvider`1.mustache +++ b/sdks/dotnet/templates/libraries/generichost/RateLimitProvider`1.mustache @@ -4,22 +4,20 @@ #nullable enable {{/nrt}} -using System;{{^netStandard}} -using System.Threading.Channels;{{/netStandard}}{{#netStandard}} -using System.Collections.Concurrent; +using System; +using System.Collections.Generic; using System.Linq; -using System.Threading; -using System.Threading.Tasks;{{/netStandard}} +using System.Threading.Channels; -namespace {{packageName}}.Client {{^netStandard}} +namespace {{packageName}}.{{clientPackage}} { /// /// Provides a token to the api clients. Tokens will be rate limited based on the provided TimeSpan. /// /// - public class RateLimitProvider : TokenProvider where TTokenBase : TokenBase + {{>visibility}} class RateLimitProvider : TokenProvider where TTokenBase : TokenBase { - internal Channel AvailableTokens { get; } + internal Dictionary> AvailableTokens { get; } = new{{^net70OrLater}} Dictionary>{{/net70OrLater}}(); /// /// Instantiates a ThrottledTokenProvider. Your tokens will be rate limited based on the token's timeout. @@ -30,79 +28,49 @@ namespace {{packageName}}.Client {{^netStandard}} foreach(TTokenBase token in _tokens) token.StartTimer(token.Timeout ?? TimeSpan.FromMilliseconds(40)); - BoundedChannelOptions options = new BoundedChannelOptions(_tokens.Length) - { - FullMode = BoundedChannelFullMode.DropWrite + {{#lambda.copy}} + BoundedChannelOptions options = new BoundedChannelOptions(_tokens.Length) + { + FullMode = BoundedChannelFullMode.DropWrite }; - AvailableTokens = Channel.CreateBounded(options); - - for (int i = 0; i < _tokens.Length; i++) - _tokens[i].TokenBecameAvailable += ((sender) => AvailableTokens.Writer.TryWrite((TTokenBase) sender)); - } - - internal override async System.Threading.Tasks.ValueTask GetAsync(System.Threading.CancellationToken? cancellation = null) - => await AvailableTokens.Reader.ReadAsync(cancellation.GetValueOrDefault()).ConfigureAwait(false); - } -} {{/netStandard}}{{#netStandard}} -{ - /// - /// Provides a token to the api clients. Tokens will be rate limited based on the provided TimeSpan. - /// - /// - public class RateLimitProvider : TokenProvider where TTokenBase : TokenBase - { - internal ConcurrentDictionary AvailableTokens = new ConcurrentDictionary(); - private SemaphoreSlim _semaphore; - - /// - /// Instantiates a ThrottledTokenProvider. Your tokens will be rate limited based on the token's timeout. - /// - /// - public RateLimitProvider(TokenContainer container) : base(container.Tokens) - { - _semaphore = new SemaphoreSlim(1, 1); - - foreach(TTokenBase token in _tokens) - token.StartTimer(token.Timeout ?? TimeSpan.FromMilliseconds(40)); - - for (int i = 0; i < _tokens.Length; i++) + AvailableTokens.Add(string.Empty, Channel.CreateBounded(options)); + {{/lambda.copy}} + {{#hasApiKeyMethods}} + if (container is TokenContainer apiKeyTokenContainer) { - _tokens[i].TokenBecameAvailable += ((sender) => - { - TTokenBase token = (TTokenBase)sender; - - AvailableTokens.TryAdd(token, token); - }); - } - } - - internal override async System.Threading.Tasks.ValueTask GetAsync(System.Threading.CancellationToken? cancellation = null) - { - await _semaphore.WaitAsync().ConfigureAwait(false); + string[] headers = apiKeyTokenContainer.Tokens.Select(t => ClientUtils.ApiKeyHeaderToString(t.Header)).Distinct().ToArray(); - try - { - TTokenBase result = null; - - while (result == null) + foreach (string header in headers) { - TTokenBase tokenToRemove = AvailableTokens.FirstOrDefault().Value; - - if (tokenToRemove != null && AvailableTokens.TryRemove(tokenToRemove, out result)) - return result; + BoundedChannelOptions options = new BoundedChannelOptions(apiKeyTokenContainer.Tokens.Count(t => ClientUtils.ApiKeyHeaderToString(t.Header).Equals(header))) + { + FullMode = BoundedChannelFullMode.DropWrite + }; - await Task.Delay(40).ConfigureAwait(false); - - tokenToRemove = AvailableTokens.FirstOrDefault().Value; + AvailableTokens.Add(header, Channel.CreateBounded(options)); } - - return result; } - finally + else { - _semaphore.Release(); + {{#lambda.indent1}}{{#lambda.pasteLine}}{{/lambda.pasteLine}}{{/lambda.indent1}} } + {{/hasApiKeyMethods}} + {{^hasApiKeyMethods}} + {{#lambda.pasteLine}}{{/lambda.pasteLine}} + {{/hasApiKeyMethods}} + + foreach(Channel tokens in AvailableTokens.Values) + for (int i = 0; i < _tokens.Length; i++) + _tokens[i].TokenBecameAvailable += ((sender) => tokens.Writer.TryWrite((TTokenBase) sender)); + } + + internal override async System.Threading.Tasks.ValueTask GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}) + { + if (!AvailableTokens.TryGetValue(header, out Channel{{nrt?}} tokens)) + throw new KeyNotFoundException($"Could not locate a token for header '{header}'."); + + return await tokens.Reader.ReadAsync(cancellation).ConfigureAwait(false); } } -} {{/netStandard}} +} diff --git a/sdks/dotnet/templates/libraries/generichost/SourceGenerationContext.mustache b/sdks/dotnet/templates/libraries/generichost/SourceGenerationContext.mustache new file mode 100644 index 000000000..b1798c98e --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/SourceGenerationContext.mustache @@ -0,0 +1,9 @@ +{{#useSourceGeneration}} + + /// + /// The {{classname}}SerializationContext + /// + [JsonSourceGenerationOptions(WriteIndented = true, GenerationMode = JsonSourceGenerationMode.Metadata | JsonSourceGenerationMode.Serialization)] + [JsonSerializable(typeof({{classname}}))] + {{>visibility}} partial class {{classname}}SerializationContext : JsonSerializerContext { } +{{/useSourceGeneration}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/TokenBase.mustache b/sdks/dotnet/templates/libraries/generichost/TokenBase.mustache index fd720d1dc..05f06b4a7 100644 --- a/sdks/dotnet/templates/libraries/generichost/TokenBase.mustache +++ b/sdks/dotnet/templates/libraries/generichost/TokenBase.mustache @@ -6,12 +6,12 @@ {{/nrt}} using System; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// The base for all tokens. /// - public abstract class TokenBase + {{>visibility}} abstract class TokenBase { private DateTime _nextAvailable = DateTime.UtcNow; private object _nextAvailableLock = new object(); @@ -64,7 +64,7 @@ namespace {{packageName}}.Client _nextAvailable = DateTime.UtcNow.AddSeconds(5); } - private void OnTimer(object sender, System.Timers.ElapsedEventArgs e) + private void OnTimer(object{{nrt?}} sender, System.Timers.ElapsedEventArgs e) { if (TokenBecameAvailable != null && !IsRateLimited) TokenBecameAvailable.Invoke(this); diff --git a/sdks/dotnet/templates/libraries/generichost/TokenContainer`1.mustache b/sdks/dotnet/templates/libraries/generichost/TokenContainer`1.mustache index 9d742241d..3e8f1b15d 100644 --- a/sdks/dotnet/templates/libraries/generichost/TokenContainer`1.mustache +++ b/sdks/dotnet/templates/libraries/generichost/TokenContainer`1.mustache @@ -7,13 +7,13 @@ using System.Linq; using System.Collections.Generic; -namespace {{packageName}}.Client +namespace {{packageName}}.{{clientPackage}} { /// /// A container for a collection of tokens. /// /// - public sealed class TokenContainer where TTokenBase : TokenBase + {{>visibility}} sealed class TokenContainer where TTokenBase : TokenBase { /// /// The collection of tokens diff --git a/sdks/dotnet/templates/libraries/generichost/TokenProvider`1.mustache b/sdks/dotnet/templates/libraries/generichost/TokenProvider`1.mustache index cc8bbd72e..529725467 100644 --- a/sdks/dotnet/templates/libraries/generichost/TokenProvider`1.mustache +++ b/sdks/dotnet/templates/libraries/generichost/TokenProvider`1.mustache @@ -7,21 +7,21 @@ using System; using System.Linq; using System.Collections.Generic; -using {{packageName}}.Client; +using {{packageName}}.{{clientPackage}}; namespace {{packageName}} { /// /// A class which will provide tokens. /// - public abstract class TokenProvider where TTokenBase : TokenBase + {{>visibility}} abstract class TokenProvider where TTokenBase : TokenBase { /// /// The array of tokens. /// protected TTokenBase[] _tokens; - internal abstract System.Threading.Tasks.ValueTask GetAsync(System.Threading.CancellationToken? cancellation = null); + internal abstract System.Threading.Tasks.ValueTask GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}); /// /// Instantiates a TokenProvider. diff --git a/sdks/dotnet/templates/libraries/generichost/ValidateRegex.mustache b/sdks/dotnet/templates/libraries/generichost/ValidateRegex.mustache new file mode 100644 index 000000000..78aba8fb3 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/ValidateRegex.mustache @@ -0,0 +1,7 @@ +// {{{name}}} ({{{dataType}}}) pattern +Regex regex{{{name}}} = new Regex(@"{{{vendorExtensions.x-regex}}}"{{#vendorExtensions.x-modifiers}}{{#-first}}, {{/-first}}RegexOptions.{{{.}}}{{^-last}} | {{/-last}}{{/vendorExtensions.x-modifiers}}); +{{#lambda.copy}}this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}} != null && {{/lambda.copy}} +if ({{#lambda.first}}{{^required}}{{#lambda.pasteLine}}{{/lambda.pasteLine}} {{/required}}{{#isNullable}}{{#lambda.pasteLine}}{{/lambda.pasteLine}}{{/isNullable}}{{/lambda.first}}!regex{{{name}}}.Match(this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}}{{#isUuid}}.ToString(){{#lambda.first}}{{^required}}{{nrt!}} {{/required}}{{#isNullable}}! {{/isNullable}}{{/lambda.first}}{{/isUuid}}).Success) +{ + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, must match a pattern of " + regex{{{name}}}, new [] { "{{{name}}}" }); +} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/WriteProperty.mustache b/sdks/dotnet/templates/libraries/generichost/WriteProperty.mustache new file mode 100644 index 000000000..99659ac26 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/WriteProperty.mustache @@ -0,0 +1,9 @@ +{{#required}} +{{>WritePropertyHelper}} +{{/required}} +{{^required}} +if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}Option.IsSet) + {{#lambda.indent1}} + {{>WritePropertyHelper}} + {{/lambda.indent1}} +{{/required}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/WritePropertyHelper.mustache b/sdks/dotnet/templates/libraries/generichost/WritePropertyHelper.mustache new file mode 100644 index 000000000..183946cf7 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/WritePropertyHelper.mustache @@ -0,0 +1,9 @@ +{{#isNullable}} +if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}}{{^required}}Option.Value{{/required}} != null) + {{#lambda.pasteLine}}{{/lambda.pasteLine}} +else + writer.WriteNull("{{baseName}}"); +{{/isNullable}} +{{^isNullable}} +{{#lambda.pasteLine}}{{/lambda.pasteLine}} +{{/isNullable}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/api.mustache b/sdks/dotnet/templates/libraries/generichost/api.mustache index 5e2bb67c2..eccb02d53 100644 --- a/sdks/dotnet/templates/libraries/generichost/api.mustache +++ b/sdks/dotnet/templates/libraries/generichost/api.mustache @@ -1,3 +1,4 @@ +{{#lambda.trimLineBreaks}} // {{>partial_header}} {{#nrt}} @@ -6,25 +7,45 @@ {{/nrt}} using System; using System.Collections.Generic; +{{#net80OrLater}} +{{#lambda.uniqueLines}} +{{#operations}} +{{#operation}} +{{#vendorExtensions.x-set-cookie}} +using System.Linq; +{{/vendorExtensions.x-set-cookie}} +{{/operation}} +{{/operations}} +{{/lambda.uniqueLines}} +{{/net80OrLater}} using System.Net; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using System.Net.Http; using System.Net.Http.Headers; using System.Text.Json; -using {{packageName}}.Client; +using {{packageName}}.{{clientPackage}}; {{#hasImport}} using {{packageName}}.{{modelPackage}}; {{/hasImport}} +{{^netStandard}} +using System.Diagnostics.CodeAnalysis; +{{/netStandard}} namespace {{packageName}}.{{apiPackage}} { {{#operations}} /// /// Represents a collection of functions to interact with the API endpoints + /// This class is registered as transient. /// {{>visibility}} interface {{interfacePrefix}}{{classname}} : IApi { + /// + /// The class containing the events + /// + {{classname}}Events Events { get; } + {{#operation}} /// /// {{summary}} @@ -34,11 +55,14 @@ namespace {{packageName}}.{{apiPackage}} /// /// Thrown when fails to make API call {{#allParams}} - /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} {{/allParams}} /// Cancellation Token to cancel the request. - /// Task<ApiResponse<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}>> - Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{#required}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/required}}{{^required}}{{{dataType}}} {{paramName}} = null{{^-last}}, {{/-last}}{{/required}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken? cancellationToken = null); + /// <> + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + Task<{{interfacePrefix}}{{operationId}}ApiResponse> {{operationId}}Async({{>OperationSignature}}); /// /// {{summary}} @@ -46,44 +70,95 @@ namespace {{packageName}}.{{apiPackage}} /// /// {{notes}} /// - /// Thrown when fails to make API call {{#allParams}} - /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} {{/allParams}} /// Cancellation Token to cancel the request. - /// Task of ApiResponse<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}object{{/returnType}}> - Task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}> {{operationId}}Async({{#allParams}}{{#required}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/required}}{{^required}}{{{dataType}}} {{paramName}} = null{{^-last}}, {{/-last}}{{/required}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken? cancellationToken = null);{{#nrt}} + /// <{{nrt?}}> + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + Task<{{interfacePrefix}}{{operationId}}ApiResponse{{nrt?}}> {{operationId}}OrDefaultAsync({{>OperationSignature}}); + {{^-last}} + {{/-last}} + {{/operation}} + } + {{#operation}} + {{#responses}} + {{#-first}} + + /// + /// The + /// + {{>visibility}} interface {{interfacePrefix}}{{operationId}}ApiResponse : {{#lambda.joinWithComma}}{{packageName}}.{{clientPackage}}.{{interfacePrefix}}ApiResponse {{#responses}}{{#dataType}}{{interfacePrefix}}{{vendorExtensions.x-http-status}}<{{#isModel}}{{^containerType}}{{packageName}}.{{modelPackage}}.{{/containerType}}{{/isModel}}{{{dataType}}}{{#nrt}}?{{/nrt}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}}> {{/dataType}}{{/responses}}{{/lambda.joinWithComma}} + { + {{#responses}} + {{#vendorExtensions.x-http-status-is-default}} /// - /// {{summary}} + /// Returns true if the response is the default response type /// - /// - /// {{notes}} - /// - {{#allParams}} - /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} - {{/allParams}} - /// Cancellation Token to cancel the request. - /// Task of ApiResponse<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}object{{/returnType}}?> - Task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}> {{operationId}}OrDefaultAsync({{#allParams}}{{#required}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/required}}{{^required}}{{{dataType}}} {{paramName}} = null{{^-last}}, {{/-last}}{{/required}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken? cancellationToken = null); + /// + bool Is{{vendorExtensions.x-http-status}} { get; } + {{/vendorExtensions.x-http-status-is-default}} + {{^vendorExtensions.x-http-status-is-default}} + /// + /// Returns true if the response is {{code}} {{vendorExtensions.x-http-status}} + /// + /// + bool Is{{vendorExtensions.x-http-status}} { get; } + {{/vendorExtensions.x-http-status-is-default}} + {{^-last}} - {{/nrt}}{{^-last}} {{/-last}} + {{/responses}} + } + {{/-first}} + {{/responses}} + {{/operation}} + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + {{>visibility}} class {{classname}}Events + { + {{#lambda.trimTrailingWithNewLine}} + {{#operation}} + /// + /// The event raised after the server response + /// + public event EventHandler{{nrt?}} On{{operationId}}; + + /// + /// The event raised after an error querying the server + /// + public event EventHandler{{nrt?}} OnError{{operationId}}; + + internal void ExecuteOn{{operationId}}({{classname}}.{{operationId}}ApiResponse apiResponse) + { + On{{operationId}}?.Invoke(this, new ApiResponseEventArgs(apiResponse)); + } + + internal void ExecuteOnError{{operationId}}(Exception exception) + { + OnError{{operationId}}?.Invoke(this, new ExceptionEventArgs(exception)); + } + {{/operation}} + {{/lambda.trimTrailingWithNewLine}} } /// /// Represents a collection of functions to interact with the API endpoints /// - {{>visibility}} partial class {{classname}} : {{interfacePrefix}}{{classname}} + {{>visibility}} sealed partial class {{classname}} : {{interfacePrefix}}{{classname}} { private JsonSerializerOptions _jsonSerializerOptions; /// - /// An event to track the health of the server. - /// If you store these event args, be sure to purge old event args to prevent a memory leak. + /// The logger factory /// - public event ClientUtils.EventHandler{{nrt?}} ApiResponded; + public ILoggerFactory LoggerFactory { get; } /// /// The logger @@ -93,7 +168,12 @@ namespace {{packageName}}.{{apiPackage}} /// /// The HttpClient /// - public HttpClient HttpClient { get; }{{#hasApiKeyMethods}} + public HttpClient HttpClient { get; } + + /// + /// The class containing the events + /// + public {{classname}}Events Events { get; }{{#hasApiKeyMethods}} /// /// A token provider of type @@ -120,106 +200,154 @@ namespace {{packageName}}.{{apiPackage}} /// public TokenProvider OauthTokenProvider { get; }{{/hasOAuthMethods}} + {{#net80OrLater}} + {{#lambda.unique}} + {{#operation}} + {{#vendorExtensions.x-set-cookie}} + /// + /// The token cookie container + /// + public {{packageName}}.{{clientPackage}}.CookieContainer CookieContainer { get; } + + {{/vendorExtensions.x-set-cookie}} + {{/operation}} + {{/lambda.unique}} + {{/net80OrLater}} /// /// Initializes a new instance of the class. /// /// - public {{classname}}(ILogger<{{classname}}> logger, HttpClient httpClient, JsonSerializerOptionsProvider jsonSerializerOptionsProvider{{#hasApiKeyMethods}}, - TokenProvider apiKeyProvider{{/hasApiKeyMethods}}{{#hasHttpBearerMethods}}, - TokenProvider bearerTokenProvider{{/hasHttpBearerMethods}}{{#hasHttpBasicMethods}}, - TokenProvider basicTokenProvider{{/hasHttpBasicMethods}}{{#hasHttpSignatureMethods}}, - TokenProvider httpSignatureTokenProvider{{/hasHttpSignatureMethods}}{{#hasOAuthMethods}}, - TokenProvider oauthTokenProvider{{/hasOAuthMethods}}) + public {{classname}}(ILogger<{{classname}}> logger, ILoggerFactory loggerFactory, HttpClient httpClient, JsonSerializerOptionsProvider jsonSerializerOptionsProvider, {{classname}}Events {{#lambda.camelcase_sanitize_param}}{{classname}}Events{{/lambda.camelcase_sanitize_param}}{{#hasApiKeyMethods}}, + TokenProvider apiKeyProvider{{/hasApiKeyMethods}}{{#hasHttpBearerMethods}}, + TokenProvider bearerTokenProvider{{/hasHttpBearerMethods}}{{#hasHttpBasicMethods}}, + TokenProvider basicTokenProvider{{/hasHttpBasicMethods}}{{#hasHttpSignatureMethods}}, + TokenProvider httpSignatureTokenProvider{{/hasHttpSignatureMethods}}{{#hasOAuthMethods}}, + TokenProvider oauthTokenProvider{{/hasOAuthMethods}}{{#net80OrLater}}{{#operation}}{{#lambda.uniqueLines}}{{#vendorExtensions.x-set-cookie}}, + {{packageName}}.{{clientPackage}}.CookieContainer cookieContainer{{/vendorExtensions.x-set-cookie}}{{/lambda.uniqueLines}}{{/operation}}{{/net80OrLater}}) { _jsonSerializerOptions = jsonSerializerOptionsProvider.Options; - Logger = logger; - HttpClient = httpClient;{{#hasApiKeyMethods}} + LoggerFactory = loggerFactory; + Logger = LoggerFactory.CreateLogger<{{classname}}>(); + HttpClient = httpClient; + Events = {{#lambda.camelcase_sanitize_param}}{{classname}}Events{{/lambda.camelcase_sanitize_param}};{{#hasApiKeyMethods}} ApiKeyProvider = apiKeyProvider;{{/hasApiKeyMethods}}{{#hasHttpBearerMethods}} BearerTokenProvider = bearerTokenProvider;{{/hasHttpBearerMethods}}{{#hasHttpBasicMethods}} BasicTokenProvider = basicTokenProvider;{{/hasHttpBasicMethods}}{{#hasHttpSignatureMethods}} HttpSignatureTokenProvider = httpSignatureTokenProvider;{{/hasHttpSignatureMethods}}{{#hasOAuthMethods}} - OauthTokenProvider = oauthTokenProvider;{{/hasOAuthMethods}} + OauthTokenProvider = oauthTokenProvider;{{/hasOAuthMethods}}{{#net80OrLater}}{{#operation}}{{#lambda.uniqueLines}}{{#vendorExtensions.x-set-cookie}} + CookieContainer = cookieContainer;{{/vendorExtensions.x-set-cookie}}{{/lambda.uniqueLines}}{{/operation}}{{/net80OrLater}} } {{#operation}} + {{#allParams}} + {{#-first}} + partial void Format{{operationId}}({{#allParams}}{{#isPrimitiveType}}ref {{/isPrimitiveType}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + + {{/-first}} + {{/allParams}} + {{#vendorExtensions.x-has-not-nullable-reference-types}} /// - /// {{summary}} {{notes}} + /// Validates the request parameters /// - /// Thrown when fails to make API call + {{#vendorExtensions.x-not-nullable-reference-types}} + /// + {{/vendorExtensions.x-not-nullable-reference-types}} + /// + private void Validate{{operationId}}({{#vendorExtensions.x-not-nullable-reference-types}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-not-nullable-reference-types}}) + { + {{#lambda.trimTrailingWithNewLine}} + {{#vendorExtensions.x-not-nullable-reference-types}} + {{#required}} + {{^vendorExtensions.x-is-value-type}} + if ({{paramName}} == null) + throw new ArgumentNullException(nameof({{paramName}})); + + {{/vendorExtensions.x-is-value-type}} + {{/required}} + {{^required}} + {{^vendorExtensions.x-is-value-type}} + if ({{paramName}}.IsSet && {{paramName}}.Value == null) + throw new ArgumentNullException(nameof({{paramName}})); + + {{/vendorExtensions.x-is-value-type}} + {{/required}} + {{/vendorExtensions.x-not-nullable-reference-types}} + {{/lambda.trimTrailingWithNewLine}} + } + + {{/vendorExtensions.x-has-not-nullable-reference-types}} + /// + /// Processes the server response + /// + /// {{#allParams}} - /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + /// {{/allParams}} - /// Cancellation Token to cancel the request. - /// <> - public async Task<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}> {{operationId}}Async({{#allParams}}{{#required}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/required}}{{^required}}{{{dataType}}} {{paramName}} = null{{^-last}}, {{/-last}}{{/required}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken? cancellationToken = null) + private void After{{operationId}}DefaultImplementation({{#lambda.joinWithComma}}{{interfacePrefix}}{{operationId}}ApiResponse apiResponseLocalVar {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}) { - ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}> result = await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false); - - {{^nrt}}{{#returnTypeIsPrimitive}}#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' - {{/returnTypeIsPrimitive}}{{/nrt}}if (result.Content == null){{^nrt}}{{#returnTypeIsPrimitive}} - #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'{{/returnTypeIsPrimitive}}{{/nrt}} - throw new ApiException(result.ReasonPhrase, result.StatusCode, result.RawContent); - - return result.Content; + bool suppressDefaultLog = false; + After{{operationId}}({{#lambda.joinWithComma}}ref suppressDefaultLog apiResponseLocalVar {{#allParams}}{{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); +{{>AfterOperationDefaultImplementation}} } - {{#nrt}} /// - /// {{summary}} {{notes}} + /// Processes the server response /// - /// Thrown when fails to make API call + /// + /// {{#allParams}} - /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + /// {{/allParams}} - /// Cancellation Token to cancel the request. - /// <> - public async Task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}> {{operationId}}OrDefaultAsync({{#allParams}}{{#required}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/required}}{{^required}}{{{dataType}}} {{paramName}} = null{{^-last}}, {{/-last}}{{/required}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken? cancellationToken = null) - { - ApiResponse<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}>{{nrt?}} result = null; - try - { - result = await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false); - } - catch (Exception) - { - } + partial void After{{operationId}}({{#lambda.joinWithComma}}ref bool suppressDefaultLog {{interfacePrefix}}{{operationId}}ApiResponse apiResponseLocalVar {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); - return result != null && result.IsSuccessStatusCode - ? result.Content - : null; + /// + /// Logs exceptions that occur while retrieving the server response + /// + /// + /// + /// + {{#allParams}} + /// + {{/allParams}} + private void OnError{{operationId}}DefaultImplementation({{#lambda.joinWithComma}}Exception exception string pathFormat string path {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}) + { + bool suppressDefaultLog = false; + OnError{{operationId}}({{#lambda.joinWithComma}}ref suppressDefaultLog exception pathFormat path {{#allParams}}{{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); +{{>OnErrorDefaultImplementation}} } - {{/nrt}} - {{^nrt}} - {{^returnTypeIsPrimitive}} - {{! Note that this method is a copy paste of above due to NRT complexities }} + /// + /// A partial method that gives developers a way to provide customized exception handling + /// + /// + /// + /// + /// + {{#allParams}} + /// + {{/allParams}} + partial void OnError{{operationId}}({{#lambda.joinWithComma}}ref bool suppressDefaultLog Exception exception string pathFormat string path {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); + /// /// {{summary}} {{notes}} /// - /// Thrown when fails to make API call {{#allParams}} /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} {{/allParams}} /// Cancellation Token to cancel the request. - /// <> - public async Task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}> {{operationId}}OrDefaultAsync({{#allParams}}{{#required}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/required}}{{^required}}{{{dataType}}} {{paramName}} = null{{^-last}}, {{/-last}}{{/required}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken? cancellationToken = null) + /// <> + public async Task<{{interfacePrefix}}{{operationId}}ApiResponse{{nrt?}}> {{operationId}}OrDefaultAsync({{>OperationSignature}}) { - ApiResponse<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}>{{nrt?}} result = null; - try + try { - result = await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false); + return await {{operationId}}Async({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false); } catch (Exception) { + return null; } - - return result != null && result.IsSuccessStatusCode - ? result.Content - : null; } - {{/returnTypeIsPrimitive}} - {{/nrt}} /// /// {{summary}} {{notes}} /// @@ -228,179 +356,433 @@ namespace {{packageName}}.{{apiPackage}} /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} {{/allParams}} /// Cancellation Token to cancel the request. - /// <> where T : - public async Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{#required}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/required}}{{^required}}{{{dataType}}} {{paramName}} = null{{^-last}}, {{/-last}}{{/required}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken? cancellationToken = null) + /// <> + public async Task<{{interfacePrefix}}{{operationId}}ApiResponse> {{operationId}}Async({{>OperationSignature}}) { + {{#lambda.trimLineBreaks}} + UriBuilder uriBuilderLocalVar = new UriBuilder(); + try { - {{#hasRequiredParams}}#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'{{/hasRequiredParams}}{{#allParams}}{{#required}}{{#nrt}} + {{#vendorExtensions.x-has-not-nullable-reference-types}} + Validate{{operationId}}({{#vendorExtensions.x-not-nullable-reference-types}}{{paramName}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-not-nullable-reference-types}}); - if ({{paramName}} == null) - throw new ArgumentNullException(nameof({{paramName}}));{{/nrt}}{{^nrt}}{{^vendorExtensions.x-csharp-value-type}} + {{/vendorExtensions.x-has-not-nullable-reference-types}} + {{#allParams}} + {{#-first}} + Format{{operationId}}({{#allParams}}{{#isPrimitiveType}}ref {{/isPrimitiveType}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); - if ({{paramName}} == null) - throw new ArgumentNullException(nameof({{paramName}}));{{/vendorExtensions.x-csharp-value-type}}{{/nrt}}{{/required}}{{/allParams}}{{#hasRequiredParams}} - - #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' - - {{/hasRequiredParams}}using (HttpRequestMessage request = new HttpRequestMessage()) + {{/-first}} + {{/allParams}} + using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { - UriBuilder uriBuilder = new UriBuilder(); - uriBuilder.Host = HttpClient.BaseAddress{{nrt!}}.Host; - uriBuilder.Port = HttpClient.BaseAddress{{nrt!}}.Port; - uriBuilder.Scheme = ClientUtils.SCHEME; - uriBuilder.Path = ClientUtils.CONTEXT_PATH + "{{path}}";{{#pathParams}}{{#required}} - uriBuilder.Path = uriBuilder.Path.Replace("%7B{{baseName}}%7D", Uri.EscapeDataString({{paramName}}.ToString()));{{/required}}{{^required}} - - if ({{paramName}} != null) - uriBuilder.Path = uriBuilder.Path + $"/{ Uri.EscapeDataString({{paramName}}).ToString()) }"; - {{/required}}{{/pathParams}}{{#queryParams}}{{#-first}} - - System.Collections.Specialized.NameValueCollection parseQueryString = System.Web.HttpUtility.ParseQueryString(string.Empty);{{/-first}}{{/queryParams}}{{^queryParams}}{{#authMethods}}{{#isApiKey}}{{#isKeyInQuery}} - - System.Collections.Specialized.NameValueCollection parseQueryString = System.Web.HttpUtility.ParseQueryString(string.Empty);{{/isKeyInQuery}}{{/isApiKey}}{{/authMethods}}{{/queryParams}}{{#queryParams}}{{#required}}{{#-first}} - - {{! all the redundant tags here are to get the spacing just right }} - {{/-first}}{{/required}}{{/queryParams}}{{#queryParams}}{{#required}}parseQueryString["{{baseName}}"] = Uri.EscapeDataString({{paramName}}.ToString(){{nrt!}}); - {{/required}}{{/queryParams}}{{#queryParams}}{{#-first}} - {{/-first}}{{/queryParams}}{{#queryParams}}{{^required}}if ({{paramName}} != null) - parseQueryString["{{baseName}}"] = Uri.EscapeDataString({{paramName}}.ToString(){{nrt!}}); - - {{/required}}{{#-last}}uriBuilder.Query = parseQueryString.ToString();{{/-last}}{{/queryParams}}{{#headerParams}}{{#required}} - - request.Headers.Add("{{baseName}}", ClientUtils.ParameterToString({{paramName}}));{{/required}}{{^required}} - - if ({{paramName}} != null) - request.Headers.Add("{{baseName}}", ClientUtils.ParameterToString({{paramName}}));{{/required}}{{/headerParams}}{{#formParams}}{{#-first}} - - MultipartContent multipartContent = new MultipartContent(); - - request.Content = multipartContent; - - List> formParams = new List>(); - - multipartContent.Add(new FormUrlEncodedContent(formParams));{{/-first}}{{^isFile}}{{#required}} - - formParams.Add(new KeyValuePair("{{baseName}}", ClientUtils.ParameterToString({{paramName}})));{{/required}}{{^required}} - - if ({{paramName}} != null) - formParams.Add(new KeyValuePair("{{baseName}}", ClientUtils.ParameterToString({{paramName}})));{{/required}}{{/isFile}}{{#isFile}}{{#required}} - - multipartContent.Add(new StreamContent({{paramName}}));{{/required}}{{^required}} - - if ({{paramName}} != null) - multipartContent.Add(new StreamContent({{paramName}}));{{/required}}{{/isFile}}{{/formParams}}{{#bodyParam}} - - request.Content = ({{paramName}} as object) is System.IO.Stream stream - ? request.Content = new StreamContent(stream) - : request.Content = new StringContent(JsonSerializer.Serialize({{paramName}}, _jsonSerializerOptions));{{/bodyParam}}{{#authMethods}}{{#-first}} - - List tokens = new List();{{/-first}}{{#isApiKey}} - - ApiKeyToken apiKey = (ApiKeyToken) await ApiKeyProvider.GetAsync(cancellationToken).ConfigureAwait(false); - - tokens.Add(apiKey);{{#isKeyInHeader}} - - apiKey.UseInHeader(request, "{{keyParamName}}");{{/isKeyInHeader}}{{#isKeyInQuery}} - - apiKey.UseInQuery(request, uriBuilder, parseQueryString, "{{keyParamName}}"); - - uriBuilder.Query = parseQueryString.ToString();{{/isKeyInQuery}}{{#isKeyInCookie}} - - apiKey.UseInCookie(request, parseQueryString, "{{keyParamName}}"); - - uriBuilder.Query = parseQueryString.ToString();{{/isKeyInCookie}}{{/isApiKey}}{{/authMethods}} - - {{! below line must be after any UseInQuery calls, but before using the HttpSignatureToken}} - request.RequestUri = uriBuilder.Uri;{{#authMethods}}{{#isBasicBasic}} - - BasicToken basicToken = (BasicToken) await BasicTokenProvider.GetAsync(cancellationToken).ConfigureAwait(false); - - tokens.Add(basicToken); - - basicToken.UseInHeader(request, "{{keyParamName}}");{{/isBasicBasic}}{{#isBasicBearer}} + {{^servers}} + uriBuilderLocalVar.Host = HttpClient.BaseAddress{{nrt!}}.Host; + uriBuilderLocalVar.Port = HttpClient.BaseAddress.Port; + uriBuilderLocalVar.Scheme = HttpClient.BaseAddress.Scheme; + uriBuilderLocalVar.Path = ClientUtils.CONTEXT_PATH + "{{path}}"; + {{/servers}} + {{#servers}} + {{#-first}} + Uri urlLocalVar = httpRequestMessageLocalVar.RequestUri = new Uri("{{url}}"); + uriBuilderLocalVar.Host = urlLocalVar.Authority; + uriBuilderLocalVar.Scheme = urlLocalVar.Scheme; + uriBuilderLocalVar.Path = urlLocalVar.AbsolutePath; + {{/-first}} + {{/servers}} + {{#constantParams}} + {{#isPathParam}} + // Set client side default value of Path Param "{{baseName}}". + uriBuilderLocalVar.Path = uriBuilderLocalVar.Path.Replace("%7B{{baseName}}%7D", Uri.EscapeDataString(ClientUtils.ParameterToString({{#_enum}}"{{{.}}}"{{/_enum}}))); // Constant path parameter + {{/isPathParam}} + {{/constantParams}} + {{#pathParams}} + uriBuilderLocalVar.Path = uriBuilderLocalVar.Path.Replace("%7B{{baseName}}%7D", Uri.EscapeDataString({{paramName}}.ToString())); + {{#-last}} + + {{/-last}} + {{/pathParams}} + {{#queryParams}} + {{#-first}} + + System.Collections.Specialized.NameValueCollection parseQueryStringLocalVar = System.Web.HttpUtility.ParseQueryString(string.Empty); + {{/-first}} + {{/queryParams}} + {{^queryParams}} + {{#authMethods}} + {{#isApiKey}} + {{#isKeyInQuery}} + + System.Collections.Specialized.NameValueCollection parseQueryStringLocalVar = System.Web.HttpUtility.ParseQueryString(string.Empty); + {{/isKeyInQuery}} + {{/isApiKey}} + {{/authMethods}} + {{/queryParams}} + {{#queryParams}} + {{#required}} + {{#-first}} + + {{/-first}} + parseQueryStringLocalVar["{{baseName}}"] = ClientUtils.ParameterToString({{paramName}}); + {{/required}} + {{/queryParams}} + + {{#constantParams}} + {{#isQueryParam}} + // Set client side default value of Query Param "{{baseName}}". + parseQueryStringLocalVar["{{baseName}}"] = ClientUtils.ParameterToString({{#_enum}}"{{{.}}}"{{/_enum}}); // Constant query parameter + {{/isQueryParam}} + {{/constantParams}} + {{#queryParams}} + {{^required}} + if ({{paramName}}.IsSet) + // here too + parseQueryStringLocalVar["{{baseName}}"] = ClientUtils.ParameterToString({{paramName}}.Value); + + {{/required}} + {{#-last}} + uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); + + {{/-last}} + {{/queryParams}} + {{#constantParams}} + {{#isHeaderParam}} + // Set client side default value of Header Param "{{baseName}}". + httpRequestMessageLocalVar.Headers.Add("{{baseName}}", ClientUtils.ParameterToString({{#_enum}}"{{{.}}}"{{/_enum}})); // Constant header parameter + {{/isHeaderParam}} + {{/constantParams}} + {{#headerParams}} + {{#required}} + httpRequestMessageLocalVar.Headers.Add("{{baseName}}", ClientUtils.ParameterToString({{paramName}})); + + {{/required}} + {{^required}} + if ({{paramName}}.IsSet) + httpRequestMessageLocalVar.Headers.Add("{{baseName}}", ClientUtils.ParameterToString({{paramName}}.Value)); + + {{/required}} + {{/headerParams}} + {{#formParams}} + {{#-first}} + MultipartContent multipartContentLocalVar = new MultipartContent(); + + httpRequestMessageLocalVar.Content = multipartContentLocalVar; + + List> formParameterLocalVars = new List>(); + + multipartContentLocalVar.Add(new FormUrlEncodedContent(formParameterLocalVars));{{/-first}}{{^isFile}}{{#required}} + + formParameterLocalVars.Add(new KeyValuePair("{{baseName}}", ClientUtils.ParameterToString({{paramName}}))); + + {{/required}} + {{^required}} + if ({{paramName}}.IsSet) + formParameterLocalVars.Add(new KeyValuePair("{{baseName}}", ClientUtils.ParameterToString({{paramName}}.Value))); + + {{/required}} + {{/isFile}} + {{#isFile}} + {{#required}} + multipartContentLocalVar.Add(new StreamContent({{paramName}})); + + {{/required}} + {{^required}} + if ({{paramName}}.IsSet) + multipartContentLocalVar.Add(new StreamContent({{paramName}}.Value)); + + {{/required}} + {{/isFile}} + {{/formParams}} + {{#bodyParam}} + {{#required}} + httpRequestMessageLocalVar.Content = ({{paramName}}{{^required}}.Value{{/required}} as object) is System.IO.Stream stream + ? httpRequestMessageLocalVar.Content = new StreamContent(stream) + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize({{paramName}}{{^required}}.Value{{/required}}, _jsonSerializerOptions)); + {{/required}} + {{^required}} + if ({{paramName}}.IsSet) + httpRequestMessageLocalVar.Content = ({{paramName}}{{^required}}.Value{{/required}} as object) is System.IO.Stream stream + ? httpRequestMessageLocalVar.Content = new StreamContent(stream) + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize({{paramName}}{{^required}}.Value{{/required}}, _jsonSerializerOptions)); + {{/required}} + + {{/bodyParam}} + {{#authMethods}} + {{#-first}} + List tokenBaseLocalVars = new List(); + {{/-first}} + {{#isApiKey}} + {{^isKeyInCookie}} + ApiKeyToken apiKeyTokenLocalVar{{-index}} = (ApiKeyToken) await ApiKeyProvider.GetAsync("{{keyParamName}}", cancellationToken).ConfigureAwait(false); + tokenBaseLocalVars.Add(apiKeyTokenLocalVar{{-index}}); + {{#isKeyInHeader}} + apiKeyTokenLocalVar{{-index}}.UseInHeader(httpRequestMessageLocalVar); + + {{/isKeyInHeader}} + {{/isKeyInCookie}} + {{#isKeyInQuery}} + + apiKeyTokenLocalVar{{-index}}.UseInQuery(httpRequestMessageLocalVar, uriBuilderLocalVar, parseQueryStringLocalVar); + + uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); + {{/isKeyInQuery}} + {{/isApiKey}} + {{/authMethods}} + httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; + {{#authMethods}} + {{#isBasicBasic}} + + BasicToken basicTokenLocalVar{{-index}} = (BasicToken) await BasicTokenProvider.GetAsync(cancellation: cancellationToken).ConfigureAwait(false); + + tokenBaseLocalVars.Add(basicTokenLocalVar{{-index}}); + + basicTokenLocalVar{{-index}}.UseInHeader(httpRequestMessageLocalVar, "{{keyParamName}}"); + {{/isBasicBasic}} + {{#isBasicBearer}} + + BearerToken bearerTokenLocalVar{{-index}} = (BearerToken) await BearerTokenProvider.GetAsync(cancellation: cancellationToken).ConfigureAwait(false); + + tokenBaseLocalVars.Add(bearerTokenLocalVar{{-index}}); + + bearerTokenLocalVar{{-index}}.UseInHeader(httpRequestMessageLocalVar, "{{keyParamName}}"); + {{/isBasicBearer}} + {{#isOAuth}} + + OAuthToken oauthTokenLocalVar{{-index}} = (OAuthToken) await OauthTokenProvider.GetAsync(cancellation: cancellationToken).ConfigureAwait(false); + + tokenBaseLocalVars.Add(oauthTokenLocalVar{{-index}}); + + oauthTokenLocalVar{{-index}}.UseInHeader(httpRequestMessageLocalVar, "{{keyParamName}}"); + {{/isOAuth}} + {{#isHttpSignature}} + + HttpSignatureToken httpSignatureTokenLocalVar{{-index}} = (HttpSignatureToken) await HttpSignatureTokenProvider.GetAsync(cancellation: cancellationToken).ConfigureAwait(false); - BearerToken bearerToken = (BearerToken) await BearerTokenProvider.GetAsync(cancellationToken).ConfigureAwait(false); + tokenBaseLocalVars.Add(httpSignatureTokenLocalVar{{-index}}); - tokens.Add(bearerToken); + if (httpRequestMessageLocalVar.Content != null) { + string requestBodyLocalVar = await httpRequestMessageLocalVar.Content.ReadAsStringAsync({{#net60OrLater}}cancellationToken{{/net60OrLater}}).ConfigureAwait(false); - bearerToken.UseInHeader(request, "{{keyParamName}}");{{/isBasicBearer}}{{#isOAuth}} - - OAuthToken oauthToken = (OAuthToken) await OauthTokenProvider.GetAsync(cancellationToken).ConfigureAwait(false); - - tokens.Add(oauthToken); - - oauthToken.UseInHeader(request, "{{keyParamName}}");{{/isOAuth}}{{#isHttpSignature}} - - HttpSignatureToken signatureToken = (HttpSignatureToken) await HttpSignatureTokenProvider.GetAsync(cancellationToken).ConfigureAwait(false); - - tokens.Add(signatureToken); + httpSignatureTokenLocalVar{{-index}}.UseInHeader(httpRequestMessageLocalVar, requestBodyLocalVar, cancellationToken); + } + {{/isHttpSignature}} + {{/authMethods}} + {{#consumes}} + {{#-first}} + + {{=<% %>=}} + string[] contentTypes = new string[] {<%/-first%> + <%={{ }}=%> + "{{{mediaType}}}"{{^-last}},{{/-last}}{{#-last}} + }; + {{/-last}} + {{/consumes}} + {{#consumes}} + {{#-first}} + + string{{nrt?}} contentTypeLocalVar = ClientUtils.SelectHeaderContentType(contentTypes); + + if (contentTypeLocalVar != null && httpRequestMessageLocalVar.Content != null) + httpRequestMessageLocalVar.Content.Headers.ContentType = new MediaTypeHeaderValue(contentTypeLocalVar); + + {{/-first}} + {{/consumes}} + {{#produces}} + {{#-first}} + + {{=<% %>=}} + string[] acceptLocalVars = new string[] {<%/-first%> + <%={{ }}=%> + "{{{mediaType}}}"{{^-last}},{{/-last}}{{#-last}} + }; + {{/-last}} + {{/produces}} + {{#produces}} + {{#-first}} + + string{{nrt?}} acceptLocalVar = ClientUtils.SelectHeaderAccept(acceptLocalVars); + + if (acceptLocalVar != null) + httpRequestMessageLocalVar.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(acceptLocalVar)); + {{/-first}} + {{/produces}} + {{#net60OrLater}} + + httpRequestMessageLocalVar.Method = HttpMethod.{{#lambda.titlecase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.titlecase}}; + {{/net60OrLater}} + {{^net60OrLater}} + httpRequestMessageLocalVar.Method = new HttpMethod("{{#lambda.uppercase}}{{httpMethod}}{{/lambda.uppercase}}"); + {{/net60OrLater}} + + DateTime requestedAtLocalVar = DateTime.UtcNow; + + using (HttpResponseMessage httpResponseMessageLocalVar = await HttpClient.SendAsync(httpRequestMessageLocalVar, cancellationToken).ConfigureAwait(false)) + { + string responseContentLocalVar = await httpResponseMessageLocalVar.Content.ReadAsStringAsync({{#net60OrLater}}cancellationToken{{/net60OrLater}}).ConfigureAwait(false); - string requestBody = await request.Content{{nrt!}}.ReadAsStringAsync({{^netStandard}}{{^netcoreapp3.1}}cancellationToken.GetValueOrDefault(){{/netcoreapp3.1}}{{/netStandard}}).ConfigureAwait(false); + ILogger<{{operationId}}ApiResponse> apiResponseLoggerLocalVar = LoggerFactory.CreateLogger<{{operationId}}ApiResponse>(); - signatureToken.UseInHeader(request, requestBody, cancellationToken);{{/isHttpSignature}}{{/authMethods}}{{#consumes}}{{#-first}} + {{operationId}}ApiResponse apiResponseLocalVar = new{{^net60OrLater}} {{operationId}}ApiResponse{{/net60OrLater}}(apiResponseLoggerLocalVar, httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "{{path}}", requestedAtLocalVar, _jsonSerializerOptions); - string[] contentTypes = new string[] { - {{/-first}}"{{{mediaType}}}"{{^-last}}, - {{/-last}}{{#-last}} - };{{/-last}}{{/consumes}}{{#consumes}}{{#-first}} + After{{operationId}}DefaultImplementation({{#lambda.joinWithComma}}apiResponseLocalVar {{#allParams}}{{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); - string{{nrt?}} contentType = ClientUtils.SelectHeaderContentType(contentTypes); + Events.ExecuteOn{{operationId}}(apiResponseLocalVar); - if (contentType != null) - request.Content.Headers.Add("ContentType", contentType);{{/-first}}{{/consumes}}{{#produces}}{{#-first}} + {{#authMethods}} + {{#-first}} + if (apiResponseLocalVar.StatusCode == (HttpStatusCode) 429) + foreach(TokenBase tokenBaseLocalVar in tokenBaseLocalVars) + tokenBaseLocalVar.BeginRateLimit(); - string[] accepts = new string[] { {{/-first}}{{/produces}} - {{#produces}}"{{{mediaType}}}"{{^-last}}, - {{/-last}}{{/produces}}{{#produces}}{{#-last}} - };{{/-last}}{{/produces}}{{#produces}}{{#-first}} + {{/-first}} + {{/authMethods}} + {{#net80OrLater}} + {{#responses}} + {{#vendorExtensions.x-set-cookie}} + if (httpResponseMessageLocalVar.StatusCode == (HttpStatusCode) {{code}} && httpResponseMessageLocalVar.Headers.TryGetValues("Set-Cookie", out var cookieHeadersLocalVar)) + { + foreach(string cookieHeader in cookieHeadersLocalVar) + { + IList setCookieHeaderValuesLocalVar = Microsoft.Net.Http.Headers.SetCookieHeaderValue.ParseList(cookieHeadersLocalVar.ToArray()); - string{{nrt?}} accept = ClientUtils.SelectHeaderAccept(accepts); + foreach(Microsoft.Net.Http.Headers.SetCookieHeaderValue setCookieHeaderValueLocalVar in setCookieHeaderValuesLocalVar) + { + Cookie cookieLocalVar = new Cookie(setCookieHeaderValueLocalVar.Name.ToString(), setCookieHeaderValueLocalVar.Value.ToString()) + { + HttpOnly = setCookieHeaderValueLocalVar.HttpOnly + }; - if (accept != null) - request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(accept)); - {{/-first}}{{/produces}}{{^netStandard}} - request.Method = HttpMethod.{{#lambda.titlecase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.titlecase}};{{/netStandard}}{{#netStandard}} - request.Method = new HttpMethod("{{#lambda.uppercase}}{{httpMethod}}{{/lambda.uppercase}}");{{/netStandard}}{{! early standard versions do not have HttpMethod.Patch }} + if (setCookieHeaderValueLocalVar.Expires.HasValue) + cookieLocalVar.Expires = setCookieHeaderValueLocalVar.Expires.Value.UtcDateTime; - using (HttpResponseMessage responseMessage = await HttpClient.SendAsync(request, cancellationToken.GetValueOrDefault()).ConfigureAwait(false)) - { - DateTime requestedAt = DateTime.UtcNow; + if (setCookieHeaderValueLocalVar.Path.HasValue) + cookieLocalVar.Path = setCookieHeaderValueLocalVar.Path.Value; - string responseContent = await responseMessage.Content.ReadAsStringAsync({{^netStandard}}{{^netcoreapp3.1}}cancellationToken.GetValueOrDefault(){{/netcoreapp3.1}}{{/netStandard}}).ConfigureAwait(false); + if (setCookieHeaderValueLocalVar.Domain.HasValue) + cookieLocalVar.Domain = setCookieHeaderValueLocalVar.Domain.Value; - if (ApiResponded != null) - { - try - { - ApiResponded.Invoke(this, new ApiResponseEventArgs(requestedAt, DateTime.UtcNow, responseMessage.StatusCode, "{{path}}")); - } - catch(Exception e) - { - Logger.LogError(e, "An error occured while invoking ApiResponded."); + CookieContainer.Value.Add(new Uri($"{uriBuilderLocalVar.Scheme}://{uriBuilderLocalVar.Host}"), cookieLocalVar); + } } } - ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}> apiResponse = new ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}object{{/returnType}}{{nrt?}}>(responseMessage, responseContent); - - if (apiResponse.IsSuccessStatusCode) - apiResponse.Content = JsonSerializer.Deserialize<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}object{{/returnType}}>(apiResponse.RawContent, _jsonSerializerOptions);{{#authMethods}} - else if (apiResponse.StatusCode == (HttpStatusCode) 429) - foreach(TokenBase token in tokens) - token.BeginRateLimit();{{/authMethods}} - - return apiResponse; + {{/vendorExtensions.x-set-cookie}} + {{/responses}} + {{/net80OrLater}} + return apiResponseLocalVar; } } } catch(Exception e) { - Logger.LogError(e, "An error occured while sending the request to the server."); + OnError{{operationId}}DefaultImplementation({{#lambda.joinWithComma}}e "{{path}}" uriBuilderLocalVar.Path {{#allParams}}{{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); + Events.ExecuteOnError{{operationId}}(e); throw; } - }{{^-last}} - {{/-last}} + {{/lambda.trimLineBreaks}} + } + {{#responses}} + {{#-first}} + + /// + /// The + /// + {{>visibility}} partial class {{operationId}}ApiResponse : {{packageName}}.{{clientPackage}}.ApiResponse, {{interfacePrefix}}{{operationId}}ApiResponse + { + /// + /// The logger + /// + public ILogger<{{operationId}}ApiResponse> Logger { get; } + + /// + /// The + /// + /// + /// + /// + /// + /// + /// + /// + public {{operationId}}ApiResponse(ILogger<{{operationId}}ApiResponse> logger, System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage, string rawContent, string path, DateTime requestedAt, System.Text.Json.JsonSerializerOptions jsonSerializerOptions) : base(httpRequestMessage, httpResponseMessage, rawContent, path, requestedAt, jsonSerializerOptions) + { + Logger = logger; + OnCreated(httpRequestMessage, httpResponseMessage); + } + + partial void OnCreated(System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + {{#responses}} + + {{#vendorExtensions.x-http-status-is-default}} + /// + /// Returns true if the response is the default response type + /// + /// + public bool Is{{vendorExtensions.x-http-status}} => {{#vendorExtensions.x-only-default}}true{{/vendorExtensions.x-only-default}}{{^vendorExtensions.x-only-default}}{{#lambda.joinConditions}}{{#responses}}{{^vendorExtensions.x-http-status-is-default}}!Is{{vendorExtensions.x-http-status}} {{/vendorExtensions.x-http-status-is-default}}{{/responses}}{{/lambda.joinConditions}}{{/vendorExtensions.x-only-default}}; + {{/vendorExtensions.x-http-status-is-default}} + {{^vendorExtensions.x-http-status-is-default}} + /// + /// Returns true if the response is {{code}} {{vendorExtensions.x-http-status}} + /// + /// + public bool Is{{vendorExtensions.x-http-status}} => {{code}} == (int)StatusCode; + {{/vendorExtensions.x-http-status-is-default}} + {{#dataType}} + + /// + /// Deserializes the response if the response is {{code}} {{vendorExtensions.x-http-status}} + /// + /// + public {{#isModel}}{{^containerType}}{{packageName}}.{{modelPackage}}.{{/containerType}}{{/isModel}}{{{dataType}}}{{#nrt}}?{{/nrt}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{vendorExtensions.x-http-status}}() + { + {{#lambda.trimTrailingWithNewLine}} + {{#lambda.indent4}} + {{>AsModel}} + {{/lambda.indent4}} + {{/lambda.trimTrailingWithNewLine}} + } + + /// + /// Returns true if the response is {{code}} {{vendorExtensions.x-http-status}} and the deserialized response is not null + /// + /// + /// + public bool Try{{vendorExtensions.x-http-status}}({{#net60OrLater}}[NotNullWhen(true)]{{/net60OrLater}}out {{#isModel}}{{^containerType}}{{packageName}}.{{modelPackage}}.{{/containerType}}{{/isModel}}{{{dataType}}}{{#nrt}}?{{/nrt}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} result) + { + result = null; + + try + { + result = {{vendorExtensions.x-http-status}}(); + } catch (Exception e) + { + OnDeserializationErrorDefaultImplementation(e, (HttpStatusCode){{code}}); + } + + return result != null; + } + {{/dataType}} + {{#-last}} + + private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode) + { + bool suppressDefaultLog = false; + OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); + {{#lambda.trimTrailingWithNewLine}} + {{#lambda.indent4}} + {{>OnDeserializationError}} + {{/lambda.indent4}} + {{/lambda.trimTrailingWithNewLine}} + } + + partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + {{/-last}} + {{/responses}} + } + {{/-first}} + {{/responses}} {{/operation}} } {{/operations}} } +{{/lambda.trimLineBreaks}} diff --git a/sdks/dotnet/templates/libraries/generichost/api_test.mustache b/sdks/dotnet/templates/libraries/generichost/api_test.mustache index b64731f81..02ce22168 100644 --- a/sdks/dotnet/templates/libraries/generichost/api_test.mustache +++ b/sdks/dotnet/templates/libraries/generichost/api_test.mustache @@ -8,10 +8,10 @@ using {{packageName}}.{{apiPackage}};{{#hasImport}} using {{packageName}}.{{modelPackage}};{{/hasImport}} -{{{testInstructions}}} +{{>testInstructions}} -namespace {{packageName}}.Test.Api +namespace {{packageName}}.Test.{{apiPackage}} { /// /// Class for testing {{classname}} @@ -24,7 +24,6 @@ namespace {{packageName}}.Test.Api { _instance = _host.Services.GetRequiredService<{{interfacePrefix}}{{classname}}>(); } - {{#operations}} {{#operation}} @@ -35,10 +34,16 @@ namespace {{packageName}}.Test.Api public async Task {{operationId}}AsyncTest() { {{#allParams}} - {{{dataType}}} {{paramName}} = default; + {{^required}}Client.Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} = default{{nrt!}}; {{/allParams}} - {{#returnType}}var response = {{/returnType}}await _instance.{{operationId}}Async({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} - Assert.IsType<{{{.}}}>(response);{{/returnType}} + {{#returnType}} + var response = await _instance.{{operationId}}Async({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + var model = response.{{#lambda.first}}{{#responses}}{{vendorExtensions.x-http-status}} {{/responses}}{{/lambda.first}}(); + Assert.IsType<{{{.}}}>(model); + {{/returnType}} + {{^returnType}} + await _instance.{{operationId}}Async({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + {{/returnType}} } {{/operation}} {{/operations}} diff --git a/sdks/dotnet/templates/libraries/generichost/git_push.ps1.mustache b/sdks/dotnet/templates/libraries/generichost/git_push.ps1.mustache index 0f4084ef8..f263c2bc5 100644 --- a/sdks/dotnet/templates/libraries/generichost/git_push.ps1.mustache +++ b/sdks/dotnet/templates/libraries/generichost/git_push.ps1.mustache @@ -49,7 +49,7 @@ Set-StrictMode -Version 3.0 if ($Help){ Write-Output " This script will initialize a git repository, then add and commit all files. - The local repository will then be pushed to your prefered git provider. + The local repository will then be pushed to your preferred git provider. If the remote repository does not exist yet and you are using GitHub, the repository will be created for you provided you have the GitHub CLI installed. diff --git a/sdks/dotnet/templates/libraries/generichost/model.mustache b/sdks/dotnet/templates/libraries/generichost/model.mustache index d6e643a2f..f9931574d 100644 --- a/sdks/dotnet/templates/libraries/generichost/model.mustache +++ b/sdks/dotnet/templates/libraries/generichost/model.mustache @@ -10,7 +10,9 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.IO; +{{^useGenericHost}} using System.Runtime.Serialization; +{{/useGenericHost}} using System.Text; using System.Text.RegularExpressions; using System.Text.Json; @@ -21,29 +23,28 @@ using System.ComponentModel.DataAnnotations; {{#useCompareNetObjects}} using OpenAPIClientUtils = {{packageName}}.Client.ClientUtils; {{/useCompareNetObjects}} +{{#useGenericHost}} +{{#useSourceGeneration}} +using System.Text.Json.Serialization.Metadata; +{{/useSourceGeneration}} +using {{packageName}}.{{clientPackage}}; +{{/useGenericHost}} {{#models}} +{{#lambda.trimTrailingWithNewLine}} {{#model}} namespace {{packageName}}.{{modelPackage}} { -{{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{>modelGeneric}} +{{#isEnum}} +{{>modelEnum}} +{{/isEnum}} +{{^isEnum}} +{{>modelGeneric}} -{{#allOf}} -{{#-first}} -{{>JsonConverter}} -{{/-first}} -{{/allOf}} -{{#anyOf}} -{{#-first}} -{{>JsonConverter}} -{{/-first}} -{{/anyOf}} -{{#oneOf}} -{{#-first}} {{>JsonConverter}} -{{/-first}} -{{/oneOf}} {{/isEnum}} +{{>SourceGenerationContext}} {{/model}} +{{/lambda.trimTrailingWithNewLine}} {{/models}} } diff --git a/sdks/dotnet/templates/libraries/generichost/modelGeneric.mustache b/sdks/dotnet/templates/libraries/generichost/modelGeneric.mustache index 1f18f91bc..ad8214873 100644 --- a/sdks/dotnet/templates/libraries/generichost/modelGeneric.mustache +++ b/sdks/dotnet/templates/libraries/generichost/modelGeneric.mustache @@ -1,96 +1,83 @@ /// /// {{description}}{{^description}}{{classname}}{{/description}} /// - {{>visibility}} partial class {{classname}} : {{#parent}}{{{.}}}, {{/parent}}IEquatable<{{classname}}>{{#validatable}}{{^parentModel}}, IValidatableObject{{/parentModel}}{{/validatable}} + {{>visibility}} partial class {{classname}}{{#lambda.firstDot}}{{#parent}} : .{{/parent}}{{#validatable}} : .{{/validatable}}{{#equatable}}{{#readOnlyVars}}{{#-first}} : .{{/-first}}{{/readOnlyVars}}{{/equatable}}{{/lambda.firstDot}}{{#lambda.joinWithComma}}{{#parent}}{{{.}}} {{/parent}}{{>ImplementsIEquatable}}{{#validatable}}IValidatableObject {{/validatable}}{{/lambda.joinWithComma}} { {{#composedSchemas.oneOf}} + {{^vendorExtensions.x-duplicated-data-type}} /// /// Initializes a new instance of the class. /// - /// - {{#composedSchemas.allOf}} - {{^isInherited}} - /// - {{/isInherited}} - {{/composedSchemas.allOf}} + /// {{#composedSchemas.anyOf}} - /// + /// {{/composedSchemas.anyOf}} {{#allVars}} - /// {{description}}{{^description}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{.}}){{/defaultValue}} + {{^isDiscriminator}} + /// {{description}}{{^description}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/description}}{{#defaultValue}} (default to {{.}}){{/defaultValue}} + {{/isDiscriminator}} {{/allVars}} - public {{classname}}({{#lambda.joinWithComma}}{{{dataType}}}{{#isNullable}}{{nrt?}}{{/isNullable}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{#model.composedSchemas.allOf}}{{^isInherited}}{{{dataType}}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/isInherited}}{{/model.composedSchemas.allOf}}{{#model.composedSchemas.anyOf}}{{{dataType}}}{{#isNullable}}{{nrt?}}{{/isNullable}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/model.composedSchemas.anyOf}}{{#model.allVars}}{{^compulsory}}{{#lambda.optional}}{{{datatypeWithEnum}}}{{/lambda.optional}}{{/compulsory}}{{#compulsory}}{{{datatypeWithEnum}}}{{/compulsory}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{#defaultValue}} = {{^isDateTime}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default{{/isDateTime}}{{/defaultValue}}{{^defaultValue}}{{^compulsory}} = default{{/compulsory}}{{/defaultValue}} {{/model.allVars}}{{/lambda.joinWithComma}}){{#parent}} : base({{#lambda.joinWithComma}}{{#parentModel.composedSchemas.oneOf}}{{#lambda.camelcase_param}}{{parent}}{{/lambda.camelcase_param}}.{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} {{/parentModel.composedSchemas.oneOf}}{{#parentModel.composedSchemas.allOf}}{{^isInherited}}{{#lambda.camelcase_param}}{{parent}}{{/lambda.camelcase_param}}.{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} {{/isInherited}}{{/parentModel.composedSchemas.allOf}}{{#parentModel.composedSchemas.anyOf}}{{#lambda.camelcase_param}}{{parent}}}{{/lambda.camelcase_param}}.{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} {{/parentModel.composedSchemas.anyOf}}{{#allVars}}{{#isInherited}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} {{/isInherited}}{{/allVars}}{{/lambda.joinWithComma}}){{/parent}} + {{#model.vendorExtensions.x-model-is-mutable}}{{>visibility}}{{/model.vendorExtensions.x-model-is-mutable}}{{^model.vendorExtensions.x-model-is-mutable}}internal{{/model.vendorExtensions.x-model-is-mutable}} {{classname}}({{#lambda.joinWithComma}}{{{dataType}}} {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}} {{#model.composedSchemas.anyOf}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalProperty}}{{^required}}>{{/required}} {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{baseType}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}} {{/model.composedSchemas.anyOf}}{{>ModelSignature}}{{/lambda.joinWithComma}}){{#parent}} : base({{#lambda.joinWithComma}}{{#parentModel.composedSchemas.oneOf}}{{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{parent}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}}.{{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}} {{/parentModel.composedSchemas.oneOf}}{{>ModelBaseSignature}}{{/lambda.joinWithComma}}){{/parent}} { - {{#allVars}} - {{^isInherited}} - {{#required}} - {{^isNullable}} - if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null) - throw new ArgumentNullException("{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} is a required property for {{classname}} and cannot be null."); - - {{/isNullable}} - {{/required}} - {{/isInherited}} - {{/allVars}} - {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} = {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}; - {{#composedSchemas.allOf}} - {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} = {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}; - {{/composedSchemas.allOf}} {{#composedSchemas.anyOf}} - {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} = {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}; + {{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}{{^required}}Option{{/required}} = {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}}; {{/composedSchemas.anyOf}} + {{name}} = {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}}; {{#allVars}} + {{^isDiscriminator}} {{^isInherited}} - {{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; + {{name}}{{^required}}Option{{/required}} = {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}}; {{/isInherited}} + {{#isInherited}} + {{#isNew}} + {{name}}{{^required}}Option{{/required}} = {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}}; + {{/isNew}} + {{/isInherited}} + {{/isDiscriminator}} {{/allVars}} + OnCreated(); } + {{/vendorExtensions.x-duplicated-data-type}} {{/composedSchemas.oneOf}} {{^composedSchemas.oneOf}} /// /// Initializes a new instance of the class. /// - {{#composedSchemas.allOf}} - {{^isInherited}} - /// - {{/isInherited}} - {{/composedSchemas.allOf}} {{#composedSchemas.anyOf}} - /// + /// {{/composedSchemas.anyOf}} {{#allVars}} - /// {{description}}{{^description}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{.}}){{/defaultValue}} + {{^isDiscriminator}} + /// {{description}}{{^description}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/description}}{{#defaultValue}} (default to {{.}}){{/defaultValue}} + {{/isDiscriminator}} {{/allVars}} - public {{classname}}({{#lambda.joinWithComma}}{{#composedSchemas.allOf}}{{^isInherited}}{{{dataType}}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/isInherited}}{{/composedSchemas.allOf}}{{#composedSchemas.anyOf}}{{{dataType}}}{{#isNullable}}{{nrt?}}{{/isNullable}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/composedSchemas.anyOf}}{{#allVars}}{{^compulsory}}{{#lambda.optional}}{{{datatypeWithEnum}}}{{/lambda.optional}}{{/compulsory}}{{#compulsory}}{{{datatypeWithEnum}}}{{/compulsory}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{#defaultValue}} = {{^isDateTime}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default{{/isDateTime}}{{/defaultValue}}{{^defaultValue}}{{^compulsory}} = default{{/compulsory}}{{/defaultValue}} {{/allVars}}{{/lambda.joinWithComma}}){{#parent}} : base({{#lambda.joinWithComma}}{{#parentModel.composedSchemas.oneOf}}{{#lambda.camelcase_param}}{{parent}}{{/lambda.camelcase_param}}.{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} {{/parentModel.composedSchemas.oneOf}}{{#parentModel.composedSchemas.allOf}}{{^isInherited}}{{#lambda.camelcase_param}}{{parent}}{{/lambda.camelcase_param}}.{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} {{/isInherited}}{{/parentModel.composedSchemas.allOf}}{{#parentModel.composedSchemas.anyOf}}{{#lambda.camelcase_param}}{{parent}}}{{/lambda.camelcase_param}}.{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} {{/parentModel.composedSchemas.anyOf}}{{#allVars}}{{#isInherited}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} {{/isInherited}}{{/allVars}}{{/lambda.joinWithComma}}){{/parent}} + {{^composedSchemas.anyOf}} + [JsonConstructor] + {{/composedSchemas.anyOf}} + {{#model.vendorExtensions.x-model-is-mutable}}{{>visibility}}{{/model.vendorExtensions.x-model-is-mutable}}{{^model.vendorExtensions.x-model-is-mutable}}internal{{/model.vendorExtensions.x-model-is-mutable}} {{classname}}({{#lambda.joinWithComma}}{{#composedSchemas.anyOf}}{{^required}}Option<{{/required}}{{{baseType}}}{{>NullConditionalProperty}}{{^required}}>{{/required}} {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}} {{/composedSchemas.anyOf}}{{>ModelSignature}}{{/lambda.joinWithComma}}){{#parent}} : base({{#lambda.joinWithComma}}{{>ModelBaseSignature}}{{/lambda.joinWithComma}}){{/parent}} { - {{#allVars}} - {{^isInherited}} - {{#required}} - {{^isNullable}} - if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null) - throw new ArgumentNullException("{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} is a required property for {{classname}} and cannot be null."); - - {{/isNullable}} - {{/required}} - {{/isInherited}} - {{/allVars}} - {{#composedSchemas.allOf}} - {{^isInherited}} - {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} = {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}; - {{/isInherited}} - {{/composedSchemas.allOf}} {{#composedSchemas.anyOf}} - {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} = {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}}; + {{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}{{^required}}Option{{/required}} = {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}}; {{/composedSchemas.anyOf}} {{#allVars}} + {{^isDiscriminator}} {{^isInherited}} - {{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; + {{name}}{{^required}}Option{{/required}} = {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}}; + {{/isInherited}} + {{#isInherited}} + {{#isNew}} + {{name}}{{^required}}Option{{/required}} = {{#lambda.escape_reserved_word}}{{#lambda.camel_case}}{{name}}{{/lambda.camel_case}}{{/lambda.escape_reserved_word}}; + {{/isNew}} {{/isInherited}} + {{/isDiscriminator}} {{/allVars}} + OnCreated(); } {{/composedSchemas.oneOf}} + partial void OnCreated(); + {{#vars}} {{#items.isEnum}} {{#items}} @@ -104,71 +91,144 @@ {{>modelInnerEnum}} {{/complexType}} {{/isEnum}} + {{^isDiscriminator}} {{#isEnum}} + {{^required}} + /// + /// Used to track the state of {{{name}}} + /// + [JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public {{#isNew}}new {{/isNew}}Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}> {{name}}Option { get; {{^isReadOnly}}private set; {{/isReadOnly}}} + + {{/required}} /// /// {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}} /// {{#description}} /// {{.}} {{/description}} + {{#example}} + /// {{.}} + {{/example}} [JsonPropertyName("{{baseName}}")] {{#deprecated}} [Obsolete] {{/deprecated}} - public {{#isNullable}}{{#required}}{{#lambda.optional}}{{{datatypeWithEnum}}}{{/lambda.optional}}{{/required}}{{/isNullable}}{{^isNullable}}{{^required}}{{#lambda.optional}}{{{datatypeWithEnum}}}{{/lambda.optional}}{{/required}}{{/isNullable}}{{^isNullable}}{{#required}}{{{datatypeWithEnum}}}{{/required}}{{/isNullable}}{{#isNullable}}{{^required}}{{#lambda.optional}}{{{datatypeWithEnum}}}{{/lambda.optional}}{{/required}}{{/isNullable}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } + public {{#isNew}}new {{/isNew}}{{{datatypeWithEnum}}}{{#lambda.first}}{{#isNullable}}{{>NullConditionalProperty}} {{/isNullable}}{{^required}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/required}}{{/lambda.first}} {{name}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{name}}Option; } {{^isReadOnly}}set { this.{{name}}Option = new{{^net70OrLater}} Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}>{{/net70OrLater}}(value); } {{/isReadOnly}}}{{/required}} {{/isEnum}} + {{/isDiscriminator}} {{/vars}} {{#composedSchemas.anyOf}} + {{^vendorExtensions.x-duplicated-data-type}} + {{^required}} + /// + /// Used to track the state of {{{name}}} + /// + [JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public {{#isNew}}new {{/isNew}}Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}> {{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}Option { get; {{^isReadOnly}}private set; {{/isReadOnly}}} + + {{/required}} /// - /// {{description}}{{^description}}Gets or Sets {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}}{{/description}} + /// {{description}}{{^description}}Gets or Sets {{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}{{/description}} /// {{#description}} /// {{.}}{{/description}} + {{#example}} + /// {{.}} + {{/example}} {{#deprecated}} [Obsolete] {{/deprecated}} - public {{{dataType}}}{{#isNullable}}{{nrt?}}{{/isNullable}} {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } + public {{{datatypeWithEnum}}}{{#lambda.first}}{{#isNullable}}{{>NullConditionalProperty}} {{/isNullable}}{{^required}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/required}}{{/lambda.first}} {{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}Option; } {{^isReadOnly}}set { this.{{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}Option = new{{^net70OrLater}} Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}>{{/net70OrLater}}(value); } {{/isReadOnly}}}{{/required}} + {{/vendorExtensions.x-duplicated-data-type}} {{/composedSchemas.anyOf}} {{#composedSchemas.oneOf}} + {{^vendorExtensions.x-duplicated-data-type}} /// - /// {{description}}{{^description}}Gets or Sets {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}}{{/description}} + /// {{description}}{{^description}}Gets or Sets {{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}{{/description}} /// {{#description}} /// {{.}}{{/description}} + {{#example}} + /// {{.}} + {{/example}} {{#deprecated}} [Obsolete] {{/deprecated}} - public {{{dataType}}}{{#isNullable}}{{nrt?}}{{/isNullable}} {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } + public {{{dataType}}}{{>NullConditionalProperty}} {{#lambda.titlecase}}{{name}}{{/lambda.titlecase}} { get; {{^isReadOnly}}set; {{/isReadOnly}}} + {{/vendorExtensions.x-duplicated-data-type}} {{/composedSchemas.oneOf}} - {{#composedSchemas.allOf}} - {{^isInherited}} + {{#allVars}} + {{#isDiscriminator}} + {{^model.composedSchemas.anyOf}} + {{^model.composedSchemas.oneOf}} /// - /// {{description}}{{^description}}Gets or Sets {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}}{{/description}} + /// The discriminator + /// + [JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public {{#isNew}}new {{/isNew}}{{datatypeWithEnum}} {{name}} { get; } = {{^isNew}}"{{classname}}"{{/isNew}}{{#isNew}}{{^isEnum}}"{{classname}}"{{/isEnum}}{{#isEnum}}({{datatypeWithEnum}})Enum.Parse(typeof({{datatypeWithEnum}}), "{{classname}}"){{/isEnum}}{{/isNew}}; + + {{/model.composedSchemas.oneOf}} + {{/model.composedSchemas.anyOf}} + {{/isDiscriminator}} + {{^isDiscriminator}} + {{^isEnum}} + {{#isInherited}} + {{#isNew}} + {{^required}} + /// + /// Used to track the state of {{{name}}} + /// + [JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public new Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}> {{name}}Option { get; {{^isReadOnly}}private set; {{/isReadOnly}}} + + {{/required}} + /// + /// {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}} /// {{#description}} /// {{.}}{{/description}} + {{#example}} + /// {{.}} + {{/example}} + [JsonPropertyName("{{baseName}}")] {{#deprecated}} [Obsolete] {{/deprecated}} - public {{{dataType}}} {{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } + public new {{{datatypeWithEnum}}}{{#lambda.first}}{{#isNullable}}{{>NullConditionalProperty}} {{/isNullable}}{{^required}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/required}}{{/lambda.first}} {{name}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{name}}Option } {{^isReadOnly}}set { this.{{name}}Option = new{{^net70OrLater}} Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}>{{/net70OrLater}}(value); } {{/isReadOnly}}}{{/required}} + {{/isNew}} {{/isInherited}} - {{/composedSchemas.allOf}} - {{#allVars}} {{^isInherited}} - {{^isEnum}} + {{^required}} + /// + /// Used to track the state of {{{name}}} + /// + [JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}> {{name}}Option { get; {{^isReadOnly}}private set; {{/isReadOnly}}} + + {{/required}} /// /// {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}} /// {{#description}} /// {{.}}{{/description}} + {{#example}} + /// {{.}} + {{/example}} [JsonPropertyName("{{baseName}}")] {{#deprecated}} [Obsolete] {{/deprecated}} - public {{^compulsory}}{{#lambda.optional}}{{{datatypeWithEnum}}}{{/lambda.optional}}{{/compulsory}}{{#compulsory}}{{{datatypeWithEnum}}}{{/compulsory}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } + public {{{datatypeWithEnum}}}{{#lambda.first}}{{#isNullable}}{{>NullConditionalProperty}} {{/isNullable}}{{^required}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/required}}{{/lambda.first}} {{name}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{name}}Option; } {{^isReadOnly}}set { this.{{name}}Option = new{{^net70OrLater}} Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}>{{/net70OrLater}}(value); } {{/isReadOnly}}}{{/required}} - {{/isEnum}} {{/isInherited}} + {{/isEnum}} + {{/isDiscriminator}} {{/allVars}} {{#isAdditionalPropertiesTrue}} {{^parentModel}} @@ -176,7 +236,7 @@ /// Gets or Sets additional properties /// [JsonExtensionData] - public Dictionary AdditionalProperties { get; set; } = new Dictionary(); + public Dictionary AdditionalProperties { get; } = new Dictionary(); {{/parentModel}} {{/isAdditionalPropertiesTrue}} @@ -189,10 +249,12 @@ StringBuilder sb = new StringBuilder(); sb.Append("class {{classname}} {\n"); {{#parent}} - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n"); {{/parent}} {{#vars}} + {{^isDiscriminator}} sb.Append(" {{name}}: ").Append({{name}}).Append("\n"); + {{/isDiscriminator}} {{/vars}} {{#isAdditionalPropertiesTrue}} {{^parentModel}} @@ -202,6 +264,9 @@ sb.Append("}\n"); return sb.ToString(); } + {{#equatable}} + {{#readOnlyVars}} + {{#-first}} /// /// Returns true if objects are equal @@ -230,29 +295,28 @@ {{/useCompareNetObjects}} {{^useCompareNetObjects}} if (input == null) - { return false; - } - return {{#vars}}{{#parent}}base.Equals(input) && {{/parent}}{{^isContainer}} + + return {{#parent}}base.Equals(input) && {{/parent}}{{#readOnlyVars}}{{^isInherited}}{{^isContainer}} ( - this.{{name}} == input.{{name}} || + {{name}} == input.{{name}} || {{^vendorExtensions.x-is-value-type}} - (this.{{name}} != null && - this.{{name}}.Equals(input.{{name}})) + ({{name}} != null && + {{name}}.Equals(input.{{name}})) {{/vendorExtensions.x-is-value-type}} {{#vendorExtensions.x-is-value-type}} - this.{{name}}.Equals(input.{{name}}) + {{name}}.Equals(input.{{name}}) {{/vendorExtensions.x-is-value-type}} ){{^-last}} && {{/-last}}{{/isContainer}}{{#isContainer}} ( - this.{{name}} == input.{{name}} || - {{^vendorExtensions.x-is-value-type}}this.{{name}} != null && + {{name}} == input.{{name}} || + {{^vendorExtensions.x-is-value-type}}{{name}} != null && input.{{name}} != null && - {{/vendorExtensions.x-is-value-type}}this.{{name}}.SequenceEqual(input.{{name}}) - ){{^-last}} && {{/-last}}{{/isContainer}}{{/vars}}{{^vars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/vars}}{{^isAdditionalPropertiesTrue}};{{/isAdditionalPropertiesTrue}} + {{/vendorExtensions.x-is-value-type}}{{name}}.SequenceEqual(input.{{name}}) + ){{^-last}} && {{/-last}}{{/isContainer}}{{/isInherited}}{{/readOnlyVars}}{{^readOnlyVars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/readOnlyVars}}{{^isAdditionalPropertiesTrue}};{{/isAdditionalPropertiesTrue}} {{#isAdditionalPropertiesTrue}} {{^parentModel}} - && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); {{/parentModel}} {{/isAdditionalPropertiesTrue}} {{/useCompareNetObjects}} @@ -272,31 +336,41 @@ {{^parent}} int hashCode = 41; {{/parent}} - {{#vars}} - {{^vendorExtensions.x-is-value-type}} - if (this.{{name}} != null) - { - hashCode = (hashCode * 59) + this.{{name}}.GetHashCode(); - } - {{/vendorExtensions.x-is-value-type}} - {{#vendorExtensions.x-is-value-type}} - hashCode = (hashCode * 59) + this.{{name}}.GetHashCode(); - {{/vendorExtensions.x-is-value-type}} - {{/vars}} + {{#readOnlyVars}} + {{#required}} + {{^isNullable}} + hashCode = (hashCode * 59) + {{name}}.GetHashCode(); + {{/isNullable}} + {{/required}} + {{/readOnlyVars}} + {{#readOnlyVars}} + {{#lambda.copy}} + + if ({{name}} != null) + hashCode = (hashCode * 59) + {{name}}.GetHashCode(); + {{/lambda.copy}} + {{#isNullable}} + {{#lambda.pasteOnce}}{{/lambda.pasteOnce}} + {{/isNullable}} + {{^required}} + {{#lambda.pasteOnce}}{{/lambda.pasteOnce}} + {{/required}} + {{/readOnlyVars}} {{#isAdditionalPropertiesTrue}} {{^parentModel}} - if (this.AdditionalProperties != null) - { - hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); - } + hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode(); {{/parentModel}} {{/isAdditionalPropertiesTrue}} + return hashCode; } } - + {{/-first}} + {{/readOnlyVars}} + {{/equatable}} {{#validatable}} {{^parentModel}} + {{>validatable}} {{/parentModel}} {{/validatable}} diff --git a/sdks/dotnet/templates/libraries/generichost/testInstructions.mustache b/sdks/dotnet/templates/libraries/generichost/testInstructions.mustache new file mode 100644 index 000000000..7bf738e20 --- /dev/null +++ b/sdks/dotnet/templates/libraries/generichost/testInstructions.mustache @@ -0,0 +1,18 @@ +/* ********************************************************************************* +* Follow these manual steps to construct tests. +* This file will not be overwritten. +* ********************************************************************************* +* 1. Navigate to ApiTests.Base.cs and ensure any tokens are being created correctly. +* Take care not to commit credentials to any repository. +* +* 2. Mocking is coordinated by ApiTestsBase#AddApiHttpClients. +* To mock the client, use the generic AddApiHttpClients. +* To mock the server, change the client's BaseAddress. +* +* 3. Locate the test you want below +* - remove the skip property from the Fact attribute +* - set the value of any variables if necessary +* +* 4. Run the tests and ensure they work. +* +*/ \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/httpclient/ApiClient.mustache b/sdks/dotnet/templates/libraries/httpclient/ApiClient.mustache index 866f036e6..9bed800e4 100644 --- a/sdks/dotnet/templates/libraries/httpclient/ApiClient.mustache +++ b/sdks/dotnet/templates/libraries/httpclient/ApiClient.mustache @@ -79,7 +79,7 @@ namespace {{packageName}}.Client public async Task Deserialize(HttpResponseMessage response) { - var result = (T) await Deserialize(response, typeof(T)); + var result = (T) await Deserialize(response, typeof(T)).ConfigureAwait(false); return result; } @@ -91,30 +91,54 @@ namespace {{packageName}}.Client /// Object representation of the JSON string. internal async Task Deserialize(HttpResponseMessage response, Type type) { - IList headers = response.Headers.Select(x => x.Key + "=" + x.Value).ToList(); + IList headers = new List(); + // process response headers, e.g. Access-Control-Allow-Methods + foreach (var responseHeader in response.Headers) + { + headers.Add(responseHeader.Key + "=" + ClientUtils.ParameterToString(responseHeader.Value)); + } + + // process response content headers, e.g. Content-Type + foreach (var responseHeader in response.Content.Headers) + { + headers.Add(responseHeader.Key + "=" + ClientUtils.ParameterToString(responseHeader.Value)); + } + // RFC 2183 & RFC 2616 + var fileNameRegex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$", RegexOptions.IgnoreCase); if (type == typeof(byte[])) // return byte array { - return await response.Content.ReadAsByteArrayAsync(); + return await response.Content.ReadAsByteArrayAsync().ConfigureAwait(false); } else if (type == typeof(FileParameter)) { - return new FileParameter(await response.Content.ReadAsStreamAsync()); + if (headers != null) { + foreach (var header in headers) + { + var match = fileNameRegex.Match(header.ToString()); + if (match.Success) + { + string fileName = ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); + return new FileParameter(fileName, await response.Content.ReadAsStreamAsync().ConfigureAwait(false)); + } + } + } + return new FileParameter(await response.Content.ReadAsStreamAsync().ConfigureAwait(false)); } // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) if (type == typeof(Stream)) { - var bytes = await response.Content.ReadAsByteArrayAsync(); + var bytes = await response.Content.ReadAsByteArrayAsync().ConfigureAwait(false); if (headers != null) { var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath) ? Path.GetTempPath() : _configuration.TempFolderPath; - var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); + foreach (var header in headers) { - var match = regex.Match(header.ToString()); + var match = fileNameRegex.Match(header.ToString()); if (match.Success) { string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); @@ -129,18 +153,18 @@ namespace {{packageName}}.Client if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object { - return DateTime.Parse(await response.Content.ReadAsStringAsync(), null, System.Globalization.DateTimeStyles.RoundtripKind); + return DateTime.Parse(await response.Content.ReadAsStringAsync().ConfigureAwait(false), null, System.Globalization.DateTimeStyles.RoundtripKind); } if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type { - return Convert.ChangeType(await response.Content.ReadAsStringAsync(), type); + return Convert.ChangeType(await response.Content.ReadAsStringAsync().ConfigureAwait(false), type); } // at this point, it must be a model (json) try { - return JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync(), type, _serializerSettings); + return JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync().ConfigureAwait(false), type, _serializerSettings); } catch (Exception e) { @@ -401,7 +425,7 @@ namespace {{packageName}}.Client private async Task> ToApiResponse(HttpResponseMessage response, object responseData, Uri uri) { T result = (T) responseData; - string rawContent = await response.Content.ReadAsStringAsync(); + string rawContent = await response.Content.ReadAsStringAsync().ConfigureAwait(false); var transformed = new ApiResponse(response.StatusCode, new Multimap({{#caseInsensitiveResponseHeaders}}StringComparer.OrdinalIgnoreCase{{/caseInsensitiveResponseHeaders}}), result, rawContent) { @@ -514,10 +538,10 @@ namespace {{packageName}}.Client if (!response.IsSuccessStatusCode) { - return await ToApiResponse(response, default(T), req.RequestUri); + return await ToApiResponse(response, default(T), req.RequestUri).ConfigureAwait(false); } - object responseData = await deserializer.Deserialize(response); + object responseData = await deserializer.Deserialize(response).ConfigureAwait(false); // if the response type is oneOf/anyOf, call FromJSON to deserialize the data if (typeof({{{packageName}}}.{{modelPackage}}.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) @@ -526,12 +550,21 @@ namespace {{packageName}}.Client } else if (typeof(T).Name == "Stream") // for binary response { - responseData = (T) (object) await response.Content.ReadAsStreamAsync(); + responseData = (T) (object) await response.Content.ReadAsStreamAsync().ConfigureAwait(false); } InterceptResponse(req, response); - return await ToApiResponse(response, responseData, req.RequestUri); + return await ToApiResponse(response, responseData, req.RequestUri).ConfigureAwait(false); + } + catch (OperationCanceledException original) + { + if (timeoutTokenSource != null && timeoutTokenSource.IsCancellationRequested) + { + throw new TaskCanceledException($"[{req.Method}] {req.RequestUri} was timeout.", + new TimeoutException(original.Message, original)); + } + throw; } finally { diff --git a/sdks/dotnet/templates/libraries/httpclient/RequestOptions.mustache b/sdks/dotnet/templates/libraries/httpclient/RequestOptions.mustache index 62859649c..25e76d03d 100644 --- a/sdks/dotnet/templates/libraries/httpclient/RequestOptions.mustache +++ b/sdks/dotnet/templates/libraries/httpclient/RequestOptions.mustache @@ -25,7 +25,7 @@ namespace {{packageName}}.Client public Multimap QueryParameters { get; set; } /// - /// Header parameters to be applied to to the request. + /// Header parameters to be applied to the request. /// Keys may have 1 or more values associated. /// public Multimap HeaderParameters { get; set; } diff --git a/sdks/dotnet/templates/libraries/httpclient/api.mustache b/sdks/dotnet/templates/libraries/httpclient/api.mustache index c0d49570a..22c8fd0c3 100644 --- a/sdks/dotnet/templates/libraries/httpclient/api.mustache +++ b/sdks/dotnet/templates/libraries/httpclient/api.mustache @@ -605,6 +605,12 @@ namespace {{packageName}}.{{apiPackage}} var localVarAccept = {{packageName}}.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + {{#constantParams}} + {{#isPathParam}} + // Set client side default value of Path Param "{{baseName}}". + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{#_enum}}"{{{.}}}"{{/_enum}})); // Constant path parameter + {{/isPathParam}} + {{/constantParams}} {{#pathParams}} {{#required}} localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter @@ -616,6 +622,12 @@ namespace {{packageName}}.{{apiPackage}} } {{/required}} {{/pathParams}} + {{#constantParams}} + {{#isQueryParam}} + // Set client side default value of Query Param "{{baseName}}". + localVarRequestOptions.QueryParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{#_enum}}"{{{.}}}"{{/_enum}})); // Constant query parameter + {{/isQueryParam}} + {{/constantParams}} {{#queryParams}} {{#required}} localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}})); @@ -627,6 +639,12 @@ namespace {{packageName}}.{{apiPackage}} } {{/required}} {{/queryParams}} + {{#constantParams}} + {{#isHeaderParam}} + // Set client side default value of Header Param "{{baseName}}". + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{#_enum}}"{{{.}}}"{{/_enum}})); // Constant header parameter + {{/isHeaderParam}} + {{/constantParams}} {{#headerParams}} {{#required}} localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/ApiClient.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/ApiClient.mustache new file mode 100644 index 000000000..908c829f5 --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/ApiClient.mustache @@ -0,0 +1,639 @@ +{{>partial_header}} + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Net; +using System.Reflection; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters; +using System.Text; +using System.Threading; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using Newtonsoft.Json; +using Newtonsoft.Json.Serialization; +using ErrorEventArgs = Newtonsoft.Json.Serialization.ErrorEventArgs; +using System.Net.Http; +using System.Net.Http.Headers; +using UnityEngine.Networking; +using UnityEngine; + +namespace {{packageName}}.Client +{ + /// + /// To Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. + /// + internal class CustomJsonCodec + { + private readonly IReadableConfiguration _configuration; + private static readonly string _contentType = "application/json"; + private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + public CustomJsonCodec(IReadableConfiguration configuration) + { + _configuration = configuration; + } + + public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) + { + _serializerSettings = serializerSettings; + _configuration = configuration; + } + + /// + /// Serialize the object into a JSON string. + /// + /// Object to be serialized. + /// A JSON string. + public string Serialize(object obj) + { + if (obj != null && obj is {{{packageName}}}.{{modelPackage}}.AbstractOpenAPISchema) + { + // the object to be serialized is an oneOf/anyOf schema + return (({{{packageName}}}.{{modelPackage}}.AbstractOpenAPISchema)obj).ToJson(); + } + else + { + return JsonConvert.SerializeObject(obj, _serializerSettings); + } + } + + public T Deserialize(UnityWebRequest request) + { + var result = (T) Deserialize(request, typeof(T)); + return result; + } + + /// + /// Deserialize the JSON string into a proper object. + /// + /// The UnityWebRequest after it has a response. + /// Object type. + /// Object representation of the JSON string. + internal object Deserialize(UnityWebRequest request, Type type) + { + if (type == typeof(byte[])) // return byte array + { + return request.downloadHandler.data; + } + + // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) + if (type == typeof(Stream)) + { + // NOTE: Ignoring Content-Disposition filename support, since not all platforms + // have a location on disk to write arbitrary data (tvOS, consoles). + return new MemoryStream(request.downloadHandler.data); + } + + if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object + { + return DateTime.Parse(request.downloadHandler.text, null, System.Globalization.DateTimeStyles.RoundtripKind); + } + + if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type + { + return Convert.ChangeType(request.downloadHandler.text, type); + } + + var contentType = request.GetResponseHeader("Content-Type"); + + if (!string.IsNullOrEmpty(contentType) && contentType.Contains("application/json")) + { + var text = request.downloadHandler?.text; + + // Generated APIs that don't expect a return value provide System.Object as the type + if (type == typeof(System.Object) && (string.IsNullOrEmpty(text) || text.Trim() == "null")) + { + return null; + } + + if (request.responseCode >= 200 && request.responseCode < 300) + { + try + { + // Deserialize as a model + return JsonConvert.DeserializeObject(text, type, _serializerSettings); + } + catch (Exception e) + { + throw new UnexpectedResponseException(request, type, e.ToString()); + } + } + else + { + throw new ApiException((int)request.responseCode, request.error, text); + } + } + + if (type != typeof(System.Object) && request.responseCode >= 200 && request.responseCode < 300) + { + throw new UnexpectedResponseException(request, type); + } + + return null; + + } + + public string RootElement { get; set; } + public string Namespace { get; set; } + public string DateFormat { get; set; } + + public string ContentType + { + get { return _contentType; } + set { throw new InvalidOperationException("Not allowed to set content type."); } + } + } + /// + /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), + /// encapsulating general REST accessor use cases. + /// + /// + /// The Dispose method will manage the HttpClient lifecycle when not passed by constructor. + /// + {{>visibility}} partial class ApiClient : IDisposable, ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}} + { + private readonly string _baseUrl; + + /// + /// Specifies the settings on a object. + /// These settings can be adjusted to accommodate custom serialization rules. + /// + public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Initializes a new instance of the , defaulting to the global configurations' base url. + /// + public ApiClient() : + this({{packageName}}.Client.GlobalConfiguration.Instance.BasePath) + { + } + + /// + /// Initializes a new instance of the . + /// + /// The target service's base path in URL format. + /// + public ApiClient(string basePath) + { + if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty"); + + _baseUrl = basePath; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + } + + /// + /// Provides all logic for constructing a new UnityWebRequest. + /// At this point, all information for querying the service is known. Here, it is simply + /// mapped into the UnityWebRequest. + /// + /// The http verb. + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// [private] A new UnityWebRequest instance. + /// + private UnityWebRequest NewRequest( + string method, + string path, + RequestOptions options, + IReadableConfiguration configuration) + { + if (path == null) throw new ArgumentNullException("path"); + if (options == null) throw new ArgumentNullException("options"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + WebRequestPathBuilder builder = new WebRequestPathBuilder(_baseUrl, path); + + builder.AddPathParameters(options.PathParameters); + + builder.AddQueryParameters(options.QueryParameters); + + string contentType = null; + if (options.HeaderParameters != null && options.HeaderParameters.ContainsKey("Content-Type")) + { + var contentTypes = options.HeaderParameters["Content-Type"]; + contentType = contentTypes.FirstOrDefault(); + } + + var uri = builder.GetFullUri(); + UnityWebRequest request = null; + + if (contentType == "multipart/form-data") + { + var formData = new List(); + foreach (var formParameter in options.FormParameters) + { + formData.Add(new MultipartFormDataSection(formParameter.Key, formParameter.Value)); + } + + request = UnityWebRequest.Post(uri, formData); + request.method = method; + } + else if (contentType == "application/x-www-form-urlencoded") + { + var form = new WWWForm(); + foreach (var kvp in options.FormParameters) + { + form.AddField(kvp.Key, kvp.Value); + } + + request = UnityWebRequest.Post(uri, form); + request.method = method; + } + else if (options.Data != null) + { + var serializer = new CustomJsonCodec(SerializerSettings, configuration); + var jsonData = serializer.Serialize(options.Data); + + // Making a post body application/json encoded is whack with UnityWebRequest. + // See: https://stackoverflow.com/questions/68156230/unitywebrequest-post-not-sending-body + request = UnityWebRequest.Put(uri, jsonData); + request.method = method; + request.SetRequestHeader("Content-Type", "application/json"); + } + else + { + request = new UnityWebRequest(builder.GetFullUri(), method); + } + + if (request.downloadHandler == null && typeof(T) != typeof(System.Object)) + { + request.downloadHandler = new DownloadHandlerBuffer(); + } + +#if UNITY_EDITOR || !UNITY_WEBGL + if (configuration.UserAgent != null) + { + request.SetRequestHeader("User-Agent", configuration.UserAgent); + } +#endif + + if (configuration.DefaultHeaders != null) + { + foreach (var headerParam in configuration.DefaultHeaders) + { + request.SetRequestHeader(headerParam.Key, headerParam.Value); + } + } + + if (options.HeaderParameters != null) + { + foreach (var headerParam in options.HeaderParameters) + { + foreach (var value in headerParam.Value) + { + // Todo make content headers actually content headers + request.SetRequestHeader(headerParam.Key, value); + } + } + } + + if (options.Cookies != null && options.Cookies.Count > 0) + { + #if UNITY_WEBGL + throw new System.InvalidOperationException("UnityWebRequest does not support setting cookies in WebGL"); + #else + if (options.Cookies.Count != 1) + { + UnityEngine.Debug.LogError("Only one cookie supported, ignoring others"); + } + + request.SetRequestHeader("Cookie", options.Cookies[0].ToString()); + #endif + } + + return request; + + } + + partial void InterceptRequest(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration); + partial void InterceptResponse(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration, ref object responseData); + + private ApiResponse ToApiResponse(UnityWebRequest request, object responseData) + { + T result = (T) responseData; + + var transformed = new ApiResponse((HttpStatusCode)request.responseCode, new Multimap({{#caseInsensitiveResponseHeaders}}StringComparer.OrdinalIgnoreCase{{/caseInsensitiveResponseHeaders}}), result, request.downloadHandler?.text ?? "") + { + ErrorText = request.error, + Cookies = new List() + }; + + // process response headers, e.g. Access-Control-Allow-Methods + var responseHeaders = request.GetResponseHeaders(); + if (responseHeaders != null) + { + foreach (var responseHeader in request.GetResponseHeaders()) + { + transformed.Headers.Add(responseHeader.Key, ClientUtils.ParameterToString(responseHeader.Value)); + } + } + + return transformed; + } + + private async Task> ExecAsync( + UnityWebRequest request, + string path, + RequestOptions options, + IReadableConfiguration configuration, + System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var deserializer = new CustomJsonCodec(SerializerSettings, configuration); + + using (request) + { + if (configuration.Timeout > 0) + { + request.timeout = (int)Math.Ceiling(configuration.Timeout / 1000.0f); + } + + if (configuration.Proxy != null) + { + throw new InvalidOperationException("Configuration `Proxy` not supported by UnityWebRequest"); + } + + if (configuration.ClientCertificates != null) + { + // Only Android/iOS/tvOS/Standalone players can support certificates, and this + // implementation is intended to work on all platforms. + // + // TODO: Could optionally allow support for this on these platforms. + // + // See: https://docs.unity3d.com/ScriptReference/Networking.CertificateHandler.html + throw new InvalidOperationException("Configuration `ClientCertificates` not supported by UnityWebRequest on all platforms"); + } + + InterceptRequest(request, path, options, configuration); + + var asyncOp = request.SendWebRequest(); + + TaskCompletionSource tsc = new TaskCompletionSource(); + asyncOp.completed += (_) => tsc.TrySetResult(request.result); + + using (var tokenRegistration = cancellationToken.Register(request.Abort, true)) + { + await tsc.Task; + } + + if (request.result == UnityWebRequest.Result.ConnectionError || + request.result == UnityWebRequest.Result.DataProcessingError) + { + throw new ConnectionException(request); + } + + object responseData = deserializer.Deserialize(request); + + // if the response type is oneOf/anyOf, call FromJSON to deserialize the data + if (typeof({{{packageName}}}.{{modelPackage}}.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + { + responseData = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { new ByteArrayContent(request.downloadHandler.data) }); + } + else if (typeof(T).Name == "Stream") // for binary response + { + responseData = (T) (object) new MemoryStream(request.downloadHandler.data); + } + + InterceptResponse(request, path, options, configuration, ref responseData); + + return ToApiResponse(request, responseData); + } + } + + {{#supportsAsync}} + #region IAsynchronousClient + /// + /// Make a HTTP GET request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("GET", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP POST request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("POST", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP PUT request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("PUT", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP DELETE request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("DELETE", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP HEAD request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("HEAD", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP OPTION request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("OPTIONS", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP PATCH request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("PATCH", path, options, config), path, options, config, cancellationToken); + } + #endregion IAsynchronousClient + {{/supportsAsync}} + + #region ISynchronousClient + /// + /// Make a HTTP GET request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP POST request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP PUT request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP DELETE request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP HEAD request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP OPTION request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP PATCH request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + #endregion ISynchronousClient + } +} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/ConnectionException.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/ConnectionException.mustache new file mode 100644 index 000000000..108ea3bf5 --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/ConnectionException.mustache @@ -0,0 +1,21 @@ +{{>partial_header}} + +using System; +using UnityEngine.Networking; + +namespace {{packageName}}.Client +{ + public class ConnectionException : Exception + { + public UnityWebRequest.Result Result { get; private set; } + public string Error { get; private set; } + + // NOTE: Cannot keep reference to the request since it will be disposed. + public ConnectionException(UnityWebRequest request) + : base($"result={request.result} error={request.error}") + { + Result = request.result; + Error = request.error ?? ""; + } + } +} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/README.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/README.mustache new file mode 100644 index 000000000..b0a140dd6 --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/README.mustache @@ -0,0 +1,175 @@ +# {{packageName}} - the C# library for the {{appName}} + +{{#appDescriptionWithNewLines}} +{{{.}}} +{{/appDescriptionWithNewLines}} + +This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: {{appVersion}} +- SDK version: {{packageVersion}} +{{^hideGenerationTimestamp}} +- Build date: {{generatedDate}} +{{/hideGenerationTimestamp}} +- Generator version: {{generatorVersion}} +- Build package: {{generatorClass}} +{{#infoUrl}} + For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) +{{/infoUrl}} + + +## Version support +This generator should support all current LTS versions of Unity +- Unity 2020.3 (LTS) and up +- .NET Standard 2.1 / .NET Framework + + +## Dependencies + +- [Newtonsoft.Json](https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@3.0/manual/index.html) - 3.0.2 or later +- [Unity Test Framework](https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/index.html) - 1.1.33 or later + + +## Installation +Add the dependencies to `Packages/manifest.json` +``` +{ + "dependencies": { + ... + "com.unity.nuget.newtonsoft-json": "3.0.2", + "com.unity.test-framework": "1.1.33", + } +} +``` + +Then use the namespaces: +```csharp +using {{packageName}}.{{apiPackage}}; +using {{packageName}}.Client; +using {{packageName}}.{{modelPackage}}; +``` + + +## Getting Started + +```csharp +using System; +using System.Collections.Generic; +using UnityEngine; +using {{packageName}}.{{apiPackage}}; +using {{packageName}}.Client; +using {{packageName}}.{{modelPackage}}; + +namespace {{packageName}}Example +{ +{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}} + public class {{operationId}}Example : MonoBehaviour + { + async void Start() + { + Configuration config = new Configuration(); + config.BasePath = "{{{basePath}}}"; + {{#hasAuthMethods}} + {{#authMethods}} + {{#isBasicBasic}} + // Configure HTTP basic authorization: {{{name}}} + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + {{/isBasicBasic}} + {{#isBasicBearer}} + // Configure Bearer token for authorization: {{{name}}} + config.AccessToken = "YOUR_BEARER_TOKEN"; + {{/isBasicBearer}} + {{#isApiKey}} + // Configure API key authorization: {{{name}}} + config.ApiKey.Add("{{{keyParamName}}}", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.ApiKeyPrefix.Add("{{{keyParamName}}}", "Bearer"); + {{/isApiKey}} + {{#isOAuth}} + // Configure OAuth2 access token for authorization: {{{name}}} + config.AccessToken = "YOUR_ACCESS_TOKEN"; + {{/isOAuth}} + {{/authMethods}} + + {{/hasAuthMethods}} + var apiInstance = new {{classname}}(config); + {{#allParams}} + {{#isPrimitiveType}} + var {{paramName}} = {{{example}}}; // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/isPrimitiveType}} + {{^isPrimitiveType}} + var {{paramName}} = new {{{dataType}}}(); // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/isPrimitiveType}} + {{/allParams}} + + try + { + {{#summary}} + // {{{.}}} + {{/summary}} + {{#returnType}}{{{.}}} result = {{/returnType}}await apiInstance.{{{operationId}}}Async({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} + Debug.Log(result);{{/returnType}} + Debug.Log("Done!"); + } + catch (ApiException e) + { + Debug.LogError("Exception when calling {{classname}}.{{operationId}}: " + e.Message ); + Debug.LogError("Status Code: "+ e.ErrorCode); + Debug.LogError(e.StackTrace); + } +{{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}} + } + } +} +``` + + +## Documentation for API Endpoints + +All URIs are relative to *{{{basePath}}}* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{{summary}}} +{{/operation}}{{/operations}}{{/apis}}{{/apiInfo}} + + +## Documentation for Models + +{{#modelPackage}} +{{#models}}{{#model}} - [{{{modelPackage}}}.{{{classname}}}]({{modelDocPath}}{{{classname}}}.md) +{{/model}}{{/models}} +{{/modelPackage}} +{{^modelPackage}} +No model defined in this package +{{/modelPackage}} + + +## Documentation for Authorization + +{{^authMethods}}Endpoints do not require authorization.{{/authMethods}} +{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}} +{{#authMethods}} + +### {{name}} + +{{#isApiKey}}- **Type**: API key +- **API key parameter name**: {{keyParamName}} +- **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}} +{{/isApiKey}} +{{#isBasicBasic}}- **Type**: HTTP basic authentication +{{/isBasicBasic}} +{{#isBasicBearer}}- **Type**: Bearer Authentication +{{/isBasicBearer}} +{{#isHttpSignature}}- **Type**: HTTP signature authentication +{{/isHttpSignature}} +{{#isOAuth}}- **Type**: OAuth +- **Flow**: {{flow}} +- **Authorization URL**: {{authorizationUrl}} +- **Scopes**: {{^scopes}}N/A{{/scopes}} +{{#scopes}} - {{scope}}: {{description}} +{{/scopes}} +{{/isOAuth}} + +{{/authMethods}} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/RequestOptions.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/RequestOptions.mustache new file mode 100644 index 000000000..0dd18c4ed --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/RequestOptions.mustache @@ -0,0 +1,60 @@ +{{>partial_header}} + +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; + +namespace {{packageName}}.Client +{ + /// + /// A container for generalized request inputs. This type allows consumers to extend the request functionality + /// by abstracting away from the default (built-in) request framework (e.g. RestSharp). + /// + public class RequestOptions + { + /// + /// Parameters to be bound to path parts of the Request's URL + /// + public Dictionary PathParameters { get; set; } + + /// + /// Query parameters to be applied to the request. + /// Keys may have 1 or more values associated. + /// + public Multimap QueryParameters { get; set; } + + /// + /// Header parameters to be applied to to the request. + /// Keys may have 1 or more values associated. + /// + public Multimap HeaderParameters { get; set; } + + /// + /// Form parameters to be sent along with the request. + /// + public Dictionary FormParameters { get; set; } + + /// + /// Cookies to be sent along with the request. + /// + public List Cookies { get; set; } + + /// + /// Any data associated with a request body. + /// + public Object Data { get; set; } + + /// + /// Constructs a new instance of + /// + public RequestOptions() + { + PathParameters = new Dictionary(); + QueryParameters = new Multimap(); + HeaderParameters = new Multimap(); + FormParameters = new Dictionary(); + Cookies = new List(); + } + } +} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/UnexpectedResponseException.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/UnexpectedResponseException.mustache new file mode 100644 index 000000000..a976b2a76 --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/UnexpectedResponseException.mustache @@ -0,0 +1,26 @@ +{{>partial_header}} + +using System; +using UnityEngine.Networking; + +namespace {{packageName}}.Client +{ + // Thrown when a backend doesn't return an expected response based on the expected type + // of the response data. + public class UnexpectedResponseException : Exception + { + public int ErrorCode { get; private set; } + + // NOTE: Cannot keep reference to the request since it will be disposed. + public UnexpectedResponseException(UnityWebRequest request, System.Type type, string extra = "") + : base(CreateMessage(request, type, extra)) + { + ErrorCode = (int)request.responseCode; + } + + private static string CreateMessage(UnityWebRequest request, System.Type type, string extra) + { + return $"httpcode={request.responseCode}, expected {type.Name} but got data: {extra}"; + } + } +} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/api.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/api.mustache new file mode 100644 index 000000000..6b0a5883d --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/api.mustache @@ -0,0 +1,690 @@ +{{>partial_header}} + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using {{packageName}}.Client; +{{#hasImport}}using {{packageName}}.{{modelPackage}}; +{{/hasImport}} + +namespace {{packageName}}.{{apiPackage}} +{ + {{#operations}} + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + {{>visibility}} interface {{interfacePrefix}}{{classname}}Sync : IApiAccessor + { + #region Synchronous Operations + {{#operation}} + /// + /// {{summary}} + /// + {{#notes}} + /// + /// {{.}} + /// + {{/notes}} + /// Thrown when fails to make API call + {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} + {{/allParams}}/// {{returnType}} + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + {{{returnType}}}{{^returnType}}void{{/returnType}} {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}); + + /// + /// {{summary}} + /// + /// + /// {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} + {{/allParams}}/// ApiResponse of {{returnType}}{{^returnType}}Object(void){{/returnType}} + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}); + {{/operation}} + #endregion Synchronous Operations + } + + {{#supportsAsync}} + /// + /// Represents a collection of functions to interact with the API endpoints + /// + {{>visibility}} interface {{interfacePrefix}}{{classname}}Async : IApiAccessor + { + #region Asynchronous Operations + {{#operation}} + /// + /// {{summary}} + /// + /// + /// {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} + {{/allParams}} + /// Cancellation Token to cancel the request. + /// Task of {{returnType}}{{^returnType}}void{{/returnType}} + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + {{#returnType}}System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// {{summary}} + /// + /// + /// {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} + {{/allParams}} + /// Cancellation Token to cancel the request. + /// Task of ApiResponse{{#returnType}} ({{.}}){{/returnType}} + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + {{/operation}} + #endregion Asynchronous Operations + } + {{/supportsAsync}} + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + {{>visibility}} interface {{interfacePrefix}}{{classname}} : {{interfacePrefix}}{{classname}}Sync{{#supportsAsync}}, {{interfacePrefix}}{{classname}}Async{{/supportsAsync}} + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + {{>visibility}} partial class {{classname}} : IDisposable, {{interfacePrefix}}{{classname}} + { + private {{packageName}}.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public {{classname}}() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public {{classname}}(string basePath) + { + this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations( + {{packageName}}.Client.GlobalConfiguration.Instance, + new {{packageName}}.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new {{packageName}}.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + {{#supportsAsync}} + this.AsynchronousClient = this.ApiClient; + {{/supportsAsync}} + this.ExceptionFactory = {{packageName}}.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public {{classname}}({{packageName}}.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations( + {{packageName}}.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new {{packageName}}.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + {{#supportsAsync}} + this.AsynchronousClient = this.ApiClient; + {{/supportsAsync}} + ExceptionFactory = {{packageName}}.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access.{{#supportsAsync}} + /// The client interface for asynchronous API access.{{/supportsAsync}} + /// The configuration object. + /// + public {{classname}}({{packageName}}.Client.ISynchronousClient client, {{#supportsAsync}}{{packageName}}.Client.IAsynchronousClient asyncClient, {{/supportsAsync}}{{packageName}}.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + {{#supportsAsync}} + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + {{/supportsAsync}} + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + {{#supportsAsync}} + this.AsynchronousClient = asyncClient; + {{/supportsAsync}} + this.Configuration = configuration; + this.ExceptionFactory = {{packageName}}.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public {{packageName}}.Client.ApiClient ApiClient { get; set; } = null; + + {{#supportsAsync}} + /// + /// The client for accessing this underlying API asynchronously. + /// + public {{packageName}}.Client.IAsynchronousClient AsynchronousClient { get; set; } + {{/supportsAsync}} + + /// + /// The client for accessing this underlying API synchronously. + /// + public {{packageName}}.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public {{packageName}}.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public {{packageName}}.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + {{#operation}} + /// + /// {{summary}} {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} + {{/allParams}}/// {{returnType}} + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + public {{{returnType}}}{{^returnType}}void{{/returnType}} {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) + { + {{#returnType}}{{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + return localVarResponse.Data;{{/returnType}}{{^returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{/returnType}} + } + + /// + /// {{summary}} {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} + {{/allParams}}/// ApiResponse of {{returnType}}{{^returnType}}Object(void){{/returnType}} + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + public {{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) + { + {{#allParams}} + {{#required}} + {{^vendorExtensions.x-csharp-value-type}} + // verify the required parameter '{{paramName}}' is set + if ({{paramName}} == null) + throw new {{packageName}}.Client.ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}"); + + {{/vendorExtensions.x-csharp-value-type}} + {{/required}} + {{/allParams}} + {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + {{#consumes}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/consumes}} + }; + + // to determine the Accept header + string[] _accepts = new string[] { + {{#produces}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/produces}} + }; + + var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = {{packageName}}.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + {{#pathParams}} + {{#required}} + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter + } + {{/required}} + {{/pathParams}} + {{#queryParams}} + {{#required}} + {{#isDeepObject}} + {{#items.vars}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}}.{{name}})); + {{/items.vars}} + {{^items}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("deepObject", "{{baseName}}", {{paramName}})); + {{/items}} + {{/isDeepObject}} + {{^isDeepObject}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}})); + {{/isDeepObject}} + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + {{#isDeepObject}} + {{#items.vars}} + if ({{paramName}}.{{name}} != null) + { + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}}.{{name}})); + } + {{/items.vars}} + {{^items}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("deepObject", "{{baseName}}", {{paramName}})); + {{/items}} + {{/isDeepObject}} + {{^isDeepObject}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}})); + {{/isDeepObject}} + } + {{/required}} + {{/queryParams}} + {{#headerParams}} + {{#required}} + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter + } + {{/required}} + {{/headerParams}} + {{#formParams}} + {{#required}} + {{#isFile}} + {{/isFile}} + {{^isFile}} + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + {{/isFile}} + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + {{#isFile}} + {{/isFile}} + {{^isFile}} + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + {{/isFile}} + } + {{/required}} + {{/formParams}} + {{#bodyParam}} + localVarRequestOptions.Data = {{paramName}}; + {{/bodyParam}} + + {{#authMethods}} + // authentication ({{name}}) required + {{#isApiKey}} + {{#isKeyInCookie}} + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); + } + {{/isKeyInCookie}} + {{#isKeyInHeader}} + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")); + } + {{/isKeyInHeader}} + {{#isKeyInQuery}} + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); + } + {{/isKeyInQuery}} + {{/isApiKey}} + {{#isBasicBasic}} + // http basic authentication required + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + {{/isBasicBasic}} + {{#isBasicBearer}} + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + {{/isBasicBearer}} + {{#isOAuth}} + // oauth required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + {{/isOAuth}} + {{#isHttpSignature}} + if (this.Configuration.HttpSigningConfiguration != null) + { + var HttpSigningHeaders = this.Configuration.HttpSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "{{{httpMethod}}}", "{{{path}}}", localVarRequestOptions); + foreach (var headerItem in HttpSigningHeaders) + { + if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key)) + { + localVarRequestOptions.HeaderParameters[headerItem.Key] = new List() { headerItem.Value }; + } + else + { + localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value); + } + } + } + {{/isHttpSignature}} + {{/authMethods}} + + // make the HTTP request + var localVarResponse = this.Client.{{#lambda.titlecase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.titlecase}}<{{{returnType}}}{{^returnType}}Object{{/returnType}}>("{{{path}}}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("{{operationId}}", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + {{#supportsAsync}} + /// + /// {{summary}} {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} + {{/allParams}} + /// Cancellation Token to cancel the request. + /// Task of {{returnType}}{{^returnType}}void{{/returnType}} + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + {{#returnType}}public async System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var task = {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken); + {{#returnType}} +#if UNITY_EDITOR || !UNITY_WEBGL + {{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = await task.ConfigureAwait(false); +#else + {{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = await task; +#endif + return localVarResponse.Data; + {{/returnType}} + {{^returnType}} +#if UNITY_EDITOR || !UNITY_WEBGL + await task.ConfigureAwait(false); +#else + await task; +#endif + {{/returnType}} + } + + /// + /// {{summary}} {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} + {{/allParams}} + /// Cancellation Token to cancel the request. + /// Task of ApiResponse{{#returnType}} ({{.}}){{/returnType}} + {{#isDeprecated}} + [Obsolete] + {{/isDeprecated}} + public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + {{#allParams}} + {{#required}} + {{^vendorExtensions.x-csharp-value-type}} + // verify the required parameter '{{paramName}}' is set + if ({{paramName}} == null) + throw new {{packageName}}.Client.ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}"); + + {{/vendorExtensions.x-csharp-value-type}} + {{/required}} + {{/allParams}} + + {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + {{#consumes}} + "{{{mediaType}}}"{{^-last}}, {{/-last}} + {{/consumes}} + }; + + // to determine the Accept header + string[] _accepts = new string[] { + {{#produces}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/produces}} + }; + + + var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = {{packageName}}.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + {{#pathParams}} + {{#required}} + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter + } + {{/required}} + {{/pathParams}} + {{#queryParams}} + {{#required}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}})); + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{collectionFormat}}", "{{baseName}}", {{paramName}})); + } + {{/required}} + {{/queryParams}} + {{#headerParams}} + {{#required}} + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter + } + {{/required}} + {{/headerParams}} + {{#formParams}} + {{#required}} + {{#isFile}} + {{/isFile}} + {{^isFile}} + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + {{/isFile}} + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + {{#isFile}} + {{/isFile}} + {{^isFile}} + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + {{/isFile}} + } + {{/required}} + {{/formParams}} + {{#bodyParam}} + localVarRequestOptions.Data = {{paramName}}; + {{/bodyParam}} + + {{#authMethods}} + // authentication ({{name}}) required + {{#isApiKey}} + {{#isKeyInCookie}} + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); + } + {{/isKeyInCookie}} + {{#isKeyInHeader}} + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")); + } + {{/isKeyInHeader}} + {{#isKeyInQuery}} + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); + } + {{/isKeyInQuery}} + {{/isApiKey}} + {{#isBasic}} + {{#isBasicBasic}} + // http basic authentication required + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + {{/isBasicBasic}} + {{#isBasicBearer}} + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + {{/isBasicBearer}} + {{/isBasic}} + {{#isOAuth}} + // oauth required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + {{/isOAuth}} + {{#isHttpSignature}} + if (this.Configuration.HttpSigningConfiguration != null) + { + var HttpSigningHeaders = this.Configuration.HttpSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "{{{httpMethod}}}", "{{{path}}}", localVarRequestOptions); + foreach (var headerItem in HttpSigningHeaders) + { + if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key)) + { + localVarRequestOptions.HeaderParameters[headerItem.Key] = new List() { headerItem.Value }; + } + else + { + localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value); + } + } + } + {{/isHttpSignature}} + {{/authMethods}} + + // make the HTTP request + + var task = this.AsynchronousClient.{{#lambda.titlecase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.titlecase}}Async<{{{returnType}}}{{^returnType}}Object{{/returnType}}>("{{{path}}}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("{{operationId}}", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + {{/supportsAsync}} + {{/operation}} + } + {{/operations}} +} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/api_test.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/api_test.mustache new file mode 100644 index 000000000..0f7f49f7f --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/api_test.mustache @@ -0,0 +1,74 @@ +{{>partial_header}} +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using NUnit.Framework; + +using {{packageName}}.Client; +using {{packageName}}.{{apiPackage}}; +{{#hasImport}} +// uncomment below to import models +//using {{packageName}}.{{modelPackage}}; +{{/hasImport}} + +namespace {{packageName}}.Test.Api +{ + /// + /// Class for testing {{classname}} + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class {{classname}}Tests : IDisposable + { + {{^nonPublicApi}} + private {{classname}} instance; + + {{/nonPublicApi}} + public {{classname}}Tests() + { + {{^nonPublicApi}} + instance = new {{classname}}(); + {{/nonPublicApi}} + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of {{classname}} + /// + [Test] + public void {{operationId}}InstanceTest() + { + // TODO uncomment below to test 'IsType' {{classname}} + //Assert.IsType<{{classname}}>(instance); + } + {{#operations}} + {{#operation}} + + /// + /// Test {{operationId}} + /// + [Test] + public void {{operationId}}Test() + { + // TODO uncomment below to test the method and replace null with proper value + {{#allParams}} + //{{{dataType}}} {{paramName}} = null; + {{/allParams}} + //{{#returnType}}var response = {{/returnType}}instance.{{operationId}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + {{#returnType}} + //Assert.IsType<{{{.}}}>(response); + {{/returnType}} + } + {{/operation}} + {{/operations}} + } +} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/asmdef.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/asmdef.mustache new file mode 100644 index 000000000..a30cba8cc --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/asmdef.mustache @@ -0,0 +1,7 @@ +{ + "name": "{{packageName}}", + "overrideReferences": true, + "precompiledReferences": [ + "Newtonsoft.Json.dll" + ] +} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/asmdef_test.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/asmdef_test.mustache new file mode 100644 index 000000000..c5e2d5852 --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/asmdef_test.mustache @@ -0,0 +1,15 @@ +{ + "name": "{{testPackageName}}", + "references": [ + "{{packageName}}", + "UnityEngine.TestRunner" + ], + "overrideReferences": true, + "precompiledReferences": [ + "nunit.framework.dll", + "Newtonsoft.Json.dll" + ], + "defineConstraints": [ + "UNITY_INCLUDE_TESTS" + ] +} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/model.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/model.mustache new file mode 100644 index 000000000..3c1c6c0e2 --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/model.mustache @@ -0,0 +1,47 @@ +{{>partial_header}} + +{{#models}} +{{#model}} +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +{{#vendorExtensions.x-com-visible}} +using System.Runtime.InteropServices; +{{/vendorExtensions.x-com-visible}} +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +{{/model}} +{{/models}} +{{#validatable}} +using System.ComponentModel.DataAnnotations; +{{/validatable}} +using OpenAPIDateConverter = {{packageName}}.Client.OpenAPIDateConverter; +{{#useCompareNetObjects}} +using OpenAPIClientUtils = {{packageName}}.Client.ClientUtils; +{{/useCompareNetObjects}} +{{#models}} +{{#model}} +{{#oneOf}} +{{#-first}} +using System.Reflection; +{{/-first}} +{{/oneOf}} +{{#anyOf}} +{{#-first}} +using System.Reflection; +{{/-first}} +{{/anyOf}} + +namespace {{packageName}}.{{modelPackage}} +{ +{{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{#oneOf}}{{#-first}}{{>modelOneOf}}{{/-first}}{{/oneOf}}{{#anyOf}}{{#-first}}{{>modelAnyOf}}{{/-first}}{{/anyOf}}{{^oneOf}}{{^anyOf}}{{>modelGeneric}}{{/anyOf}}{{/oneOf}}{{/isEnum}} +{{/model}} +{{/models}} +} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/model_test.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/model_test.mustache new file mode 100644 index 000000000..404623281 --- /dev/null +++ b/sdks/dotnet/templates/libraries/unityWebRequest/model_test.mustache @@ -0,0 +1,64 @@ +{{>partial_header}} + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using {{packageName}}.{{apiPackage}}; +using {{packageName}}.{{modelPackage}}; +using {{packageName}}.{{clientPackage}}; +using System.Reflection; +using Newtonsoft.Json; +using NUnit.Framework; + +{{#models}} +{{#model}} +namespace {{packageName}}.Test.Model +{ + /// + /// Class for testing {{classname}} + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class {{classname}}Tests : IDisposable + { + // TODO uncomment below to declare an instance variable for {{classname}} + //private {{classname}} instance; + + public {{classname}}Tests() + { + // TODO uncomment below to create an instance of {{classname}} + //instance = new {{classname}}(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of {{classname}} + /// + [Test] + public void {{classname}}InstanceTest() + { + // TODO uncomment below to test "IsType" {{classname}} + //Assert.IsType<{{classname}}>(instance); + } + + {{#vars}} + /// + /// Test the property '{{name}}' + /// + [Test] + public void {{name}}Test() + { + // TODO unit test for the property '{{name}}' + } + {{/vars}} + } +} +{{/model}} +{{/models}} diff --git a/sdks/dotnet/templates/modelAnyOf.mustache b/sdks/dotnet/templates/modelAnyOf.mustache index 7e318b309..f3eac973d 100644 --- a/sdks/dotnet/templates/modelAnyOf.mustache +++ b/sdks/dotnet/templates/modelAnyOf.mustache @@ -10,7 +10,7 @@ {{/vendorExtensions.x-com-visible}} [JsonConverter(typeof({{classname}}JsonConverter))] [DataContract(Name = "{{{name}}}")] - {{>visibility}} partial class {{classname}} : AbstractOpenAPISchema, {{#parent}}{{{.}}}, {{/parent}}IEquatable<{{classname}}>{{#validatable}}, IValidatableObject{{/validatable}} + {{>visibility}} partial class {{classname}} : AbstractOpenAPISchema, {{#lambda.joinWithComma}}{{#parent}}{{{.}}} {{/parent}}{{#equatable}}IEquatable<{{classname}}> {{/equatable}}{{#validatable}}IValidatableObject {{/validatable}}{{/lambda.joinWithComma}} { {{#isNullable}} /// @@ -18,12 +18,13 @@ /// public {{classname}}() { - this.IsNullable = true; - this.SchemaType= "anyOf"; + IsNullable = true; + SchemaType= "anyOf"; } {{/isNullable}} {{#composedSchemas.anyOf}} + {{^vendorExtensions.x-duplicated-data-type}} {{^isNull}} /// /// Initializes a new instance of the class @@ -32,12 +33,13 @@ /// An instance of {{dataType}}. public {{classname}}({{{dataType}}} actualInstance) { - this.IsNullable = {{#model.isNullable}}true{{/model.isNullable}}{{^model.isNullable}}false{{/model.isNullable}}; - this.SchemaType= "anyOf"; - this.ActualInstance = actualInstance{{^model.isNullable}}{{^isPrimitiveType}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isPrimitiveType}}{{#isPrimitiveType}}{{#isArray}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isArray}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isFreeFormObject}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isFreeFormObject}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isString}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isString}}{{/isPrimitiveType}}{{/model.isNullable}}; + IsNullable = {{#model.isNullable}}true{{/model.isNullable}}{{^model.isNullable}}false{{/model.isNullable}}; + SchemaType= "anyOf"; + ActualInstance = actualInstance{{^model.isNullable}}{{^isPrimitiveType}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isPrimitiveType}}{{#isPrimitiveType}}{{#isArray}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isArray}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isFreeFormObject}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isFreeFormObject}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isString}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isString}}{{/isPrimitiveType}}{{/model.isNullable}}; } {{/isNull}} + {{/vendorExtensions.x-duplicated-data-type}} {{/composedSchemas.anyOf}} private Object _actualInstance; @@ -56,7 +58,7 @@ {{#anyOf}} {{^-first}}else {{/-first}}if (value.GetType() == typeof({{{.}}})) { - this._actualInstance = value; + _actualInstance = value; } {{/anyOf}} else @@ -66,6 +68,7 @@ } } {{#composedSchemas.anyOf}} + {{^vendorExtensions.x-duplicated-data-type}} {{^isNull}} /// @@ -75,9 +78,10 @@ /// An instance of {{dataType}} public {{{dataType}}} Get{{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}}{{#isArray}}{{#lambda.titlecase}}{{{dataFormat}}}{{/lambda.titlecase}}{{/isArray}}() { - return ({{{dataType}}})this.ActualInstance; + return ({{{dataType}}})ActualInstance; } {{/isNull}} + {{/vendorExtensions.x-duplicated-data-type}} {{/composedSchemas.anyOf}} /// @@ -88,7 +92,7 @@ { var sb = new StringBuilder(); sb.Append("class {{classname}} {\n"); - sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -99,7 +103,7 @@ /// JSON string presentation of the object public override string ToJson() { - return JsonConvert.SerializeObject(this.ActualInstance, {{classname}}.SerializerSettings); + return JsonConvert.SerializeObject(ActualInstance, {{classname}}.SerializerSettings); } /// @@ -133,6 +137,7 @@ // no match found, throw an exception throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); } + {{#equatable}} /// /// Returns true if objects are equal @@ -145,7 +150,7 @@ return OpenAPIClientUtils.compareLogic.Compare(this, input as {{classname}}).AreEqual; {{/useCompareNetObjects}} {{^useCompareNetObjects}} - return this.Equals(input as {{classname}}); + return Equals(input as {{classname}}); {{/useCompareNetObjects}} } @@ -163,7 +168,7 @@ if (input == null) return false; - return this.ActualInstance.Equals(input.ActualInstance); + return ActualInstance.Equals(input.ActualInstance); {{/useCompareNetObjects}} } @@ -176,11 +181,12 @@ unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.ActualInstance != null) - hashCode = hashCode * 59 + this.ActualInstance.GetHashCode(); + if (ActualInstance != null) + hashCode = hashCode * 59 + ActualInstance.GetHashCode(); return hashCode; } } + {{/equatable}} {{#validatable}} /// @@ -221,11 +227,39 @@ /// The object converted from the JSON string public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - if(reader.TokenType != JsonToken.Null) + switch(reader.TokenType) { - return {{classname}}.FromJson(JObject.Load(reader).ToString(Formatting.None)); + {{#composedSchemas.anyOf}} + {{^vendorExtensions.x-duplicated-data-type}} + {{#isInteger}} + case JsonToken.Integer: + return new {{classname}}(Convert.ToInt32(reader.Value)); + {{/isInteger}} + {{#isNumber}} + case JsonToken.Float: + return new {{classname}}(Convert.ToDecimal(reader.Value)); + {{/isNumber}} + {{#isString}} + case JsonToken.String: + return new {{classname}}(Convert.ToString(reader.Value)); + {{/isString}} + {{#isBoolean}} + case JsonToken.Boolean: + return new {{classname}}(Convert.ToBoolean(reader.Value)); + {{/isBoolean}} + {{#isDate}} + case JsonToken.Date: + return new {{classname}}(Convert.ToDateTime(reader.Value)); + {{/isDate}} + {{/vendorExtensions.x-duplicated-data-type}} + {{/composedSchemas.anyOf}} + case JsonToken.StartObject: + return {{classname}}.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return {{classname}}.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; } - return null; } /// diff --git a/sdks/dotnet/templates/modelEnum.mustache b/sdks/dotnet/templates/modelEnum.mustache index 514542d70..37fb53f5f 100644 --- a/sdks/dotnet/templates/modelEnum.mustache +++ b/sdks/dotnet/templates/modelEnum.mustache @@ -29,10 +29,157 @@ /// Enum {{name}} for value: {{value}} /// {{#isString}} + {{^useGenericHost}} + {{! EnumMember not currently supported in System.Text.Json, use a converter instead }} [EnumMember(Value = "{{{value}}}")] + {{/useGenericHost}} {{/isString}} - {{name}}{{^isString}} = {{{value}}}{{/isString}}{{#isString}} = {{-index}}{{/isString}}{{^-last}},{{/-last}} + {{name}}{{^isString}} = {{{value}}}{{/isString}}{{#isString}}{{^vendorExtensions.x-zero-based-enum}} = {{-index}}{{/vendorExtensions.x-zero-based-enum}}{{/isString}}{{^-last}},{{/-last}} + {{^-last}} + {{/-last}} {{/enumVars}} {{/allowableValues}} - }{{! NOTE: This model's enumVars is modified to look like CodegenProperty}} + } + {{#useGenericHost}} + + /// + /// Converts to and from the JSON value + /// + public static class {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}ValueConverter + { + /// + /// Parses a given value to + /// + /// + /// + public static {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} FromString(string value) + { + {{#allowableValues}} + {{#enumVars}} + if (value.Equals({{^isString}}({{{value}}}).ToString(){{/isString}}{{#isString}}"{{{value}}}"{{/isString}})) + return {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}.{{name}}; + + {{/enumVars}} + {{/allowableValues}} + throw new NotImplementedException($"Could not convert value to type {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}: '{value}'"); + } + + /// + /// Parses a given value to + /// + /// + /// + public static {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}? FromStringOrDefault(string value) + { + {{#allowableValues}} + {{#enumVars}} + if (value.Equals({{^isString}}({{{value}}}).ToString(){{/isString}}{{#isString}}"{{{value}}}"{{/isString}})) + return {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}.{{name}}; + + {{/enumVars}} + {{/allowableValues}} + return null; + } + + /// + /// Converts the to the json value + /// + /// + /// + /// + public static {{>EnumValueDataType}} ToJsonValue({{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} value) + { + {{^isString}} + return ({{>EnumValueDataType}}) value; + {{/isString}} + {{#isString}} + {{#allowableValues}} + {{#enumVars}} + if (value == {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}.{{name}}) + return {{^isNumeric}}"{{/isNumeric}}{{{value}}}{{^isNumeric}}"{{/isNumeric}}; + + {{/enumVars}} + {{/allowableValues}} + throw new NotImplementedException($"Value could not be handled: '{value}'"); + {{/isString}} + } + } + + /// + /// A Json converter for type + /// + /// + public class {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}JsonConverter : JsonConverter<{{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}> + { + /// + /// Returns a {{datatypeWithEnum}} from the Json object + /// + /// + /// + /// + /// + public override {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + string{{nrt?}} rawValue = reader.GetString(); + + {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}? result = rawValue == null + ? null + : {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}ValueConverter.FromStringOrDefault(rawValue); + + if (result != null) + return result.Value; + + throw new JsonException(); + } + + /// + /// Writes the {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} to the json writer + /// + /// + /// + /// + public override void Write(Utf8JsonWriter writer, {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} {{#lambda.camelcase_sanitize_param}}{{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}{{/lambda.camelcase_sanitize_param}}, JsonSerializerOptions options) + { + writer.WriteStringValue({{#lambda.camelcase_sanitize_param}}{{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}{{/lambda.camelcase_sanitize_param}}.ToString()); + } + } + + /// + /// A Json converter for type + /// + public class {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}NullableJsonConverter : JsonConverter<{{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}?> + { + /// + /// Returns a {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} from the Json object + /// + /// + /// + /// + /// + public override {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + string{{nrt?}} rawValue = reader.GetString(); + + {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}? result = rawValue == null + ? null + : {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}ValueConverter.FromStringOrDefault(rawValue); + + if (result != null) + return result.Value; + + throw new JsonException(); + } + + /// + /// Writes the DateTime to the json writer + /// + /// + /// + /// + public override void Write(Utf8JsonWriter writer, {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}? {{#lambda.camelcase_sanitize_param}}{{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}{{/lambda.camelcase_sanitize_param}}, JsonSerializerOptions options) + { + writer.WriteStringValue({{#lambda.camelcase_sanitize_param}}{{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}{{/lambda.camelcase_sanitize_param}}?.ToString() ?? "null"); + } + } + {{/useGenericHost}} diff --git a/sdks/dotnet/templates/modelGeneric.mustache b/sdks/dotnet/templates/modelGeneric.mustache index da1baf81b..2add816c7 100644 --- a/sdks/dotnet/templates/modelGeneric.mustache +++ b/sdks/dotnet/templates/modelGeneric.mustache @@ -8,18 +8,20 @@ [ComVisible({{{vendorExtensions.x-com-visible}}})] {{/vendorExtensions.x-com-visible}} [DataContract(Name = "{{{name}}}")] + {{^useUnityWebRequest}} {{#discriminator}} [JsonConverter(typeof(JsonSubtypes), "{{{discriminatorName}}}")] {{#mappedModels}} [JsonSubtypes.KnownSubType(typeof({{{modelName}}}), "{{^vendorExtensions.x-discriminator-value}}{{{mappingName}}}{{/vendorExtensions.x-discriminator-value}}{{#vendorExtensions.x-discriminator-value}}{{{.}}}{{/vendorExtensions.x-discriminator-value}}")] {{/mappedModels}} {{/discriminator}} + {{/useUnityWebRequest}} {{#vendorExtensions.x-ignore-block}} - {{>visibility}} partial class {{classname}} : {{#parent}}{{{.}}}, {{/parent}}IEquatable<{{classname}}>{{#validatable}}, IValidatableObject{{/validatable}} + {{>visibility}} partial class {{classname}}{{#lambda.firstDot}}{{#parent}} : .{{/parent}}{{#validatable}} : .{{/validatable}}{{#equatable}} : .{{/equatable}}{{/lambda.firstDot}}{{#lambda.joinWithComma}}{{#parent}}{{{.}}} {{/parent}}{{#equatable}}IEquatable<{{classname}}> {{/equatable}}{{#validatable}}IValidatableObject {{/validatable}}{{/lambda.joinWithComma}} {{/vendorExtensions.x-ignore-block}} {{! CUSTOM - BEGIN }} [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - {{>visibility}} partial class {{classname}} : {{#parent}}{{{.}}}, {{/parent}}IOpenApiTyped, IEquatable<{{classname}}>{{#validatable}}, IValidatableObject{{/validatable}} + {{>visibility}} partial class {{classname}} : {{#parent}}{{{.}}}, IOpenApiTyped, {{/parent}}IEquatable<{{classname}}>{{#validatable}}, IValidatableObject{{/validatable}} {{! CUSTOM - END }} { {{#vars}} @@ -43,6 +45,9 @@ {{#description}} /// {{.}} {{/description}} + {{#example}} + /// {{.}} + {{/example}} {{^conditionalSerialization}} [DataMember(Name = "{{baseName}}"{{#required}}, IsRequired = true{{/required}}, EmitDefaultValue = {{#vendorExtensions.x-emit-default-value}}true{{/vendorExtensions.x-emit-default-value}}{{^vendorExtensions.x-emit-default-value}}{{#required}}true{{/required}}{{^required}}{{#isBoolean}}true{{/isBoolean}}{{^isBoolean}}{{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{/isBoolean}}{{/required}}{{/vendorExtensions.x-emit-default-value}})] {{#deprecated}} @@ -147,19 +152,19 @@ /// Initializes a new instance of the class. /// {{#readWriteVars}} - /// {{description}}{{^description}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{.}}){{/defaultValue}}. + /// {{description}}{{^description}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{.}}){{/defaultValue}}. {{/readWriteVars}} {{#hasOnlyReadOnly}} [JsonConstructorAttribute] {{/hasOnlyReadOnly}} {{#vendorExtensions.x-ignore-block}} - public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#defaultValue}}{{^isDateTime}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}} + public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}} { {{/vendorExtensions.x-ignore-block}} {{! CUSTOM - BEGIN }} - public {{classname}}({{#readWriteVars}}{{#vendorExtensions.x-int-or-string}}Object{{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{{datatypeWithEnum}}}{{/vendorExtensions.x-int-or-string}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#vendorExtensions.x-int-or-string}}null{{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#defaultValue}}{{^isDateTime}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{/vendorExtensions.x-int-or-string}}{{^-last}}, {{/-last}}{{/readWriteVars}}) + public {{classname}}({{#readWriteVars}}{{#vendorExtensions.x-int-or-string}}Object{{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{{datatypeWithEnum}}}{{/vendorExtensions.x-int-or-string}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#vendorExtensions.x-int-or-string}}null{{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{/vendorExtensions.x-int-or-string}}{{^-last}}, {{/-last}}{{/readWriteVars}}) { - {{#parent}}{{#parentVars}}this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; + {{#parent}}{{#parentVars}}this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; {{/parentVars}}{{/parent}} {{! CUSTOM - END }} {{#vars}} @@ -168,38 +173,38 @@ {{#required}} {{^conditionalSerialization}} {{^vendorExtensions.x-csharp-value-type}} - // to ensure "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" is required (not null) - if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null) + // to ensure "{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}" is required (not null) + if ({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} == null) { - throw new ArgumentNullException("{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} is a required property for {{classname}} and cannot be null"); + throw new ArgumentNullException("{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} is a required property for {{classname}} and cannot be null"); } {{#vendorExtensions.x-ignore-block}} - this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; + this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; {{/vendorExtensions.x-ignore-block}} {{! CUSTOM - BEGIN }} - this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; + this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; {{! CUSTOM - END }} {{/vendorExtensions.x-csharp-value-type}} {{#vendorExtensions.x-csharp-value-type}} {{#vendorExtensions.x-ignore-block}} - this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; + this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; {{/vendorExtensions.x-ignore-block}} {{! CUSTOM - BEGIN }} - this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; + this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; {{! CUSTOM - END }} {{/vendorExtensions.x-csharp-value-type}} {{/conditionalSerialization}} {{#conditionalSerialization}} {{^vendorExtensions.x-csharp-value-type}} - // to ensure "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" is required (not null) - if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null) + // to ensure "{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}" is required (not null) + if ({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} == null) { - throw new ArgumentNullException("{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} is a required property for {{classname}} and cannot be null"); + throw new ArgumentNullException("{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} is a required property for {{classname}} and cannot be null"); } - this._{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; + this._{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; {{/vendorExtensions.x-csharp-value-type}} {{#vendorExtensions.x-csharp-value-type}} - this._{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; + this._{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; {{/vendorExtensions.x-csharp-value-type}} {{/conditionalSerialization}} {{/required}} @@ -213,20 +218,20 @@ {{#defaultValue}} {{^conditionalSerialization}} {{^vendorExtensions.x-csharp-value-type}} - // use default value if no "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" provided + // use default value if no "{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}" provided {{#vendorExtensions.x-ignore-block}} - this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} ?? {{{defaultValue}}}; + this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} ?? {{#isString}}@{{/isString}}{{{defaultValue}}}; {{/vendorExtensions.x-ignore-block}} {{! CUSTOM - BEGIN }} - this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} ?? {{{defaultValue}}}{{/vendorExtensions.x-int-or-string}}; + this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} ?? {{{defaultValue}}}{{/vendorExtensions.x-int-or-string}}; {{! CUSTOM - END }} {{/vendorExtensions.x-csharp-value-type}} {{#vendorExtensions.x-csharp-value-type}} {{#vendorExtensions.x-ignore-block}} - this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; + this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; {{/vendorExtensions.x-ignore-block}} {{! CUSTOM - BEGIN }} - this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; + this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; {{! CUSTOM - END }} {{/vendorExtensions.x-csharp-value-type}} {{/conditionalSerialization}} @@ -234,14 +239,14 @@ {{^defaultValue}} {{^conditionalSerialization}} {{#vendorExtensions.x-ignore-block}} - this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; + this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; {{/vendorExtensions.x-ignore-block}} {{! CUSTOM - BEGIN }} - this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/vendorExtensions.x-int-or-string}}; + this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; {{! CUSTOM - END }} {{/conditionalSerialization}} {{#conditionalSerialization}} - this._{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; + this._{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; if (this.{{name}} != null) { this._flag{{name}} = true; @@ -284,24 +289,31 @@ /// {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}} /// {{#description}} /// {{.}}{{/description}} + {{#example}} + /// {{.}} + {{/example}} {{^conditionalSerialization}} [DataMember(Name = "{{baseName}}"{{#required}}, IsRequired = true{{/required}}, EmitDefaultValue = {{#vendorExtensions.x-emit-default-value}}true{{/vendorExtensions.x-emit-default-value}}{{^vendorExtensions.x-emit-default-value}}{{#required}}true{{/required}}{{^required}}{{#isBoolean}}true{{/isBoolean}}{{^isBoolean}}{{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{/isBoolean}}{{/required}}{{/vendorExtensions.x-emit-default-value}})] {{#isDate}} + {{^supportsDateOnly}} [JsonConverter(typeof(OpenAPIDateConverter))] + {{/supportsDateOnly}} {{/isDate}} {{#deprecated}} [Obsolete] {{/deprecated}} -{{#vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} + {{^vendorExtensions.x-int-or-string}} +{{! CUSTOM - END }} public {{{dataType}}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } -{{/vendorExtensions.x-ignore-block}} {{! CUSTOM - BEGIN }} - {{^vendorExtensions.x-int-or-string}}public {{{dataType}}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; }{{/vendorExtensions.x-int-or-string}}{{#vendorExtensions.x-int-or-string}}public object {{name}} { - get => this._{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; - set => this._{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = Convert.ToString(value); + {{/vendorExtensions.x-int-or-string}} + {{#vendorExtensions.x-int-or-string}}public object {{name}} { + get => this._{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; + set => this._{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = Convert.ToString(value); } - private string _{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};{{/vendorExtensions.x-int-or-string}} + private string _{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}};{{/vendorExtensions.x-int-or-string}} {{! CUSTOM - END }} {{#isReadOnly}} @@ -405,6 +417,7 @@ { return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } +{{! CUSTOM - remove #equatable }} /// /// Returns true if objects are equal @@ -493,6 +506,8 @@ return hashCode; } } +{{! CUSTOM - remove /equatable }} + {{#validatable}} {{>validatable}} {{/validatable}} diff --git a/sdks/dotnet/templates/modelInnerEnum.mustache b/sdks/dotnet/templates/modelInnerEnum.mustache index f879f022d..462ded84d 100644 --- a/sdks/dotnet/templates/modelInnerEnum.mustache +++ b/sdks/dotnet/templates/modelInnerEnum.mustache @@ -17,12 +17,83 @@ /// /// Enum {{name}} for value: {{value}} /// + {{^useGenericHost}} {{#isString}} [EnumMember(Value = "{{{value}}}")] {{/isString}} - {{name}}{{^isString}} = {{{value}}}{{/isString}}{{#isString}} = {{-index}}{{/isString}}{{^-last}},{{/-last}} + {{/useGenericHost}} + {{name}}{{^isString}} = {{{value}}}{{/isString}}{{#isString}}{{^vendorExtensions.x-zero-based-enum}} = {{-index}}{{/vendorExtensions.x-zero-based-enum}}{{/isString}}{{^-last}},{{/-last}} + {{^-last}} + {{/-last}} {{/enumVars}} {{/allowableValues}} } - {{/isContainer}} + {{#useGenericHost}} + + /// + /// Returns a + /// + /// + /// + /// + public static {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}FromString(string value) + { + {{#allowableValues}} + {{#enumVars}} + if (value.Equals({{^isString}}({{{value}}}).ToString(){{/isString}}{{#isString}}"{{{value}}}"{{/isString}})) + return {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}.{{name}}; + + {{/enumVars}} + {{/allowableValues}} + throw new NotImplementedException($"Could not convert value to type {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}: '{value}'"); + } + + /// + /// Returns a + /// + /// + /// + public static {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}? {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}FromStringOrDefault(string value) + { + {{#allowableValues}} + {{#enumVars}} + if (value.Equals({{^isString}}({{{value}}}).ToString(){{/isString}}{{#isString}}"{{{value}}}"{{/isString}})) + return {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}.{{name}}; + + {{/enumVars}} + {{/allowableValues}} + return null; + } + + /// + /// Converts the to the json value + /// + /// + /// + {{#isString}} + /// + {{/isString}} + public static {{>EnumValueDataType}}{{#lambda.first}}{{#nrt}}{{#isString}}{{#isNullable}}{{nrt?}} {{^nrt}}{{#vendorExtensions.x-is-value-type}}? {{/vendorExtensions.x-is-value-type}}{{/nrt}}{{/isNullable}}{{/isString}}{{/nrt}}{{/lambda.first}} {{datatypeWithEnum}}ToJsonValue({{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}{{#isString}}{{>NullConditionalProperty}}{{/isString}} value) + { + {{^isString}} + return ({{>EnumValueDataType}}) value; + {{/isString}} + {{#isString}} + {{#isNullable}} + if (value == null) + return null; + + {{/isNullable}} + {{#allowableValues}} + {{#enumVars}} + if (value == {{datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}.{{name}}) + return {{^isNumeric}}"{{/isNumeric}}{{{value}}}{{^isNumeric}}"{{/isNumeric}}; + + {{/enumVars}} + {{/allowableValues}} + throw new NotImplementedException($"Value could not be handled: '{value}'"); + {{/isString}} + } + {{/useGenericHost}} + {{/isContainer}} \ No newline at end of file diff --git a/sdks/dotnet/templates/modelOneOf.mustache b/sdks/dotnet/templates/modelOneOf.mustache index a7756c160..ab42e4eef 100644 --- a/sdks/dotnet/templates/modelOneOf.mustache +++ b/sdks/dotnet/templates/modelOneOf.mustache @@ -10,7 +10,7 @@ {{/vendorExtensions.x-com-visible}} [JsonConverter(typeof({{classname}}JsonConverter))] [DataContract(Name = "{{{name}}}")] - {{>visibility}} partial class {{classname}} : AbstractOpenAPISchema, {{#parent}}{{{.}}}, {{/parent}}IEquatable<{{classname}}>{{#validatable}}, IValidatableObject{{/validatable}} + {{>visibility}} partial class {{classname}} : {{#lambda.joinWithComma}}AbstractOpenAPISchema {{#parent}}{{{.}}} {{/parent}}{{#equatable}}IEquatable<{{classname}}> {{/equatable}}{{#validatable}}IValidatableObject {{/validatable}}{{/lambda.joinWithComma}} { {{#isNullable}} /// @@ -24,6 +24,7 @@ {{/isNullable}} {{#composedSchemas.oneOf}} + {{^vendorExtensions.x-duplicated-data-type}} {{^isNull}} /// /// Initializes a new instance of the class @@ -38,6 +39,7 @@ } {{/isNull}} + {{/vendorExtensions.x-duplicated-data-type}} {{/composedSchemas.oneOf}} private Object _actualInstance; @@ -54,7 +56,7 @@ set { {{#oneOf}} - {{^-first}}else {{/-first}}if (value.GetType() == typeof({{{.}}})) + {{^-first}}else {{/-first}}if (value.GetType() == typeof({{{.}}}) || value is {{{.}}}) { this._actualInstance = value; } @@ -66,6 +68,7 @@ } } {{#composedSchemas.oneOf}} + {{^vendorExtensions.x-duplicated-data-type}} {{^isNull}} /// @@ -78,6 +81,7 @@ return ({{{dataType}}})this.ActualInstance; } {{/isNull}} + {{/vendorExtensions.x-duplicated-data-type}} {{/composedSchemas.oneOf}} /// @@ -172,13 +176,14 @@ } else if (match > 1) { - throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes); + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); } // deserialization is considered successful at this point if no exception has been thrown. return new{{classname}}; } + {{#equatable}} /// /// Returns true if objects are equal /// @@ -226,8 +231,9 @@ return hashCode; } } - + {{/equatable}} {{#validatable}} + /// /// To validate all properties of the instance /// @@ -266,11 +272,39 @@ /// The object converted from the JSON string public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - if(reader.TokenType != JsonToken.Null) + switch(reader.TokenType) { - return {{classname}}.FromJson(JObject.Load(reader).ToString(Formatting.None)); + {{#composedSchemas.oneOf}} + {{^vendorExtensions.x-duplicated-data-type}} + {{#isInteger}} + case JsonToken.Integer: + return new {{classname}}(Convert.ToInt32(reader.Value)); + {{/isInteger}} + {{#isNumber}} + case JsonToken.Float: + return new {{classname}}(Convert.ToDecimal(reader.Value)); + {{/isNumber}} + {{#isString}} + case JsonToken.String: + return new {{classname}}(Convert.ToString(reader.Value)); + {{/isString}} + {{#isBoolean}} + case JsonToken.Boolean: + return new {{classname}}(Convert.ToBoolean(reader.Value)); + {{/isBoolean}} + {{#isDate}} + case JsonToken.Date: + return new {{classname}}(Convert.ToDateTime(reader.Value)); + {{/isDate}} + {{/vendorExtensions.x-duplicated-data-type}} + {{/composedSchemas.oneOf}} + case JsonToken.StartObject: + return {{classname}}.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return {{classname}}.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; } - return null; } /// diff --git a/sdks/dotnet/templates/model_doc.mustache b/sdks/dotnet/templates/model_doc.mustache index 9e73307d2..72197b8bf 100644 --- a/sdks/dotnet/templates/model_doc.mustache +++ b/sdks/dotnet/templates/model_doc.mustache @@ -10,11 +10,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- {{#parent}} {{#parentVars}} +{{#vendorExtensions.x-ignore-block}} +**{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}} +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} **{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | REPLACE_ME_WITH_DESCRIPTION_BEGIN {{unescapedDescription}} REPLACE_ME_WITH_DESCRIPTION_END | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}} +{{! CUSTOM - END }} {{/parentVars}} {{/parent}} -{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | REPLACE_ME_WITH_DESCRIPTION_BEGIN {{unescapedDescription}} REPLACE_ME_WITH_DESCRIPTION_END | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}} +{{#vendorExtensions.x-ignore-block}} +{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}} {{/vars}} +{{/vendorExtensions.x-ignore-block}} +{{! CUSTOM - BEGIN }} +{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | REPLACE_ME_WITH_DESCRIPTION_BEGIN {{unescapedDescription}} REPLACE_ME_WITH_DESCRIPTION_END | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}{{/vars}} +{{! CUSTOM - END }} [[Back to Model list]](../{{#useGenericHost}}../{{/useGenericHost}}README.md#documentation-for-models) [[Back to API list]](../{{#useGenericHost}}../{{/useGenericHost}}README.md#documentation-for-api-endpoints) [[Back to README]](../{{#useGenericHost}}../{{/useGenericHost}}README.md) diff --git a/sdks/dotnet/templates/model_test.mustache b/sdks/dotnet/templates/model_test.mustache index b4aefe510..1feaeb9d8 100644 --- a/sdks/dotnet/templates/model_test.mustache +++ b/sdks/dotnet/templates/model_test.mustache @@ -6,11 +6,12 @@ using System; using System.Linq; using System.IO; using System.Collections.Generic; -using {{packageName}}.{{apiPackage}}; using {{packageName}}.{{modelPackage}}; -using {{packageName}}.Client; +using {{packageName}}.{{clientPackage}}; using System.Reflection; +{{^useGenericHost}} using Newtonsoft.Json; +{{/useGenericHost}} {{#models}} {{#model}} @@ -39,6 +40,8 @@ namespace {{packageName}}.Test.Model // Cleanup when everything is done. } + {{#lambda.trimTrailingWithNewLine}} + {{#lambda.trimLineBreaks}} /// /// Test an instance of {{classname}} /// @@ -51,6 +54,7 @@ namespace {{packageName}}.Test.Model {{#discriminator}} {{#children}} + /// /// Test deserialize a {{classname}} from type {{parent}} /// @@ -60,10 +64,12 @@ namespace {{packageName}}.Test.Model // TODO uncomment below to test deserialize a {{classname}} from type {{parent}} //Assert.IsType<{{parent}}>(JsonConvert.DeserializeObject<{{parent}}>(new {{classname}}().ToJson())); } + {{/children}} {{/discriminator}} - {{#vars}} + + /// /// Test the property '{{name}}' /// @@ -73,9 +79,9 @@ namespace {{packageName}}.Test.Model // TODO unit test for the property '{{name}}' } {{/vars}} - + {{/lambda.trimLineBreaks}} + {{/lambda.trimTrailingWithNewLine}} } - } {{/model}} {{/models}} diff --git a/sdks/dotnet/templates/netcore_project.additions.mustache b/sdks/dotnet/templates/netcore_project.additions.mustache new file mode 100644 index 000000000..8c6f3ad52 --- /dev/null +++ b/sdks/dotnet/templates/netcore_project.additions.mustache @@ -0,0 +1 @@ +{{! if needed users can add this file to their templates folder to append to the csproj }} \ No newline at end of file diff --git a/sdks/dotnet/templates/netcore_project.mustache b/sdks/dotnet/templates/netcore_project.mustache index 7027fd034..5811c5a94 100644 --- a/sdks/dotnet/templates/netcore_project.mustache +++ b/sdks/dotnet/templates/netcore_project.mustache @@ -30,36 +30,59 @@ {{#useCompareNetObjects}} - + {{/useCompareNetObjects}} {{^useGenericHost}} - - + + + {{/useGenericHost}} + {{#useRestSharp}} + + {{/useRestSharp}} + {{#useGenericHost}} + + + {{#supportsRetry}} + + {{/supportsRetry}} + {{#net80OrLater}} + + {{/net80OrLater}} + {{^net60OrLater}} + + {{#net47OrLater}} + + {{/net47OrLater}} + {{/net60OrLater}} + {{/useGenericHost}} + {{^useGenericHost}} + {{#supportsRetry}} + + {{/supportsRetry}} {{/useGenericHost}} - {{#useRestSharp}} - - {{/useRestSharp}} - {{#useGenericHost}} - - - {{#supportsRetry}} - - {{/supportsRetry}} - {{/useGenericHost}} - {{#supportsRetry}} - - {{/supportsRetry}} {{#validatable}} + {{^net60OrLater}} + {{/net60OrLater}} {{/validatable}} -{{#vendorExtensions.x-ignore-block}} +{{^useGenericHost}} + {{^net60OrLater}} + {{/net60OrLater}} + {{#net48}} + + {{/net48}} + {{^net60OrLater}} + {{/net60OrLater}} + {{#net48}} + + {{/net48}} -{{/vendorExtensions.x-ignore-block}} - +{{/useGenericHost}} +{{>netcore_project.additions}} diff --git a/sdks/dotnet/templates/netcore_testproject.additions.mustache b/sdks/dotnet/templates/netcore_testproject.additions.mustache new file mode 100644 index 000000000..8c6f3ad52 --- /dev/null +++ b/sdks/dotnet/templates/netcore_testproject.additions.mustache @@ -0,0 +1 @@ +{{! if needed users can add this file to their templates folder to append to the csproj }} \ No newline at end of file diff --git a/sdks/dotnet/templates/netcore_testproject.mustache b/sdks/dotnet/templates/netcore_testproject.mustache index ecb0f0e6a..90d11eb82 100644 --- a/sdks/dotnet/templates/netcore_testproject.mustache +++ b/sdks/dotnet/templates/netcore_testproject.mustache @@ -9,18 +9,12 @@ -{{#vendorExtensions.x-ignore-block}} - -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} - -{{! CUSTOM - END }} - - + + + - - +{{>netcore_testproject.additions}} diff --git a/sdks/dotnet/templates/nuspec.mustache b/sdks/dotnet/templates/nuspec.mustache index b8ef5a00d..18fe4aacc 100644 --- a/sdks/dotnet/templates/nuspec.mustache +++ b/sdks/dotnet/templates/nuspec.mustache @@ -30,19 +30,19 @@ - + {{#useRestSharp}} - + {{/useRestSharp}} {{#useCompareNetObjects}} {{/useCompareNetObjects}} - + {{#validatable}} {{/validatable}} {{#supportsRetry}} - + {{/supportsRetry}} diff --git a/sdks/dotnet/templates/openapi.mustache b/sdks/dotnet/templates/openapi.mustache new file mode 100644 index 000000000..34fbb53f3 --- /dev/null +++ b/sdks/dotnet/templates/openapi.mustache @@ -0,0 +1 @@ +{{{openapi-yaml}}} diff --git a/sdks/dotnet/templates/validatable.mustache b/sdks/dotnet/templates/validatable.mustache index 4b2a72fab..97593452d 100644 --- a/sdks/dotnet/templates/validatable.mustache +++ b/sdks/dotnet/templates/validatable.mustache @@ -4,7 +4,7 @@ /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -14,17 +14,38 @@ /// /// Validation context /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) + protected IEnumerable BaseValidate(ValidationContext validationContext) { {{/discriminator}} {{^discriminator}} + {{#parent}} /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + {{/parent}} + {{^parent}} + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + {{/parent}} {{/discriminator}} {{#parent}} {{^isArray}} @@ -48,7 +69,7 @@ // {{{name}}} ({{{dataType}}}) maxLength if (this.{{{name}}} != null && this.{{{name}}}.Length > {{maxLength}}) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, length must be less than {{maxLength}}.", new [] { "{{{name}}}" }); + yield return new ValidationResult("Invalid value for {{{name}}}, length must be less than {{maxLength}}.", new [] { "{{{name}}}" }); } {{/maxLength}} @@ -56,35 +77,60 @@ // {{{name}}} ({{{dataType}}}) minLength if (this.{{{name}}} != null && this.{{{name}}}.Length < {{minLength}}) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, length must be greater than {{minLength}}.", new [] { "{{{name}}}" }); + yield return new ValidationResult("Invalid value for {{{name}}}, length must be greater than {{minLength}}.", new [] { "{{{name}}}" }); } {{/minLength}} {{#maximum}} // {{{name}}} ({{{dataType}}}) maximum - if (this.{{{name}}} > ({{{dataType}}}){{maximum}}) + if ({{#useGenericHost}}{{^required}}this.{{{name}}}Option.IsSet && {{/required}}{{/useGenericHost}}this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}} > ({{{dataType}}}){{maximum}}) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, must be a value less than or equal to {{maximum}}.", new [] { "{{{name}}}" }); + yield return new ValidationResult("Invalid value for {{{name}}}, must be a value less than or equal to {{maximum}}.", new [] { "{{{name}}}" }); } {{/maximum}} {{#minimum}} // {{{name}}} ({{{dataType}}}) minimum - if (this.{{{name}}} < ({{{dataType}}}){{minimum}}) + if ({{#useGenericHost}}{{^required}}this.{{{name}}}Option.IsSet && {{/required}}{{/useGenericHost}}this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}} < ({{{dataType}}}){{minimum}}) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, must be a value greater than or equal to {{minimum}}.", new [] { "{{{name}}}" }); + yield return new ValidationResult("Invalid value for {{{name}}}, must be a value greater than or equal to {{minimum}}.", new [] { "{{{name}}}" }); } {{/minimum}} {{#pattern}} {{^isByteArray}} - // {{{name}}} ({{{dataType}}}) pattern - Regex regex{{{name}}} = new Regex(@"{{{vendorExtensions.x-regex}}}"{{#vendorExtensions.x-modifiers}}{{#-first}}, {{/-first}}RegexOptions.{{{.}}}{{^-last}} | {{/-last}}{{/vendorExtensions.x-modifiers}}); - if (false == regex{{{name}}}.Match(this.{{{name}}}).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, must match a pattern of " + regex{{{name}}}, new [] { "{{{name}}}" }); + {{#vendorExtensions.x-is-value-type}} + {{#isNullable}} + if (this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}} != null){ + {{#lambda.trimTrailingWithNewLine}} + {{#lambda.indent4}} + {{>ValidateRegex}} + {{/lambda.indent4}} + + {{/lambda.trimTrailingWithNewLine}} + } + + {{/isNullable}} + {{^isNullable}} + {{#lambda.trimTrailingWithNewLine}} + {{#lambda.indent3}} + {{>ValidateRegex}} + {{/lambda.indent3}} + + {{/lambda.trimTrailingWithNewLine}} + {{/isNullable}} + {{/vendorExtensions.x-is-value-type}} + {{^vendorExtensions.x-is-value-type}} + if (this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}} != null) { + {{#lambda.trimTrailingWithNewLine}} + {{#lambda.indent4}} + {{>ValidateRegex}} + {{/lambda.indent4}} + + {{/lambda.trimTrailingWithNewLine}} } + {{/vendorExtensions.x-is-value-type}} {{/isByteArray}} {{/pattern}} {{/isEnum}} From 385b7740405d63b652fd82438c566823ff46b096 Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Tue, 27 Aug 2024 16:58:30 -0500 Subject: [PATCH 03/10] Restore docs, tests run --- sdks/dotnet/README.md | 38 +- sdks/dotnet/docs/AccountApi.md | 152 +++- sdks/dotnet/docs/AccountCreateRequest.md | 6 +- sdks/dotnet/docs/AccountCreateResponse.md | 2 +- sdks/dotnet/docs/AccountGetResponse.md | 2 +- sdks/dotnet/docs/AccountResponse.md | 2 +- sdks/dotnet/docs/AccountResponseQuotas.md | 2 +- sdks/dotnet/docs/AccountResponseUsage.md | 2 +- sdks/dotnet/docs/AccountUpdateRequest.md | 2 +- sdks/dotnet/docs/AccountVerifyRequest.md | 2 +- sdks/dotnet/docs/AccountVerifyResponse.md | 2 +- .../docs/AccountVerifyResponseAccount.md | 2 +- sdks/dotnet/docs/ApiAppApi.md | 237 ++++- sdks/dotnet/docs/ApiAppCreateRequest.md | 2 +- sdks/dotnet/docs/ApiAppGetResponse.md | 2 +- sdks/dotnet/docs/ApiAppListResponse.md | 2 +- sdks/dotnet/docs/ApiAppResponse.md | 2 +- sdks/dotnet/docs/ApiAppResponseOAuth.md | 2 +- sdks/dotnet/docs/ApiAppResponseOptions.md | 2 +- .../dotnet/docs/ApiAppResponseOwnerAccount.md | 2 +- .../ApiAppResponseWhiteLabelingOptions.md | 2 +- sdks/dotnet/docs/ApiAppUpdateRequest.md | 2 +- sdks/dotnet/docs/BulkSendJobApi.md | 83 +- sdks/dotnet/docs/BulkSendJobGetResponse.md | 2 +- ...BulkSendJobGetResponseSignatureRequests.md | 5 +- sdks/dotnet/docs/BulkSendJobListResponse.md | 2 +- sdks/dotnet/docs/BulkSendJobResponse.md | 2 +- sdks/dotnet/docs/BulkSendJobSendResponse.md | 2 +- sdks/dotnet/docs/EmbeddedApi.md | 79 +- sdks/dotnet/docs/EmbeddedEditUrlRequest.md | 6 +- sdks/dotnet/docs/EmbeddedEditUrlResponse.md | 2 +- .../docs/EmbeddedEditUrlResponseEmbedded.md | 2 +- sdks/dotnet/docs/EmbeddedSignUrlResponse.md | 2 +- .../docs/EmbeddedSignUrlResponseEmbedded.md | 2 +- sdks/dotnet/docs/ErrorResponse.md | 2 +- sdks/dotnet/docs/ErrorResponseError.md | 2 +- sdks/dotnet/docs/EventCallbackRequest.md | 2 +- sdks/dotnet/docs/EventCallbackRequestEvent.md | 2 +- .../docs/EventCallbackRequestEventMetadata.md | 2 +- sdks/dotnet/docs/FaxLineAddUserRequest.md | 2 +- sdks/dotnet/docs/FaxLineApi.md | 235 ++++- .../dotnet/docs/FaxLineAreaCodeGetResponse.md | 2 +- sdks/dotnet/docs/FaxLineCreateRequest.md | 2 +- sdks/dotnet/docs/FaxLineDeleteRequest.md | 2 +- sdks/dotnet/docs/FaxLineListResponse.md | 2 +- sdks/dotnet/docs/FaxLineRemoveUserRequest.md | 2 +- sdks/dotnet/docs/FaxLineResponse.md | 2 +- sdks/dotnet/docs/FaxLineResponseFaxLine.md | 2 +- sdks/dotnet/docs/FileResponse.md | 2 +- sdks/dotnet/docs/FileResponseDataUri.md | 2 +- sdks/dotnet/docs/ListInfoResponse.md | 2 +- sdks/dotnet/docs/OAuthApi.md | 71 +- sdks/dotnet/docs/OAuthTokenGenerateRequest.md | 2 +- sdks/dotnet/docs/OAuthTokenRefreshRequest.md | 2 +- sdks/dotnet/docs/OAuthTokenResponse.md | 2 +- sdks/dotnet/docs/ReportApi.md | 44 +- sdks/dotnet/docs/ReportCreateRequest.md | 2 +- sdks/dotnet/docs/ReportCreateResponse.md | 2 +- sdks/dotnet/docs/ReportResponse.md | 2 +- sdks/dotnet/docs/SignatureRequestApi.md | 840 +++++++++++++++++- ...stBulkCreateEmbeddedWithTemplateRequest.md | 28 +- ...atureRequestBulkSendWithTemplateRequest.md | 28 +- .../SignatureRequestCreateEmbeddedRequest.md | 35 +- ...equestCreateEmbeddedWithTemplateRequest.md | 10 +- .../docs/SignatureRequestGetResponse.md | 2 +- .../docs/SignatureRequestListResponse.md | 2 +- .../docs/SignatureRequestRemindRequest.md | 2 +- sdks/dotnet/docs/SignatureRequestResponse.md | 5 +- .../SignatureRequestResponseAttachment.md | 2 +- ...SignatureRequestResponseCustomFieldBase.md | 2 +- ...atureRequestResponseCustomFieldCheckbox.md | 10 +- ...SignatureRequestResponseCustomFieldText.md | 10 +- .../docs/SignatureRequestResponseDataBase.md | 2 +- ...gnatureRequestResponseDataValueCheckbox.md | 10 +- ...reRequestResponseDataValueCheckboxMerge.md | 10 +- ...atureRequestResponseDataValueDateSigned.md | 10 +- ...gnatureRequestResponseDataValueDropdown.md | 10 +- ...gnatureRequestResponseDataValueInitials.md | 10 +- .../SignatureRequestResponseDataValueRadio.md | 10 +- ...natureRequestResponseDataValueSignature.md | 10 +- .../SignatureRequestResponseDataValueText.md | 10 +- ...natureRequestResponseDataValueTextMerge.md | 10 +- .../SignatureRequestResponseSignatures.md | 2 +- .../docs/SignatureRequestSendRequest.md | 40 +- ...SignatureRequestSendWithTemplateRequest.md | 15 +- .../docs/SignatureRequestUpdateRequest.md | 8 +- sdks/dotnet/docs/SubAttachment.md | 4 +- sdks/dotnet/docs/SubBulkSignerList.md | 4 +- .../docs/SubBulkSignerListCustomField.md | 2 +- sdks/dotnet/docs/SubCC.md | 2 +- sdks/dotnet/docs/SubCustomField.md | 4 +- sdks/dotnet/docs/SubEditorOptions.md | 2 +- sdks/dotnet/docs/SubFieldOptions.md | 4 +- sdks/dotnet/docs/SubFormFieldGroup.md | 6 +- sdks/dotnet/docs/SubFormFieldRule.md | 2 +- sdks/dotnet/docs/SubFormFieldRuleAction.md | 10 +- sdks/dotnet/docs/SubFormFieldRuleTrigger.md | 35 +- .../docs/SubFormFieldsPerDocumentBase.md | 9 +- .../docs/SubFormFieldsPerDocumentCheckbox.md | 29 +- .../SubFormFieldsPerDocumentCheckboxMerge.md | 29 +- .../SubFormFieldsPerDocumentDateSigned.md | 31 +- .../docs/SubFormFieldsPerDocumentDropdown.md | 31 +- .../docs/SubFormFieldsPerDocumentHyperlink.md | 31 +- .../docs/SubFormFieldsPerDocumentInitials.md | 29 +- .../docs/SubFormFieldsPerDocumentRadio.md | 29 +- .../docs/SubFormFieldsPerDocumentSignature.md | 29 +- .../docs/SubFormFieldsPerDocumentText.md | 33 +- .../docs/SubFormFieldsPerDocumentTextMerge.md | 31 +- sdks/dotnet/docs/SubMergeField.md | 2 +- sdks/dotnet/docs/SubOAuth.md | 2 +- sdks/dotnet/docs/SubOptions.md | 2 +- .../docs/SubSignatureRequestGroupedSigners.md | 4 +- sdks/dotnet/docs/SubSignatureRequestSigner.md | 10 +- .../docs/SubSignatureRequestTemplateSigner.md | 10 +- sdks/dotnet/docs/SubSigningOptions.md | 2 +- sdks/dotnet/docs/SubTeamResponse.md | 2 +- sdks/dotnet/docs/SubTemplateRole.md | 2 +- sdks/dotnet/docs/SubUnclaimedDraftSigner.md | 2 +- .../docs/SubUnclaimedDraftTemplateSigner.md | 2 +- sdks/dotnet/docs/SubWhiteLabelingOptions.md | 2 +- sdks/dotnet/docs/TeamAddMemberRequest.md | 8 +- sdks/dotnet/docs/TeamApi.md | 367 +++++++- sdks/dotnet/docs/TeamCreateRequest.md | 2 +- sdks/dotnet/docs/TeamGetInfoResponse.md | 2 +- sdks/dotnet/docs/TeamGetResponse.md | 2 +- sdks/dotnet/docs/TeamInfoResponse.md | 2 +- sdks/dotnet/docs/TeamInviteResponse.md | 2 +- sdks/dotnet/docs/TeamInvitesResponse.md | 2 +- sdks/dotnet/docs/TeamMemberResponse.md | 2 +- sdks/dotnet/docs/TeamMembersResponse.md | 2 +- sdks/dotnet/docs/TeamParentResponse.md | 2 +- sdks/dotnet/docs/TeamRemoveMemberRequest.md | 10 +- sdks/dotnet/docs/TeamResponse.md | 2 +- sdks/dotnet/docs/TeamSubTeamsResponse.md | 2 +- sdks/dotnet/docs/TeamUpdateRequest.md | 2 +- sdks/dotnet/docs/TemplateAddUserRequest.md | 4 +- sdks/dotnet/docs/TemplateApi.md | 521 ++++++++++- .../TemplateCreateEmbeddedDraftRequest.md | 27 +- .../TemplateCreateEmbeddedDraftResponse.md | 2 +- ...lateCreateEmbeddedDraftResponseTemplate.md | 2 +- sdks/dotnet/docs/TemplateCreateRequest.md | 24 +- sdks/dotnet/docs/TemplateCreateResponse.md | 2 +- .../docs/TemplateCreateResponseTemplate.md | 2 +- sdks/dotnet/docs/TemplateEditResponse.md | 2 +- sdks/dotnet/docs/TemplateGetResponse.md | 2 +- sdks/dotnet/docs/TemplateListResponse.md | 2 +- sdks/dotnet/docs/TemplateRemoveUserRequest.md | 2 +- sdks/dotnet/docs/TemplateResponse.md | 4 +- sdks/dotnet/docs/TemplateResponseAccount.md | 2 +- .../docs/TemplateResponseAccountQuota.md | 2 +- sdks/dotnet/docs/TemplateResponseCCRole.md | 2 +- sdks/dotnet/docs/TemplateResponseDocument.md | 2 +- ...TemplateResponseDocumentCustomFieldBase.md | 2 +- ...lateResponseDocumentCustomFieldCheckbox.md | 23 +- ...TemplateResponseDocumentCustomFieldText.md | 23 +- .../TemplateResponseDocumentFieldGroup.md | 2 +- .../TemplateResponseDocumentFieldGroupRule.md | 6 +- .../TemplateResponseDocumentFormFieldBase.md | 2 +- ...mplateResponseDocumentFormFieldCheckbox.md | 29 +- ...lateResponseDocumentFormFieldDateSigned.md | 29 +- ...mplateResponseDocumentFormFieldDropdown.md | 29 +- ...plateResponseDocumentFormFieldHyperlink.md | 29 +- ...mplateResponseDocumentFormFieldInitials.md | 29 +- .../TemplateResponseDocumentFormFieldRadio.md | 29 +- ...plateResponseDocumentFormFieldSignature.md | 29 +- .../TemplateResponseDocumentFormFieldText.md | 29 +- ...TemplateResponseDocumentStaticFieldBase.md | 2 +- ...lateResponseDocumentStaticFieldCheckbox.md | 29 +- ...teResponseDocumentStaticFieldDateSigned.md | 29 +- ...lateResponseDocumentStaticFieldDropdown.md | 29 +- ...ateResponseDocumentStaticFieldHyperlink.md | 29 +- ...lateResponseDocumentStaticFieldInitials.md | 29 +- ...emplateResponseDocumentStaticFieldRadio.md | 29 +- ...ateResponseDocumentStaticFieldSignature.md | 29 +- ...TemplateResponseDocumentStaticFieldText.md | 29 +- .../TemplateResponseFieldAvgTextLength.md | 2 +- .../dotnet/docs/TemplateResponseSignerRole.md | 2 +- .../dotnet/docs/TemplateUpdateFilesRequest.md | 6 +- .../docs/TemplateUpdateFilesResponse.md | 2 +- .../TemplateUpdateFilesResponseTemplate.md | 2 +- sdks/dotnet/docs/UnclaimedDraftApi.md | 233 ++++- .../UnclaimedDraftCreateEmbeddedRequest.md | 34 +- ...dDraftCreateEmbeddedWithTemplateRequest.md | 20 +- .../docs/UnclaimedDraftCreateRequest.md | 27 +- .../docs/UnclaimedDraftCreateResponse.md | 2 +- .../UnclaimedDraftEditAndResendRequest.md | 2 +- sdks/dotnet/docs/UnclaimedDraftResponse.md | 2 +- sdks/dotnet/docs/WarningResponse.md | 2 +- sdks/dotnet/run-build | 35 + 189 files changed, 3330 insertions(+), 1191 deletions(-) diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index 325c5bcf9..b66a0a2b2 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/README.md @@ -81,7 +81,43 @@ c.Proxy = webProxy; ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__AccountCreate_C#_CODE +using System; + +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var accountApi = new AccountApi(config); + + var data = new AccountCreateRequest( + emailAddress: "newuser@dropboxsign.com" + ); + + try + { + var result = accountApi.AccountCreate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` diff --git a/sdks/dotnet/docs/AccountApi.md b/sdks/dotnet/docs/AccountApi.md index 074f7d0f0..897f4d2ab 100644 --- a/sdks/dotnet/docs/AccountApi.md +++ b/sdks/dotnet/docs/AccountApi.md @@ -19,7 +19,43 @@ Creates a new Dropbox Sign Account that is associated with the specified `email_ ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__AccountCreate_C#_CODE +using System; + +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var accountApi = new AccountApi(config); + + var data = new AccountCreateRequest( + emailAddress: "newuser@dropboxsign.com" + ); + + try + { + var result = accountApi.AccountCreate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the AccountCreateWithHttpInfo variant @@ -80,7 +116,39 @@ Returns the properties and settings of your Account. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__AccountGet_C#_CODE +using System; + +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var accountApi = new AccountApi(config); + + try + { + var result = accountApi.AccountGet(null, "jack@example.com"); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the AccountGetWithHttpInfo variant @@ -107,8 +175,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **accountId** | **string?** | `account_id` or `email_address` is required. If both are provided, the account id prevails. The ID of the Account. | [optional] | -| **emailAddress** | **string?** | `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. | [optional] | +| **accountId** | **string?** | `account_id` or `email_address` is required. If both are provided, the account id prevails. The ID of the Account. | [optional] | +| **emailAddress** | **string?** | `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. | [optional] | ### Return type @@ -142,7 +210,43 @@ Updates the properties and settings of your Account. Currently only allows for u ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__AccountUpdate_C#_CODE +using System; + +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var accountApi = new AccountApi(config); + + var data = new AccountUpdateRequest( + callbackUrl: "https://www.example.com/callback" + ); + + try + { + var result = accountApi.AccountUpdate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the AccountUpdateWithHttpInfo variant @@ -203,7 +307,43 @@ Verifies whether an Dropbox Sign Account exists for the given email address. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__AccountVerify_C#_CODE +using System; + +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var accountApi = new AccountApi(config); + + var data = new AccountVerifyRequest( + emailAddress: "some_user@dropboxsign.com" + ); + + try + { + var result = accountApi.AccountVerify(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the AccountVerifyWithHttpInfo variant diff --git a/sdks/dotnet/docs/AccountCreateRequest.md b/sdks/dotnet/docs/AccountCreateRequest.md index 32e74b384..4e1279c88 100644 --- a/sdks/dotnet/docs/AccountCreateRequest.md +++ b/sdks/dotnet/docs/AccountCreateRequest.md @@ -4,11 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address which will be associated with the new Account. REPLACE_ME_WITH_DESCRIPTION_END | **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Used when creating a new account with OAuth authorization. - -See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientSecret** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Used when creating a new account with OAuth authorization. - -See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Locale** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**EmailAddress** | **string** | The email address which will be associated with the new Account. | **ClientId** | **string** | Used when creating a new account with OAuth authorization.

See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) | [optional] **ClientSecret** | **string** | Used when creating a new account with OAuth authorization.

See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) | [optional] **Locale** | **string** | The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. | [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/AccountCreateResponse.md b/sdks/dotnet/docs/AccountCreateResponse.md index c64f26db0..55966d2cf 100644 --- a/sdks/dotnet/docs/AccountCreateResponse.md +++ b/sdks/dotnet/docs/AccountCreateResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Account** | [**AccountResponse**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OauthData** | [**OAuthTokenResponse**](OAuthTokenResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Account** | [**AccountResponse**](AccountResponse.md) | | [optional] **OauthData** | [**OAuthTokenResponse**](OAuthTokenResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/AccountGetResponse.md b/sdks/dotnet/docs/AccountGetResponse.md index 41e3492af..791e7a447 100644 --- a/sdks/dotnet/docs/AccountGetResponse.md +++ b/sdks/dotnet/docs/AccountGetResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Account** | [**AccountResponse**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Account** | [**AccountResponse**](AccountResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/AccountResponse.md b/sdks/dotnet/docs/AccountResponse.md index b2aefa2ff..2f9672466 100644 --- a/sdks/dotnet/docs/AccountResponse.md +++ b/sdks/dotnet/docs/AccountResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the Account REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address associated with the Account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsLocked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has been locked out of their account by a team admin. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsPaidHs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has a paid Dropbox Sign account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsPaidHf** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has a paid HelloFax account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Quotas** | [**AccountResponseQuotas**](AccountResponseQuotas.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL that Dropbox Sign events will `POST` to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RoleCode** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The membership role for the team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the team account belongs to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Locale** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Usage** | [**AccountResponseUsage**](AccountResponseUsage.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AccountId** | **string** | The ID of the Account | [optional] **EmailAddress** | **string** | The email address associated with the Account. | [optional] **IsLocked** | **bool** | Returns `true` if the user has been locked out of their account by a team admin. | [optional] **IsPaidHs** | **bool** | Returns `true` if the user has a paid Dropbox Sign account. | [optional] **IsPaidHf** | **bool** | Returns `true` if the user has a paid HelloFax account. | [optional] **Quotas** | [**AccountResponseQuotas**](AccountResponseQuotas.md) | | [optional] **CallbackUrl** | **string** | The URL that Dropbox Sign events will `POST` to. | [optional] **RoleCode** | **string** | The membership role for the team. | [optional] **TeamId** | **string** | The id of the team account belongs to. | [optional] **Locale** | **string** | The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. | [optional] **Usage** | [**AccountResponseUsage**](AccountResponseUsage.md) | | [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/AccountResponseQuotas.md b/sdks/dotnet/docs/AccountResponseQuotas.md index 474bf74bf..2e12ea8cb 100644 --- a/sdks/dotnet/docs/AccountResponseQuotas.md +++ b/sdks/dotnet/docs/AccountResponseQuotas.md @@ -5,7 +5,7 @@ Details concerning remaining monthly quotas. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiSignatureRequestsLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN API signature requests remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DocumentsLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signature requests remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TemplatesTotal** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Total API templates allowed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TemplatesLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN API templates remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsVerificationsLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN SMS verifications remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumFaxPagesLeft** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of fax pages left REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiSignatureRequestsLeft** | **int?** | API signature requests remaining. | [optional] **DocumentsLeft** | **int?** | Signature requests remaining. | [optional] **TemplatesTotal** | **int?** | Total API templates allowed. | [optional] **TemplatesLeft** | **int?** | API templates remaining. | [optional] **SmsVerificationsLeft** | **int?** | SMS verifications remaining. | [optional] **NumFaxPagesLeft** | **int?** | Number of fax pages left | [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/AccountResponseUsage.md b/sdks/dotnet/docs/AccountResponseUsage.md index b339aa15f..fa5536881 100644 --- a/sdks/dotnet/docs/AccountResponseUsage.md +++ b/sdks/dotnet/docs/AccountResponseUsage.md @@ -5,7 +5,7 @@ Details concerning monthly usage Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FaxPagesSent** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of fax pages sent REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**FaxPagesSent** | **int?** | Number of fax pages sent | [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/AccountUpdateRequest.md b/sdks/dotnet/docs/AccountUpdateRequest.md index 8be197573..32ff20817 100644 --- a/sdks/dotnet/docs/AccountUpdateRequest.md +++ b/sdks/dotnet/docs/AccountUpdateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the Account REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL that Dropbox Sign should POST events to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Locale** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AccountId** | **string** | The ID of the Account | [optional] **CallbackUrl** | **string** | The URL that Dropbox Sign should POST events to. | [optional] **Locale** | **string** | The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. | [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/AccountVerifyRequest.md b/sdks/dotnet/docs/AccountVerifyRequest.md index fb2525137..79b1c8e0f 100644 --- a/sdks/dotnet/docs/AccountVerifyRequest.md +++ b/sdks/dotnet/docs/AccountVerifyRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address to run the verification for. REPLACE_ME_WITH_DESCRIPTION_END | +**EmailAddress** | **string** | Email address to run the verification for. | [[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/AccountVerifyResponse.md b/sdks/dotnet/docs/AccountVerifyResponse.md index 9893567d1..3337b0cdf 100644 --- a/sdks/dotnet/docs/AccountVerifyResponse.md +++ b/sdks/dotnet/docs/AccountVerifyResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Account** | [**AccountVerifyResponseAccount**](AccountVerifyResponseAccount.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Account** | [**AccountVerifyResponseAccount**](AccountVerifyResponseAccount.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/AccountVerifyResponseAccount.md b/sdks/dotnet/docs/AccountVerifyResponseAccount.md index 07059c178..881f1e733 100644 --- a/sdks/dotnet/docs/AccountVerifyResponseAccount.md +++ b/sdks/dotnet/docs/AccountVerifyResponseAccount.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address associated with the Account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**EmailAddress** | **string** | The email address associated with the Account. | [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/ApiAppApi.md b/sdks/dotnet/docs/ApiAppApi.md index cf98ff7de..e587a69d8 100644 --- a/sdks/dotnet/docs/ApiAppApi.md +++ b/sdks/dotnet/docs/ApiAppApi.md @@ -20,7 +20,66 @@ Creates a new API App. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppCreate_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiAppApi = new ApiAppApi(config); + + var oauth = new SubOAuth( + callbackUrl: "https://example.com/oauth", + scopes: new List() { + SubOAuth.ScopesEnum.BasicAccountInfo, + SubOAuth.ScopesEnum.RequestSignature + } + ); + + var whiteLabelingOptions = new SubWhiteLabelingOptions( + primaryButtonColor: "#00b3e6", + primaryButtonTextColor: "#ffffff" + ); + + var customLogoFile = new FileStream( + "CustomLogoFile.png", + FileMode.Open + ); + + var data = new ApiAppCreateRequest( + name: "My Production App", + domains: new List(){"example.com"}, + oauth: oauth, + whiteLabelingOptions: whiteLabelingOptions, + customLogoFile: customLogoFile + ); + + try + { + var result = apiAppApi.ApiAppCreate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the ApiAppCreateWithHttpInfo variant @@ -81,7 +140,41 @@ Deletes an API App. Can only be invoked for apps you own. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppDelete_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiAppApi = new ApiAppApi(config); + + var clientId = "0dd3b823a682527788c4e40cb7b6f7e9"; + + try + { + apiAppApi.ApiAppDelete(clientId); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the ApiAppDeleteWithHttpInfo variant @@ -139,7 +232,41 @@ Returns an object with information about an API App. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppGet_C#_CODE +using System; + +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiAppApi = new ApiAppApi(config); + + var clientId = "0dd3b823a682527788c4e40cb7b6f7e9"; + + try + { + var result = apiAppApi.ApiAppGet(clientId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the ApiAppGetWithHttpInfo variant @@ -200,7 +327,42 @@ Returns a list of API Apps that are accessible by you. If you are on a team with ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppList_C#_CODE +using System; + +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiAppApi = new ApiAppApi(config); + + var page = 1; + var pageSize = 2; + + try + { + var result = apiAppApi.ApiAppList(page, pageSize); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the ApiAppListWithHttpInfo variant @@ -227,8 +389,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **page** | **int?** | Which page number of the API App List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the API App List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | ### Return type @@ -262,7 +424,68 @@ Updates an existing API App. Can only be invoked for apps you own. Only the fiel ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__ApiAppUpdate_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiAppApi = new ApiAppApi(config); + + var oauth = new SubOAuth( + callbackUrl: "https://example.com/oauth", + scopes: new List() { + SubOAuth.ScopesEnum.BasicAccountInfo, + SubOAuth.ScopesEnum.RequestSignature + } + ); + + var whiteLabelingOptions = new SubWhiteLabelingOptions( + primaryButtonColor: "#00b3e6", + primaryButtonTextColor: "#ffffff" + ); + + var customLogoFile = new FileStream( + "CustomLogoFile.png", + FileMode.Open + ); + + var data = new ApiAppUpdateRequest( + name: "My Production App", + domains: new List(){"example.com"}, + oauth: oauth, + whiteLabelingOptions: whiteLabelingOptions, + customLogoFile: customLogoFile + ); + + var clientId = "0dd3b823a682527788c4e40cb7b6f7e9"; + + try + { + var result = apiAppApi.ApiAppUpdate(clientId, data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the ApiAppUpdateWithHttpInfo variant diff --git a/sdks/dotnet/docs/ApiAppCreateRequest.md b/sdks/dotnet/docs/ApiAppCreateRequest.md index 27f03b83f..00307e783 100644 --- a/sdks/dotnet/docs/ApiAppCreateRequest.md +++ b/sdks/dotnet/docs/ApiAppCreateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Domains** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The domain names the ApiApp will be associated with. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name you want to assign to the ApiApp. REPLACE_ME_WITH_DESCRIPTION_END | **CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL at which the ApiApp should receive event callbacks. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomLogoFile** | **System.IO.Stream** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Oauth** | [**SubOAuth**](SubOAuth.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Options** | [**SubOptions**](SubOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **WhiteLabelingOptions** | [**SubWhiteLabelingOptions**](SubWhiteLabelingOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Domains** | **List<string>** | The domain names the ApiApp will be associated with. | **Name** | **string** | The name you want to assign to the ApiApp. | **CallbackUrl** | **string** | The URL at which the ApiApp should receive event callbacks. | [optional] **CustomLogoFile** | **System.IO.Stream** | An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) | [optional] **Oauth** | [**SubOAuth**](SubOAuth.md) | | [optional] **Options** | [**SubOptions**](SubOptions.md) | | [optional] **WhiteLabelingOptions** | [**SubWhiteLabelingOptions**](SubWhiteLabelingOptions.md) | | [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/ApiAppGetResponse.md b/sdks/dotnet/docs/ApiAppGetResponse.md index 1af8eb57f..c83e775ce 100644 --- a/sdks/dotnet/docs/ApiAppGetResponse.md +++ b/sdks/dotnet/docs/ApiAppGetResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiApp** | [**ApiAppResponse**](ApiAppResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiApp** | [**ApiAppResponse**](ApiAppResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/ApiAppListResponse.md b/sdks/dotnet/docs/ApiAppListResponse.md index 8cf2eb832..e858b2f75 100644 --- a/sdks/dotnet/docs/ApiAppListResponse.md +++ b/sdks/dotnet/docs/ApiAppListResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiApps** | [**List<ApiAppResponse>**](ApiAppResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains information about API Apps. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiApps** | [**List<ApiAppResponse>**](ApiAppResponse.md) | Contains information about API Apps. | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/ApiAppResponse.md b/sdks/dotnet/docs/ApiAppResponse.md index 05f728d10..f27ff0659 100644 --- a/sdks/dotnet/docs/ApiAppResponse.md +++ b/sdks/dotnet/docs/ApiAppResponse.md @@ -5,7 +5,7 @@ Contains information about an API App. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The app's callback URL (for events) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The app's client id REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time that the app was created REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Domains** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The domain name(s) associated with the app REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the app REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsApproved** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean to indicate if the app has been approved REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Oauth** | [**ApiAppResponseOAuth**](ApiAppResponseOAuth.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Options** | [**ApiAppResponseOptions**](ApiAppResponseOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OwnerAccount** | [**ApiAppResponseOwnerAccount**](ApiAppResponseOwnerAccount.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **WhiteLabelingOptions** | [**ApiAppResponseWhiteLabelingOptions**](ApiAppResponseWhiteLabelingOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**CallbackUrl** | **string** | The app's callback URL (for events) | [optional] **ClientId** | **string** | The app's client id | [optional] **CreatedAt** | **int** | The time that the app was created | [optional] **Domains** | **List<string>** | The domain name(s) associated with the app | [optional] **Name** | **string** | The name of the app | [optional] **IsApproved** | **bool** | Boolean to indicate if the app has been approved | [optional] **Oauth** | [**ApiAppResponseOAuth**](ApiAppResponseOAuth.md) | | [optional] **Options** | [**ApiAppResponseOptions**](ApiAppResponseOptions.md) | | [optional] **OwnerAccount** | [**ApiAppResponseOwnerAccount**](ApiAppResponseOwnerAccount.md) | | [optional] **WhiteLabelingOptions** | [**ApiAppResponseWhiteLabelingOptions**](ApiAppResponseWhiteLabelingOptions.md) | | [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/ApiAppResponseOAuth.md b/sdks/dotnet/docs/ApiAppResponseOAuth.md index 78b50dde3..cffe8900f 100644 --- a/sdks/dotnet/docs/ApiAppResponseOAuth.md +++ b/sdks/dotnet/docs/ApiAppResponseOAuth.md @@ -5,7 +5,7 @@ An object describing the app's OAuth properties, or null if OAuth is not configu Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The app's OAuth callback URL. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Secret** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The app's OAuth secret, or null if the app does not belong to user. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Scopes** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Array of OAuth scopes used by the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ChargesUsers** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**CallbackUrl** | **string** | The app's OAuth callback URL. | [optional] **Secret** | **string** | The app's OAuth secret, or null if the app does not belong to user. | [optional] **Scopes** | **List<string>** | Array of OAuth scopes used by the app. | [optional] **ChargesUsers** | **bool** | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | [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/ApiAppResponseOptions.md b/sdks/dotnet/docs/ApiAppResponseOptions.md index a992c5db4..e484ad16b 100644 --- a/sdks/dotnet/docs/ApiAppResponseOptions.md +++ b/sdks/dotnet/docs/ApiAppResponseOptions.md @@ -5,7 +5,7 @@ An object with options that override account settings. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CanInsertEverywhere** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean denoting if signers can "Insert Everywhere" in one click while signing a document REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**CanInsertEverywhere** | **bool** | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | [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/ApiAppResponseOwnerAccount.md b/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md index fe3183aa9..eee4afc3e 100644 --- a/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md +++ b/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md @@ -5,7 +5,7 @@ An object describing the app's owner Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The owner account's ID REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The owner account's email address REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AccountId** | **string** | The owner account's ID | [optional] **EmailAddress** | **string** | The owner account's email address | [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/ApiAppResponseWhiteLabelingOptions.md b/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md index 68fc3b3fc..3f3eb34a3 100644 --- a/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md +++ b/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md @@ -5,7 +5,7 @@ An object with options to customize the app's signer page Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HeaderBackgroundColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LegalVersion** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LinkColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PageBackgroundColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PrimaryButtonColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PrimaryButtonColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PrimaryButtonTextColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PrimaryButtonTextColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SecondaryButtonColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SecondaryButtonColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SecondaryButtonTextColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SecondaryButtonTextColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TextColor1** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TextColor2** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**HeaderBackgroundColor** | **string** | | [optional] **LegalVersion** | **string** | | [optional] **LinkColor** | **string** | | [optional] **PageBackgroundColor** | **string** | | [optional] **PrimaryButtonColor** | **string** | | [optional] **PrimaryButtonColorHover** | **string** | | [optional] **PrimaryButtonTextColor** | **string** | | [optional] **PrimaryButtonTextColorHover** | **string** | | [optional] **SecondaryButtonColor** | **string** | | [optional] **SecondaryButtonColorHover** | **string** | | [optional] **SecondaryButtonTextColor** | **string** | | [optional] **SecondaryButtonTextColorHover** | **string** | | [optional] **TextColor1** | **string** | | [optional] **TextColor2** | **string** | | [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/ApiAppUpdateRequest.md b/sdks/dotnet/docs/ApiAppUpdateRequest.md index c7502fd44..cd4888a9a 100644 --- a/sdks/dotnet/docs/ApiAppUpdateRequest.md +++ b/sdks/dotnet/docs/ApiAppUpdateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL at which the API App should receive event callbacks. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomLogoFile** | **System.IO.Stream** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Domains** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The domain names the ApiApp will be associated with. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name you want to assign to the ApiApp. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Oauth** | [**SubOAuth**](SubOAuth.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Options** | [**SubOptions**](SubOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **WhiteLabelingOptions** | [**SubWhiteLabelingOptions**](SubWhiteLabelingOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**CallbackUrl** | **string** | The URL at which the API App should receive event callbacks. | [optional] **CustomLogoFile** | **System.IO.Stream** | An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) | [optional] **Domains** | **List<string>** | The domain names the ApiApp will be associated with. | [optional] **Name** | **string** | The name you want to assign to the ApiApp. | [optional] **Oauth** | [**SubOAuth**](SubOAuth.md) | | [optional] **Options** | [**SubOptions**](SubOptions.md) | | [optional] **WhiteLabelingOptions** | [**SubWhiteLabelingOptions**](SubWhiteLabelingOptions.md) | | [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/BulkSendJobApi.md b/sdks/dotnet/docs/BulkSendJobApi.md index 0968e8905..050257d63 100644 --- a/sdks/dotnet/docs/BulkSendJobApi.md +++ b/sdks/dotnet/docs/BulkSendJobApi.md @@ -17,7 +17,42 @@ Returns the status of the BulkSendJob and its SignatureRequests specified by the ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__BulkSendJobGet_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var bulkSendJobApi = new BulkSendJobApi(config); + + var bulkSendJobId = "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174"; + + try + { + var result = bulkSendJobApi.BulkSendJobGet(bulkSendJobId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the BulkSendJobGetWithHttpInfo variant @@ -45,8 +80,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **bulkSendJobId** | **string** | The id of the BulkSendJob to retrieve. | | -| **page** | **int?** | Which page number of the BulkSendJob list to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the BulkSendJob list to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. | [optional] [default to 20] | ### Return type @@ -80,7 +115,43 @@ Returns a list of BulkSendJob that you can access. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__BulkSendJobList_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var bulkSendJobApi = new BulkSendJobApi(config); + + var page = 1; + var pageSize = 20; + + try + { + var result = bulkSendJobApi.BulkSendJobList(page, pageSize); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the BulkSendJobListWithHttpInfo variant @@ -107,8 +178,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **page** | **int?** | Which page number of the BulkSendJob List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the BulkSendJob List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. | [optional] [default to 20] | ### Return type diff --git a/sdks/dotnet/docs/BulkSendJobGetResponse.md b/sdks/dotnet/docs/BulkSendJobGetResponse.md index 3ee0bb4f3..5c9146b79 100644 --- a/sdks/dotnet/docs/BulkSendJobGetResponse.md +++ b/sdks/dotnet/docs/BulkSendJobGetResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BulkSendJob** | [**BulkSendJobResponse**](BulkSendJobResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignatureRequests** | [**List<BulkSendJobGetResponseSignatureRequests>**](BulkSendJobGetResponseSignatureRequests.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains information about the Signature Requests sent in bulk. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**BulkSendJob** | [**BulkSendJobResponse**](BulkSendJobResponse.md) | | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] **SignatureRequests** | [**List<BulkSendJobGetResponseSignatureRequests>**](BulkSendJobGetResponseSignatureRequests.md) | Contains information about the Signature Requests sent in bulk. | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/BulkSendJobGetResponseSignatureRequests.md b/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md index 174c46678..779fdaf8c 100644 --- a/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md @@ -4,10 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TestMode** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**SignatureRequestId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the initiator of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title the specified Account uses for the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalTitle** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Default Label for account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that was initially sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that was initially sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Object** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The metadata attached to the signature request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time the signature request was created. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsComplete** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not the SignatureRequest has been fully executed by all signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsDeclined** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not the SignatureRequest has been declined by a signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasError** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FilesUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where a copy of the request's documents can be downloaded. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DetailsUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where the requester and the signers can view the current status of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want the signer redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FinalCopyUri** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The path where the completed document can be downloaded REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Templates IDs used in this SignatureRequest (if any). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Custom Field objects containing the name and type of each custom field. - -* Text Field uses `SignatureRequestResponseCustomFieldText` -* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer attachments. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of signature objects, 1 for each signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **BulkSendJobId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the BulkSendJob. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TestMode** | **bool?** | Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. | [optional] [default to false]**SignatureRequestId** | **string** | The id of the SignatureRequest. | [optional] **RequesterEmailAddress** | **string** | The email address of the initiator of the SignatureRequest. | [optional] **Title** | **string** | The title the specified Account uses for the SignatureRequest. | [optional] **OriginalTitle** | **string** | Default Label for account. | [optional] **Subject** | **string** | The subject in the email that was initially sent to the signers. | [optional] **Message** | **string** | The custom message in the email that was initially sent to the signers. | [optional] **Metadata** | **Object** | The metadata attached to the signature request. | [optional] **CreatedAt** | **int** | Time the signature request was created. | [optional] **ExpiresAt** | **int** | The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] **IsComplete** | **bool** | Whether or not the SignatureRequest has been fully executed by all signers. | [optional] **IsDeclined** | **bool** | Whether or not the SignatureRequest has been declined by a signer. | [optional] **HasError** | **bool** | Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). | [optional] **FilesUrl** | **string** | The URL where a copy of the request's documents can be downloaded. | [optional] **SigningUrl** | **string** | The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. | [optional] **DetailsUrl** | **string** | The URL where the requester and the signers can view the current status of the SignatureRequest. | [optional] **CcEmailAddresses** | **List<string>** | A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. | [optional] **SigningRedirectUrl** | **string** | The URL you want the signer redirected to after they successfully sign. | [optional] **FinalCopyUri** | **string** | The path where the completed document can be downloaded | [optional] **TemplateIds** | **List<string>** | Templates IDs used in this SignatureRequest (if any). | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | An array of Custom Field objects containing the name and type of each custom field.

* Text Field uses `SignatureRequestResponseCustomFieldText`
* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | [optional] **BulkSendJobId** | **string** | The id of the BulkSendJob. | [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/BulkSendJobListResponse.md b/sdks/dotnet/docs/BulkSendJobListResponse.md index 4e7364f9d..d933a5a27 100644 --- a/sdks/dotnet/docs/BulkSendJobListResponse.md +++ b/sdks/dotnet/docs/BulkSendJobListResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BulkSendJobs** | [**List<BulkSendJobResponse>**](BulkSendJobResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains a list of BulkSendJobs that the API caller has access to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**BulkSendJobs** | [**List<BulkSendJobResponse>**](BulkSendJobResponse.md) | Contains a list of BulkSendJobs that the API caller has access to. | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/BulkSendJobResponse.md b/sdks/dotnet/docs/BulkSendJobResponse.md index a4fb08985..6a9e580db 100644 --- a/sdks/dotnet/docs/BulkSendJobResponse.md +++ b/sdks/dotnet/docs/BulkSendJobResponse.md @@ -5,7 +5,7 @@ Contains information about the BulkSendJob such as when it was created and how m Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BulkSendJobId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the BulkSendJob. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Total** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The total amount of Signature Requests queued for sending. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsCreator** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time that the BulkSendJob was created. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**BulkSendJobId** | **string** | The id of the BulkSendJob. | [optional] **Total** | **int** | The total amount of Signature Requests queued for sending. | [optional] **IsCreator** | **bool** | True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. | [optional] **CreatedAt** | **int** | Time that the BulkSendJob was created. | [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/BulkSendJobSendResponse.md b/sdks/dotnet/docs/BulkSendJobSendResponse.md index 21dbae51a..836f2785f 100644 --- a/sdks/dotnet/docs/BulkSendJobSendResponse.md +++ b/sdks/dotnet/docs/BulkSendJobSendResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BulkSendJob** | [**BulkSendJobResponse**](BulkSendJobResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**BulkSendJob** | [**BulkSendJobResponse**](BulkSendJobResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/EmbeddedApi.md b/sdks/dotnet/docs/EmbeddedApi.md index 5626a1c1f..39c38b4c2 100644 --- a/sdks/dotnet/docs/EmbeddedApi.md +++ b/sdks/dotnet/docs/EmbeddedApi.md @@ -17,7 +17,47 @@ Retrieves an embedded object containing a template url that can be opened in an ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__EmbeddedEditUrl_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var embeddedApi = new EmbeddedApi(config); + + var data = new EmbeddedEditUrlRequest( + ccRoles: new List(){""}, + mergeFields: new List() + ); + + var templateId = "5de8179668f2033afac48da1868d0093bf133266"; + + try + { + var result = embeddedApi.EmbeddedEditUrl(templateId, data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the EmbeddedEditUrlWithHttpInfo variant @@ -79,7 +119,42 @@ Retrieves an embedded object containing a signature url that can be opened in an ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__EmbeddedSignUrl_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var embeddedApi = new EmbeddedApi(config); + + var signatureId = "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b"; + + try + { + var result = embeddedApi.EmbeddedSignUrl(signatureId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the EmbeddedSignUrlWithHttpInfo variant diff --git a/sdks/dotnet/docs/EmbeddedEditUrlRequest.md b/sdks/dotnet/docs/EmbeddedEditUrlRequest.md index f9be8b2b5..43b4c3e10 100644 --- a/sdks/dotnet/docs/EmbeddedEditUrlRequest.md +++ b/sdks/dotnet/docs/EmbeddedEditUrlRequest.md @@ -4,11 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AllowEditCcs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable/disable to add or change CC roles when editing the template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**CcRoles** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ForceSignerRoles** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template signer roles. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ForceSubjectMessage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template subject and message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template. - -Remove all merge fields on the template by passing an empty array `[]`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PreviewOnly** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). - -**NOTE:** This parameter overwrites `show_preview=true` (if set). REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ShowPreview** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the editor/preview experience. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**AllowEditCcs** | **bool** | This allows the requester to enable/disable to add or change CC roles when editing the template. | [optional] [default to false]**CcRoles** | **List<string>** | The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] **ForceSignerRoles** | **bool** | Provide users the ability to review/edit the template signer roles. | [optional] [default to false]**ForceSubjectMessage** | **bool** | Provide users the ability to review/edit the template subject and message. | [optional] [default to false]**MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template.

Remove all merge fields on the template by passing an empty array `[]`. | [optional] **PreviewOnly** | **bool** | This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor).

**NOTE:** This parameter overwrites `show_preview=true` (if set). | [optional] [default to false]**ShowPreview** | **bool** | This allows the requester to enable the editor/preview experience. | [optional] [default to false]**ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true]**TestMode** | **bool** | Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. | [optional] [default to false] [[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/EmbeddedEditUrlResponse.md b/sdks/dotnet/docs/EmbeddedEditUrlResponse.md index f5355e911..51c243045 100644 --- a/sdks/dotnet/docs/EmbeddedEditUrlResponse.md +++ b/sdks/dotnet/docs/EmbeddedEditUrlResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Embedded** | [**EmbeddedEditUrlResponseEmbedded**](EmbeddedEditUrlResponseEmbedded.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Embedded** | [**EmbeddedEditUrlResponseEmbedded**](EmbeddedEditUrlResponseEmbedded.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/EmbeddedEditUrlResponseEmbedded.md b/sdks/dotnet/docs/EmbeddedEditUrlResponseEmbedded.md index f237b4423..7750157e9 100644 --- a/sdks/dotnet/docs/EmbeddedEditUrlResponseEmbedded.md +++ b/sdks/dotnet/docs/EmbeddedEditUrlResponseEmbedded.md @@ -5,7 +5,7 @@ An embedded template object. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EditUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A template url that can be opened in an iFrame. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The specific time that the the `edit_url` link expires, in epoch. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**EditUrl** | **string** | A template url that can be opened in an iFrame. | [optional] **ExpiresAt** | **int** | The specific time that the the `edit_url` link expires, in epoch. | [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/EmbeddedSignUrlResponse.md b/sdks/dotnet/docs/EmbeddedSignUrlResponse.md index fa443a160..70f0b7bd3 100644 --- a/sdks/dotnet/docs/EmbeddedSignUrlResponse.md +++ b/sdks/dotnet/docs/EmbeddedSignUrlResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Embedded** | [**EmbeddedSignUrlResponseEmbedded**](EmbeddedSignUrlResponseEmbedded.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Embedded** | [**EmbeddedSignUrlResponseEmbedded**](EmbeddedSignUrlResponseEmbedded.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/EmbeddedSignUrlResponseEmbedded.md b/sdks/dotnet/docs/EmbeddedSignUrlResponseEmbedded.md index 49e3cda48..319edfa14 100644 --- a/sdks/dotnet/docs/EmbeddedSignUrlResponseEmbedded.md +++ b/sdks/dotnet/docs/EmbeddedSignUrlResponseEmbedded.md @@ -5,7 +5,7 @@ An object that contains necessary information to set up embedded signing. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A signature url that can be opened in an iFrame. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The specific time that the the `sign_url` link expires, in epoch. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignUrl** | **string** | A signature url that can be opened in an iFrame. | [optional] **ExpiresAt** | **int** | The specific time that the the `sign_url` link expires, in epoch. | [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/ErrorResponse.md b/sdks/dotnet/docs/ErrorResponse.md index 9094d1ed1..c91f8ef22 100644 --- a/sdks/dotnet/docs/ErrorResponse.md +++ b/sdks/dotnet/docs/ErrorResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Error** | [**ErrorResponseError**](ErrorResponseError.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | +**Error** | [**ErrorResponseError**](ErrorResponseError.md) | | [[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/ErrorResponseError.md b/sdks/dotnet/docs/ErrorResponseError.md index a18fb2725..13dacc1bf 100644 --- a/sdks/dotnet/docs/ErrorResponseError.md +++ b/sdks/dotnet/docs/ErrorResponseError.md @@ -5,7 +5,7 @@ Contains information about an error that occurred. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ErrorMsg** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Message describing an error. REPLACE_ME_WITH_DESCRIPTION_END | **ErrorName** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Name of the error. REPLACE_ME_WITH_DESCRIPTION_END | **ErrorPath** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Path at which an error occurred. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ErrorMsg** | **string** | Message describing an error. | **ErrorName** | **string** | Name of the error. | **ErrorPath** | **string** | Path at which an error occurred. | [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/EventCallbackRequest.md b/sdks/dotnet/docs/EventCallbackRequest.md index 814bec5c9..2ff935c42 100644 --- a/sdks/dotnet/docs/EventCallbackRequest.md +++ b/sdks/dotnet/docs/EventCallbackRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Event** | [**EventCallbackRequestEvent**](EventCallbackRequestEvent.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **Account** | [**AccountResponse**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignatureRequest** | [**SignatureRequestResponse**](SignatureRequestResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Template** | [**TemplateResponse**](TemplateResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Event** | [**EventCallbackRequestEvent**](EventCallbackRequestEvent.md) | | **Account** | [**AccountResponse**](AccountResponse.md) | | [optional] **SignatureRequest** | [**SignatureRequestResponse**](SignatureRequestResponse.md) | | [optional] **Template** | [**TemplateResponse**](TemplateResponse.md) | | [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/EventCallbackRequestEvent.md b/sdks/dotnet/docs/EventCallbackRequestEvent.md index 785faa366..ca1780ac9 100644 --- a/sdks/dotnet/docs/EventCallbackRequestEvent.md +++ b/sdks/dotnet/docs/EventCallbackRequestEvent.md @@ -5,7 +5,7 @@ Basic information about the event that occurred. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EventTime** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time the event was created (using Unix time). REPLACE_ME_WITH_DESCRIPTION_END | **EventType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Type of callback event that was triggered. REPLACE_ME_WITH_DESCRIPTION_END | **EventHash** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Generated hash used to verify source of event data. REPLACE_ME_WITH_DESCRIPTION_END | **EventMetadata** | [**EventCallbackRequestEventMetadata**](EventCallbackRequestEventMetadata.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**EventTime** | **string** | Time the event was created (using Unix time). | **EventType** | **string** | Type of callback event that was triggered. | **EventHash** | **string** | Generated hash used to verify source of event data. | **EventMetadata** | [**EventCallbackRequestEventMetadata**](EventCallbackRequestEventMetadata.md) | | [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/EventCallbackRequestEventMetadata.md b/sdks/dotnet/docs/EventCallbackRequestEventMetadata.md index 253f9e134..cf78a668c 100644 --- a/sdks/dotnet/docs/EventCallbackRequestEventMetadata.md +++ b/sdks/dotnet/docs/EventCallbackRequestEventMetadata.md @@ -5,7 +5,7 @@ Specific metadata about the event. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RelatedSignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signature ID for a specific signer. Applicable to `signature_request_signed` and `signature_request_viewed` events. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReportedForAccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account ID the event was reported for. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReportedForAppId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN App ID the event was reported for. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EventMessage** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Message about a declined or failed (due to error) signature flow. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**RelatedSignatureId** | **string** | Signature ID for a specific signer. Applicable to `signature_request_signed` and `signature_request_viewed` events. | [optional] **ReportedForAccountId** | **string** | Account ID the event was reported for. | [optional] **ReportedForAppId** | **string** | App ID the event was reported for. | [optional] **EventMessage** | **string** | Message about a declined or failed (due to error) signature flow. | [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/FaxLineAddUserRequest.md b/sdks/dotnet/docs/FaxLineAddUserRequest.md index cfae04ea0..f89c0deef 100644 --- a/sdks/dotnet/docs/FaxLineAddUserRequest.md +++ b/sdks/dotnet/docs/FaxLineAddUserRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The Fax Line number. REPLACE_ME_WITH_DESCRIPTION_END | **AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account ID REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Number** | **string** | The Fax Line number. | **AccountId** | **string** | Account ID | [optional] **EmailAddress** | **string** | Email address | [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/FaxLineApi.md b/sdks/dotnet/docs/FaxLineApi.md index e2d395634..4fd57baf5 100644 --- a/sdks/dotnet/docs/FaxLineApi.md +++ b/sdks/dotnet/docs/FaxLineApi.md @@ -22,7 +22,41 @@ Grants a user access to the specified Fax Line. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineAddUser_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + config.Username = "YOUR_API_KEY"; + + var faxLineApi = new FaxLineApi(config); + + var data = new FaxLineAddUserRequest( + number: "[FAX_NUMBER]", + emailAddress: "member@dropboxsign.com" + ); + + try + { + var result = faxLineApi.FaxLineAddUser(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the FaxLineAddUserWithHttpInfo variant @@ -83,7 +117,36 @@ Returns a response with the area codes available for a given state/provice and c ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineAreaCodeGet_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + config.Username = "YOUR_API_KEY"; + + var faxLineApi = new FaxLineApi(config); + + try + { + var result = faxLineApi.FaxLineAreaCodeGet("US", "CA"); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the FaxLineAreaCodeGetWithHttpInfo variant @@ -147,7 +210,41 @@ Purchases a new Fax Line. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineCreate_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + config.Username = "YOUR_API_KEY"; + + var faxLineApi = new FaxLineApi(config); + + var data = new FaxLineCreateRequest( + areaCode: 209, + country: "US" + ); + + try + { + var result = faxLineApi.FaxLineCreate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the FaxLineCreateWithHttpInfo variant @@ -208,7 +305,39 @@ Deletes the specified Fax Line from the subscription. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineDelete_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + config.Username = "YOUR_API_KEY"; + + var faxLineApi = new FaxLineApi(config); + + var data = new FaxLineDeleteRequest( + number: "[FAX_NUMBER]", + ); + + try + { + faxLineApi.FaxLineDelete(data); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the FaxLineDeleteWithHttpInfo variant @@ -266,7 +395,36 @@ Returns the properties and settings of a Fax Line. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineGet_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + config.Username = "YOUR_API_KEY"; + + var faxLineApi = new FaxLineApi(config); + + try + { + var result = faxLineApi.FaxLineGet("[FAX_NUMBER]"); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the FaxLineGetWithHttpInfo variant @@ -327,7 +485,36 @@ Returns the properties and settings of multiple Fax Lines. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineList_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + config.Username = "YOUR_API_KEY"; + + var faxLineApi = new FaxLineApi(config); + + try + { + var result = faxLineApi.FaxLineList(); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the FaxLineListWithHttpInfo variant @@ -391,7 +578,41 @@ Removes a user's access to the specified Fax Line. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__FaxLineRemoveUser_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + config.Username = "YOUR_API_KEY"; + + var faxLineApi = new FaxLineApi(config); + + var data = new FaxLineRemoveUserRequest( + number: "[FAX_NUMBER]", + emailAddress: "member@dropboxsign.com" + ); + + try + { + var result = faxLineApi.FaxLineRemoveUser(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the FaxLineRemoveUserWithHttpInfo variant diff --git a/sdks/dotnet/docs/FaxLineAreaCodeGetResponse.md b/sdks/dotnet/docs/FaxLineAreaCodeGetResponse.md index 469e1adc3..297d51efd 100644 --- a/sdks/dotnet/docs/FaxLineAreaCodeGetResponse.md +++ b/sdks/dotnet/docs/FaxLineAreaCodeGetResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AreaCodes** | **List<int>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AreaCodes** | **List<int>** | | [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/FaxLineCreateRequest.md b/sdks/dotnet/docs/FaxLineCreateRequest.md index 6ad607b8e..21d3ffc88 100644 --- a/sdks/dotnet/docs/FaxLineCreateRequest.md +++ b/sdks/dotnet/docs/FaxLineCreateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AreaCode** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Area code REPLACE_ME_WITH_DESCRIPTION_END | **Country** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Country REPLACE_ME_WITH_DESCRIPTION_END | **City** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN City REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account ID REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AreaCode** | **int** | Area code | **Country** | **string** | Country | **City** | **string** | City | [optional] **AccountId** | **string** | Account ID | [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/FaxLineDeleteRequest.md b/sdks/dotnet/docs/FaxLineDeleteRequest.md index cc2f25404..673880d28 100644 --- a/sdks/dotnet/docs/FaxLineDeleteRequest.md +++ b/sdks/dotnet/docs/FaxLineDeleteRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The Fax Line number. REPLACE_ME_WITH_DESCRIPTION_END | +**Number** | **string** | The Fax Line number. | [[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/FaxLineListResponse.md b/sdks/dotnet/docs/FaxLineListResponse.md index fd596f5ad..24cb73f01 100644 --- a/sdks/dotnet/docs/FaxLineListResponse.md +++ b/sdks/dotnet/docs/FaxLineListResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FaxLines** | [**List<FaxLineResponseFaxLine>**](FaxLineResponseFaxLine.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**WarningResponse**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] **FaxLines** | [**List<FaxLineResponseFaxLine>**](FaxLineResponseFaxLine.md) | | [optional] **Warnings** | [**WarningResponse**](WarningResponse.md) | | [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/FaxLineRemoveUserRequest.md b/sdks/dotnet/docs/FaxLineRemoveUserRequest.md index 08965e8d3..0d73414a7 100644 --- a/sdks/dotnet/docs/FaxLineRemoveUserRequest.md +++ b/sdks/dotnet/docs/FaxLineRemoveUserRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The Fax Line number. REPLACE_ME_WITH_DESCRIPTION_END | **AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account ID REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Number** | **string** | The Fax Line number. | **AccountId** | **string** | Account ID | [optional] **EmailAddress** | **string** | Email address | [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/FaxLineResponse.md b/sdks/dotnet/docs/FaxLineResponse.md index 0e050a29c..5f1bf15be 100644 --- a/sdks/dotnet/docs/FaxLineResponse.md +++ b/sdks/dotnet/docs/FaxLineResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FaxLine** | [**FaxLineResponseFaxLine**](FaxLineResponseFaxLine.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**WarningResponse**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**FaxLine** | [**FaxLineResponseFaxLine**](FaxLineResponseFaxLine.md) | | [optional] **Warnings** | [**WarningResponse**](WarningResponse.md) | | [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/FaxLineResponseFaxLine.md b/sdks/dotnet/docs/FaxLineResponseFaxLine.md index bafa4d7e1..672e73d56 100644 --- a/sdks/dotnet/docs/FaxLineResponseFaxLine.md +++ b/sdks/dotnet/docs/FaxLineResponseFaxLine.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Created at REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UpdatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Updated at REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Accounts** | [**List<AccountResponse>**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Number** | **string** | Number | [optional] **CreatedAt** | **int** | Created at | [optional] **UpdatedAt** | **int** | Updated at | [optional] **Accounts** | [**List<AccountResponse>**](AccountResponse.md) | | [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/FileResponse.md b/sdks/dotnet/docs/FileResponse.md index 0ca43d220..b1999a78a 100644 --- a/sdks/dotnet/docs/FileResponse.md +++ b/sdks/dotnet/docs/FileResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FileUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN URL to the file. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the link expires. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**FileUrl** | **string** | URL to the file. | [optional] **ExpiresAt** | **int** | When the link expires. | [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/FileResponseDataUri.md b/sdks/dotnet/docs/FileResponseDataUri.md index 0ce14907a..927cb34b7 100644 --- a/sdks/dotnet/docs/FileResponseDataUri.md +++ b/sdks/dotnet/docs/FileResponseDataUri.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DataUri** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN File as base64 encoded string. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**DataUri** | **string** | File as base64 encoded string. | [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/ListInfoResponse.md b/sdks/dotnet/docs/ListInfoResponse.md index 2b96d1bc5..59b6e3a67 100644 --- a/sdks/dotnet/docs/ListInfoResponse.md +++ b/sdks/dotnet/docs/ListInfoResponse.md @@ -5,7 +5,7 @@ Contains pagination information about the data returned. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NumPages** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Total number of pages available. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumResults** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Total number of objects available. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Page** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of the page being returned. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PageSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Objects returned per page. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**NumPages** | **int** | Total number of pages available. | [optional] **NumResults** | **int?** | Total number of objects available. | [optional] **Page** | **int** | Number of the page being returned. | [optional] **PageSize** | **int** | Objects returned per page. | [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/OAuthApi.md b/sdks/dotnet/docs/OAuthApi.md index 7581d62d2..5af912344 100644 --- a/sdks/dotnet/docs/OAuthApi.md +++ b/sdks/dotnet/docs/OAuthApi.md @@ -17,7 +17,42 @@ Once you have retrieved the code from the user callback, you will need to exchan ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__OauthTokenGenerate_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + + var oAuthApi = new OAuthApi(config); + + var data = new OAuthTokenGenerateRequest( + state: "900e06e2", + code: "1b0d28d90c86c141", + clientId: "cc91c61d00f8bb2ece1428035716b", + clientSecret: "1d14434088507ffa390e6f5528465" + ); + + try + { + var result = oAuthApi.OauthTokenGenerate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the OauthTokenGenerateWithHttpInfo variant @@ -77,7 +112,39 @@ Access tokens are only valid for a given period of time (typically one hour) for ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__OauthTokenRefresh_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + + var oAuthApi = new OAuthApi(config); + + var data = new OAuthTokenRefreshRequest( + refreshToken: "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3" + ); + + try + { + var result = oAuthApi.OauthTokenRefresh(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the OauthTokenRefreshWithHttpInfo variant diff --git a/sdks/dotnet/docs/OAuthTokenGenerateRequest.md b/sdks/dotnet/docs/OAuthTokenGenerateRequest.md index 909169e37..04b69bc13 100644 --- a/sdks/dotnet/docs/OAuthTokenGenerateRequest.md +++ b/sdks/dotnet/docs/OAuthTokenGenerateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The client id of the app requesting authorization. REPLACE_ME_WITH_DESCRIPTION_END | **ClientSecret** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The secret token of your app. REPLACE_ME_WITH_DESCRIPTION_END | **Code** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The code passed to your callback when the user granted access. REPLACE_ME_WITH_DESCRIPTION_END | **GrantType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When generating a new token use `authorization_code`. REPLACE_ME_WITH_DESCRIPTION_END | [default to "authorization_code"]**State** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Same as the state you specified earlier. REPLACE_ME_WITH_DESCRIPTION_END | +**ClientId** | **string** | The client id of the app requesting authorization. | **ClientSecret** | **string** | The secret token of your app. | **Code** | **string** | The code passed to your callback when the user granted access. | **GrantType** | **string** | When generating a new token use `authorization_code`. | [default to "authorization_code"]**State** | **string** | Same as the state you specified earlier. | [[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/OAuthTokenRefreshRequest.md b/sdks/dotnet/docs/OAuthTokenRefreshRequest.md index 5794c5599..c9866d3bf 100644 --- a/sdks/dotnet/docs/OAuthTokenRefreshRequest.md +++ b/sdks/dotnet/docs/OAuthTokenRefreshRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**GrantType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When refreshing an existing token use `refresh_token`. REPLACE_ME_WITH_DESCRIPTION_END | [default to "refresh_token"]**RefreshToken** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The token provided when you got the expired access token. REPLACE_ME_WITH_DESCRIPTION_END | +**GrantType** | **string** | When refreshing an existing token use `refresh_token`. | [default to "refresh_token"]**RefreshToken** | **string** | The token provided when you got the expired access token. | [[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/OAuthTokenResponse.md b/sdks/dotnet/docs/OAuthTokenResponse.md index 1d56fb266..52a050158 100644 --- a/sdks/dotnet/docs/OAuthTokenResponse.md +++ b/sdks/dotnet/docs/OAuthTokenResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccessToken** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TokenType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RefreshToken** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresIn** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of seconds until the `access_token` expires. Uses epoch time. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **State** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AccessToken** | **string** | | [optional] **TokenType** | **string** | | [optional] **RefreshToken** | **string** | | [optional] **ExpiresIn** | **int** | Number of seconds until the `access_token` expires. Uses epoch time. | [optional] **State** | **string** | | [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/ReportApi.md b/sdks/dotnet/docs/ReportApi.md index e6b1b88d9..9ea98796f 100644 --- a/sdks/dotnet/docs/ReportApi.md +++ b/sdks/dotnet/docs/ReportApi.md @@ -16,7 +16,49 @@ Request the creation of one or more report(s). When the report(s) have been gen ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__ReportCreate_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var reportApi = new ReportApi(config); + + var data = new ReportCreateRequest( + startDate: "09/01/2020", + endDate: "09/01/2020", + reportType: new List() { + ReportCreateRequest.ReportTypeEnum.UserActivity, + ReportCreateRequest.ReportTypeEnum.DocumentStatus, + } + ); + + try + { + var result = reportApi.OauthCreate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the ReportCreateWithHttpInfo variant diff --git a/sdks/dotnet/docs/ReportCreateRequest.md b/sdks/dotnet/docs/ReportCreateRequest.md index b1f1242db..4b025274b 100644 --- a/sdks/dotnet/docs/ReportCreateRequest.md +++ b/sdks/dotnet/docs/ReportCreateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EndDate** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The (inclusive) end date for the report data in `MM/DD/YYYY` format. REPLACE_ME_WITH_DESCRIPTION_END | **ReportType** | **List<ReportCreateRequest.ReportTypeEnum>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). REPLACE_ME_WITH_DESCRIPTION_END | **StartDate** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The (inclusive) start date for the report data in `MM/DD/YYYY` format. REPLACE_ME_WITH_DESCRIPTION_END | +**EndDate** | **string** | The (inclusive) end date for the report data in `MM/DD/YYYY` format. | **ReportType** | **List<ReportCreateRequest.ReportTypeEnum>** | The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). | **StartDate** | **string** | The (inclusive) start date for the report data in `MM/DD/YYYY` format. | [[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/ReportCreateResponse.md b/sdks/dotnet/docs/ReportCreateResponse.md index 386dc08d3..eba26c348 100644 --- a/sdks/dotnet/docs/ReportCreateResponse.md +++ b/sdks/dotnet/docs/ReportCreateResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Report** | [**ReportResponse**](ReportResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Report** | [**ReportResponse**](ReportResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/ReportResponse.md b/sdks/dotnet/docs/ReportResponse.md index 547ac7095..9f6aec6c6 100644 --- a/sdks/dotnet/docs/ReportResponse.md +++ b/sdks/dotnet/docs/ReportResponse.md @@ -5,7 +5,7 @@ Contains information about the report request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Success** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A message indicating the requested operation's success REPLACE_ME_WITH_DESCRIPTION_END | [optional] **StartDate** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The (inclusive) start date for the report data in MM/DD/YYYY format. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EndDate** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The (inclusive) end date for the report data in MM/DD/YYYY format. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReportType** | **List<ReportResponse.ReportTypeEnum>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type(s) of the report you are requesting. Allowed values are "user_activity" and "document_status". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Success** | **string** | A message indicating the requested operation's success | [optional] **StartDate** | **string** | The (inclusive) start date for the report data in MM/DD/YYYY format. | [optional] **EndDate** | **string** | The (inclusive) end date for the report data in MM/DD/YYYY format. | [optional] **ReportType** | **List<ReportResponse.ReportTypeEnum>** | The type(s) of the report you are requesting. Allowed values are "user_activity" and "document_status". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). | [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/SignatureRequestApi.md b/sdks/dotnet/docs/SignatureRequestApi.md index 850bb9448..c411d0c01 100644 --- a/sdks/dotnet/docs/SignatureRequestApi.md +++ b/sdks/dotnet/docs/SignatureRequestApi.md @@ -31,7 +31,89 @@ Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestBulkCreateEmbeddedWithTemplate_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signerList1Signer = new SubSignatureRequestTemplateSigner( + role: "Client", + name: "George", + emailAddress: "george@example.com", + pin: "d79a3td" + ); + + var signerList1CustomFields = new SubBulkSignerListCustomField( + name: "company", + value: "ABC Corp" + ); + + var signerList1 = new SubBulkSignerList( + signers: new List(){signerList1Signer}, + customFields: new List(){signerList1CustomFields} + ); + + var signerList2Signer = new SubSignatureRequestTemplateSigner( + role: "Client", + name: "Mary", + emailAddress: "mary@example.com", + pin: "gd9as5b" + ); + + var signerList2CustomFields = new SubBulkSignerListCustomField( + name: "company", + value: "123 Corp" + ); + + var signerList2 = new SubBulkSignerList( + signers: new List(){signerList2Signer}, + customFields: new List(){signerList2CustomFields} + ); + + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@email.com" + ); + + var data = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest( + clientId: "1a659d9ad95bccd307ecad78d72192f8", + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + subject: "Purchase Order", + message: "Glad we could come to an agreement.", + signerList: new List(){signerList1, signerList2}, + ccs: new List(){cc1}, + testMode: true + ); + + try + { + var result = signatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo variant @@ -92,7 +174,88 @@ Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestBulkSendWithTemplate_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signerList1Signer = new SubSignatureRequestTemplateSigner( + role: "Client", + name: "George", + emailAddress: "george@example.com", + pin: "d79a3td" + ); + + var signerList1CustomFields = new SubBulkSignerListCustomField( + name: "company", + value: "ABC Corp" + ); + + var signerList1 = new SubBulkSignerList( + signers: new List(){signerList1Signer}, + customFields: new List(){signerList1CustomFields} + ); + + var signerList2Signer = new SubSignatureRequestTemplateSigner( + role: "Client", + name: "Mary", + emailAddress: "mary@example.com", + pin: "gd9as5b" + ); + + var signerList2CustomFields = new SubBulkSignerListCustomField( + name: "company", + value: "123 Corp" + ); + + var signerList2 = new SubBulkSignerList( + signers: new List(){signerList2Signer}, + customFields: new List(){signerList2CustomFields} + ); + + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@email.com" + ); + + var data = new SignatureRequestBulkSendWithTemplateRequest( + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + subject: "Purchase Order", + message: "Glad we could come to an agreement.", + signerList: new List(){signerList1, signerList2}, + ccs: new List(){cc1}, + testMode: true + ); + + try + { + var result = signatureRequestApi.SignatureRequestBulkSendWithTemplate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestBulkSendWithTemplateWithHttpInfo variant @@ -153,7 +316,41 @@ Cancels an incomplete signature request. This action is **not reversible**. The ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestCancel_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; + + try + { + signatureRequestApi.SignatureRequestCancel(signatureRequestId); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestCancelWithHttpInfo variant @@ -211,7 +408,81 @@ Creates a new SignatureRequest with the submitted documents to be signed in an e ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestCreateEmbedded_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signer1 = new SubSignatureRequestSigner( + emailAddress: "jack@example.com", + name: "Jack", + order: 0 + ); + + var signer2 = new SubSignatureRequestSigner( + emailAddress: "jill@example.com", + name: "Jill", + order: 1 + ); + + var signingOptions = new SubSigningOptions( + draw: true, + type: true, + upload: true, + phone: true, + defaultType: SubSigningOptions.DefaultTypeEnum.Draw + ); + + var files = new List { + new FileStream( + "./example_signature_request.pdf", + FileMode.Open, + FileAccess.Read, + FileShare.Read + ) + }; + + var data = new SignatureRequestCreateEmbeddedRequest( + clientId: "ec64a202072370a737edf4a0eb7f4437", + title: "NDA with Acme Co.", + subject: "The NDA we talked about", + message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", + signers: new List(){signer1, signer2}, + ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, + files: files, + signingOptions: signingOptions, + testMode: true + ); + + try + { + var result = signatureRequestApi.SignatureRequestCreateEmbedded(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestCreateEmbeddedWithHttpInfo variant @@ -272,7 +543,62 @@ Creates a new SignatureRequest based on the given Template(s) to be signed in an ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestCreateEmbeddedWithTemplate_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signer1 = new SubSignatureRequestTemplateSigner( + role: "Client", + name: "George" + ); + + var subSigningOptions = new SubSigningOptions( + draw: true, + type: true, + upload: true, + phone: false, + defaultType: SubSigningOptions.DefaultTypeEnum.Draw + ); + + var data = new SignatureRequestCreateEmbeddedWithTemplateRequest( + clientId: "ec64a202072370a737edf4a0eb7f4437", + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + subject: "Purchase Order", + message: "Glad we could come to an agreement.", + signers: new List(){signer1}, + signingOptions: subSigningOptions, + testMode: true + ); + + try + { + var result = signatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo variant @@ -333,7 +659,45 @@ Obtain a copy of the current documents specified by the `signature_request_id` p ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestFiles_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; + + try + { + var result = signatureRequestApi.SignatureRequestFiles(signatureRequestId, "pdf"); + + var fileStream = File.Create("file_response.pdf"); + result.Seek(0, SeekOrigin.Begin); + result.CopyTo(fileStream); + fileStream.Close(); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestFilesWithHttpInfo variant @@ -361,7 +725,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to retrieve. | | -| **fileType** | **string?** | Set to `pdf` for a single merged document or `zip` for a collection of individual documents. | [optional] [default to pdf] | +| **fileType** | **string?** | Set to `pdf` for a single merged document or `zip` for a collection of individual documents. | [optional] [default to pdf] | ### Return type @@ -395,7 +759,41 @@ Obtain a copy of the current documents specified by the `signature_request_id` p ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestFilesAsDataUri_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; + + try + { + var result = signatureRequestApi.SignatureRequestFilesAsDataUri(signatureRequestId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestFilesAsDataUriWithHttpInfo variant @@ -456,7 +854,41 @@ Obtain a copy of the current documents specified by the `signature_request_id` p ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestFilesAsFileUrl_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; + + try + { + var result = signatureRequestApi.SignatureRequestFilesAsFileUrl(signatureRequestId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestFilesAsFileUrlWithHttpInfo variant @@ -484,7 +916,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to retrieve. | | -| **forceDownload** | **int?** | By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. | [optional] [default to 1] | +| **forceDownload** | **int?** | By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. | [optional] [default to 1] | ### Return type @@ -518,7 +950,41 @@ Returns the status of the SignatureRequest specified by the `signature_request_i ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestGet_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; + + try + { + var result = signatureRequestApi.SignatureRequestGet(signatureRequestId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestGetWithHttpInfo variant @@ -579,7 +1045,41 @@ Returns a list of SignatureRequests that you can access. This includes Signature ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestList_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var accountId = "accountId"; + + try + { + var result = signatureRequestApi.SignatureRequestList(accountId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestListWithHttpInfo variant @@ -606,9 +1106,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **accountId** | **string?** | Which account to return SignatureRequests for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. | [optional] | -| **page** | **int?** | Which page number of the SignatureRequest List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **accountId** | **string?** | Which account to return SignatureRequests for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. | [optional] | +| **page** | **int?** | Which page number of the SignatureRequest List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | | **query** | **string?** | String that includes search terms and/or fields to be used to filter the SignatureRequest objects. | [optional] | ### Return type @@ -643,7 +1143,41 @@ Releases a held SignatureRequest that was claimed and prepared from an [Unclaime ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestReleaseHold_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; + + try + { + var result = signatureRequestApi.SignatureRequestReleaseHold(signatureRequestId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestReleaseHoldWithHttpInfo variant @@ -704,7 +1238,45 @@ Sends an email to the signer reminding them to sign the signature request. You c ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestRemind_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var data = new SignatureRequestRemindRequest( + emailAddress: "john@example.com" + ); + + var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; + + try + { + var result = signatureRequestApi.SignatureRequestRemind(signatureRequestId, data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestRemindWithHttpInfo variant @@ -766,7 +1338,40 @@ Removes your access to a completed signature request. This action is **not rever ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestRemove_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; + + try + { + signatureRequestApi.SignatureRequestRemove(signatureRequestId); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestRemoveWithHttpInfo variant @@ -824,7 +1429,92 @@ Creates and sends a new SignatureRequest with the submitted documents. If `form_ ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestSend_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signer1 = new SubSignatureRequestSigner( + emailAddress: "jack@example.com", + name: "Jack", + order: 0 + ); + + var signer2 = new SubSignatureRequestSigner( + emailAddress: "jill@example.com", + name: "Jill", + order: 1 + ); + + var signingOptions = new SubSigningOptions( + draw: true, + type: true, + upload: true, + phone: true, + defaultType: SubSigningOptions.DefaultTypeEnum.Draw + ); + + var subFieldOptions = new SubFieldOptions( + dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY + ); + + var metadata = new Dictionary() + { + ["custom_id"] = 1234, + ["custom_text"] = "NDA #9" + }; + + var files = new List { + new FileStream( + "./example_signature_request.pdf", + FileMode.Open, + FileAccess.Read, + FileShare.Read + ) + }; + + var data = new SignatureRequestSendRequest( + title: "NDA with Acme Co.", + subject: "The NDA we talked about", + message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", + signers: new List(){signer1, signer2}, + ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, + files: files, + metadata: metadata, + signingOptions: signingOptions, + fieldOptions: subFieldOptions, + testMode: true + ); + + try + { + var result = signatureRequestApi.SignatureRequestSend(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestSendWithHttpInfo variant @@ -885,7 +1575,76 @@ Creates and sends a new SignatureRequest based off of the Template(s) specified ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestSendWithTemplate_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signer1 = new SubSignatureRequestTemplateSigner( + role: "Client", + emailAddress: "george@example.com", + name: "George" + ); + + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@emaple.com" + ); + + var customField1 = new SubCustomField( + name: "Cost", + value: "$20,000", + editor: "Client", + required: true + ); + + var signingOptions = new SubSigningOptions( + draw: true, + type: true, + upload: true, + phone: false, + defaultType: SubSigningOptions.DefaultTypeEnum.Draw + ); + + var data = new SignatureRequestSendWithTemplateRequest( + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + subject: "Purchase Order", + message: "Glad we could come to an agreement.", + signers: new List(){signer1}, + ccs: new List(){cc1}, + customFields: new List(){customField1}, + signingOptions: signingOptions, + testMode: true + ); + + try + { + var result = signatureRequestApi.SignatureRequestSendWithTemplate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestSendWithTemplateWithHttpInfo variant @@ -946,7 +1705,46 @@ Updates the email address and/or the name for a given signer on a signature requ ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__SignatureRequestUpdate_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var signatureRequestApi = new SignatureRequestApi(config); + + var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; + + var data = new SignatureRequestUpdateRequest( + emailAddress: "john@example.com", + signatureId: "78caf2a1d01cd39cea2bc1cbb340dac3" + ); + + try + { + var result = signatureRequestApi.SignatureRequestUpdate(signatureRequestId, data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the SignatureRequestUpdateWithHttpInfo variant diff --git a/sdks/dotnet/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md b/sdks/dotnet/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md index 6608c2f61..002d9501a 100644 --- a/sdks/dotnet/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md @@ -4,33 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. REPLACE_ME_WITH_DESCRIPTION_END | **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this embedded signature request. Used for security purposes. REPLACE_ME_WITH_DESCRIPTION_END | **SignerFile** | **System.IO.Stream** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - -- `name`: the name of the signer filling the role of RoleName -- `email_address`: email address of the signer filling the role of RoleName -- `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) -- `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) - - By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). - - **NOTE:** Not available in test mode and requires a Standard plan or higher. -- `*_field`: any column with a _field" suffix will be treated as a custom field (optional) - - You may only specify field values here, any other options should be set in the custom_fields request parameter. - -Example CSV: - -``` -name, email_address, pin, company_field -George, george@example.com, d79a3td, ABC Corp -Mary, mary@example.com, gd9as5b, 123 LLC -``` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerList** | [**List<SubBulkSignerList>**](SubBulkSignerList.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. - -Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. - -For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | **ClientId** | **string** | Client id of the app you're using to create this embedded signature request. Used for security purposes. | **SignerFile** | **System.IO.Stream** | `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns:

- `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional)

By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on).

**NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field" suffix will be treated as a custom field (optional)

You may only specify field values here, any other options should be set in the custom_fields request parameter.

Example CSV:

``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` | [optional] **SignerList** | [**List<SubBulkSignerList>**](SubBulkSignerList.md) | `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. | [optional] **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] **Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [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/SignatureRequestBulkSendWithTemplateRequest.md b/sdks/dotnet/docs/SignatureRequestBulkSendWithTemplateRequest.md index 637d73cba..8e108215e 100644 --- a/sdks/dotnet/docs/SignatureRequestBulkSendWithTemplateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestBulkSendWithTemplateRequest.md @@ -4,33 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. REPLACE_ME_WITH_DESCRIPTION_END | **SignerFile** | **System.IO.Stream** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - -- `name`: the name of the signer filling the role of RoleName -- `email_address`: email address of the signer filling the role of RoleName -- `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) -- `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) - - By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). - - **NOTE:** Not available in test mode and requires a Standard plan or higher. -- `*_field`: any column with a _field" suffix will be treated as a custom field (optional) - - You may only specify field values here, any other options should be set in the custom_fields request parameter. - -Example CSV: - -``` -name, email_address, pin, company_field -George, george@example.com, d79a3td, ABC Corp -Mary, mary@example.com, gd9as5b, 123 LLC -``` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerList** | [**List<SubBulkSignerList>**](SubBulkSignerList.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. - -Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. - -For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | **SignerFile** | **System.IO.Stream** | `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns:

- `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional)

By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on).

**NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field" suffix will be treated as a custom field (optional)

You may only specify field values here, any other options should be set in the custom_fields request parameter.

Example CSV:

``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` | [optional] **SignerList** | [**List<SubBulkSignerList>**](SubBulkSignerList.md) | `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. | [optional] **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] **ClientId** | **string** | The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] **Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [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/SignatureRequestCreateEmbeddedRequest.md b/sdks/dotnet/docs/SignatureRequestCreateEmbeddedRequest.md index b315c1a18..babeb4eb2 100644 --- a/sdks/dotnet/docs/SignatureRequestCreateEmbeddedRequest.md +++ b/sdks/dotnet/docs/SignatureRequestCreateEmbeddedRequest.md @@ -4,40 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this embedded signature request. Used for security purposes. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Signature Request. - -This endpoint requires either **signers** or **grouped_signers**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Grouped Signers to your Signature Request. - -This endpoint requires either **signers** or **grouped_signers**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. - -**NOTE:** Only available for Premium plan. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email addresses that should be CCed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. - -Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. - -For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) - -**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. - -* Text Field use `SubFormFieldsPerDocumentText` -* Dropdown Field use `SubFormFieldsPerDocumentDropdown` -* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` -* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` -* Radio Field use `SubFormFieldsPerDocumentRadio` -* Signature Field use `SubFormFieldsPerDocumentSignature` -* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` -* Initials Field use `SubFormFieldsPerDocumentInitials` -* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` -* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HideTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Enables automatic Text Tag removal when set to true. - -**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UseTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**PopulateAutoFillFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. - -**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ClientId** | **string** | Client id of the app you're using to create this embedded signature request. Used for security purposes. | **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | Add Signers to your Signature Request.

This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] **GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | Add Grouped Signers to your Signature Request.

This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan. | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] **CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] **HideTextTags** | **bool** | Enables automatic Text Tag removal when set to true.

**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. | [optional] [default to false]**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **UseTextTags** | **bool** | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | [optional] [default to false]**PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false]**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [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/SignatureRequestCreateEmbeddedWithTemplateRequest.md b/sdks/dotnet/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md index 975c016d5..61bab9b3a 100644 --- a/sdks/dotnet/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md @@ -4,15 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. REPLACE_ME_WITH_DESCRIPTION_END | **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this embedded signature request. Used for security purposes. REPLACE_ME_WITH_DESCRIPTION_END | **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Templated-based Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array defining values and options for custom fields. Required when a custom field exists in the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PopulateAutoFillFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. - -**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | **ClientId** | **string** | Client id of the app you're using to create this embedded signature request. Used for security purposes. | **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | Add Signers to your Templated-based Signature Request. | **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | [optional] **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false] [[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/SignatureRequestGetResponse.md b/sdks/dotnet/docs/SignatureRequestGetResponse.md index 8a1911032..855bb5e06 100644 --- a/sdks/dotnet/docs/SignatureRequestGetResponse.md +++ b/sdks/dotnet/docs/SignatureRequestGetResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureRequest** | [**SignatureRequestResponse**](SignatureRequestResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureRequest** | [**SignatureRequestResponse**](SignatureRequestResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/SignatureRequestListResponse.md b/sdks/dotnet/docs/SignatureRequestListResponse.md index 7bad11f32..aeb5c783b 100644 --- a/sdks/dotnet/docs/SignatureRequestListResponse.md +++ b/sdks/dotnet/docs/SignatureRequestListResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureRequests** | [**List<SignatureRequestResponse>**](SignatureRequestResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains information about signature requests. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureRequests** | [**List<SignatureRequestResponse>**](SignatureRequestResponse.md) | Contains information about signature requests. | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/SignatureRequestRemindRequest.md b/sdks/dotnet/docs/SignatureRequestRemindRequest.md index 8d4954199..45ab25c37 100644 --- a/sdks/dotnet/docs/SignatureRequestRemindRequest.md +++ b/sdks/dotnet/docs/SignatureRequestRemindRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer to send a reminder to. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer to send a reminder to. Include if two or more signers share an email address. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**EmailAddress** | **string** | The email address of the signer to send a reminder to. | **Name** | **string** | The name of the signer to send a reminder to. Include if two or more signers share an email address. | [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/SignatureRequestResponse.md b/sdks/dotnet/docs/SignatureRequestResponse.md index e5b708e39..a21e1fde2 100644 --- a/sdks/dotnet/docs/SignatureRequestResponse.md +++ b/sdks/dotnet/docs/SignatureRequestResponse.md @@ -5,10 +5,7 @@ Contains information about a signature request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TestMode** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**SignatureRequestId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the initiator of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title the specified Account uses for the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalTitle** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Default Label for account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that was initially sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that was initially sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Object** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The metadata attached to the signature request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CreatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time the signature request was created. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsComplete** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not the SignatureRequest has been fully executed by all signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsDeclined** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not the SignatureRequest has been declined by a signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasError** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FilesUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where a copy of the request's documents can be downloaded. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DetailsUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL where the requester and the signers can view the current status of the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want the signer redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FinalCopyUri** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The path where the completed document can be downloaded REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Templates IDs used in this SignatureRequest (if any). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Custom Field objects containing the name and type of each custom field. - -* Text Field uses `SignatureRequestResponseCustomFieldText` -* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer attachments. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of signature objects, 1 for each signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **BulkSendJobId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the Bulk Send job which sent the signature request, if applicable. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TestMode** | **bool?** | Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. | [optional] [default to false]**SignatureRequestId** | **string** | The id of the SignatureRequest. | [optional] **RequesterEmailAddress** | **string** | The email address of the initiator of the SignatureRequest. | [optional] **Title** | **string** | The title the specified Account uses for the SignatureRequest. | [optional] **OriginalTitle** | **string** | Default Label for account. | [optional] **Subject** | **string** | The subject in the email that was initially sent to the signers. | [optional] **Message** | **string** | The custom message in the email that was initially sent to the signers. | [optional] **Metadata** | **Object** | The metadata attached to the signature request. | [optional] **CreatedAt** | **int** | Time the signature request was created. | [optional] **ExpiresAt** | **int** | The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] **IsComplete** | **bool** | Whether or not the SignatureRequest has been fully executed by all signers. | [optional] **IsDeclined** | **bool** | Whether or not the SignatureRequest has been declined by a signer. | [optional] **HasError** | **bool** | Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). | [optional] **FilesUrl** | **string** | The URL where a copy of the request's documents can be downloaded. | [optional] **SigningUrl** | **string** | The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. | [optional] **DetailsUrl** | **string** | The URL where the requester and the signers can view the current status of the SignatureRequest. | [optional] **CcEmailAddresses** | **List<string>** | A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. | [optional] **SigningRedirectUrl** | **string** | The URL you want the signer redirected to after they successfully sign. | [optional] **FinalCopyUri** | **string** | The path where the completed document can be downloaded | [optional] **TemplateIds** | **List<string>** | Templates IDs used in this SignatureRequest (if any). | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | An array of Custom Field objects containing the name and type of each custom field.

* Text Field uses `SignatureRequestResponseCustomFieldText`
* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | [optional] **BulkSendJobId** | **string** | The ID of the Bulk Send job which sent the signature request, if applicable. | [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/SignatureRequestResponseAttachment.md b/sdks/dotnet/docs/SignatureRequestResponseAttachment.md index ff3b94f7a..cf0956931 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseAttachment.md +++ b/sdks/dotnet/docs/SignatureRequestResponseAttachment.md @@ -5,7 +5,7 @@ Signer attachments. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this attachment. REPLACE_ME_WITH_DESCRIPTION_END | **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The Signer this attachment is assigned to. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of this attachment. REPLACE_ME_WITH_DESCRIPTION_END | **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this attachment is required. REPLACE_ME_WITH_DESCRIPTION_END | **Instructions** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Instructions for Signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UploadedAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Timestamp when attachment was uploaded by Signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Id** | **string** | The unique ID for this attachment. | **Signer** | **string** | The Signer this attachment is assigned to. | **Name** | **string** | The name of this attachment. | **Required** | **bool** | A boolean value denoting if this attachment is required. | **Instructions** | **string** | Instructions for Signer. | [optional] **UploadedAt** | **int?** | Timestamp when attachment was uploaded by Signer. | [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/SignatureRequestResponseCustomFieldBase.md b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldBase.md index 0e952b6ac..02072d8aa 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseCustomFieldBase.md +++ b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldBase.md @@ -5,7 +5,7 @@ An array of Custom Field objects containing the name and type of each custom fie Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Editor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role that is able to edit this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. | **Name** | **string** | The name of the Custom Field. | **Required** | **bool** | A boolean value denoting if this field is required. | [optional] **ApiId** | **string** | The unique ID for this field. | [optional] **Editor** | **string** | The name of the Role that is able to edit this 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/sdks/dotnet/docs/SignatureRequestResponseCustomFieldCheckbox.md b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldCheckbox.md index 12e0205cc..42a1a3004 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseCustomFieldCheckbox.md +++ b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldCheckbox.md @@ -5,11 +5,11 @@ This class extends `SignatureRequestResponseCustomFieldBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Editor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role that is able to edit this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"]**Value** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A true/false for checkbox fields REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The name of the Custom Field. | +**Required** | **bool** | A boolean value denoting if this field is required. | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**Editor** | **string** | The name of the Role that is able to edit this field. | [optional] +**Type** | **string** | The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. | [default to "checkbox"]**Value** | **bool** | A true/false for checkbox fields | [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/SignatureRequestResponseCustomFieldText.md b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldText.md index a0ead1a5b..c3c9ca8af 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseCustomFieldText.md +++ b/sdks/dotnet/docs/SignatureRequestResponseCustomFieldText.md @@ -5,11 +5,11 @@ This class extends `SignatureRequestResponseCustomFieldBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Editor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role that is able to edit this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text string for text fields REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The name of the Custom Field. | +**Required** | **bool** | A boolean value denoting if this field is required. | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**Editor** | **string** | The name of the Role that is able to edit this field. | [optional] +**Type** | **string** | The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. | [default to "text"]**Value** | **string** | A text string for text fields | [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/SignatureRequestResponseDataBase.md b/sdks/dotnet/docs/SignatureRequestResponseDataBase.md index 895516c7c..63c965df9 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataBase.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataBase.md @@ -5,7 +5,7 @@ An array of form field objects containing the name, value, and type of each text Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] **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** | | [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/SignatureRequestResponseDataValueCheckbox.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckbox.md index cf0357b31..57d02ae42 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckbox.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckbox.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A yes/no checkbox REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "checkbox"]**Value** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**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 yes/no checkbox | [optional] [default to "checkbox"]**Value** | **bool** | The value of the 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/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckboxMerge.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckboxMerge.md index 897322570..7e96757d7 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckboxMerge.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueCheckboxMerge.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A checkbox field that has default value set by the api REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "checkbox-merge"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**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 checkbox field that has default value set by the api | [optional] [default to "checkbox-merge"]**Value** | **string** | The value of the 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/sdks/dotnet/docs/SignatureRequestResponseDataValueDateSigned.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueDateSigned.md index 1e74b62e3..3bc2e553e 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueDateSigned.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueDateSigned.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A date REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "date_signed"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**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 date | [optional] [default to "date_signed"]**Value** | **string** | The value of the 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/sdks/dotnet/docs/SignatureRequestResponseDataValueDropdown.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueDropdown.md index 665ead345..13473c22d 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueDropdown.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueDropdown.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for dropdowns REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "dropdown"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**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 dropdowns | [optional] [default to "dropdown"]**Value** | **string** | The value of the 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/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md index 2e0218b53..fcd9ab1f8 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for initials REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "initials"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**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] [[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/SignatureRequestResponseDataValueRadio.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueRadio.md index 4e000093e..ccc7520e2 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueRadio.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueRadio.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for radios REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "radio"]**Value** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**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 radios | [optional] [default to "radio"]**Value** | **bool** | The value of the 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/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md index 2a8f9d546..2ee12dce2 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A signature input field REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "signature"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**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] [[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/SignatureRequestResponseDataValueText.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueText.md index 120311899..14e685ea2 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueText.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueText.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text input field REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "text"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**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 text input field | [optional] [default to "text"]**Value** | **string** | The value of the 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/sdks/dotnet/docs/SignatureRequestResponseDataValueTextMerge.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueTextMerge.md index 80449ce78..2c8ab326b 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueTextMerge.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueTextMerge.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature to which this response is linked. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A boolean value denoting if this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text field that has default text set by the api REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "text-merge"]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**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 text field that has default text set by the api | [optional] [default to "text-merge"]**Value** | **string** | The value of the 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/sdks/dotnet/docs/SignatureRequestResponseSignatures.md b/sdks/dotnet/docs/SignatureRequestResponseSignatures.md index da022b1f7..0956244ab 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseSignatures.md +++ b/sdks/dotnet/docs/SignatureRequestResponseSignatures.md @@ -5,7 +5,7 @@ An array of signature objects, 1 for each signer. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signature identifier. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerGroupGuid** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer Group GUID REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerName** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerRole** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The role of the signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN If signer order is assigned this is the 0-based index for this signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **StatusCode** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The current status of the signature. eg: awaiting_signature, signed, declined. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DeclineReason** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The reason provided by the signer for declining the request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignedAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time that the document was signed or null. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LastViewedAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time that the document was last viewed by this signer or null. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LastRemindedAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The time the last reminder email was sent to the signer or null. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasPin** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean to indicate whether this signature requires a PIN to access. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasSmsAuth** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean to indicate whether this signature has SMS authentication enabled. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HasSmsDelivery** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean to indicate whether this signature has SMS delivery enabled. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumber** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The SMS phone number used for authentication or signature request delivery. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReassignedBy** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address of original signer who reassigned to this signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReassignmentReason** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Reason provided by original signer who reassigned to this signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ReassignedFrom** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Previous signature identifier. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Error** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Error message pertaining to this signer, or null. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | Signature identifier. | [optional] **SignerGroupGuid** | **string** | Signer Group GUID | [optional] **SignerEmailAddress** | **string** | The email address of the signer. | [optional] **SignerName** | **string** | The name of the signer. | [optional] **SignerRole** | **string** | The role of the signer. | [optional] **Order** | **int?** | If signer order is assigned this is the 0-based index for this signer. | [optional] **StatusCode** | **string** | The current status of the signature. eg: awaiting_signature, signed, declined. | [optional] **DeclineReason** | **string** | The reason provided by the signer for declining the request. | [optional] **SignedAt** | **int?** | Time that the document was signed or null. | [optional] **LastViewedAt** | **int?** | The time that the document was last viewed by this signer or null. | [optional] **LastRemindedAt** | **int?** | The time the last reminder email was sent to the signer or null. | [optional] **HasPin** | **bool** | Boolean to indicate whether this signature requires a PIN to access. | [optional] **HasSmsAuth** | **bool?** | Boolean to indicate whether this signature has SMS authentication enabled. | [optional] **HasSmsDelivery** | **bool?** | Boolean to indicate whether this signature has SMS delivery enabled. | [optional] **SmsPhoneNumber** | **string** | The SMS phone number used for authentication or signature request delivery. | [optional] **ReassignedBy** | **string** | Email address of original signer who reassigned to this signer. | [optional] **ReassignmentReason** | **string** | Reason provided by original signer who reassigned to this signer. | [optional] **ReassignedFrom** | **string** | Previous signature identifier. | [optional] **Error** | **string** | Error message pertaining to this signer, or null. | [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/SignatureRequestSendRequest.md b/sdks/dotnet/docs/SignatureRequestSendRequest.md index e8919dfb0..000c7adec 100644 --- a/sdks/dotnet/docs/SignatureRequestSendRequest.md +++ b/sdks/dotnet/docs/SignatureRequestSendRequest.md @@ -4,45 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Signature Request. - -This endpoint requires either **signers** or **grouped_signers**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Grouped Signers to your Signature Request. - -This endpoint requires either **signers** or **grouped_signers**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. - -**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email addresses that should be CCed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. - -Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. - -For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) - -**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. - -* Text Field use `SubFormFieldsPerDocumentText` -* Dropdown Field use `SubFormFieldsPerDocumentDropdown` -* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` -* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` -* Radio Field use `SubFormFieldsPerDocumentRadio` -* Signature Field use `SubFormFieldsPerDocumentSignature` -* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` -* Initials Field use `SubFormFieldsPerDocumentInitials` -* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` -* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HideTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Enables automatic Text Tag removal when set to true. - -**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsQualifiedSignature** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable -[Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), -which requires a face-to-face call to verify the signer's identity.<br> -**NOTE:** QES is only available on the Premium API plan as an add-on purchase. -Cannot be used in `test_mode`. Only works on requests with one signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsEid** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable -[electronic identification (eID)](https://www.hellosign.com/features/electronic-id), -which requires the signer to verify their identity with an eID provider to sign a document.<br> -**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UseTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | Add Signers to your Signature Request.

This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] **GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | Add Grouped Signers to your Signature Request.

This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] **CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] **ClientId** | **string** | The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] **HideTextTags** | **bool** | Enables automatic Text Tag removal when set to true.

**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. | [optional] [default to false]**IsQualifiedSignature** | **bool** | Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br>
**NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false]**IsEid** | **bool** | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false]**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **UseTextTags** | **bool** | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | [optional] [default to false]**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [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/SignatureRequestSendWithTemplateRequest.md b/sdks/dotnet/docs/SignatureRequestSendWithTemplateRequest.md index 34ec27e1d..12fc09be5 100644 --- a/sdks/dotnet/docs/SignatureRequestSendWithTemplateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestSendWithTemplateRequest.md @@ -4,20 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. REPLACE_ME_WITH_DESCRIPTION_END | **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Templated-based Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array defining values and options for custom fields. Required when a custom field exists in the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsQualifiedSignature** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable -[Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), -which requires a face-to-face call to verify the signer's identity.<br> -**NOTE:** QES is only available on the Premium API plan as an add-on purchase. -Cannot be used in `test_mode`. Only works on requests with one signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsEid** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable -[electronic identification (eID)](https://www.hellosign.com/features/electronic-id), -which requires the signer to verify their identity with an eID provider to sign a document.<br> -**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | Add Signers to your Templated-based Signature Request. | **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] **ClientId** | **string** | Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | [optional] **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **IsQualifiedSignature** | **bool** | Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br>
**NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false]**IsEid** | **bool** | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false]**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [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/SignatureRequestUpdateRequest.md b/sdks/dotnet/docs/SignatureRequestUpdateRequest.md index 7f27bb726..9f19a93f9 100644 --- a/sdks/dotnet/docs/SignatureRequestUpdateRequest.md +++ b/sdks/dotnet/docs/SignatureRequestUpdateRequest.md @@ -4,13 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signature ID for the recipient. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new email address for the recipient. - -This will generate a new `signature_id` value. - -**NOTE:** Optional if `name` is provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new name for the recipient. - -**NOTE:** Optional if `email_address` is provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureId** | **string** | The signature ID for the recipient. | **EmailAddress** | **string** | The new email address for the recipient.

This will generate a new `signature_id` value.

**NOTE:** Optional if `name` is provided. | [optional] **Name** | **string** | The new name for the recipient.

**NOTE:** Optional if `email_address` is provided. | [optional] **ExpiresAt** | **int?** | The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [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/SubAttachment.md b/sdks/dotnet/docs/SubAttachment.md index 485fa29ca..55eb99ae5 100644 --- a/sdks/dotnet/docs/SubAttachment.md +++ b/sdks/dotnet/docs/SubAttachment.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of attachment. REPLACE_ME_WITH_DESCRIPTION_END | **SignerIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer's index in the `signers` parameter (0-based indexing). - -**NOTE:** Only one signer can be assigned per attachment. REPLACE_ME_WITH_DESCRIPTION_END | **Instructions** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The instructions for uploading the attachment. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Determines if the attachment must be uploaded. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**Name** | **string** | The name of attachment. | **SignerIndex** | **int** | The signer's index in the `signers` parameter (0-based indexing).

**NOTE:** Only one signer can be assigned per attachment. | **Instructions** | **string** | The instructions for uploading the attachment. | [optional] **Required** | **bool** | Determines if the attachment must be uploaded. | [optional] [default to false] [[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/SubBulkSignerList.md b/sdks/dotnet/docs/SubBulkSignerList.md index 34f6b49d8..c256792ff 100644 --- a/sdks/dotnet/docs/SubBulkSignerList.md +++ b/sdks/dotnet/docs/SubBulkSignerList.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CustomFields** | [**List<SubBulkSignerListCustomField>**](SubBulkSignerListCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of custom field values. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. - -Currently only templates with a single role are supported. All signers must have the same `role` value. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**CustomFields** | [**List<SubBulkSignerListCustomField>**](SubBulkSignerListCustomField.md) | An array of custom field values. | [optional] **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document.

Currently only templates with a single role are supported. All signers must have the same `role` value. | [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/SubBulkSignerListCustomField.md b/sdks/dotnet/docs/SubBulkSignerListCustomField.md index 247ad9965..da30ceb6d 100644 --- a/sdks/dotnet/docs/SubBulkSignerListCustomField.md +++ b/sdks/dotnet/docs/SubBulkSignerListCustomField.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the custom field. Must be the field's `name` or `api_id`. REPLACE_ME_WITH_DESCRIPTION_END | **Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The value of the custom field. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | The name of the custom field. Must be the field's `name` or `api_id`. | **Value** | **string** | The value of the custom field. | [[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/SubCC.md b/sdks/dotnet/docs/SubCC.md index 4c4ab1c3b..098eee573 100644 --- a/sdks/dotnet/docs/SubCC.md +++ b/sdks/dotnet/docs/SubCC.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must match an existing CC role in chosen Template(s). Multiple CC recipients cannot share the same CC role. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the CC recipient. REPLACE_ME_WITH_DESCRIPTION_END | +**Role** | **string** | Must match an existing CC role in chosen Template(s). Multiple CC recipients cannot share the same CC role. | **EmailAddress** | **string** | The email address of the CC recipient. | [[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/SubCustomField.md b/sdks/dotnet/docs/SubCustomField.md index 5fc1deef6..0ef9221a6 100644 --- a/sdks/dotnet/docs/SubCustomField.md +++ b/sdks/dotnet/docs/SubCustomField.md @@ -5,9 +5,7 @@ When used together with merge fields, `custom_fields` allows users to add pre-fi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of a custom field. When working with pre-filled data, the custom field's name must have a matching merge field name or the field will remain empty on the document during signing. REPLACE_ME_WITH_DESCRIPTION_END | **Editor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`. - -**NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The string that resolves (aka "pre-fills") to the merge field on the final document(s) used for signing. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The name of a custom field. When working with pre-filled data, the custom field's name must have a matching merge field name or the field will remain empty on the document during signing. | **Editor** | **string** | Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`.

**NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. | [optional] **Required** | **bool** | Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. | [optional] [default to false]**Value** | **string** | The string that resolves (aka "pre-fills") to the merge field on the final document(s) used for signing. | [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/SubEditorOptions.md b/sdks/dotnet/docs/SubEditorOptions.md index 81cf19e00..e0b22f171 100644 --- a/sdks/dotnet/docs/SubEditorOptions.md +++ b/sdks/dotnet/docs/SubEditorOptions.md @@ -5,7 +5,7 @@ This allows the requester to specify editor options when a preparing a document Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AllowEditSigners** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows requesters to edit the list of signers REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowEditDocuments** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows requesters to edit documents, including delete and add REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**AllowEditSigners** | **bool** | Allows requesters to edit the list of signers | [optional] [default to false]**AllowEditDocuments** | **bool** | Allows requesters to edit documents, including delete and add | [optional] [default to false] [[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/SubFieldOptions.md b/sdks/dotnet/docs/SubFieldOptions.md index 3afa8d312..d0c68db71 100644 --- a/sdks/dotnet/docs/SubFieldOptions.md +++ b/sdks/dotnet/docs/SubFieldOptions.md @@ -5,9 +5,7 @@ This allows the requester to specify field options for a signature request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateFormat** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) - -**NOTE:** Only available for Premium and higher. REPLACE_ME_WITH_DESCRIPTION_END | +**DateFormat** | **string** | Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats))

**NOTE:** Only available for Premium and higher. | [[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/SubFormFieldGroup.md b/sdks/dotnet/docs/SubFormFieldGroup.md index b764025be..7928371c4 100644 --- a/sdks/dotnet/docs/SubFormFieldGroup.md +++ b/sdks/dotnet/docs/SubFormFieldGroup.md @@ -4,11 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**GroupId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN ID of group. Use this to reference a specific group from the `group` value in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | **GroupLabel** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Name of the group REPLACE_ME_WITH_DESCRIPTION_END | **Requirement** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Examples: `require_0-1` `require_1` `require_1-ormore` - -- Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). -- Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). -- Radio groups require **at least** two fields per group. REPLACE_ME_WITH_DESCRIPTION_END | +**GroupId** | **string** | ID of group. Use this to reference a specific group from the `group` value in `form_fields_per_document`. | **GroupLabel** | **string** | Name of the group | **Requirement** | **string** | Examples: `require_0-1` `require_1` `require_1-ormore`

- Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. | [[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/SubFormFieldRule.md b/sdks/dotnet/docs/SubFormFieldRule.md index c9674e142..e83476289 100644 --- a/sdks/dotnet/docs/SubFormFieldRule.md +++ b/sdks/dotnet/docs/SubFormFieldRule.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must be unique across all defined rules. REPLACE_ME_WITH_DESCRIPTION_END | **TriggerOperator** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Currently only `AND` is supported. Support for `OR` is being worked on. REPLACE_ME_WITH_DESCRIPTION_END | [default to "AND"]**Triggers** | [**List<SubFormFieldRuleTrigger>**](SubFormFieldRuleTrigger.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of trigger definitions, the "if this" part of "**if this**, then that". Currently only a single trigger per rule is allowed. REPLACE_ME_WITH_DESCRIPTION_END | **Actions** | [**List<SubFormFieldRuleAction>**](SubFormFieldRuleAction.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of action definitions, the "then that" part of "if this, **then that**". Any number of actions may be attached to a single rule. REPLACE_ME_WITH_DESCRIPTION_END | +**Id** | **string** | Must be unique across all defined rules. | **TriggerOperator** | **string** | Currently only `AND` is supported. Support for `OR` is being worked on. | [default to "AND"]**Triggers** | [**List<SubFormFieldRuleTrigger>**](SubFormFieldRuleTrigger.md) | An array of trigger definitions, the "if this" part of "**if this**, then that". Currently only a single trigger per rule is allowed. | **Actions** | [**List<SubFormFieldRuleAction>**](SubFormFieldRuleAction.md) | An array of action definitions, the "then that" part of "if this, **then that**". Any number of actions may be attached to a single rule. | [[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/SubFormFieldRuleAction.md b/sdks/dotnet/docs/SubFormFieldRuleAction.md index 965d2a775..96028d9a7 100644 --- a/sdks/dotnet/docs/SubFormFieldRuleAction.md +++ b/sdks/dotnet/docs/SubFormFieldRuleAction.md @@ -4,15 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Hidden** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` to hide the target field when rule is satisfied, otherwise `false`. REPLACE_ME_WITH_DESCRIPTION_END | **Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **FieldId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **field_id** or **group_id** is required, but not both. - -Must reference the `api_id` of an existing field defined within `form_fields_per_document`. - -Cannot use with `group_id`. Trigger and action fields must belong to the same signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **GroupId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **group_id** or **field_id** is required, but not both. - -Must reference the ID of an existing group defined within `form_field_groups`. - -Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Hidden** | **bool** | `true` to hide the target field when rule is satisfied, otherwise `false`. | **Type** | **string** | | **FieldId** | **string** | **field_id** or **group_id** is required, but not both.

Must reference the `api_id` of an existing field defined within `form_fields_per_document`.

Cannot use with `group_id`. Trigger and action fields must belong to the same signer. | [optional] **GroupId** | **string** | **group_id** or **field_id** is required, but not both.

Must reference the ID of an existing group defined within `form_field_groups`.

Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. | [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/SubFormFieldRuleTrigger.md b/sdks/dotnet/docs/SubFormFieldRuleTrigger.md index dc3f5d420..e6b829e6a 100644 --- a/sdks/dotnet/docs/SubFormFieldRuleTrigger.md +++ b/sdks/dotnet/docs/SubFormFieldRuleTrigger.md @@ -4,40 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Trigger and action fields and groups must belong to the same signer. REPLACE_ME_WITH_DESCRIPTION_END | **Operator** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Different field types allow different `operator` values: -- Field type of **text**: - - **is**: exact match - - **not**: not exact match - - **match**: regular expression, without /. Example: - - OK `[a-zA-Z0-9]` - - Not OK `/[a-zA-Z0-9]/` -- Field type of **dropdown**: - - **is**: exact match, single value - - **not**: not exact match, single value - - **any**: exact match, array of values. - - **none**: not exact match, array of values. -- Field type of **checkbox**: - - **is**: exact match, single value - - **not**: not exact match, single value -- Field type of **radio**: - - **is**: exact match, single value - - **not**: not exact match, single value REPLACE_ME_WITH_DESCRIPTION_END | **Value** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **value** or **values** is required, but not both. - -The value to match against **operator**. - -- When **operator** is one of the following, **value** must be `String`: - - `is` - - `not` - - `match` - -Otherwise, -- **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` -- **radio**: When **type** of trigger is **radio**, **value** must be `1` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Values** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **values** or **value** is required, but not both. - -The values to match against **operator** when it is one of the following: - -- `any` -- `none` REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Id** | **string** | Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Trigger and action fields and groups must belong to the same signer. | **Operator** | **string** | Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value | **Value** | **string** | **value** or **values** is required, but not both.

The value to match against **operator**.

- When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match`

Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1` | [optional] **Values** | **List<string>** | **values** or **value** is required, but not both.

The values to match against **operator** when it is one of the following:

- `any` - `none` | [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/SubFormFieldsPerDocumentBase.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentBase.md index 931fc2dd2..e684c8b85 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentBase.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentBase.md @@ -5,14 +5,7 @@ The fields that should appear on the document, expressed as an array of objects. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | **Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | **Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | **X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | **Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | **ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | **Height** | **int** | Size of the field in pixels. | **Required** | **bool** | Whether this field is required. | **Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | **Type** | **string** | | **Width** | **int** | Size of the field in pixels. | **X** | **int** | Location coordinates of the field in pixels. | **Y** | **int** | Location coordinates of the field in pixels. | **Name** | **string** | Display name for the field. | [optional] **Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [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/SubFormFieldsPerDocumentCheckbox.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckbox.md index 127b1c47c..3e099fb3d 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckbox.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckbox.md @@ -5,24 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A yes/no checkbox. Use the `SubFormFieldsPerDocumentCheckbox` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"]**IsChecked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` for checking the checkbox field by default, otherwise `false`. REPLACE_ME_WITH_DESCRIPTION_END | **Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN String referencing group defined in `form_field_groups` parameter. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | A yes/no checkbox. Use the `SubFormFieldsPerDocumentCheckbox` class. | [default to "checkbox"]**IsChecked** | **bool** | `true` for checking the checkbox field by default, otherwise `false`. | **Group** | **string** | String referencing group defined in `form_field_groups` parameter. | [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/SubFormFieldsPerDocumentCheckboxMerge.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckboxMerge.md index 49ac19f85..61cd72325 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckboxMerge.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentCheckboxMerge.md @@ -5,24 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A checkbox field that has default value set using pre-filled data. Use the `SubFormFieldsPerDocumentCheckboxMerge` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox-merge"] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | A checkbox field that has default value set using pre-filled data. Use the `SubFormFieldsPerDocumentCheckboxMerge` class. | [default to "checkbox-merge"] [[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/SubFormFieldsPerDocumentDateSigned.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentDateSigned.md index 19d75ed54..1e7bf6477 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentDateSigned.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentDateSigned.md @@ -5,26 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A date. Use the `SubFormFieldsPerDocumentDateSigned` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "date_signed"]**FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. - -**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | A date. Use the `SubFormFieldsPerDocumentDateSigned` class. | [default to "date_signed"]**FontFamily** | **string** | Font family for the field. | [optional] **FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] [[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/SubFormFieldsPerDocumentDropdown.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentDropdown.md index 897e05357..d23c8c62c 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentDropdown.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentDropdown.md @@ -5,26 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for dropdowns. Use the `SubFormFieldsPerDocumentDropdown` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "dropdown"]**Options** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Array of string values representing dropdown values. REPLACE_ME_WITH_DESCRIPTION_END | **Content** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Selected value in `options` array. Value must exist in array. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. - -**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | An input field for dropdowns. Use the `SubFormFieldsPerDocumentDropdown` class. | [default to "dropdown"]**Options** | **List<string>** | Array of string values representing dropdown values. | **Content** | **string** | Selected value in `options` array. Value must exist in array. | [optional] **FontFamily** | **string** | Font family for the field. | [optional] **FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] [[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/SubFormFieldsPerDocumentHyperlink.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentHyperlink.md index 162b31aed..aea6fa4e5 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentHyperlink.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentHyperlink.md @@ -5,26 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A hyperlink field. Use the `SubFormFieldsPerDocumentHyperlink` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "hyperlink"]**Content** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Link Text. REPLACE_ME_WITH_DESCRIPTION_END | **ContentUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Link URL. REPLACE_ME_WITH_DESCRIPTION_END | **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. - -**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | A hyperlink field. Use the `SubFormFieldsPerDocumentHyperlink` class. | [default to "hyperlink"]**Content** | **string** | Link Text. | **ContentUrl** | **string** | Link URL. | **FontFamily** | **string** | Font family for the field. | [optional] **FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] [[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/SubFormFieldsPerDocumentInitials.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentInitials.md index 34e852d62..804786051 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentInitials.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentInitials.md @@ -5,24 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for initials. Use the `SubFormFieldsPerDocumentInitials` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "initials"] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | An input field for initials. Use the `SubFormFieldsPerDocumentInitials` class. | [default to "initials"] [[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/SubFormFieldsPerDocumentRadio.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentRadio.md index 464b22d05..d8b4ec7d1 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentRadio.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentRadio.md @@ -5,24 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An input field for radios. Use the `SubFormFieldsPerDocumentRadio` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "radio"]**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN String referencing group defined in `form_field_groups` parameter. REPLACE_ME_WITH_DESCRIPTION_END | **IsChecked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. REPLACE_ME_WITH_DESCRIPTION_END | +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | An input field for radios. Use the `SubFormFieldsPerDocumentRadio` class. | [default to "radio"]**Group** | **string** | String referencing group defined in `form_field_groups` parameter. | **IsChecked** | **bool** | `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. | [[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/SubFormFieldsPerDocumentSignature.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentSignature.md index b1c7ecab3..ed8823d70 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentSignature.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentSignature.md @@ -5,24 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A signature input field. Use the `SubFormFieldsPerDocumentSignature` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "signature"] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | A signature input field. Use the `SubFormFieldsPerDocumentSignature` class. | [default to "signature"] [[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/SubFormFieldsPerDocumentText.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentText.md index 01f247b7d..c025afe54 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentText.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentText.md @@ -5,28 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text input field. Use the `SubFormFieldsPerDocumentText` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"]**Placeholder** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Placeholder value for text field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AutoFillType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **LinkId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Masked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ValidationType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. - -**NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ValidationCustomRegex** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ValidationCustomRegexFormatLabel** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Content** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Content of a `me_now` text field REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. - -**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | A text input field. Use the `SubFormFieldsPerDocumentText` class. | [default to "text"]**Placeholder** | **string** | Placeholder value for text field. | [optional] **AutoFillType** | **string** | Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. | [optional] **LinkId** | **string** | Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. | [optional] **Masked** | **bool** | Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. | [optional] **ValidationType** | **string** | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values.

**NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. | [optional] **ValidationCustomRegex** | **string** | | [optional] **ValidationCustomRegexFormatLabel** | **string** | | [optional] **Content** | **string** | Content of a `me_now` text field | [optional] **FontFamily** | **string** | Font family for the field. | [optional] **FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] [[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/SubFormFieldsPerDocumentTextMerge.md b/sdks/dotnet/docs/SubFormFieldsPerDocumentTextMerge.md index 12e89aba5..20fd61464 100644 --- a/sdks/dotnet/docs/SubFormFieldsPerDocumentTextMerge.md +++ b/sdks/dotnet/docs/SubFormFieldsPerDocumentTextMerge.md @@ -5,26 +5,17 @@ This class extends `SubFormFieldsPerDocumentBase`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DocumentIndex** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Represents the integer index of the `file` or `file_url` document the field should be attached to. REPLACE_ME_WITH_DESCRIPTION_END | -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An identifier for the field that is unique across all documents in the request. REPLACE_ME_WITH_DESCRIPTION_END | -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this field is required. REPLACE_ME_WITH_DESCRIPTION_END | -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. - -**NOTE:** To set the value of the field as the preparer you must set this to `me_now` - -**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. REPLACE_ME_WITH_DESCRIPTION_END | -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Size of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Location coordinates of the field in pixels. REPLACE_ME_WITH_DESCRIPTION_END | -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Display name for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Page** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Page in the document where the field should be placed (requires documents be PDF files). - -- When the page number parameter is supplied, the API will use the new coordinate system. -- Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A text field that has default text set using pre-filled data. Use the `SubFormFieldsPerDocumentTextMerge` class. REPLACE_ME_WITH_DESCRIPTION_END | [default to "text-merge"]**FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family for the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The initial px font size for the field contents. Can be any integer value between `7` and `49`. - -**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to 12] +**DocumentIndex** | **int** | Represents the integer index of the `file` or `file_url` document the field should be attached to. | +**ApiId** | **string** | An identifier for the field that is unique across all documents in the request. | +**Height** | **int** | Size of the field in pixels. | +**Required** | **bool** | Whether this field is required. | +**Signer** | **string** | Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field.

**NOTE:** To set the value of the field as the preparer you must set this to `me_now`

**NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. | +**Width** | **int** | Size of the field in pixels. | +**X** | **int** | Location coordinates of the field in pixels. | +**Y** | **int** | Location coordinates of the field in pixels. | +**Name** | **string** | Display name for the field. | [optional] +**Page** | **int?** | Page in the document where the field should be placed (requires documents be PDF files).

- When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. | [optional] +**Type** | **string** | A text field that has default text set using pre-filled data. Use the `SubFormFieldsPerDocumentTextMerge` class. | [default to "text-merge"]**FontFamily** | **string** | Font family for the field. | [optional] **FontSize** | **int** | The initial px font size for the field contents. Can be any integer value between `7` and `49`.

**NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. | [optional] [default to 12] [[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/SubMergeField.md b/sdks/dotnet/docs/SubMergeField.md index 9531ab03b..d87cc9044 100644 --- a/sdks/dotnet/docs/SubMergeField.md +++ b/sdks/dotnet/docs/SubMergeField.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the merge field. Must be unique. REPLACE_ME_WITH_DESCRIPTION_END | **Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of merge field. REPLACE_ME_WITH_DESCRIPTION_END | +**Name** | **string** | The name of the merge field. Must be unique. | **Type** | **string** | The type of merge field. | [[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/SubOAuth.md b/sdks/dotnet/docs/SubOAuth.md index eaed23460..6c5bf7d33 100644 --- a/sdks/dotnet/docs/SubOAuth.md +++ b/sdks/dotnet/docs/SubOAuth.md @@ -5,7 +5,7 @@ OAuth related parameters. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CallbackUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The callback URL to be used for OAuth flows. (Required if `oauth[scopes]` is provided) REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Scopes** | **List<SubOAuth.ScopesEnum>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**CallbackUrl** | **string** | The callback URL to be used for OAuth flows. (Required if `oauth[scopes]` is provided) | [optional] **Scopes** | **List<SubOAuth.ScopesEnum>** | A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). | [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/SubOptions.md b/sdks/dotnet/docs/SubOptions.md index 77db056ad..c38a7f9b5 100644 --- a/sdks/dotnet/docs/SubOptions.md +++ b/sdks/dotnet/docs/SubOptions.md @@ -5,7 +5,7 @@ Additional options supported by API App. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CanInsertEverywhere** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Determines if signers can use "Insert Everywhere" when signing a document. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**CanInsertEverywhere** | **bool** | Determines if signers can use "Insert Everywhere" when signing a document. | [optional] [default to false] [[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/SubSignatureRequestGroupedSigners.md b/sdks/dotnet/docs/SubSignatureRequestGroupedSigners.md index beff2b40a..b37cae03b 100644 --- a/sdks/dotnet/docs/SubSignatureRequestGroupedSigners.md +++ b/sdks/dotnet/docs/SubSignatureRequestGroupedSigners.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group. REPLACE_ME_WITH_DESCRIPTION_END | **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signers belonging to this Group. - -**NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. REPLACE_ME_WITH_DESCRIPTION_END | **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The order the group is required to sign in. Use this instead of Signer-level `order`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Group** | **string** | The name of the group. | **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | Signers belonging to this Group.

**NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. | **Order** | **int?** | The order the group is required to sign in. Use this instead of Signer-level `order`. | [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/SubSignatureRequestSigner.md b/sdks/dotnet/docs/SubSignatureRequestSigner.md index b9f02f2d4..4357879ce 100644 --- a/sdks/dotnet/docs/SubSignatureRequestSigner.md +++ b/sdks/dotnet/docs/SubSignatureRequestSigner.md @@ -4,15 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The order the signer is required to sign in. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Pin** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The 4- to 12-character access code that will secure this signer's signature page. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumber** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An E.164 formatted phone number. - -By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). - -**NOTE:** Not available in test mode and requires a Standard plan or higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumberType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Specifies the feature used with the `sms_phone_number`. Default `authentication`. - -If `authentication`, signer is sent a verification code via SMS that is required to access the document. - -If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The name of the signer. | **EmailAddress** | **string** | The email address of the signer. | **Order** | **int?** | The order the signer is required to sign in. | [optional] **Pin** | **string** | The 4- to 12-character access code that will secure this signer's signature page. | [optional] **SmsPhoneNumber** | **string** | An E.164 formatted phone number.

By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on).

**NOTE:** Not available in test mode and requires a Standard plan or higher. | [optional] **SmsPhoneNumberType** | **string** | Specifies the feature used with the `sms_phone_number`. Default `authentication`.

If `authentication`, signer is sent a verification code via SMS that is required to access the document.

If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). | [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/SubSignatureRequestTemplateSigner.md b/sdks/dotnet/docs/SubSignatureRequestTemplateSigner.md index 35bafeb15..5789681fb 100644 --- a/sdks/dotnet/docs/SubSignatureRequestTemplateSigner.md +++ b/sdks/dotnet/docs/SubSignatureRequestTemplateSigner.md @@ -4,15 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must match an existing role in chosen Template(s). It's case-sensitive. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **Pin** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The 4- to 12-character access code that will secure this signer's signature page. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumber** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN An E.164 formatted phone number. - -By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). - -**NOTE:** Not available in test mode and requires a Standard plan or higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsPhoneNumberType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Specifies the feature used with the `sms_phone_number`. Default `authentication`. - -If `authentication`, signer is sent a verification code via SMS that is required to access the document. - -If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Role** | **string** | Must match an existing role in chosen Template(s). It's case-sensitive. | **Name** | **string** | The name of the signer. | **EmailAddress** | **string** | The email address of the signer. | **Pin** | **string** | The 4- to 12-character access code that will secure this signer's signature page. | [optional] **SmsPhoneNumber** | **string** | An E.164 formatted phone number.

By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on).

**NOTE:** Not available in test mode and requires a Standard plan or higher. | [optional] **SmsPhoneNumberType** | **string** | Specifies the feature used with the `sms_phone_number`. Default `authentication`.

If `authentication`, signer is sent a verification code via SMS that is required to access the document.

If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). | [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/SubSigningOptions.md b/sdks/dotnet/docs/SubSigningOptions.md index 1a94bd7de..a65674196 100644 --- a/sdks/dotnet/docs/SubSigningOptions.md +++ b/sdks/dotnet/docs/SubSigningOptions.md @@ -5,7 +5,7 @@ This allows the requester to specify the types allowed for creating a signature. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DefaultType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The default type shown (limited to the listed types) REPLACE_ME_WITH_DESCRIPTION_END | **Draw** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows drawing the signature REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Phone** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows using a smartphone to email the signature REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Type** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows typing the signature REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Upload** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows uploading the signature REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**DefaultType** | **string** | The default type shown (limited to the listed types) | **Draw** | **bool** | Allows drawing the signature | [optional] [default to false]**Phone** | **bool** | Allows using a smartphone to email the signature | [optional] [default to false]**Type** | **bool** | Allows typing the signature | [optional] [default to false]**Upload** | **bool** | Allows uploading the signature | [optional] [default to false] [[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/SubTeamResponse.md b/sdks/dotnet/docs/SubTeamResponse.md index 538ee9424..b2c09e6c7 100644 --- a/sdks/dotnet/docs/SubTeamResponse.md +++ b/sdks/dotnet/docs/SubTeamResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TeamId** | **string** | The id of a team | [optional] **Name** | **string** | The name of a team | [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/SubTemplateRole.md b/sdks/dotnet/docs/SubTemplateRole.md index d9d83f077..ecf59c54c 100644 --- a/sdks/dotnet/docs/SubTemplateRole.md +++ b/sdks/dotnet/docs/SubTemplateRole.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The role name of the signer that will be displayed when the template is used to create a signature request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The order in which this signer role is required to sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The role name of the signer that will be displayed when the template is used to create a signature request. | [optional] **Order** | **int?** | The order in which this signer role is required to sign. | [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/SubUnclaimedDraftSigner.md b/sdks/dotnet/docs/SubUnclaimedDraftSigner.md index 4e9967bfe..46bdfda3b 100644 --- a/sdks/dotnet/docs/SubUnclaimedDraftSigner.md +++ b/sdks/dotnet/docs/SubUnclaimedDraftSigner.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer. REPLACE_ME_WITH_DESCRIPTION_END | **Order** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The order the signer is required to sign in. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**EmailAddress** | **string** | The email address of the signer. | **Name** | **string** | The name of the signer. | **Order** | **int?** | The order the signer is required to sign in. | [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/SubUnclaimedDraftTemplateSigner.md b/sdks/dotnet/docs/SubUnclaimedDraftTemplateSigner.md index c8a2970e3..43be64a68 100644 --- a/sdks/dotnet/docs/SubUnclaimedDraftTemplateSigner.md +++ b/sdks/dotnet/docs/SubUnclaimedDraftTemplateSigner.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Must match an existing role in chosen Template(s). REPLACE_ME_WITH_DESCRIPTION_END | **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the signer filling the role of `role`. REPLACE_ME_WITH_DESCRIPTION_END | **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the signer filling the role of `role`. REPLACE_ME_WITH_DESCRIPTION_END | +**Role** | **string** | Must match an existing role in chosen Template(s). | **Name** | **string** | The name of the signer filling the role of `role`. | **EmailAddress** | **string** | The email address of the signer filling the role of `role`. | [[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/SubWhiteLabelingOptions.md b/sdks/dotnet/docs/SubWhiteLabelingOptions.md index 2a5b2872f..930a345f5 100644 --- a/sdks/dotnet/docs/SubWhiteLabelingOptions.md +++ b/sdks/dotnet/docs/SubWhiteLabelingOptions.md @@ -5,7 +5,7 @@ An array of elements and values serialized to a string, to be used to customize Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HeaderBackgroundColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#1A1A1A"]**LegalVersion** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to LegalVersionEnum.Terms1]**LinkColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**PageBackgroundColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#F7F8F9"]**PrimaryButtonColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**PrimaryButtonColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**PrimaryButtonTextColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**PrimaryButtonTextColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**SecondaryButtonColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**SecondaryButtonColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**SecondaryButtonTextColor** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**SecondaryButtonTextColorHover** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#00B3E6"]**TextColor1** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#808080"]**TextColor2** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "#FFFFFF"]**ResetToDefault** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Resets white labeling options to defaults. Only useful when updating an API App. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**HeaderBackgroundColor** | **string** | | [optional] [default to "#1A1A1A"]**LegalVersion** | **string** | | [optional] [default to LegalVersionEnum.Terms1]**LinkColor** | **string** | | [optional] [default to "#00B3E6"]**PageBackgroundColor** | **string** | | [optional] [default to "#F7F8F9"]**PrimaryButtonColor** | **string** | | [optional] [default to "#00B3E6"]**PrimaryButtonColorHover** | **string** | | [optional] [default to "#00B3E6"]**PrimaryButtonTextColor** | **string** | | [optional] [default to "#FFFFFF"]**PrimaryButtonTextColorHover** | **string** | | [optional] [default to "#FFFFFF"]**SecondaryButtonColor** | **string** | | [optional] [default to "#FFFFFF"]**SecondaryButtonColorHover** | **string** | | [optional] [default to "#FFFFFF"]**SecondaryButtonTextColor** | **string** | | [optional] [default to "#00B3E6"]**SecondaryButtonTextColorHover** | **string** | | [optional] [default to "#00B3E6"]**TextColor1** | **string** | | [optional] [default to "#808080"]**TextColor2** | **string** | | [optional] [default to "#FFFFFF"]**ResetToDefault** | **bool** | Resets white labeling options to defaults. Only useful when updating an API App. | [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/TeamAddMemberRequest.md b/sdks/dotnet/docs/TeamAddMemberRequest.md index c7e231eba..878edbb50 100644 --- a/sdks/dotnet/docs/TeamAddMemberRequest.md +++ b/sdks/dotnet/docs/TeamAddMemberRequest.md @@ -4,13 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `account_id` or `email_address` is required. If both are provided, the account id prevails. - -Account id of the user to invite to your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `account_id` or `email_address` is required, If both are provided, the account id prevails. - -Email address of the user to invite to your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A role member will take in a new Team. - -**NOTE:** This parameter is used only if `team_id` is provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AccountId** | **string** | `account_id` or `email_address` is required. If both are provided, the account id prevails.

Account id of the user to invite to your Team. | [optional] **EmailAddress** | **string** | `account_id` or `email_address` is required, If both are provided, the account id prevails.

Email address of the user to invite to your Team. | [optional] **Role** | **string** | A role member will take in a new Team.

**NOTE:** This parameter is used only if `team_id` is provided. | [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/TeamApi.md b/sdks/dotnet/docs/TeamApi.md index 7015c50c0..64d8dd554 100644 --- a/sdks/dotnet/docs/TeamApi.md +++ b/sdks/dotnet/docs/TeamApi.md @@ -25,7 +25,43 @@ Invites a user (specified using the `email_address` parameter) to your Team. If ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamAddMember_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + + var data = new TeamAddMemberRequest( + emailAddress: "george@example.com" + ); + + try + { + var result = teamApi.TeamAddMember(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamAddMemberWithHttpInfo variant @@ -87,7 +123,43 @@ Creates a new Team and makes you a member. You must not currently belong to a Te ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamCreate_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + + var data = new TeamCreateRequest( + name: "New Team Name" + ); + + try + { + var result = teamApi.TeamCreate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamCreateWithHttpInfo variant @@ -148,7 +220,38 @@ Deletes your Team. Can only be invoked when you have a Team with only one member ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamDelete_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + + try + { + teamApi.TeamDelete(); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamDeleteWithHttpInfo variant @@ -202,7 +305,39 @@ Returns information about your Team as well as a list of its members. If you do ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamGet_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + + try + { + var result = teamApi.TeamGet(); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamGetWithHttpInfo variant @@ -259,7 +394,39 @@ Provides information about a team. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamInfo_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + + try + { + var result = teamApi.TeamInfo(); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamInfoWithHttpInfo variant @@ -320,7 +487,40 @@ Provides a list of team invites (and their roles). ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamInvites_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + var emailAddress = "user@dropboxsign.com"; + + try + { + var result = teamApi.TeamInvites(emailAddress); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamInvitesWithHttpInfo variant @@ -381,7 +581,40 @@ Provides a paginated list of members (and their roles) that belong to a given te ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamMembers_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + var teamId = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"; + + try + { + var result = teamApi.TeamMembers(teamId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamMembersWithHttpInfo variant @@ -409,8 +642,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamId** | **string** | The id of the team that a member list is being requested from. | | -| **page** | **int?** | Which page number of the team member list to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the team member list to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | ### Return type @@ -444,7 +677,44 @@ Removes the provided user Account from your Team. If the Account had an outstand ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamRemoveMember_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + + var data = new TeamRemoveMemberRequest( + emailAddress: "teammate@dropboxsign.com", + newOwnerEmailAddress: "new_teammate@dropboxsign.com" + ); + + try + { + var result = teamApi.TeamRemoveMember(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamRemoveMemberWithHttpInfo variant @@ -505,7 +775,40 @@ Provides a paginated list of sub teams that belong to a given team. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamSubTeams_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + var teamId = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"; + + try + { + var result = teamApi.TeamSubTeams(teamId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamSubTeamsWithHttpInfo variant @@ -533,8 +836,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamId** | **string** | The id of the parent Team. | | -| **page** | **int?** | Which page number of the SubTeam List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **page** | **int?** | Which page number of the SubTeam List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | ### Return type @@ -568,7 +871,43 @@ Updates the name of your Team. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TeamUpdate_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var teamApi = new TeamApi(config); + + var data = new TeamUpdateRequest( + name: "New Team Name" + ); + + try + { + var result = teamApi.TeamUpdate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TeamUpdateWithHttpInfo variant diff --git a/sdks/dotnet/docs/TeamCreateRequest.md b/sdks/dotnet/docs/TeamCreateRequest.md index 3c43124f8..e3727b07c 100644 --- a/sdks/dotnet/docs/TeamCreateRequest.md +++ b/sdks/dotnet/docs/TeamCreateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "Untitled Team"] +**Name** | **string** | The name of your Team. | [optional] [default to "Untitled Team"] [[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/TeamGetInfoResponse.md b/sdks/dotnet/docs/TeamGetInfoResponse.md index 7f954e95f..de47c8fc7 100644 --- a/sdks/dotnet/docs/TeamGetInfoResponse.md +++ b/sdks/dotnet/docs/TeamGetInfoResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Team** | [**TeamInfoResponse**](TeamInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Team** | [**TeamInfoResponse**](TeamInfoResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/TeamGetResponse.md b/sdks/dotnet/docs/TeamGetResponse.md index 1dc5d6740..ddfda5efd 100644 --- a/sdks/dotnet/docs/TeamGetResponse.md +++ b/sdks/dotnet/docs/TeamGetResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Team** | [**TeamResponse**](TeamResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Team** | [**TeamResponse**](TeamResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/TeamInfoResponse.md b/sdks/dotnet/docs/TeamInfoResponse.md index 324e6cb90..8f487d8bf 100644 --- a/sdks/dotnet/docs/TeamInfoResponse.md +++ b/sdks/dotnet/docs/TeamInfoResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TeamParent** | [**TeamParentResponse**](TeamParentResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumMembers** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of members within a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumSubTeams** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of sub teams within a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TeamId** | **string** | The id of a team | [optional] **TeamParent** | [**TeamParentResponse**](TeamParentResponse.md) | | [optional] **Name** | **string** | The name of a team | [optional] **NumMembers** | **int** | Number of members within a team | [optional] **NumSubTeams** | **int** | Number of sub teams within a team | [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/TeamInviteResponse.md b/sdks/dotnet/docs/TeamInviteResponse.md index 9cdaa5dbe..ed0e48ba2 100644 --- a/sdks/dotnet/docs/TeamInviteResponse.md +++ b/sdks/dotnet/docs/TeamInviteResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address of the user invited to this team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Id of the team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Role of the user invited to this team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SentAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Timestamp when the invitation was sent. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RedeemedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Timestamp when the invitation was redeemed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Timestamp when the invitation is expiring. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**EmailAddress** | **string** | Email address of the user invited to this team. | [optional] **TeamId** | **string** | Id of the team. | [optional] **Role** | **string** | Role of the user invited to this team. | [optional] **SentAt** | **int** | Timestamp when the invitation was sent. | [optional] **RedeemedAt** | **int** | Timestamp when the invitation was redeemed. | [optional] **ExpiresAt** | **int** | Timestamp when the invitation is expiring. | [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/TeamInvitesResponse.md b/sdks/dotnet/docs/TeamInvitesResponse.md index ecb39301d..b85dd5745 100644 --- a/sdks/dotnet/docs/TeamInvitesResponse.md +++ b/sdks/dotnet/docs/TeamInvitesResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamInvites** | [**List<TeamInviteResponse>**](TeamInviteResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains a list of team invites and their roles. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TeamInvites** | [**List<TeamInviteResponse>**](TeamInviteResponse.md) | Contains a list of team invites and their roles. | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | | [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/TeamMemberResponse.md b/sdks/dotnet/docs/TeamMemberResponse.md index 0a9f1cd25..d8f0e5d00 100644 --- a/sdks/dotnet/docs/TeamMemberResponse.md +++ b/sdks/dotnet/docs/TeamMemberResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Account id of the team member. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Email address of the team member. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Role** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The specific role a member has on the team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AccountId** | **string** | Account id of the team member. | [optional] **EmailAddress** | **string** | Email address of the team member. | [optional] **Role** | **string** | The specific role a member has on the team. | [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/TeamMembersResponse.md b/sdks/dotnet/docs/TeamMembersResponse.md index a9a3925b9..54d36825a 100644 --- a/sdks/dotnet/docs/TeamMembersResponse.md +++ b/sdks/dotnet/docs/TeamMembersResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamMembers** | [**List<TeamMemberResponse>**](TeamMemberResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains a list of team members and their roles for a specific team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TeamMembers** | [**List<TeamMemberResponse>**](TeamMemberResponse.md) | Contains a list of team members and their roles for a specific team. | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | | [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/TeamParentResponse.md b/sdks/dotnet/docs/TeamParentResponse.md index 28ec41f8d..6db34d85e 100644 --- a/sdks/dotnet/docs/TeamParentResponse.md +++ b/sdks/dotnet/docs/TeamParentResponse.md @@ -5,7 +5,7 @@ Information about the parent team if a team has one, set to `null` otherwise. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of a team REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TeamId** | **string** | The id of a team | [optional] **Name** | **string** | The name of a team | [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/TeamRemoveMemberRequest.md b/sdks/dotnet/docs/TeamRemoveMemberRequest.md index 51487507e..475caf0b9 100644 --- a/sdks/dotnet/docs/TeamRemoveMemberRequest.md +++ b/sdks/dotnet/docs/TeamRemoveMemberRequest.md @@ -4,15 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **account_id** or **email_address** is required. If both are provided, the account id prevails. - -Account id to remove from your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN **account_id** or **email_address** is required. If both are provided, the account id prevails. - -Email address of the Account to remove from your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NewOwnerEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. - -**NOTE:** Only available for Enterprise plans. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NewTeamId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Id of the new Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NewRole** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A new role member will take in a new Team. - -**NOTE:** This parameter is used only if `new_team_id` is provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AccountId** | **string** | **account_id** or **email_address** is required. If both are provided, the account id prevails.

Account id to remove from your Team. | [optional] **EmailAddress** | **string** | **account_id** or **email_address** is required. If both are provided, the account id prevails.

Email address of the Account to remove from your Team. | [optional] **NewOwnerEmailAddress** | **string** | The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account.

**NOTE:** Only available for Enterprise plans. | [optional] **NewTeamId** | **string** | Id of the new Team. | [optional] **NewRole** | **string** | A new role member will take in a new Team.

**NOTE:** This parameter is used only if `new_team_id` is provided. | [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/TeamResponse.md b/sdks/dotnet/docs/TeamResponse.md index 95c68bad5..977696c0a 100644 --- a/sdks/dotnet/docs/TeamResponse.md +++ b/sdks/dotnet/docs/TeamResponse.md @@ -5,7 +5,7 @@ Contains information about your team and its members Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of your Team REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Accounts** | [**List<AccountResponse>**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **InvitedAccounts** | [**List<AccountResponse>**](AccountResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **InvitedEmails** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The name of your Team | [optional] **Accounts** | [**List<AccountResponse>**](AccountResponse.md) | | [optional] **InvitedAccounts** | [**List<AccountResponse>**](AccountResponse.md) | A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. | [optional] **InvitedEmails** | **List<string>** | A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. | [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/TeamSubTeamsResponse.md b/sdks/dotnet/docs/TeamSubTeamsResponse.md index 25e65f18e..0501498e5 100644 --- a/sdks/dotnet/docs/TeamSubTeamsResponse.md +++ b/sdks/dotnet/docs/TeamSubTeamsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SubTeams** | [**List<SubTeamResponse>**](SubTeamResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Contains a list with sub teams. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SubTeams** | [**List<SubTeamResponse>**](SubTeamResponse.md) | Contains a list with sub teams. | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | | [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/TeamUpdateRequest.md b/sdks/dotnet/docs/TeamUpdateRequest.md index 93edab445..e15e5f1d2 100644 --- a/sdks/dotnet/docs/TeamUpdateRequest.md +++ b/sdks/dotnet/docs/TeamUpdateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of your Team. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The name of your Team. | [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/TemplateAddUserRequest.md b/sdks/dotnet/docs/TemplateAddUserRequest.md index fef8d27b8..8fd19bc62 100644 --- a/sdks/dotnet/docs/TemplateAddUserRequest.md +++ b/sdks/dotnet/docs/TemplateAddUserRequest.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Account to give access to the Template. -**NOTE:** The account id prevails if email address is also provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the Account to give access to the Template. -**NOTE:** The account id prevails if it is also provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SkipNotification** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**AccountId** | **string** | The id of the Account to give access to the Template.
**NOTE:** The account id prevails if email address is also provided. | [optional] **EmailAddress** | **string** | The email address of the Account to give access to the Template.
**NOTE:** The account id prevails if it is also provided. | [optional] **SkipNotification** | **bool** | If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. | [optional] [default to false] [[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/TemplateApi.md b/sdks/dotnet/docs/TemplateApi.md index d77224c27..2f6cf986c 100644 --- a/sdks/dotnet/docs/TemplateApi.md +++ b/sdks/dotnet/docs/TemplateApi.md @@ -26,7 +26,45 @@ Gives the specified Account access to the specified Template. The specified Acco ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateAddUser_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var templateId = "f57db65d3f933b5316d398057a36176831451a35"; + + var data = new TemplateAddUserRequest( + emailAddress: "george@dropboxsign.com" + ); + + try + { + var result = templateApi.TemplateAddUser(templateId, data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateAddUserWithHttpInfo variant @@ -88,7 +126,86 @@ Creates a template that can then be used. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateCreate_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var role1 = new SubTemplateRole( + name: "Client", + order: 0 + ); + + var role2 = new SubTemplateRole( + name: "Witness", + order: 1 + ); + + var mergeField1 = new SubMergeField( + name: "Full Name", + type: SubMergeField.TypeEnum.Text + ); + + var mergeField2 = new SubMergeField( + name: "Is Registered?", + type: SubMergeField.TypeEnum.Checkbox + ); + + var subFieldOptions = new SubFieldOptions( + dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY + ); + + var files = new List { + new FileStream( + "./example_signature_request.pdf", + FileMode.Open, + FileAccess.Read, + FileShare.Read + ) + }; + + var data = new TemplateCreateRequest( + clientId: "37dee8d8440c66d54cfa05d92c160882", + files: files, + title: "Test Template", + subject: "Please sign this document", + message: "For your approval", + signerRoles: new List(){role1, role2}, + ccRoles: new List(){"Manager"}, + mergeFields: new List(){mergeField1, mergeField2}, + fieldOptions: subFieldOptions, + testMode: true + ); + + try + { + var result = templateApi.TemplateCreate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateCreateWithHttpInfo variant @@ -149,7 +266,86 @@ The first step in an embedded template workflow. Creates a draft template that c ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateCreateEmbeddedDraft_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var role1 = new SubTemplateRole( + name: "Client", + order: 0 + ); + + var role2 = new SubTemplateRole( + name: "Witness", + order: 1 + ); + + var mergeField1 = new SubMergeField( + name: "Full Name", + type: SubMergeField.TypeEnum.Text + ); + + var mergeField2 = new SubMergeField( + name: "Is Registered?", + type: SubMergeField.TypeEnum.Checkbox + ); + + var subFieldOptions = new SubFieldOptions( + dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY + ); + + var files = new List { + new FileStream( + "./example_signature_request.pdf", + FileMode.Open, + FileAccess.Read, + FileShare.Read + ) + }; + + var data = new TemplateCreateEmbeddedDraftRequest( + clientId: "37dee8d8440c66d54cfa05d92c160882", + files: files, + title: "Test Template", + subject: "Please sign this document", + message: "For your approval", + signerRoles: new List(){role1, role2}, + ccRoles: new List(){"Manager"}, + mergeFields: new List(){mergeField1, mergeField2}, + fieldOptions: subFieldOptions, + testMode: true + ); + + try + { + var result = templateApi.TemplateCreateEmbeddedDraft(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateCreateEmbeddedDraftWithHttpInfo variant @@ -210,7 +406,40 @@ Completely deletes the template specified from the account. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateDelete_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var templateId = "f57db65d3f933b5316d398057a36176831451a35"; + + try + { + templateApi.TemplateDelete(templateId); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateDeleteWithHttpInfo variant @@ -268,7 +497,45 @@ Obtain a copy of the current documents specified by the `template_id` parameter. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateFiles_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var templateId = "f57db65d3f933b5316d398057a36176831451a35"; + + try + { + var result = templateApi.TemplateFiles(templateId, "pdf"); + + var fileStream = File.Create("file_response.pdf"); + result.Seek(0, SeekOrigin.Begin); + result.CopyTo(fileStream); + fileStream.Close(); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateFilesWithHttpInfo variant @@ -296,7 +563,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateId** | **string** | The id of the template files to retrieve. | | -| **fileType** | **string?** | Set to `pdf` for a single merged document or `zip` for a collection of individual documents. | [optional] | +| **fileType** | **string?** | Set to `pdf` for a single merged document or `zip` for a collection of individual documents. | [optional] | ### Return type @@ -330,7 +597,41 @@ Obtain a copy of the current documents specified by the `template_id` parameter. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateFilesAsDataUri_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var templateId = "f57db65d3f933b5316d398057a36176831451a35"; + + try + { + var result = templateApi.TemplateFilesAsDataUri(templateId, "pdf", false, false); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateFilesAsDataUriWithHttpInfo variant @@ -391,7 +692,41 @@ Obtain a copy of the current documents specified by the `template_id` parameter. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateFilesAsFileUrl_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var templateId = "f57db65d3f933b5316d398057a36176831451a35"; + + try + { + var result = templateApi.TemplateFilesAsFileUrl(templateId, "pdf", false, false); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateFilesAsFileUrlWithHttpInfo variant @@ -419,7 +754,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateId** | **string** | The id of the template files to retrieve. | | -| **forceDownload** | **int?** | By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. | [optional] [default to 1] | +| **forceDownload** | **int?** | By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. | [optional] [default to 1] | ### Return type @@ -453,7 +788,41 @@ Returns the Template specified by the `template_id` parameter. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateGet_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var templateId = "f57db65d3f933b5316d398057a36176831451a35"; + + try + { + var result = templateApi.TemplateGet(templateId); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateGetWithHttpInfo variant @@ -514,7 +883,41 @@ Returns a list of the Templates that are accessible by you. Take a look at our ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateList_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var accountId = "f57db65d3f933b5316d398057a36176831451a35"; + + try + { + var result = templateApi.TemplateList(accountId, 1, 20, null); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateListWithHttpInfo variant @@ -541,9 +944,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **accountId** | **string?** | Which account to return Templates for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. | [optional] | -| **page** | **int?** | Which page number of the Template List to return. Defaults to `1`. | [optional] [default to 1] | -| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | +| **accountId** | **string?** | Which account to return Templates for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. | [optional] | +| **page** | **int?** | Which page number of the Template List to return. Defaults to `1`. | [optional] [default to 1] | +| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] | | **query** | **string?** | String that includes search terms and/or fields to be used to filter the Template objects. | [optional] | ### Return type @@ -578,7 +981,45 @@ Removes the specified Account's access to the specified Template. ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateRemoveUser_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var data = new TemplateRemoveUserRequest( + emailAddress: "george@dropboxsign.com" + ); + + var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; + + try + { + var result = templateApi.TemplateRemoveUser(templateId, data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateRemoveUserWithHttpInfo variant @@ -640,7 +1081,55 @@ Overlays a new file with the overlay of an existing template. The new file(s) mu ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__TemplateUpdateFiles_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var templateApi = new TemplateApi(config); + + var files = new List { + new FileStream( + "./example_signature_request.pdf", + FileMode.Open, + FileAccess.Read, + FileShare.Read + ) + }; + + var data = new TemplateUpdateFilesRequest( + files: files, + ); + + var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; + + try + { + var result = templateApi.TemplateUpdateFiles(templateId, data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the TemplateUpdateFilesWithHttpInfo variant diff --git a/sdks/dotnet/docs/TemplateCreateEmbeddedDraftRequest.md b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftRequest.md index 7528baee1..299d6feef 100644 --- a/sdks/dotnet/docs/TemplateCreateEmbeddedDraftRequest.md +++ b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftRequest.md @@ -4,32 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowCcs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. - -**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcRoles** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The CC roles that must be assigned when using the template to send a signature request REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ForceSignerRoles** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template signer roles. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ForceSubjectMessage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template subject and message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) - -**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. - -* Text Field use `SubFormFieldsPerDocumentText` -* Dropdown Field use `SubFormFieldsPerDocumentDropdown` -* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` -* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` -* Radio Field use `SubFormFieldsPerDocumentRadio` -* Signature Field use `SubFormFieldsPerDocumentSignature` -* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` -* Initials Field use `SubFormFieldsPerDocumentInitials` -* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` -* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. -If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The default template email message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowPreview** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the editor/preview experience. - -- `show_preview=true`: Allows requesters to enable the editor/preview experience. -- `show_preview=false`: Allows requesters to disable the editor/preview experience. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**SignerRoles** | [**List<SubTemplateRole>**](SubTemplateRole.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SkipMeNow** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The template title (alias). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UsePreexistingFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**ClientId** | **string** | Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. | **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **AllowCcs** | **bool** | This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. | [optional] [default to true]**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] **CcRoles** | **List<string>** | The CC roles that must be assigned when using the template to send a signature request | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] **ForceSignerRoles** | **bool** | Provide users the ability to review/edit the template signer roles. | [optional] [default to false]**ForceSubjectMessage** | **bool** | Provide users the ability to review/edit the template subject and message. | [optional] [default to false]**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] **MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. | [optional] **Message** | **string** | The default template email message. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **ShowPreview** | **bool** | This allows the requester to enable the editor/preview experience.

- `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. | [optional] [default to false]**ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true]**SignerRoles** | [**List<SubTemplateRole>**](SubTemplateRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | [optional] **SkipMeNow** | **bool** | Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. | [optional] [default to false]**Subject** | **string** | The template title (alias). | [optional] **TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **UsePreexistingFields** | **bool** | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | [optional] [default to false] [[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/TemplateCreateEmbeddedDraftResponse.md b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponse.md index 76a69eea1..49c607ec6 100644 --- a/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponse.md +++ b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Template** | [**TemplateCreateEmbeddedDraftResponseTemplate**](TemplateCreateEmbeddedDraftResponseTemplate.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Template** | [**TemplateCreateEmbeddedDraftResponseTemplate**](TemplateCreateEmbeddedDraftResponseTemplate.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/TemplateCreateEmbeddedDraftResponseTemplate.md b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponseTemplate.md index 50b484b16..d23893dd3 100644 --- a/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponseTemplate.md +++ b/sdks/dotnet/docs/TemplateCreateEmbeddedDraftResponseTemplate.md @@ -5,7 +5,7 @@ Template object with parameters: `template_id`, `edit_url`, `expires_at`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Link to edit the template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the link expires. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TemplateId** | **string** | The id of the Template. | [optional] **EditUrl** | **string** | Link to edit the template. | [optional] **ExpiresAt** | **int** | When the link expires. | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/TemplateCreateRequest.md b/sdks/dotnet/docs/TemplateCreateRequest.md index 9a87c3d34..9a80d0c9a 100644 --- a/sdks/dotnet/docs/TemplateCreateRequest.md +++ b/sdks/dotnet/docs/TemplateCreateRequest.md @@ -4,29 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) - -**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. - -* Text Field use `SubFormFieldsPerDocumentText` -* Dropdown Field use `SubFormFieldsPerDocumentDropdown` -* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` -* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` -* Radio Field use `SubFormFieldsPerDocumentRadio` -* Signature Field use `SubFormFieldsPerDocumentSignature` -* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` -* Initials Field use `SubFormFieldsPerDocumentInitials` -* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` -* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | **SignerRoles** | [**List<SubTemplateRole>**](SubTemplateRole.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. - -**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcRoles** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The CC roles that must be assigned when using the template to send a signature request REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. -If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The default template email message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The template title (alias). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UsePreexistingFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | **SignerRoles** | [**List<SubTemplateRole>**](SubTemplateRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] **CcRoles** | **List<string>** | The CC roles that must be assigned when using the template to send a signature request | [optional] **ClientId** | **string** | Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] **MergeFields** | [**List<SubMergeField>**](SubMergeField.md) | Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. | [optional] **Message** | **string** | The default template email message. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **Subject** | **string** | The template title (alias). | [optional] **TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **UsePreexistingFields** | **bool** | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | [optional] [default to false] [[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/TemplateCreateResponse.md b/sdks/dotnet/docs/TemplateCreateResponse.md index 9d1fd92c1..1e35d55a5 100644 --- a/sdks/dotnet/docs/TemplateCreateResponse.md +++ b/sdks/dotnet/docs/TemplateCreateResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Template** | [**TemplateCreateResponseTemplate**](TemplateCreateResponseTemplate.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Template** | [**TemplateCreateResponseTemplate**](TemplateCreateResponseTemplate.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/TemplateCreateResponseTemplate.md b/sdks/dotnet/docs/TemplateCreateResponseTemplate.md index 0167b574b..85941fc4e 100644 --- a/sdks/dotnet/docs/TemplateCreateResponseTemplate.md +++ b/sdks/dotnet/docs/TemplateCreateResponseTemplate.md @@ -5,7 +5,7 @@ Template object with parameters: `template_id`. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TemplateId** | **string** | The id of the Template. | [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/TemplateEditResponse.md b/sdks/dotnet/docs/TemplateEditResponse.md index c21ef5135..723cdfce4 100644 --- a/sdks/dotnet/docs/TemplateEditResponse.md +++ b/sdks/dotnet/docs/TemplateEditResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TemplateId** | **string** | The id of the Template. | [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/TemplateGetResponse.md b/sdks/dotnet/docs/TemplateGetResponse.md index eee21a7d5..f4ce5fa5c 100644 --- a/sdks/dotnet/docs/TemplateGetResponse.md +++ b/sdks/dotnet/docs/TemplateGetResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Template** | [**TemplateResponse**](TemplateResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Template** | [**TemplateResponse**](TemplateResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/TemplateListResponse.md b/sdks/dotnet/docs/TemplateListResponse.md index 18f8f3b45..f24785870 100644 --- a/sdks/dotnet/docs/TemplateListResponse.md +++ b/sdks/dotnet/docs/TemplateListResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Templates** | [**List<TemplateResponse>**](TemplateResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN List of templates that the API caller has access to. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Templates** | [**List<TemplateResponse>**](TemplateResponse.md) | List of templates that the API caller has access to. | [optional] **ListInfo** | [**ListInfoResponse**](ListInfoResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/TemplateRemoveUserRequest.md b/sdks/dotnet/docs/TemplateRemoveUserRequest.md index 67d0ad904..98922e5b7 100644 --- a/sdks/dotnet/docs/TemplateRemoveUserRequest.md +++ b/sdks/dotnet/docs/TemplateRemoveUserRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AccountId** | **string** | The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. | [optional] **EmailAddress** | **string** | The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. | [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/TemplateResponse.md b/sdks/dotnet/docs/TemplateResponse.md index 023b459df..ce17e3777 100644 --- a/sdks/dotnet/docs/TemplateResponse.md +++ b/sdks/dotnet/docs/TemplateResponse.md @@ -5,9 +5,7 @@ Contains information about the templates you and your team have created. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **UpdatedAt** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Time the template was last updated. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsEmbedded** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` if this template was created using an embedded flow, `false` if it was created on our website. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsCreator** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN `true` if you are the owner of this template, `false` if it's been shared with you by a team member. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CanEdit** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsLocked** | **bool?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Indicates whether the template is locked. -If `true`, then the template was created outside your quota and can only be used in `test_mode`. -If `false`, then the template is within your quota and can be used to create signature requests. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Object** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The metadata attached to the template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SignerRoles** | [**List<TemplateResponseSignerRole>**](TemplateResponseSignerRole.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcRoles** | [**List<TemplateResponseCCRole>**](TemplateResponseCCRole.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Documents** | [**List<TemplateResponseDocument>**](TemplateResponseDocument.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array describing each document associated with this Template. Includes form field data for each document. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NamedFormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Accounts** | [**List<TemplateResponseAccount>**](TemplateResponseAccount.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of the Accounts that can use this Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TemplateId** | **string** | The id of the Template. | [optional] **Title** | **string** | The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] **Message** | **string** | The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] **UpdatedAt** | **int** | Time the template was last updated. | [optional] **IsEmbedded** | **bool?** | `true` if this template was created using an embedded flow, `false` if it was created on our website. | [optional] **IsCreator** | **bool?** | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | [optional] **CanEdit** | **bool?** | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | [optional] **IsLocked** | **bool?** | Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. | [optional] **Metadata** | **Object** | The metadata attached to the template. | [optional] **SignerRoles** | [**List<TemplateResponseSignerRole>**](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | [optional] **CcRoles** | [**List<TemplateResponseCCRole>**](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | [optional] **Documents** | [**List<TemplateResponseDocument>**](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **NamedFormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **Accounts** | [**List<TemplateResponseAccount>**](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | [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/TemplateResponseAccount.md b/sdks/dotnet/docs/TemplateResponseAccount.md index d97f06412..b69b4ebaa 100644 --- a/sdks/dotnet/docs/TemplateResponseAccount.md +++ b/sdks/dotnet/docs/TemplateResponseAccount.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address associated with the Account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsLocked** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has been locked out of their account by a team admin. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsPaidHs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has a paid Dropbox Sign account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsPaidHf** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Returns `true` if the user has a paid HelloFax account. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Quotas** | [**TemplateResponseAccountQuota**](TemplateResponseAccountQuota.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**AccountId** | **string** | The id of the Account. | [optional] **EmailAddress** | **string** | The email address associated with the Account. | [optional] **IsLocked** | **bool** | Returns `true` if the user has been locked out of their account by a team admin. | [optional] **IsPaidHs** | **bool** | Returns `true` if the user has a paid Dropbox Sign account. | [optional] **IsPaidHf** | **bool** | Returns `true` if the user has a paid HelloFax account. | [optional] **Quotas** | [**TemplateResponseAccountQuota**](TemplateResponseAccountQuota.md) | | [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/TemplateResponseAccountQuota.md b/sdks/dotnet/docs/TemplateResponseAccountQuota.md index 64a1a380d..5051dc54f 100644 --- a/sdks/dotnet/docs/TemplateResponseAccountQuota.md +++ b/sdks/dotnet/docs/TemplateResponseAccountQuota.md @@ -5,7 +5,7 @@ An array of the designated CC roles that must be specified when sending a Signat Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplatesLeft** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN API templates remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ApiSignatureRequestsLeft** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN API signature requests remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **DocumentsLeft** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Signature requests remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SmsVerificationsLeft** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN SMS verifications remaining. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TemplatesLeft** | **int** | API templates remaining. | [optional] **ApiSignatureRequestsLeft** | **int** | API signature requests remaining. | [optional] **DocumentsLeft** | **int** | Signature requests remaining. | [optional] **SmsVerificationsLeft** | **int** | SMS verifications remaining. | [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/TemplateResponseCCRole.md b/sdks/dotnet/docs/TemplateResponseCCRole.md index fc0a4b190..1e8067443 100644 --- a/sdks/dotnet/docs/TemplateResponseCCRole.md +++ b/sdks/dotnet/docs/TemplateResponseCCRole.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The name of the Role. | [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/TemplateResponseDocument.md b/sdks/dotnet/docs/TemplateResponseDocument.md index 1a65fd3a4..6847d7b3c 100644 --- a/sdks/dotnet/docs/TemplateResponseDocument.md +++ b/sdks/dotnet/docs/TemplateResponseDocument.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Name of the associated file. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Index** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Document ordering, the lowest index is displayed first and the highest last (0-based indexing). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldGroups** | [**List<TemplateResponseDocumentFieldGroup>**](TemplateResponseDocumentFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Form Field Group objects. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Form Field objects containing the name and type of each named field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array of Form Field objects containing the name and type of each named field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **StaticFields** | [**List<TemplateResponseDocumentStaticFieldBase>**](TemplateResponseDocumentStaticFieldBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | Name of the associated file. | [optional] **Index** | **int** | Document ordering, the lowest index is displayed first and the highest last (0-based indexing). | [optional] **FieldGroups** | [**List<TemplateResponseDocumentFieldGroup>**](TemplateResponseDocumentFieldGroup.md) | An array of Form Field Group objects. | [optional] **FormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | An array of Form Field objects containing the name and type of each named field. | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | An array of Form Field objects containing the name and type of each named field. | [optional] **StaticFields** | [**List<TemplateResponseDocumentStaticFieldBase>**](TemplateResponseDocumentStaticFieldBase.md) | An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. | [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/TemplateResponseDocumentCustomFieldBase.md b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldBase.md index 5848adb06..9f349a7ab 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldBase.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldBase.md @@ -5,7 +5,7 @@ An array of Form Field objects containing the name and type of each named field. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | | **ApiId** | **string** | The unique ID for this field. | [optional] **Name** | **string** | The name of the Custom Field. | [optional] **Signer** | **string** | The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). | [optional] **X** | **int** | The horizontal offset in pixels for this form field. | [optional] **Y** | **int** | The vertical offset in pixels for this form field. | [optional] **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] **Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [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/TemplateResponseDocumentCustomFieldCheckbox.md b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldCheckbox.md index 8b2dd33a9..11a948265 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldCheckbox.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldCheckbox.md @@ -5,19 +5,16 @@ This class extends `TemplateResponseDocumentCustomFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only `text` and `checkbox` are currently supported. - -* Text uses `TemplateResponseDocumentCustomFieldText` -* Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"] +**ApiId** | **string** | The unique ID for this field. | [optional] +**Name** | **string** | The name of the Custom Field. | [optional] +**Signer** | **string** | The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this Custom Field. Only `text` and `checkbox` are currently supported.

* Text uses `TemplateResponseDocumentCustomFieldText`
* Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` | [default to "checkbox"] [[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/TemplateResponseDocumentCustomFieldText.md b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldText.md index 505fad42b..8db16365b 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldText.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentCustomFieldText.md @@ -5,19 +5,16 @@ This class extends `TemplateResponseDocumentCustomFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The unique ID for this field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Custom Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this Custom Field. Only `text` and `checkbox` are currently supported. - -* Text uses `TemplateResponseDocumentCustomFieldText` -* Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsMultiline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this form field is multiline text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalFontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Original font size used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | The unique ID for this field. | [optional] +**Name** | **string** | The name of the Custom Field. | [optional] +**Signer** | **string** | The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this Custom Field. Only `text` and `checkbox` are currently supported.

* Text uses `TemplateResponseDocumentCustomFieldText`
* Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` | [default to "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] **IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] **OriginalFontSize** | **int** | Original font size used in this form field's text. | [optional] **FontFamily** | **string** | Font family used in this form field's text. | [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/TemplateResponseDocumentFieldGroup.md b/sdks/dotnet/docs/TemplateResponseDocumentFieldGroup.md index b4757cd3b..0dfac711c 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFieldGroup.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFieldGroup.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field group. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Rule** | [**TemplateResponseDocumentFieldGroupRule**](TemplateResponseDocumentFieldGroupRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The name of the form field group. | [optional] **Rule** | [**TemplateResponseDocumentFieldGroupRule**](TemplateResponseDocumentFieldGroupRule.md) | | [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/TemplateResponseDocumentFieldGroupRule.md b/sdks/dotnet/docs/TemplateResponseDocumentFieldGroupRule.md index 62b1f0792..44dd2eb4a 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFieldGroupRule.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFieldGroupRule.md @@ -5,11 +5,7 @@ The rule used to validate checkboxes in the form field group. See [checkbox fiel Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Requirement** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Examples: `require_0-1` `require_1` `require_1-ormore` - -- Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). -- Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). -- Radio groups require **at least** two fields per group. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **GroupLabel** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Name of the group REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Requirement** | **string** | Examples: `require_0-1` `require_1` `require_1-ormore`

- Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. | [optional] **GroupLabel** | **string** | Name of the group | [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/TemplateResponseDocumentFormFieldBase.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldBase.md index 4ed6e482d..0e941c7ec 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldBase.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldBase.md @@ -5,7 +5,7 @@ An array of Form Field objects containing the name and type of each named field. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | | **ApiId** | **string** | A unique id for the form field. | [optional] **Name** | **string** | The name of the form field. | [optional] **Signer** | **string** | The signer of the Form Field. | [optional] **X** | **int** | The horizontal offset in pixels for this form field. | [optional] **Y** | **int** | The vertical offset in pixels for this form field. | [optional] **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] **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] [[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/TemplateResponseDocumentFormFieldCheckbox.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldCheckbox.md index 680a6440d..45636fa5a 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldCheckbox.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldCheckbox.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"] +**ApiId** | **string** | A unique id for the form field. | [optional] +**Name** | **string** | The name of the form field. | [optional] +**Signer** | **string** | The signer of the Form Field. | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**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 "checkbox"] [[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/TemplateResponseDocumentFormFieldDateSigned.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDateSigned.md index 4c5cc1873..6bf5b02b3 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDateSigned.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDateSigned.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "date_signed"] +**ApiId** | **string** | A unique id for the form field. | [optional] +**Name** | **string** | The name of the form field. | [optional] +**Signer** | **string** | The signer of the Form Field. | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**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 "date_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/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md index a57d37be4..fa94587f3 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "dropdown"] +**ApiId** | **string** | A unique id for the form field. | [optional] +**Name** | **string** | The name of the form field. | [optional] +**Signer** | **string** | The signer of the Form Field. | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**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"] [[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/TemplateResponseDocumentFormFieldHyperlink.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldHyperlink.md index fa6e11f8c..c5dc34e1f 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldHyperlink.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldHyperlink.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "hyperlink"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsMultiline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this form field is multiline text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalFontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Original font size used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | A unique id for the form field. | [optional] +**Name** | **string** | The name of the form field. | [optional] +**Signer** | **string** | The signer of the Form Field. | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**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 "hyperlink"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] **IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] **OriginalFontSize** | **int** | Original font size used in this form field's text. | [optional] **FontFamily** | **string** | Font family used in this form field's text. | [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/TemplateResponseDocumentFormFieldInitials.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldInitials.md index 403db7264..ada79ecb1 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldInitials.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldInitials.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "initials"] +**ApiId** | **string** | A unique id for the form field. | [optional] +**Name** | **string** | The name of the form field. | [optional] +**Signer** | **string** | The signer of the Form Field. | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**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 "initials"] [[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/TemplateResponseDocumentFormFieldRadio.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldRadio.md index c7ee69059..abc332ce9 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldRadio.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldRadio.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "radio"] +**ApiId** | **string** | A unique id for the form field. | [optional] +**Name** | **string** | The name of the form field. | [optional] +**Signer** | **string** | The signer of the Form Field. | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**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 "radio"] [[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/TemplateResponseDocumentFormFieldSignature.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldSignature.md index b61c5a1e9..429769c02 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldSignature.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldSignature.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "signature"] +**ApiId** | **string** | A unique id for the form field. | [optional] +**Name** | **string** | The name of the form field. | [optional] +**Signer** | **string** | The signer of the Form Field. | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**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 "signature"] [[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/TemplateResponseDocumentFormFieldText.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md index 71150e742..9bcc4780e 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentFormFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Form Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this form field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN 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` REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsMultiline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this form field is multiline text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **OriginalFontSize** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Original font size used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FontFamily** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Font family used in this form field's text. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ValidationType** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ApiId** | **string** | A unique id for the form field. | [optional] +**Name** | **string** | The name of the form field. | [optional] +**Signer** | **string** | The signer of the Form Field. | [optional] +**X** | **int** | The horizontal offset in pixels for this form field. | [optional] +**Y** | **int** | The vertical offset in pixels for this form field. | [optional] +**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] +**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 "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] **IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] **OriginalFontSize** | **int** | Original font size used in this form field's text. | [optional] **FontFamily** | **string** | Font family used in this form field's text. | [optional] **ValidationType** | **string** | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | [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/TemplateResponseDocumentStaticFieldBase.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldBase.md index dbf3ecc29..b147460c8 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldBase.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldBase.md @@ -5,7 +5,7 @@ An array describing static overlay fields. **NOTE:** Only available for certain Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | **ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"]**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | | **ApiId** | **string** | A unique id for the static field. | [optional] **Name** | **string** | The name of the static field. | [optional] **Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"]**X** | **int** | The horizontal offset in pixels for this static field. | [optional] **Y** | **int** | The vertical offset in pixels for this static field. | [optional] **Width** | **int** | The width in pixels of this static field. | [optional] **Height** | **int** | The height in pixels of this static field. | [optional] **Required** | **bool** | Boolean showing whether or not this field is required. | [optional] **Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [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/TemplateResponseDocumentStaticFieldCheckbox.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldCheckbox.md index e151b3fa1..cfa9ccb8c 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldCheckbox.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldCheckbox.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). - -* Text Field uses `TemplateResponseDocumentStaticFieldText` -* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` -* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` -* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` -* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` -* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` -* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` -* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "checkbox"] +**ApiId** | **string** | A unique id for the static field. | [optional] +**Name** | **string** | The name of the static field. | [optional] +**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] +**X** | **int** | The horizontal offset in pixels for this static field. | [optional] +**Y** | **int** | The vertical offset in pixels for this static field. | [optional] +**Width** | **int** | The width in pixels of this static field. | [optional] +**Height** | **int** | The height in pixels of this static field. | [optional] +**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "checkbox"] [[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/TemplateResponseDocumentStaticFieldDateSigned.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDateSigned.md index c8b781a23..bae7b8ab4 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDateSigned.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDateSigned.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). - -* Text Field uses `TemplateResponseDocumentStaticFieldText` -* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` -* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` -* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` -* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` -* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` -* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` -* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "date_signed"] +**ApiId** | **string** | A unique id for the static field. | [optional] +**Name** | **string** | The name of the static field. | [optional] +**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] +**X** | **int** | The horizontal offset in pixels for this static field. | [optional] +**Y** | **int** | The vertical offset in pixels for this static field. | [optional] +**Width** | **int** | The width in pixels of this static field. | [optional] +**Height** | **int** | The height in pixels of this static field. | [optional] +**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "date_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/dotnet/docs/TemplateResponseDocumentStaticFieldDropdown.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDropdown.md index ad3b1506b..7815923f9 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDropdown.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldDropdown.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). - -* Text Field uses `TemplateResponseDocumentStaticFieldText` -* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` -* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` -* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` -* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` -* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` -* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` -* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "dropdown"] +**ApiId** | **string** | A unique id for the static field. | [optional] +**Name** | **string** | The name of the static field. | [optional] +**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] +**X** | **int** | The horizontal offset in pixels for this static field. | [optional] +**Y** | **int** | The vertical offset in pixels for this static field. | [optional] +**Width** | **int** | The width in pixels of this static field. | [optional] +**Height** | **int** | The height in pixels of this static field. | [optional] +**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "dropdown"] [[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/TemplateResponseDocumentStaticFieldHyperlink.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldHyperlink.md index b476f0396..81b419793 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldHyperlink.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldHyperlink.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). - -* Text Field uses `TemplateResponseDocumentStaticFieldText` -* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` -* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` -* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` -* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` -* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` -* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` -* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "hyperlink"] +**ApiId** | **string** | A unique id for the static field. | [optional] +**Name** | **string** | The name of the static field. | [optional] +**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] +**X** | **int** | The horizontal offset in pixels for this static field. | [optional] +**Y** | **int** | The vertical offset in pixels for this static field. | [optional] +**Width** | **int** | The width in pixels of this static field. | [optional] +**Height** | **int** | The height in pixels of this static field. | [optional] +**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "hyperlink"] [[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/TemplateResponseDocumentStaticFieldInitials.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldInitials.md index 0bfda97f0..a9dae476b 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldInitials.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldInitials.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). - -* Text Field uses `TemplateResponseDocumentStaticFieldText` -* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` -* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` -* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` -* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` -* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` -* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` -* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "initials"] +**ApiId** | **string** | A unique id for the static field. | [optional] +**Name** | **string** | The name of the static field. | [optional] +**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] +**X** | **int** | The horizontal offset in pixels for this static field. | [optional] +**Y** | **int** | The vertical offset in pixels for this static field. | [optional] +**Width** | **int** | The width in pixels of this static field. | [optional] +**Height** | **int** | The height in pixels of this static field. | [optional] +**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "initials"] [[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/TemplateResponseDocumentStaticFieldRadio.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldRadio.md index 42bceccc1..a13dc60d2 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldRadio.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldRadio.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). - -* Text Field uses `TemplateResponseDocumentStaticFieldText` -* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` -* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` -* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` -* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` -* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` -* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` -* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "radio"] +**ApiId** | **string** | A unique id for the static field. | [optional] +**Name** | **string** | The name of the static field. | [optional] +**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] +**X** | **int** | The horizontal offset in pixels for this static field. | [optional] +**Y** | **int** | The vertical offset in pixels for this static field. | [optional] +**Width** | **int** | The width in pixels of this static field. | [optional] +**Height** | **int** | The height in pixels of this static field. | [optional] +**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "radio"] [[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/TemplateResponseDocumentStaticFieldSignature.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldSignature.md index 2f55c81f8..7d2481d97 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldSignature.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldSignature.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). - -* Text Field uses `TemplateResponseDocumentStaticFieldText` -* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` -* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` -* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` -* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` -* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` -* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` -* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "signature"] +**ApiId** | **string** | A unique id for the static field. | [optional] +**Name** | **string** | The name of the static field. | [optional] +**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] +**X** | **int** | The horizontal offset in pixels for this static field. | [optional] +**Y** | **int** | The vertical offset in pixels for this static field. | [optional] +**Width** | **int** | The width in pixels of this static field. | [optional] +**Height** | **int** | The height in pixels of this static field. | [optional] +**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "signature"] [[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/TemplateResponseDocumentStaticFieldText.md b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldText.md index 13262f4fe..b44f3f3e4 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldText.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentStaticFieldText.md @@ -5,25 +5,16 @@ This class extends `TemplateResponseDocumentStaticFieldBase` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN A unique id for the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Signer** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The signer of the Static Field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to "me_now"] -**X** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The horizontal offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Y** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The vertical offset in pixels for this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Width** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The width in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Height** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The height in pixels of this static field. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Required** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Boolean showing whether or not this field is required. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Group** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the group this field is in. If this field is not a group, this defaults to `null`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of this static field. See [field types](/api/reference/constants/#field-types). - -* Text Field uses `TemplateResponseDocumentStaticFieldText` -* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` -* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` -* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` -* Radio Field uses `TemplateResponseDocumentStaticFieldRadio` -* Signature Field uses `TemplateResponseDocumentStaticFieldSignature` -* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` -* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` REPLACE_ME_WITH_DESCRIPTION_END | [default to "text"] +**ApiId** | **string** | A unique id for the static field. | [optional] +**Name** | **string** | The name of the static field. | [optional] +**Signer** | **string** | The signer of the Static Field. | [optional] [default to "me_now"] +**X** | **int** | The horizontal offset in pixels for this static field. | [optional] +**Y** | **int** | The vertical offset in pixels for this static field. | [optional] +**Width** | **int** | The width in pixels of this static field. | [optional] +**Height** | **int** | The height in pixels of this static field. | [optional] +**Required** | **bool** | Boolean showing whether or not this field is required. | [optional] +**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null`. | [optional] +**Type** | **string** | The type of this static field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentStaticFieldText`
* Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentStaticFieldRadio`
* Signature Field uses `TemplateResponseDocumentStaticFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentStaticFieldInitials` | [default to "text"] [[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/TemplateResponseFieldAvgTextLength.md b/sdks/dotnet/docs/TemplateResponseFieldAvgTextLength.md index d6700d7d7..a2773f068 100644 --- a/sdks/dotnet/docs/TemplateResponseFieldAvgTextLength.md +++ b/sdks/dotnet/docs/TemplateResponseFieldAvgTextLength.md @@ -5,7 +5,7 @@ Average text length in this field. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NumLines** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of lines. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **NumCharsPerLine** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Number of characters per line. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**NumLines** | **int** | Number of lines. | [optional] **NumCharsPerLine** | **int** | Number of characters per line. | [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/TemplateResponseSignerRole.md b/sdks/dotnet/docs/TemplateResponseSignerRole.md index 81ff41372..ddead2a48 100644 --- a/sdks/dotnet/docs/TemplateResponseSignerRole.md +++ b/sdks/dotnet/docs/TemplateResponseSignerRole.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The name of the Role. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Order** | **int** | REPLACE_ME_WITH_DESCRIPTION_BEGIN If signer order is assigned this is the 0-based index for this role. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Name** | **string** | The name of the Role. | [optional] **Order** | **int** | If signer order is assigned this is the 0-based index for this role. | [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/TemplateUpdateFilesRequest.md b/sdks/dotnet/docs/TemplateUpdateFilesRequest.md index f70a58085..ddaaac690 100644 --- a/sdks/dotnet/docs/TemplateUpdateFilesRequest.md +++ b/sdks/dotnet/docs/TemplateUpdateFilesRequest.md @@ -4,11 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app you're using to update this template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to use for the template. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new default template email message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The new default template email subject. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**ClientId** | **string** | Client id of the app you're using to update this template. | [optional] **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to use for the template.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **Message** | **string** | The new default template email message. | [optional] **Subject** | **string** | The new default template email subject. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] [[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/TemplateUpdateFilesResponse.md b/sdks/dotnet/docs/TemplateUpdateFilesResponse.md index 4a00485bb..5bd4210ef 100644 --- a/sdks/dotnet/docs/TemplateUpdateFilesResponse.md +++ b/sdks/dotnet/docs/TemplateUpdateFilesResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Template** | [**TemplateUpdateFilesResponseTemplate**](TemplateUpdateFilesResponseTemplate.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Template** | [**TemplateUpdateFilesResponseTemplate**](TemplateUpdateFilesResponseTemplate.md) | | [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/TemplateUpdateFilesResponseTemplate.md b/sdks/dotnet/docs/TemplateUpdateFilesResponseTemplate.md index 208ab9128..390961e68 100644 --- a/sdks/dotnet/docs/TemplateUpdateFilesResponseTemplate.md +++ b/sdks/dotnet/docs/TemplateUpdateFilesResponseTemplate.md @@ -5,7 +5,7 @@ Contains template id Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The id of the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**TemplateId** | **string** | The id of the Template. | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/UnclaimedDraftApi.md b/sdks/dotnet/docs/UnclaimedDraftApi.md index 79db47f9c..7d5a0e145 100644 --- a/sdks/dotnet/docs/UnclaimedDraftApi.md +++ b/sdks/dotnet/docs/UnclaimedDraftApi.md @@ -19,7 +19,92 @@ Creates a new Draft that can be claimed using the claim URL. The first authentic ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__UnclaimedDraftCreate_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var unclaimedDraftApi = new UnclaimedDraftApi(config); + + var signer1 = new SubUnclaimedDraftSigner( + emailAddress: "jack@example.com", + name: "Jack", + order: 0 + ); + + var signer2 = new SubUnclaimedDraftSigner( + emailAddress: "jill@example.com", + name: "Jill", + order: 1 + ); + + var subSigningOptions = new SubSigningOptions( + draw: true, + type: true, + upload: true, + phone: false, + defaultType: SubSigningOptions.DefaultTypeEnum.Draw + ); + + var subFieldOptions = new SubFieldOptions( + dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY + ); + + var metadata = new Dictionary() + { + ["custom_id"] = 1234, + ["custom_text"] = "NDA #9" + }; + + var files = new List { + new FileStream( + "./example_signature_request.pdf", + FileMode.Open, + FileAccess.Read, + FileShare.Read + ) + }; + + var data = new UnclaimedDraftCreateRequest( + subject: "The NDA we talked about", + type: UnclaimedDraftCreateRequest.TypeEnum.RequestSignature, + message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", + signers: new List(){signer1, signer2}, + ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, + files: files, + metadata: metadata, + signingOptions: subSigningOptions, + fieldOptions: subFieldOptions, + testMode: true + ); + + try + { + var result = unclaimedDraftApi.UnclaimedDraftCreate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the UnclaimedDraftCreateWithHttpInfo variant @@ -80,7 +165,56 @@ Creates a new Draft that can be claimed and used in an embedded iFrame. The firs ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__UnclaimedDraftCreateEmbedded_C#_CODE +using System; +using System.Collections.Generic; +using System.IO; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var unclaimedDraftApi = new UnclaimedDraftApi(config); + + var files = new List { + new FileStream( + "./example_signature_request.pdf", + FileMode.Open, + FileAccess.Read, + FileShare.Read + ) + }; + + var data = new UnclaimedDraftCreateEmbeddedRequest( + clientId: "ec64a202072370a737edf4a0eb7f4437", + files: files, + requesterEmailAddress: "jack@dropboxsign.com", + testMode: true + ); + + try + { + var result = unclaimedDraftApi.UnclaimedDraftCreateEmbedded(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the UnclaimedDraftCreateEmbeddedWithHttpInfo variant @@ -141,7 +275,59 @@ Creates a new Draft with a previously saved template(s) that can be claimed and ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__UnclaimedDraftCreateEmbeddedWithTemplate_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var unclaimedDraftApi = new UnclaimedDraftApi(config); + + var signer = new SubUnclaimedDraftTemplateSigner( + role: "Client", + name: "George", + emailAddress: "george@example.com" + ); + + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@email.com" + ); + + var data = new UnclaimedDraftCreateEmbeddedWithTemplateRequest( + clientId: "1a659d9ad95bccd307ecad78d72192f8", + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + requesterEmailAddress: "jack@dropboxsign.com", + signers: new List(){signer}, + ccs: new List(){cc1}, + testMode: true + ); + + try + { + var result = unclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo variant @@ -202,7 +388,46 @@ Creates a new signature request from an embedded request that can be edited prio ### Example ```csharp -REPLACE_ME_WITH_EXAMPLE_FOR__UnclaimedDraftEditAndResend_C#_CODE +using System; +using System.Collections.Generic; +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +public class Example +{ + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var unclaimedDraftApi = new UnclaimedDraftApi(config); + + var data = new UnclaimedDraftEditAndResendRequest( + clientId: "1a659d9ad95bccd307ecad78d72192f8", + testMode: true + ); + + var signatureRequestId = "2f9781e1a83jdja934d808c153c2e1d3df6f8f2f"; + + try + { + var result = unclaimedDraftApi.UnclaimedDraftEditAndResend(signatureRequestId, data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } +} + ``` #### Using the UnclaimedDraftEditAndResendWithHttpInfo variant diff --git a/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedRequest.md b/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedRequest.md index 0b61b3d86..d3bc89c77 100644 --- a/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedRequest.md +++ b/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedRequest.md @@ -4,39 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowCcs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. - -**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email addresses that should be CCed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. - -Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. - -For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ForceSignerPage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ForceSubjectMessage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the subject and message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) - -**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. - -* Text Field use `SubFormFieldsPerDocumentText` -* Dropdown Field use `SubFormFieldsPerDocumentDropdown` -* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` -* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` -* Radio Field use `SubFormFieldsPerDocumentRadio` -* Signature Field use `SubFormFieldsPerDocumentSignature` -* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` -* Initials Field use `SubFormFieldsPerDocumentInitials` -* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` -* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HideTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**HoldRequest** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsForEmbeddedSigning** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequestingRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully request a signature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowPreview** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the editor/preview experience. - -- `show_preview=true`: Allows requesters to enable the editor/preview experience. -- `show_preview=false`: Allows requesters to disable the editor/preview experience. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**Signers** | [**List<SubUnclaimedDraftSigner>**](SubUnclaimedDraftSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Unclaimed Draft Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SkipMeNow** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to TypeEnum.RequestSignature]**UsePreexistingFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**UseTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**PopulateAutoFillFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. - -**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. - -**NOTE:** This does not correspond to the **expires_at** returned in the response. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**ClientId** | **string** | Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. | **RequesterEmailAddress** | **string** | The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. | **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **AllowCcs** | **bool** | This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. | [optional] [default to true]**AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] **CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] **ForceSignerPage** | **bool** | Provide users the ability to review/edit the signers. | [optional] [default to false]**ForceSubjectMessage** | **bool** | Provide users the ability to review/edit the subject and message. | [optional] [default to false]**FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] **HideTextTags** | **bool** | Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. | [optional] [default to false]**HoldRequest** | **bool** | The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. | [optional] [default to false]**IsForEmbeddedSigning** | **bool** | The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. | [optional] [default to false]**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **RequestingRedirectUrl** | **string** | The URL you want signers redirected to after they successfully request a signature. | [optional] **ShowPreview** | **bool** | This allows the requester to enable the editor/preview experience.

- `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. | [optional] **ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true]**Signers** | [**List<SubUnclaimedDraftSigner>**](SubUnclaimedDraftSigner.md) | Add Signers to your Unclaimed Draft Signature Request. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **SkipMeNow** | **bool** | Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. | [optional] [default to false]**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Type** | **string** | The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. | [optional] [default to TypeEnum.RequestSignature]**UsePreexistingFields** | **bool** | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [optional] [default to false]**UseTextTags** | **bool** | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [optional] [default to false]**PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false]**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.

**NOTE:** This does not correspond to the **expires_at** returned in the response. | [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/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md b/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md index 7b9aaae45..d5b69549f 100644 --- a/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md +++ b/sdks/dotnet/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md @@ -4,25 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the user that should be designated as the requester of this draft. REPLACE_ME_WITH_DESCRIPTION_END | **TemplateIds** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. REPLACE_ME_WITH_DESCRIPTION_END | **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowReassign** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. - -**NOTE:** Only available for Premium plan and higher. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add CC email recipients. Required when a CC role exists for the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN An array defining values and options for custom fields. Required when a custom field exists in the Template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored. - -**files** or **file_urls[]** is required, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored. - -**files** or **file_urls[]** is required, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ForceSignerRoles** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template signer roles. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ForceSubjectMessage** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Provide users the ability to review/edit the template subject and message. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**HoldRequest** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**IsForEmbeddedSigning** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PreviewOnly** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). - -- `preview_only=true`: Allows requesters to enable the preview only experience. -- `preview_only=false`: Allows requesters to disable the preview only experience. - -**NOTE:** This parameter overwrites `show_preview=1` (if set). REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**RequestingRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully request a signature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowPreview** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to enable the editor/preview experience. - -- `show_preview=true`: Allows requesters to enable the editor/preview experience. -- `show_preview=false`: Allows requesters to disable the editor/preview experience. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**Signers** | [**List<SubUnclaimedDraftTemplateSigner>**](SubUnclaimedDraftTemplateSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Templated-based Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SkipMeNow** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Title** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The title you want to assign to the SignatureRequest. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **PopulateAutoFillFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. - -**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**AllowCcs** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**ClientId** | **string** | Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. | **RequesterEmailAddress** | **string** | The email address of the user that should be designated as the requester of this draft. | **TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. | **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.

**NOTE:** Only available for Premium plan and higher. | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | [optional] **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] **Files** | **List<System.IO.Stream>** | Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored.

**files** or **file_urls[]** is required, but not both. | [optional] **FileUrls** | **List<string>** | Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored.

**files** or **file_urls[]** is required, but not both. | [optional] **ForceSignerRoles** | **bool** | Provide users the ability to review/edit the template signer roles. | [optional] [default to false]**ForceSubjectMessage** | **bool** | Provide users the ability to review/edit the template subject and message. | [optional] [default to false]**HoldRequest** | **bool** | The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. | [optional] [default to false]**IsForEmbeddedSigning** | **bool** | The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. | [optional] [default to false]**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **PreviewOnly** | **bool** | This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor).

- `preview_only=true`: Allows requesters to enable the preview only experience. - `preview_only=false`: Allows requesters to disable the preview only experience.

**NOTE:** This parameter overwrites `show_preview=1` (if set). | [optional] [default to false]**RequestingRedirectUrl** | **string** | The URL you want signers redirected to after they successfully request a signature. | [optional] **ShowPreview** | **bool** | This allows the requester to enable the editor/preview experience.

- `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. | [optional] [default to false]**ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true]**Signers** | [**List<SubUnclaimedDraftTemplateSigner>**](SubUnclaimedDraftTemplateSigner.md) | Add Signers to your Templated-based Signature Request. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **SkipMeNow** | **bool** | Disables the "Me (Now)" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. | [optional] [default to false]**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false]**AllowCcs** | **bool** | This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. | [optional] [default to false] [[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/UnclaimedDraftCreateRequest.md b/sdks/dotnet/docs/UnclaimedDraftCreateRequest.md index edca26f53..462e91456 100644 --- a/sdks/dotnet/docs/UnclaimedDraftCreateRequest.md +++ b/sdks/dotnet/docs/UnclaimedDraftCreateRequest.md @@ -4,32 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. REPLACE_ME_WITH_DESCRIPTION_END | **Files** | **List<System.IO.Stream>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `files[]` to indicate the uploaded file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FileUrls** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. - -This endpoint requires either **files** or **file_urls[]**, but not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **AllowDecline** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Allows signers to decline to sign a document if `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list describing the attachments REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CcEmailAddresses** | **List<string>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email addresses that should be CCed. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. - -Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. - -For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Conditional Logic rules for fields defined in `form_fields_per_document`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) - -**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. - -* Text Field use `SubFormFieldsPerDocumentText` -* Dropdown Field use `SubFormFieldsPerDocumentDropdown` -* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` -* Checkbox Field use `SubFormFieldsPerDocumentCheckbox` -* Radio Field use `SubFormFieldsPerDocumentRadio` -* Signature Field use `SubFormFieldsPerDocumentSignature` -* Date Signed Field use `SubFormFieldsPerDocumentDateSigned` -* Initials Field use `SubFormFieldsPerDocumentInitials` -* Text Merge Field use `SubFormFieldsPerDocumentTextMerge` -* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` REPLACE_ME_WITH_DESCRIPTION_END | [optional] **HideTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**Message** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The custom message in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Metadata** | **Dictionary<string, Object>** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. - -Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**Signers** | [**List<SubUnclaimedDraftSigner>**](SubUnclaimedDraftSigner.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN Add Signers to your Unclaimed Draft Signature Request. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Subject** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The subject in the email that will be sent to the signers. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**UsePreexistingFields** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**UseTextTags** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false]**ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. - -**NOTE:** This does not correspond to the **expires_at** returned in the response. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**Type** | **string** | The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. | **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] **CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] **ClientId** | **string** | Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.

For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] **HideTextTags** | **bool** | Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. | [optional] [default to false]**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true]**Signers** | [**List<SubUnclaimedDraftSigner>**](SubUnclaimedDraftSigner.md) | Add Signers to your Unclaimed Draft Signature Request. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**UsePreexistingFields** | **bool** | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [optional] [default to false]**UseTextTags** | **bool** | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [optional] [default to false]**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.

**NOTE:** This does not correspond to the **expires_at** returned in the response. | [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/UnclaimedDraftCreateResponse.md b/sdks/dotnet/docs/UnclaimedDraftCreateResponse.md index 3155680b2..cc7f5da5a 100644 --- a/sdks/dotnet/docs/UnclaimedDraftCreateResponse.md +++ b/sdks/dotnet/docs/UnclaimedDraftCreateResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UnclaimedDraft** | [**UnclaimedDraftResponse**](UnclaimedDraftResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN A list of warnings. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**UnclaimedDraft** | [**UnclaimedDraftResponse**](UnclaimedDraftResponse.md) | | [optional] **Warnings** | [**List<WarningResponse>**](WarningResponse.md) | A list of warnings. | [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/UnclaimedDraftEditAndResendRequest.md b/sdks/dotnet/docs/UnclaimedDraftEditAndResendRequest.md index 29ba7e9fc..330a064f4 100644 --- a/sdks/dotnet/docs/UnclaimedDraftEditAndResendRequest.md +++ b/sdks/dotnet/docs/UnclaimedDraftEditAndResendRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. REPLACE_ME_WITH_DESCRIPTION_END | **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | REPLACE_ME_WITH_DESCRIPTION_BEGIN REPLACE_ME_WITH_DESCRIPTION_END | [optional] **IsForEmbeddedSigning** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The request created from this draft will also be signable in embedded mode if set to `true`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequesterEmailAddress** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequestingRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully request a signature. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ShowProgressStepper** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to true]**SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. REPLACE_ME_WITH_DESCRIPTION_END | [optional] [default to false] +**ClientId** | **string** | Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. | **EditorOptions** | [**SubEditorOptions**](SubEditorOptions.md) | | [optional] **IsForEmbeddedSigning** | **bool** | The request created from this draft will also be signable in embedded mode if set to `true`. | [optional] **RequesterEmailAddress** | **string** | The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. | [optional] **RequestingRedirectUrl** | **string** | The URL you want signers redirected to after they successfully request a signature. | [optional] **ShowProgressStepper** | **bool** | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [optional] [default to true]**SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false] [[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/UnclaimedDraftResponse.md b/sdks/dotnet/docs/UnclaimedDraftResponse.md index 587f0d115..f301ff7b9 100644 --- a/sdks/dotnet/docs/UnclaimedDraftResponse.md +++ b/sdks/dotnet/docs/UnclaimedDraftResponse.md @@ -5,7 +5,7 @@ A group of documents that a user can take ownership of via the claim URL. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SignatureRequestId** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The ID of the signature request that is represented by this UnclaimedDraft. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ClaimUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL to be used to claim this UnclaimedDraft. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **SigningRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully sign. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **RequestingRedirectUrl** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). REPLACE_ME_WITH_DESCRIPTION_END | [optional] **ExpiresAt** | **int?** | REPLACE_ME_WITH_DESCRIPTION_BEGIN When the link expires. REPLACE_ME_WITH_DESCRIPTION_END | [optional] **TestMode** | **bool** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Whether this is a test draft. Signature requests made from test drafts have no legal value. REPLACE_ME_WITH_DESCRIPTION_END | [optional] +**SignatureRequestId** | **string** | The ID of the signature request that is represented by this UnclaimedDraft. | [optional] **ClaimUrl** | **string** | The URL to be used to claim this UnclaimedDraft. | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **RequestingRedirectUrl** | **string** | The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). | [optional] **ExpiresAt** | **int?** | When the link expires. | [optional] **TestMode** | **bool** | Whether this is a test draft. Signature requests made from test drafts have no legal value. | [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/WarningResponse.md b/sdks/dotnet/docs/WarningResponse.md index 16b835467..f44da160e 100644 --- a/sdks/dotnet/docs/WarningResponse.md +++ b/sdks/dotnet/docs/WarningResponse.md @@ -5,7 +5,7 @@ A list of warnings. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**WarningMsg** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Warning message REPLACE_ME_WITH_DESCRIPTION_END | **WarningName** | **string** | REPLACE_ME_WITH_DESCRIPTION_BEGIN Warning name REPLACE_ME_WITH_DESCRIPTION_END | +**WarningMsg** | **string** | Warning message | **WarningName** | **string** | Warning name | [[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/run-build b/sdks/dotnet/run-build index dd2625f45..6820163af 100755 --- a/sdks/dotnet/run-build +++ b/sdks/dotnet/run-build @@ -14,3 +14,38 @@ docker run --rm \ -c "/local/openapi-config.yaml" \ -t "/local/templates" \ -o "/local/" + +printf "\nInstalling composer dependencies ...\n" +mkdir -p "${DIR}/vendor" +bash "${DIR}/bin/php" composer install +printf "\n" + +printf "Adding examples to Docs ...\n" +bash "${DIR}/bin/php" ./bin/generate-examples.php + +printf "Replacing strings ...\n" +docker run --rm \ + -v "${DIR}:${WORKING_DIR}" \ + -w "${WORKING_DIR}" \ + perl bash ./bin/replace + +printf "Scanning for prohibited keywords ...\n" +docker run --rm \ + -v "${DIR}:${WORKING_DIR}" \ + -w "${WORKING_DIR}" \ + perl bash ./bin/scan_for + +# avoid docker messing with permissions +if [[ -z "$GITHUB_ACTIONS" ]]; then + chmod 644 "${DIR}/README.md" + find "${DIR}/docs/" -type f -exec chmod 644 {} \; + find "${DIR}/examples/" -type f -exec chmod 644 {} \; + find "${DIR}/test_fixtures/" -type f -exec chmod 644 {} \; + find "${DIR}/src/" -type f -exec chmod 644 {} \; +fi + +printf "Running tests ...\n" +bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/ + +printf "Success!\n" + From 6cade9729502bf63f164cb5031728eb69895459f Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Tue, 27 Aug 2024 17:23:06 -0500 Subject: [PATCH 04/10] Run CSharpier --- sdks/dotnet/README.md | 5 +- sdks/dotnet/bin/dotnet | 2 +- sdks/dotnet/docs/AccountApi.md | 16 +- sdks/dotnet/docs/ApiAppApi.md | 26 +- sdks/dotnet/docs/EmbeddedApi.md | 2 +- sdks/dotnet/docs/FaxLineApi.md | 5 +- sdks/dotnet/docs/ReportApi.md | 3 +- sdks/dotnet/docs/SignatureRequestApi.md | 92 +- sdks/dotnet/docs/TeamApi.md | 12 +- sdks/dotnet/docs/TemplateApi.md | 60 +- sdks/dotnet/docs/UnclaimedDraftApi.md | 31 +- sdks/dotnet/run-build | 3 +- .../Dropbox.Sign.Test/Api/AccountApiTests.cs | 14 +- .../Dropbox.Sign.Test/Api/ApiAppApiTests.cs | 7 +- .../Api/BulkSendJobApiTests.cs | 3 +- .../Dropbox.Sign.Test/Api/EmbeddedApiTests.cs | 3 +- .../Dropbox.Sign.Test/Api/OAuthApiTests.cs | 3 +- .../Dropbox.Sign.Test/Api/ReportApiTests.cs | 3 +- .../Api/SignatureRequestApiTests.cs | 103 +- .../src/Dropbox.Sign.Test/Api/TeamApiTests.cs | 9 +- .../Dropbox.Sign.Test/Api/TemplateApiTests.cs | 33 +- .../Api/UnclaimedDraftApiTests.cs | 31 +- .../EventCallbackHelperTests.cs | 27 +- .../Dropbox.Sign.Test/MockRestClientHelper.cs | 107 +- .../Model/SubFormFieldsPerDocumentTests.cs | 8 +- .../src/Dropbox.Sign.Test/TestHelper.cs | 17 +- .../dotnet/src/Dropbox.Sign/Api/AccountApi.cs | 683 +++- sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs | 871 +++-- .../src/Dropbox.Sign/Api/BulkSendJobApi.cs | 429 ++- .../src/Dropbox.Sign/Api/EmbeddedApi.cs | 385 ++- .../dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs | 1098 ++++-- sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs | 264 +- sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs | 173 +- .../Dropbox.Sign/Api/SignatureRequestApi.cs | 2989 +++++++++++++---- sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs | 1680 ++++++--- .../src/Dropbox.Sign/Api/TemplateApi.cs | 2060 +++++++++--- .../src/Dropbox.Sign/Api/UnclaimedDraftApi.cs | 746 +++- .../src/Dropbox.Sign/Client/ApiClient.cs | 334 +- .../src/Dropbox.Sign/Client/ApiException.cs | 12 +- .../src/Dropbox.Sign/Client/ApiResponse.cs | 22 +- .../src/Dropbox.Sign/Client/ClientUtils.cs | 82 +- .../src/Dropbox.Sign/Client/Configuration.cs | 174 +- .../Client/GlobalConfiguration.cs | 14 +- .../src/Dropbox.Sign/Client/HttpMethod.cs | 8 +- .../Client/IAsynchronousClient.cs | 56 +- .../Client/IReadableConfiguration.cs | 5 +- .../Dropbox.Sign/Client/ISynchronousClient.cs | 42 +- .../src/Dropbox.Sign/Client/Multimap.cs | 3 +- .../src/Dropbox.Sign/EventCallbackHelper.cs | 6 +- .../Model/AbstractOpenAPISchema.cs | 44 +- .../Model/AccountCreateRequest.cs | 130 +- .../Model/AccountCreateResponse.cs | 107 +- .../Dropbox.Sign/Model/AccountGetResponse.cs | 73 +- .../src/Dropbox.Sign/Model/AccountResponse.cs | 292 +- .../Model/AccountResponseQuotas.cs | 198 +- .../Model/AccountResponseUsage.cs | 46 +- .../Model/AccountUpdateRequest.cs | 100 +- .../Model/AccountVerifyRequest.cs | 50 +- .../Model/AccountVerifyResponse.cs | 81 +- .../Model/AccountVerifyResponseAccount.cs | 50 +- .../Dropbox.Sign/Model/ApiAppCreateRequest.cs | 218 +- .../Dropbox.Sign/Model/ApiAppGetResponse.cs | 73 +- .../Dropbox.Sign/Model/ApiAppListResponse.cs | 102 +- .../src/Dropbox.Sign/Model/ApiAppResponse.cs | 274 +- .../Dropbox.Sign/Model/ApiAppResponseOAuth.cs | 128 +- .../Model/ApiAppResponseOptions.cs | 49 +- .../Model/ApiAppResponseOwnerAccount.cs | 78 +- .../ApiAppResponseWhiteLabelingOptions.cs | 436 ++- .../Dropbox.Sign/Model/ApiAppUpdateRequest.cs | 210 +- .../Model/BulkSendJobGetResponse.cs | 137 +- ...BulkSendJobGetResponseSignatureRequests.cs | 695 ++-- .../Model/BulkSendJobListResponse.cs | 110 +- .../Dropbox.Sign/Model/BulkSendJobResponse.cs | 118 +- .../Model/BulkSendJobSendResponse.cs | 81 +- .../Model/EmbeddedEditUrlRequest.cs | 286 +- .../Model/EmbeddedEditUrlResponse.cs | 81 +- .../Model/EmbeddedEditUrlResponseEmbedded.cs | 75 +- .../Model/EmbeddedSignUrlResponse.cs | 81 +- .../Model/EmbeddedSignUrlResponseEmbedded.cs | 75 +- .../src/Dropbox.Sign/Model/ErrorResponse.cs | 45 +- .../Dropbox.Sign/Model/ErrorResponseError.cs | 104 +- .../Model/EventCallbackRequest.cs | 133 +- .../Model/EventCallbackRequestEvent.cs | 140 +- .../EventCallbackRequestEventMetadata.cs | 139 +- sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs | 121 +- .../Model/FaxLineAddUserRequest.cs | 108 +- .../Model/FaxLineAreaCodeGetCountryEnum.cs | 7 +- .../Model/FaxLineAreaCodeGetProvinceEnum.cs | 7 +- .../Model/FaxLineAreaCodeGetResponse.cs | 53 +- .../Model/FaxLineAreaCodeGetStateEnum.cs | 7 +- .../Model/FaxLineCreateRequest.cs | 118 +- .../Model/FaxLineDeleteRequest.cs | 50 +- .../Dropbox.Sign/Model/FaxLineListResponse.cs | 103 +- .../Model/FaxLineRemoveUserRequest.cs | 108 +- .../src/Dropbox.Sign/Model/FaxLineResponse.cs | 70 +- .../Model/FaxLineResponseFaxLine.cs | 125 +- .../src/Dropbox.Sign/Model/FileResponse.cs | 62 +- .../Dropbox.Sign/Model/FileResponseDataUri.cs | 46 +- .../Dropbox.Sign/Model/ListInfoResponse.cs | 112 +- .../Model/OAuthTokenGenerateRequest.cs | 173 +- .../Model/OAuthTokenRefreshRequest.cs | 86 +- .../Dropbox.Sign/Model/OAuthTokenResponse.cs | 144 +- .../Dropbox.Sign/Model/ReportCreateRequest.cs | 117 +- .../Model/ReportCreateResponse.cs | 77 +- .../src/Dropbox.Sign/Model/ReportResponse.cs | 127 +- ...stBulkCreateEmbeddedWithTemplateRequest.cs | 403 ++- ...atureRequestBulkSendWithTemplateRequest.cs | 398 ++- .../SignatureRequestCreateEmbeddedRequest.cs | 702 ++-- ...equestCreateEmbeddedWithTemplateRequest.cs | 465 +-- .../SignatureRequestEditEmbeddedRequest.cs | 675 ++-- ...eRequestEditEmbeddedWithTemplateRequest.cs | 451 ++- .../Model/SignatureRequestEditRequest.cs | 720 ++-- ...SignatureRequestEditWithTemplateRequest.cs | 495 +-- .../Model/SignatureRequestGetResponse.cs | 84 +- .../Model/SignatureRequestListResponse.cs | 111 +- .../Model/SignatureRequestRemindRequest.cs | 81 +- .../Model/SignatureRequestResponse.cs | 691 ++-- .../SignatureRequestResponseAttachment.cs | 184 +- ...SignatureRequestResponseCustomFieldBase.cs | 160 +- ...atureRequestResponseCustomFieldCheckbox.cs | 90 +- ...SignatureRequestResponseCustomFieldText.cs | 92 +- ...atureRequestResponseCustomFieldTypeEnum.cs | 7 +- .../Model/SignatureRequestResponseDataBase.cs | 155 +- .../SignatureRequestResponseDataTypeEnum.cs | 7 +- ...gnatureRequestResponseDataValueCheckbox.cs | 86 +- ...reRequestResponseDataValueCheckboxMerge.cs | 88 +- ...atureRequestResponseDataValueDateSigned.cs | 88 +- ...gnatureRequestResponseDataValueDropdown.cs | 88 +- ...gnatureRequestResponseDataValueInitials.cs | 88 +- .../SignatureRequestResponseDataValueRadio.cs | 86 +- ...natureRequestResponseDataValueSignature.cs | 88 +- .../SignatureRequestResponseDataValueText.cs | 88 +- ...natureRequestResponseDataValueTextMerge.cs | 88 +- .../SignatureRequestResponseSignatures.cs | 539 +-- .../Model/SignatureRequestSendRequest.cs | 745 ++-- ...SignatureRequestSendWithTemplateRequest.cs | 511 +-- .../Model/SignatureRequestUpdateRequest.cs | 131 +- .../src/Dropbox.Sign/Model/SubAttachment.cs | 120 +- .../Dropbox.Sign/Model/SubBulkSignerList.cs | 78 +- .../Model/SubBulkSignerListCustomField.cs | 83 +- sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs | 70 +- .../src/Dropbox.Sign/Model/SubCustomField.cs | 119 +- .../Dropbox.Sign/Model/SubEditorOptions.cs | 63 +- .../src/Dropbox.Sign/Model/SubFieldOptions.cs | 43 +- .../Dropbox.Sign/Model/SubFormFieldGroup.cs | 108 +- .../Dropbox.Sign/Model/SubFormFieldRule.cs | 144 +- .../Model/SubFormFieldRuleAction.cs | 125 +- .../Model/SubFormFieldRuleTrigger.cs | 133 +- .../Model/SubFormFieldsPerDocumentBase.cs | 300 +- .../Model/SubFormFieldsPerDocumentCheckbox.cs | 117 +- .../SubFormFieldsPerDocumentCheckboxMerge.cs | 73 +- .../SubFormFieldsPerDocumentDateSigned.cs | 118 +- .../Model/SubFormFieldsPerDocumentDropdown.cs | 179 +- .../Model/SubFormFieldsPerDocumentFontEnum.cs | 7 +- .../SubFormFieldsPerDocumentHyperlink.cs | 180 +- .../Model/SubFormFieldsPerDocumentInitials.cs | 69 +- .../Model/SubFormFieldsPerDocumentRadio.cs | 123 +- .../SubFormFieldsPerDocumentSignature.cs | 69 +- .../Model/SubFormFieldsPerDocumentText.cs | 347 +- .../SubFormFieldsPerDocumentTextMerge.cs | 118 +- .../Model/SubFormFieldsPerDocumentTypeEnum.cs | 7 +- .../src/Dropbox.Sign/Model/SubMergeField.cs | 67 +- .../dotnet/src/Dropbox.Sign/Model/SubOAuth.cs | 77 +- .../src/Dropbox.Sign/Model/SubOptions.cs | 41 +- .../SubSignatureRequestGroupedSigners.cs | 115 +- .../Model/SubSignatureRequestSigner.cs | 199 +- .../SubSignatureRequestTemplateSigner.cs | 200 +- .../Dropbox.Sign/Model/SubSigningOptions.cs | 136 +- .../src/Dropbox.Sign/Model/SubTeamResponse.cs | 64 +- .../src/Dropbox.Sign/Model/SubTemplateRole.cs | 62 +- .../Model/SubUnclaimedDraftSigner.cs | 109 +- .../Model/SubUnclaimedDraftTemplateSigner.cs | 110 +- .../Model/SubWhiteLabelingOptions.cs | 463 +-- .../Model/TeamAddMemberRequest.cs | 101 +- .../Dropbox.Sign/Model/TeamCreateRequest.cs | 39 +- .../Dropbox.Sign/Model/TeamGetInfoResponse.cs | 74 +- .../src/Dropbox.Sign/Model/TeamGetResponse.cs | 70 +- .../Dropbox.Sign/Model/TeamInfoResponse.cs | 140 +- .../Dropbox.Sign/Model/TeamInviteResponse.cs | 161 +- .../Dropbox.Sign/Model/TeamInvitesResponse.cs | 80 +- .../Dropbox.Sign/Model/TeamMemberResponse.cs | 95 +- .../Dropbox.Sign/Model/TeamMembersResponse.cs | 106 +- .../Dropbox.Sign/Model/TeamParentResponse.cs | 64 +- .../Model/TeamRemoveMemberRequest.cs | 160 +- .../src/Dropbox.Sign/Model/TeamResponse.cs | 128 +- .../Model/TeamSubTeamsResponse.cs | 106 +- .../Dropbox.Sign/Model/TeamUpdateRequest.cs | 39 +- .../Model/TemplateAddUserRequest.cs | 103 +- .../TemplateCreateEmbeddedDraftRequest.cs | 705 ++-- .../TemplateCreateEmbeddedDraftResponse.cs | 82 +- ...lateCreateEmbeddedDraftResponseTemplate.cs | 133 +- .../Model/TemplateCreateRequest.cs | 537 +-- .../Model/TemplateCreateResponse.cs | 81 +- .../Model/TemplateCreateResponseTemplate.cs | 50 +- .../Model/TemplateEditResponse.cs | 46 +- .../Dropbox.Sign/Model/TemplateGetResponse.cs | 77 +- .../Model/TemplateListResponse.cs | 106 +- .../Model/TemplateRemoveUserRequest.cs | 78 +- .../Dropbox.Sign/Model/TemplateResponse.cs | 425 +-- .../Model/TemplateResponseAccount.cs | 170 +- .../Model/TemplateResponseAccountQuota.cs | 126 +- .../Model/TemplateResponseCCRole.cs | 47 +- .../Model/TemplateResponseCustomField.cs | 336 +- .../Model/TemplateResponseDocument.cs | 191 +- .../TemplateResponseDocumentCustomField.cs | 417 ++- ...TemplateResponseDocumentCustomFieldBase.cs | 270 +- ...lateResponseDocumentCustomFieldCheckbox.cs | 72 +- ...TemplateResponseDocumentCustomFieldText.cs | 179 +- .../TemplateResponseDocumentFieldGroup.cs | 75 +- .../TemplateResponseDocumentFieldGroupRule.cs | 82 +- .../TemplateResponseDocumentFormField.cs | 361 +- .../TemplateResponseDocumentFormFieldBase.cs | 270 +- ...mplateResponseDocumentFormFieldCheckbox.cs | 72 +- ...lateResponseDocumentFormFieldDateSigned.cs | 72 +- ...mplateResponseDocumentFormFieldDropdown.cs | 72 +- ...plateResponseDocumentFormFieldHyperlink.cs | 179 +- ...mplateResponseDocumentFormFieldInitials.cs | 72 +- .../TemplateResponseDocumentFormFieldRadio.cs | 72 +- ...plateResponseDocumentFormFieldSignature.cs | 72 +- .../TemplateResponseDocumentFormFieldText.cs | 208 +- .../TemplateResponseDocumentStaticField.cs | 251 +- ...TemplateResponseDocumentStaticFieldBase.cs | 275 +- ...lateResponseDocumentStaticFieldCheckbox.cs | 72 +- ...teResponseDocumentStaticFieldDateSigned.cs | 72 +- ...lateResponseDocumentStaticFieldDropdown.cs | 72 +- ...ateResponseDocumentStaticFieldHyperlink.cs | 72 +- ...lateResponseDocumentStaticFieldInitials.cs | 72 +- ...emplateResponseDocumentStaticFieldRadio.cs | 72 +- ...ateResponseDocumentStaticFieldSignature.cs | 72 +- ...TemplateResponseDocumentStaticFieldText.cs | 72 +- .../TemplateResponseFieldAvgTextLength.cs | 73 +- .../Model/TemplateResponseNamedFormField.cs | 357 +- .../Model/TemplateResponseSignerRole.cs | 68 +- .../Model/TemplateUpdateFilesRequest.cs | 196 +- .../Model/TemplateUpdateFilesResponse.cs | 55 +- .../TemplateUpdateFilesResponseTemplate.cs | 81 +- .../UnclaimedDraftCreateEmbeddedRequest.cs | 1000 +++--- ...dDraftCreateEmbeddedWithTemplateRequest.cs | 852 +++-- .../Model/UnclaimedDraftCreateRequest.cs | 687 ++-- .../Model/UnclaimedDraftCreateResponse.cs | 84 +- .../UnclaimedDraftEditAndResendRequest.cs | 245 +- .../Model/UnclaimedDraftResponse.cs | 189 +- .../src/Dropbox.Sign/Model/WarningResponse.cs | 78 +- 243 files changed, 28017 insertions(+), 16993 deletions(-) diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index b66a0a2b2..05121cdbe 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/README.md @@ -82,7 +82,6 @@ c.Proxy = webProxy; ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -100,9 +99,7 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountCreateRequest( - emailAddress: "newuser@dropboxsign.com" - ); + var data = new AccountCreateRequest(emailAddress: "newuser@dropboxsign.com"); try { diff --git a/sdks/dotnet/bin/dotnet b/sdks/dotnet/bin/dotnet index f1b73acd7..d7fd51182 100755 --- a/sdks/dotnet/bin/dotnet +++ b/sdks/dotnet/bin/dotnet @@ -12,4 +12,4 @@ docker run --rm \ -v "${ROOT_DIR}:${WORKING_DIR}" \ -w "${WORKING_DIR}" \ -u root:root \ - mcr.microsoft.com/dotnet/sdk:6.0 "$@" + mcr.microsoft.com/dotnet/sdk:6.0 bash -c "$@" diff --git a/sdks/dotnet/docs/AccountApi.md b/sdks/dotnet/docs/AccountApi.md index 897f4d2ab..cc6eb6c03 100644 --- a/sdks/dotnet/docs/AccountApi.md +++ b/sdks/dotnet/docs/AccountApi.md @@ -20,7 +20,6 @@ Creates a new Dropbox Sign Account that is associated with the specified `email_ ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -38,9 +37,7 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountCreateRequest( - emailAddress: "newuser@dropboxsign.com" - ); + var data = new AccountCreateRequest(emailAddress: "newuser@dropboxsign.com"); try { @@ -117,7 +114,6 @@ Returns the properties and settings of your Account. ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -211,7 +207,6 @@ Updates the properties and settings of your Account. Currently only allows for u ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -229,9 +224,7 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountUpdateRequest( - callbackUrl: "https://www.example.com/callback" - ); + var data = new AccountUpdateRequest(callbackUrl: "https://www.example.com/callback"); try { @@ -308,7 +301,6 @@ Verifies whether an Dropbox Sign Account exists for the given email address. ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -326,9 +318,7 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountVerifyRequest( - emailAddress: "some_user@dropboxsign.com" - ); + var data = new AccountVerifyRequest(emailAddress: "some_user@dropboxsign.com"); try { diff --git a/sdks/dotnet/docs/ApiAppApi.md b/sdks/dotnet/docs/ApiAppApi.md index e587a69d8..7b6dbad8f 100644 --- a/sdks/dotnet/docs/ApiAppApi.md +++ b/sdks/dotnet/docs/ApiAppApi.md @@ -42,9 +42,10 @@ public class Example var oauth = new SubOAuth( callbackUrl: "https://example.com/oauth", - scopes: new List() { + scopes: new List() + { SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature + SubOAuth.ScopesEnum.RequestSignature, } ); @@ -53,14 +54,11 @@ public class Example primaryButtonTextColor: "#ffffff" ); - var customLogoFile = new FileStream( - "CustomLogoFile.png", - FileMode.Open - ); + var customLogoFile = new FileStream("CustomLogoFile.png", FileMode.Open); var data = new ApiAppCreateRequest( name: "My Production App", - domains: new List(){"example.com"}, + domains: new List() { "example.com" }, oauth: oauth, whiteLabelingOptions: whiteLabelingOptions, customLogoFile: customLogoFile @@ -233,7 +231,6 @@ Returns an object with information about an API App. ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -328,7 +325,6 @@ Returns a list of API Apps that are accessible by you. If you are on a team with ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -446,9 +442,10 @@ public class Example var oauth = new SubOAuth( callbackUrl: "https://example.com/oauth", - scopes: new List() { + scopes: new List() + { SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature + SubOAuth.ScopesEnum.RequestSignature, } ); @@ -457,14 +454,11 @@ public class Example primaryButtonTextColor: "#ffffff" ); - var customLogoFile = new FileStream( - "CustomLogoFile.png", - FileMode.Open - ); + var customLogoFile = new FileStream("CustomLogoFile.png", FileMode.Open); var data = new ApiAppUpdateRequest( name: "My Production App", - domains: new List(){"example.com"}, + domains: new List() { "example.com" }, oauth: oauth, whiteLabelingOptions: whiteLabelingOptions, customLogoFile: customLogoFile diff --git a/sdks/dotnet/docs/EmbeddedApi.md b/sdks/dotnet/docs/EmbeddedApi.md index 39c38b4c2..221bf92dd 100644 --- a/sdks/dotnet/docs/EmbeddedApi.md +++ b/sdks/dotnet/docs/EmbeddedApi.md @@ -38,7 +38,7 @@ public class Example var embeddedApi = new EmbeddedApi(config); var data = new EmbeddedEditUrlRequest( - ccRoles: new List(){""}, + ccRoles: new List() { "" }, mergeFields: new List() ); diff --git a/sdks/dotnet/docs/FaxLineApi.md b/sdks/dotnet/docs/FaxLineApi.md index 4fd57baf5..142c46657 100644 --- a/sdks/dotnet/docs/FaxLineApi.md +++ b/sdks/dotnet/docs/FaxLineApi.md @@ -226,10 +226,7 @@ public class Example var faxLineApi = new FaxLineApi(config); - var data = new FaxLineCreateRequest( - areaCode: 209, - country: "US" - ); + var data = new FaxLineCreateRequest(areaCode: 209, country: "US"); try { diff --git a/sdks/dotnet/docs/ReportApi.md b/sdks/dotnet/docs/ReportApi.md index 9ea98796f..d0cdf1f1e 100644 --- a/sdks/dotnet/docs/ReportApi.md +++ b/sdks/dotnet/docs/ReportApi.md @@ -39,7 +39,8 @@ public class Example var data = new ReportCreateRequest( startDate: "09/01/2020", endDate: "09/01/2020", - reportType: new List() { + reportType: new List() + { ReportCreateRequest.ReportTypeEnum.UserActivity, ReportCreateRequest.ReportTypeEnum.DocumentStatus, } diff --git a/sdks/dotnet/docs/SignatureRequestApi.md b/sdks/dotnet/docs/SignatureRequestApi.md index c411d0c01..5ae02dc11 100644 --- a/sdks/dotnet/docs/SignatureRequestApi.md +++ b/sdks/dotnet/docs/SignatureRequestApi.md @@ -64,8 +64,8 @@ public class Example ); var signerList1 = new SubBulkSignerList( - signers: new List(){signerList1Signer}, - customFields: new List(){signerList1CustomFields} + signers: new List() { signerList1Signer }, + customFields: new List() { signerList1CustomFields } ); var signerList2Signer = new SubSignatureRequestTemplateSigner( @@ -81,22 +81,19 @@ public class Example ); var signerList2 = new SubBulkSignerList( - signers: new List(){signerList2Signer}, - customFields: new List(){signerList2CustomFields} + signers: new List() { signerList2Signer }, + customFields: new List() { signerList2CustomFields } ); - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@email.com" - ); + var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); var data = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest( clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signerList: new List(){signerList1, signerList2}, - ccs: new List(){cc1}, + signerList: new List() { signerList1, signerList2 }, + ccs: new List() { cc1 }, testMode: true ); @@ -207,8 +204,8 @@ public class Example ); var signerList1 = new SubBulkSignerList( - signers: new List(){signerList1Signer}, - customFields: new List(){signerList1CustomFields} + signers: new List() { signerList1Signer }, + customFields: new List() { signerList1CustomFields } ); var signerList2Signer = new SubSignatureRequestTemplateSigner( @@ -224,21 +221,18 @@ public class Example ); var signerList2 = new SubBulkSignerList( - signers: new List(){signerList2Signer}, - customFields: new List(){signerList2CustomFields} + signers: new List() { signerList2Signer }, + customFields: new List() { signerList2CustomFields } ); - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@email.com" - ); + var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); var data = new SignatureRequestBulkSendWithTemplateRequest( - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signerList: new List(){signerList1, signerList2}, - ccs: new List(){cc1}, + signerList: new List() { signerList1, signerList2 }, + ccs: new List() { cc1 }, testMode: true ); @@ -448,13 +442,14 @@ public class Example defaultType: SubSigningOptions.DefaultTypeEnum.Draw ); - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new SignatureRequestCreateEmbeddedRequest( @@ -462,8 +457,12 @@ public class Example title: "NDA with Acme Co.", subject: "The NDA we talked about", message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List(){signer1, signer2}, - ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, + signers: new List() { signer1, signer2 }, + ccEmailAddresses: new List() + { + "lawyer1@dropboxsign.com", + "lawyer2@dropboxsign.com", + }, files: files, signingOptions: signingOptions, testMode: true @@ -562,10 +561,7 @@ public class Example var signatureRequestApi = new SignatureRequestApi(config); - var signer1 = new SubSignatureRequestTemplateSigner( - role: "Client", - name: "George" - ); + var signer1 = new SubSignatureRequestTemplateSigner(role: "Client", name: "George"); var subSigningOptions = new SubSigningOptions( draw: true, @@ -577,10 +573,10 @@ public class Example var data = new SignatureRequestCreateEmbeddedWithTemplateRequest( clientId: "ec64a202072370a737edf4a0eb7f4437", - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signers: new List(){signer1}, + signers: new List() { signer1 }, signingOptions: subSigningOptions, testMode: true ); @@ -1257,9 +1253,7 @@ public class Example var signatureRequestApi = new SignatureRequestApi(config); - var data = new SignatureRequestRemindRequest( - emailAddress: "john@example.com" - ); + var data = new SignatureRequestRemindRequest(emailAddress: "john@example.com"); var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; @@ -1476,24 +1470,29 @@ public class Example var metadata = new Dictionary() { ["custom_id"] = 1234, - ["custom_text"] = "NDA #9" + ["custom_text"] = "NDA #9", }; - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new SignatureRequestSendRequest( title: "NDA with Acme Co.", subject: "The NDA we talked about", message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List(){signer1, signer2}, - ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, + signers: new List() { signer1, signer2 }, + ccEmailAddresses: new List() + { + "lawyer1@dropboxsign.com", + "lawyer2@dropboxsign.com", + }, files: files, metadata: metadata, signingOptions: signingOptions, @@ -1600,10 +1599,7 @@ public class Example name: "George" ); - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@emaple.com" - ); + var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@emaple.com"); var customField1 = new SubCustomField( name: "Cost", @@ -1621,12 +1617,12 @@ public class Example ); var data = new SignatureRequestSendWithTemplateRequest( - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signers: new List(){signer1}, - ccs: new List(){cc1}, - customFields: new List(){customField1}, + signers: new List() { signer1 }, + ccs: new List() { cc1 }, + customFields: new List() { customField1 }, signingOptions: signingOptions, testMode: true ); diff --git a/sdks/dotnet/docs/TeamApi.md b/sdks/dotnet/docs/TeamApi.md index 64d8dd554..08c65cc1e 100644 --- a/sdks/dotnet/docs/TeamApi.md +++ b/sdks/dotnet/docs/TeamApi.md @@ -44,9 +44,7 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamAddMemberRequest( - emailAddress: "george@example.com" - ); + var data = new TeamAddMemberRequest(emailAddress: "george@example.com"); try { @@ -142,9 +140,7 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamCreateRequest( - name: "New Team Name" - ); + var data = new TeamCreateRequest(name: "New Team Name"); try { @@ -890,9 +886,7 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamUpdateRequest( - name: "New Team Name" - ); + var data = new TeamUpdateRequest(name: "New Team Name"); try { diff --git a/sdks/dotnet/docs/TemplateApi.md b/sdks/dotnet/docs/TemplateApi.md index 2f6cf986c..bb7c693cd 100644 --- a/sdks/dotnet/docs/TemplateApi.md +++ b/sdks/dotnet/docs/TemplateApi.md @@ -47,9 +47,7 @@ public class Example var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - var data = new TemplateAddUserRequest( - emailAddress: "george@dropboxsign.com" - ); + var data = new TemplateAddUserRequest(emailAddress: "george@dropboxsign.com"); try { @@ -146,20 +144,11 @@ public class Example var templateApi = new TemplateApi(config); - var role1 = new SubTemplateRole( - name: "Client", - order: 0 - ); + var role1 = new SubTemplateRole(name: "Client", order: 0); - var role2 = new SubTemplateRole( - name: "Witness", - order: 1 - ); + var role2 = new SubTemplateRole(name: "Witness", order: 1); - var mergeField1 = new SubMergeField( - name: "Full Name", - type: SubMergeField.TypeEnum.Text - ); + var mergeField1 = new SubMergeField(name: "Full Name", type: SubMergeField.TypeEnum.Text); var mergeField2 = new SubMergeField( name: "Is Registered?", @@ -170,13 +159,14 @@ public class Example dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY ); - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new TemplateCreateRequest( @@ -185,9 +175,9 @@ public class Example title: "Test Template", subject: "Please sign this document", message: "For your approval", - signerRoles: new List(){role1, role2}, - ccRoles: new List(){"Manager"}, - mergeFields: new List(){mergeField1, mergeField2}, + signerRoles: new List() { role1, role2 }, + ccRoles: new List() { "Manager" }, + mergeFields: new List() { mergeField1, mergeField2 }, fieldOptions: subFieldOptions, testMode: true ); @@ -286,20 +276,11 @@ public class Example var templateApi = new TemplateApi(config); - var role1 = new SubTemplateRole( - name: "Client", - order: 0 - ); + var role1 = new SubTemplateRole(name: "Client", order: 0); - var role2 = new SubTemplateRole( - name: "Witness", - order: 1 - ); + var role2 = new SubTemplateRole(name: "Witness", order: 1); - var mergeField1 = new SubMergeField( - name: "Full Name", - type: SubMergeField.TypeEnum.Text - ); + var mergeField1 = new SubMergeField(name: "Full Name", type: SubMergeField.TypeEnum.Text); var mergeField2 = new SubMergeField( name: "Is Registered?", @@ -310,13 +291,14 @@ public class Example dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY ); - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new TemplateCreateEmbeddedDraftRequest( @@ -325,9 +307,9 @@ public class Example title: "Test Template", subject: "Please sign this document", message: "For your approval", - signerRoles: new List(){role1, role2}, - ccRoles: new List(){"Manager"}, - mergeFields: new List(){mergeField1, mergeField2}, + signerRoles: new List() { role1, role2 }, + ccRoles: new List() { "Manager" }, + mergeFields: new List() { mergeField1, mergeField2 }, fieldOptions: subFieldOptions, testMode: true ); @@ -1000,9 +982,7 @@ public class Example var templateApi = new TemplateApi(config); - var data = new TemplateRemoveUserRequest( - emailAddress: "george@dropboxsign.com" - ); + var data = new TemplateRemoveUserRequest(emailAddress: "george@dropboxsign.com"); var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; diff --git a/sdks/dotnet/docs/UnclaimedDraftApi.md b/sdks/dotnet/docs/UnclaimedDraftApi.md index 7d5a0e145..891d3980b 100644 --- a/sdks/dotnet/docs/UnclaimedDraftApi.md +++ b/sdks/dotnet/docs/UnclaimedDraftApi.md @@ -66,24 +66,29 @@ public class Example var metadata = new Dictionary() { ["custom_id"] = 1234, - ["custom_text"] = "NDA #9" + ["custom_text"] = "NDA #9", }; - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new UnclaimedDraftCreateRequest( subject: "The NDA we talked about", type: UnclaimedDraftCreateRequest.TypeEnum.RequestSignature, message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List(){signer1, signer2}, - ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, + signers: new List() { signer1, signer2 }, + ccEmailAddresses: new List() + { + "lawyer1@dropboxsign.com", + "lawyer2@dropboxsign.com", + }, files: files, metadata: metadata, signingOptions: subSigningOptions, @@ -185,13 +190,14 @@ public class Example var unclaimedDraftApi = new UnclaimedDraftApi(config); - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new UnclaimedDraftCreateEmbeddedRequest( @@ -300,17 +306,14 @@ public class Example emailAddress: "george@example.com" ); - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@email.com" - ); + var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); var data = new UnclaimedDraftCreateEmbeddedWithTemplateRequest( clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, requesterEmailAddress: "jack@dropboxsign.com", - signers: new List(){signer}, - ccs: new List(){cc1}, + signers: new List() { signer }, + ccs: new List() { cc1 }, testMode: true ); diff --git a/sdks/dotnet/run-build b/sdks/dotnet/run-build index 6820163af..7e467542b 100755 --- a/sdks/dotnet/run-build +++ b/sdks/dotnet/run-build @@ -45,7 +45,8 @@ if [[ -z "$GITHUB_ACTIONS" ]]; then fi printf "Running tests ...\n" -bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/ +bash "${DIR}/bin/dotnet" "dotnet test src/Dropbox.Sign.Test/" +bash "${DIR}/bin/dotnet" "dotnet tool install csharpier --global && /root/.dotnet/tools/dotnet-csharpier src/" printf "Success!\n" diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/AccountApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/AccountApiTests.cs index d7eeae577..bdc61e8e0 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/AccountApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/AccountApiTests.cs @@ -1,9 +1,8 @@ using System.Net; -using Xunit; - -using Dropbox.Sign.Client; using Dropbox.Sign.Api; +using Dropbox.Sign.Client; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test.Api { @@ -17,12 +16,13 @@ public void HttpCodeRangeTest() var obj = AccountVerifyRequest.Init(requestData.ToString()); - var api = MockRestClientHelper.CreateApi(errorData, HttpStatusCode.BadRequest); - - var ex = Assert.Throws(() => - api.AccountVerify(obj) + var api = MockRestClientHelper.CreateApi( + errorData, + HttpStatusCode.BadRequest ); + var ex = Assert.Throws(() => api.AccountVerify(obj)); + TestHelper.AssertJsonSame(errorData.ToString(), ex.ErrorContent.ToJson()); } diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs index a20533479..1fab8c71d 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; using System.IO; using System.Net; -using Xunit; - using Dropbox.Sign.Api; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test.Api { @@ -44,9 +43,7 @@ public void ApiAppGetTest() } [Fact(Skip = "DELETE /api_app/{client_id} skipped")] - public void ApiAppDeleteTest() - { - } + public void ApiAppDeleteTest() { } [Fact] public void ApiAppListTest() diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/BulkSendJobApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/BulkSendJobApiTests.cs index 6f32fba5f..e7c69a5f3 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/BulkSendJobApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/BulkSendJobApiTests.cs @@ -1,7 +1,6 @@ -using Xunit; - using Dropbox.Sign.Api; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test.Api { diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/EmbeddedApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/EmbeddedApiTests.cs index 15980c305..3a2f27511 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/EmbeddedApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/EmbeddedApiTests.cs @@ -1,7 +1,6 @@ -using Xunit; - using Dropbox.Sign.Api; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test.Api { diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/OAuthApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/OAuthApiTests.cs index 76e6d18ba..34daf65bf 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/OAuthApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/OAuthApiTests.cs @@ -1,7 +1,6 @@ -using Xunit; - using Dropbox.Sign.Api; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test.Api { diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ReportApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ReportApiTests.cs index 6d78f525b..3c3a9e98c 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ReportApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ReportApiTests.cs @@ -1,7 +1,6 @@ -using Xunit; - using Dropbox.Sign.Api; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test.Api { diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs index 6829e9317..454e35ff8 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs @@ -1,9 +1,8 @@ using System.Collections.Generic; using System.IO; -using Xunit; - using Dropbox.Sign.Api; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test.Api { @@ -12,7 +11,9 @@ public class SignatureRequestApiTests [Fact] public void SignatureRequestBulkCreateEmbeddedWithTemplateTest() { - var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestBulkCreateEmbeddedWithTemplateRequest)); + var requestData = TestHelper.GetJsonContents( + nameof(SignatureRequestBulkCreateEmbeddedWithTemplateRequest) + ); var responseData = TestHelper.GetJsonContents(nameof(BulkSendJobSendResponse)); var obj = SignatureRequestBulkCreateEmbeddedWithTemplateRequest.Init( @@ -34,12 +35,12 @@ public void SignatureRequestBulkCreateEmbeddedWithTemplateTest() [Fact] public void SignatureRequestBulkSendWithTemplateTest() { - var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestBulkSendWithTemplateRequest)); + var requestData = TestHelper.GetJsonContents( + nameof(SignatureRequestBulkSendWithTemplateRequest) + ); var responseData = TestHelper.GetJsonContents(nameof(BulkSendJobSendResponse)); - var obj = SignatureRequestBulkSendWithTemplateRequest.Init( - requestData.ToString() - ); + var obj = SignatureRequestBulkSendWithTemplateRequest.Init(requestData.ToString()); obj.SignerFile = new FileStream( TestHelper.RootPath + "/bulk-send-sample.csv", FileMode.Open, @@ -53,27 +54,26 @@ public void SignatureRequestBulkSendWithTemplateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="POST /signature_request/cancel/{signature_request_id} skipped")] - public void SignatureRequestCancelTest() - { - } + [Fact(Skip = "POST /signature_request/cancel/{signature_request_id} skipped")] + public void SignatureRequestCancelTest() { } [Fact] public void SignatureRequestCreateEmbeddedTest() { - var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestCreateEmbeddedRequest)); + var requestData = TestHelper.GetJsonContents( + nameof(SignatureRequestCreateEmbeddedRequest) + ); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestCreateEmbeddedRequest.Init( - requestData.ToString() - ); - obj.Files = new List { + var obj = SignatureRequestCreateEmbeddedRequest.Init(requestData.ToString()); + obj.Files = new List + { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var api = MockRestClientHelper.CreateApi(responseData); @@ -85,19 +85,22 @@ public void SignatureRequestCreateEmbeddedTest() [Fact] public void SignatureRequestCreateEmbeddedWithTemplateTest() { - var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestCreateEmbeddedWithTemplateRequest)); + var requestData = TestHelper.GetJsonContents( + nameof(SignatureRequestCreateEmbeddedWithTemplateRequest) + ); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); var obj = SignatureRequestCreateEmbeddedWithTemplateRequest.Init( requestData.ToString() ); - obj.Files = new List { + obj.Files = new List + { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var api = MockRestClientHelper.CreateApi(responseData); @@ -106,10 +109,8 @@ public void SignatureRequestCreateEmbeddedWithTemplateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="GET /signature_request/files/{signature_request_id} skipped")] - public void SignatureRequestFilesTest() - { - } + [Fact(Skip = "GET /signature_request/files/{signature_request_id} skipped")] + public void SignatureRequestFilesTest() { } [Fact] public void SignatureRequestGetTest() @@ -158,9 +159,7 @@ public void SignatureRequestRemindTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestRemindRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestRemindRequest.Init( - requestData.ToString() - ); + var obj = SignatureRequestRemindRequest.Init(requestData.ToString()); var api = MockRestClientHelper.CreateApi(responseData); var response = api.SignatureRequestRemind(signatureRequestId, obj); @@ -168,10 +167,8 @@ public void SignatureRequestRemindTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="POST /signature_request/remove/{signature_request_id} skipped")] - public void SignatureRequestRemoveTest() - { - } + [Fact(Skip = "POST /signature_request/remove/{signature_request_id} skipped")] + public void SignatureRequestRemoveTest() { } [Fact] public void SignatureRequestSendTest() @@ -179,16 +176,15 @@ public void SignatureRequestSendTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestSendRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestSendRequest.Init( - requestData.ToString() - ); - obj.Files = new List { + var obj = SignatureRequestSendRequest.Init(requestData.ToString()); + obj.Files = new List + { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var api = MockRestClientHelper.CreateApi(responseData); @@ -200,12 +196,12 @@ public void SignatureRequestSendTest() [Fact] public void SignatureRequestSendWithTemplateTest() { - var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestSendWithTemplateRequest)); + var requestData = TestHelper.GetJsonContents( + nameof(SignatureRequestSendWithTemplateRequest) + ); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestSendWithTemplateRequest.Init( - requestData.ToString() - ); + var obj = SignatureRequestSendWithTemplateRequest.Init(requestData.ToString()); var api = MockRestClientHelper.CreateApi(responseData); var response = api.SignatureRequestSendWithTemplate(obj); @@ -221,9 +217,7 @@ public void SignatureRequestUpdateTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestUpdateRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestUpdateRequest.Init( - requestData.ToString() - ); + var obj = SignatureRequestUpdateRequest.Init(requestData.ToString()); var api = MockRestClientHelper.CreateApi(responseData); var response = api.SignatureRequestUpdate(signatureRequestId, obj); @@ -237,21 +231,23 @@ public void FileForcesMultipartFormDataTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestSendRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestSendRequest.Init( - requestData.ToString() - ); - obj.Files = new List { + var obj = SignatureRequestSendRequest.Init(requestData.ToString()); + obj.Files = new List + { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var responseObj = SignatureRequestGetResponse.Init(responseData.ToString()); - var api = MockRestClientHelper.CreateApiExpectMultiFormRequest(responseObj); + var api = MockRestClientHelper.CreateApiExpectMultiFormRequest< + SignatureRequestGetResponse, + SignatureRequestApi + >(responseObj); var response = api.SignatureRequestSend(obj); TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); @@ -263,13 +259,14 @@ public void NoFileForcesJsonTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestSendRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestSendRequest.Init( - requestData.ToString() - ); + var obj = SignatureRequestSendRequest.Init(requestData.ToString()); var responseObj = SignatureRequestGetResponse.Init(responseData.ToString()); - var api = MockRestClientHelper.CreateApiExpectJsonRequest(responseObj); + var api = MockRestClientHelper.CreateApiExpectJsonRequest< + SignatureRequestGetResponse, + SignatureRequestApi + >(responseObj); var response = api.SignatureRequestSend(obj); TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/TeamApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/TeamApiTests.cs index 9c9e0c17c..f8dd986fa 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/TeamApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/TeamApiTests.cs @@ -1,7 +1,6 @@ -using Xunit; - using Dropbox.Sign.Api; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test.Api { @@ -35,10 +34,8 @@ public void TeamCreateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="DELETE /team/destroy skipped")] - public void TeamDeleteTest() - { - } + [Fact(Skip = "DELETE /team/destroy skipped")] + public void TeamDeleteTest() { } [Fact] public void TeamGetTest() diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs index da28e3855..91faa6086 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs @@ -1,9 +1,8 @@ using System.Collections.Generic; using System.IO; -using Xunit; - using Dropbox.Sign.Api; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test.Api { @@ -28,17 +27,22 @@ public void TemplateAddUserTest() [Fact] public void TemplateCreateEmbeddedDraftTest() { - var requestData = TestHelper.GetJsonContents(nameof(TemplateCreateEmbeddedDraftRequest)); - var responseData = TestHelper.GetJsonContents(nameof(TemplateCreateEmbeddedDraftResponse)); + var requestData = TestHelper.GetJsonContents( + nameof(TemplateCreateEmbeddedDraftRequest) + ); + var responseData = TestHelper.GetJsonContents( + nameof(TemplateCreateEmbeddedDraftResponse) + ); var obj = TemplateCreateEmbeddedDraftRequest.Init(requestData.ToString()); - obj.Files = new List { + obj.Files = new List + { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var api = MockRestClientHelper.CreateApi(responseData); @@ -47,15 +51,11 @@ public void TemplateCreateEmbeddedDraftTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="POST /template/delete/{template_id} skipped")] - public void TemplateDeleteTest() - { - } + [Fact(Skip = "POST /template/delete/{template_id} skipped")] + public void TemplateDeleteTest() { } - [Fact(Skip="GET /template/files/{signature_request_id} skipped")] - public void TemplateFilesTest() - { - } + [Fact(Skip = "GET /template/files/{signature_request_id} skipped")] + public void TemplateFilesTest() { } [Fact] public void TemplateGetTest() @@ -108,13 +108,14 @@ public void TemplateUpdateFilesTest() var responseData = TestHelper.GetJsonContents(nameof(TemplateUpdateFilesResponse)); var obj = TemplateUpdateFilesRequest.Init(requestData.ToString()); - obj.Files = new List { + obj.Files = new List + { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var api = MockRestClientHelper.CreateApi(responseData); diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/UnclaimedDraftApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/UnclaimedDraftApiTests.cs index 74163e0b8..c56e29575 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/UnclaimedDraftApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/UnclaimedDraftApiTests.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; using System.IO; -using Newtonsoft.Json.Linq; -using Xunit; - using Dropbox.Sign.Api; using Dropbox.Sign.Model; +using Newtonsoft.Json.Linq; +using Xunit; namespace Dropbox.Sign.Test.Api { @@ -27,17 +26,20 @@ public void UnclaimedDraftCreateTest() [Fact] public void UnclaimedDraftCreateEmbeddedTest() { - var requestData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateEmbeddedRequest)); + var requestData = TestHelper.GetJsonContents( + nameof(UnclaimedDraftCreateEmbeddedRequest) + ); var responseData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateResponse)); var obj = UnclaimedDraftCreateEmbeddedRequest.Init(requestData.ToString()); - obj.Files = new List { + obj.Files = new List + { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var api = MockRestClientHelper.CreateApi(responseData); @@ -50,19 +52,20 @@ public void UnclaimedDraftCreateEmbeddedTest() [Fact] public void UnclaimedDraftCreateEmbeddedWithTemplateTest() { - var requestData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateEmbeddedWithTemplateRequest)); + var requestData = TestHelper.GetJsonContents( + nameof(UnclaimedDraftCreateEmbeddedWithTemplateRequest) + ); var responseData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateResponse)); - var obj = UnclaimedDraftCreateEmbeddedWithTemplateRequest.Init( - requestData.ToString() - ); - obj.Files = new List { + var obj = UnclaimedDraftCreateEmbeddedWithTemplateRequest.Init(requestData.ToString()); + obj.Files = new List + { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var api = MockRestClientHelper.CreateApi(responseData); @@ -77,7 +80,9 @@ public void UnclaimedDraftEditAndResendTest() { var signatureRequestId = "2f9781e1a83jdja934d808c153c2e1d3df6f8f2f"; - var requestData = TestHelper.GetJsonContents(nameof(UnclaimedDraftEditAndResendRequest)); + var requestData = TestHelper.GetJsonContents( + nameof(UnclaimedDraftEditAndResendRequest) + ); var responseData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateResponse)); var obj = UnclaimedDraftEditAndResendRequest.Init(requestData.ToString()); diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs index 5a213a694..a2732bcef 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs @@ -1,13 +1,14 @@ using System; using System.Collections.Generic; -using Xunit; using Dropbox.Sign.Model; +using Xunit; namespace Dropbox.Sign.Test { public class EventCallbackHelperTests { - private const string ApiKey = "324e3b0840f065eb51f3fd63231d0d33daa35d4ed10d27718839e81737065782"; + private const string ApiKey = + "324e3b0840f065eb51f3fd63231d0d33daa35d4ed10d27718839e81737065782"; [Fact] public void IsValidTest() @@ -26,7 +27,10 @@ public void IsValidTest() foreach (var key in account_keys) { - var requestData = TestHelper.GetJsonContents("EventCallbackHelper_AccountCallbacks", key); + var requestData = TestHelper.GetJsonContents( + "EventCallbackHelper_AccountCallbacks", + key + ); var callbackEvent = EventCallbackRequest.Init(requestData.ToString()); Assert.True(EventCallbackHelper.IsValid(ApiKey, callbackEvent)); @@ -36,24 +40,21 @@ public void IsValidTest() EventCallbackHelper.GetCallbackType(callbackEvent) ); } - - var app_keys = new List - { - "base", - "account", - "signature_request", - "template", - }; + + var app_keys = new List { "base", "account", "signature_request", "template" }; foreach (var key in app_keys) { - var requestData = TestHelper.GetJsonContents("EventCallbackHelper_AppCallbacks", key); + var requestData = TestHelper.GetJsonContents( + "EventCallbackHelper_AppCallbacks", + key + ); var callbackEvent = EventCallbackRequest.Init(requestData.ToString()); Assert.True(EventCallbackHelper.IsValid(ApiKey, callbackEvent)); Assert.False(EventCallbackHelper.IsValid(Reverse(ApiKey), callbackEvent)); Assert.Equal( - EventCallbackHelper.EVENT_TYPE_APP_CALLBACK, + EventCallbackHelper.EVENT_TYPE_APP_CALLBACK, EventCallbackHelper.GetCallbackType(callbackEvent) ); } diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs b/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs index 5e9ed0285..c40ee99d7 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs @@ -7,10 +7,10 @@ using System.Text.RegularExpressions; using Dropbox.Sign.Client; using Dropbox.Sign.Model; -using RestSharp; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; +using RestSharp; using RestSharp.Serializers; using RichardSzalay.MockHttp; using FileIO = System.IO.File; @@ -19,54 +19,67 @@ namespace Dropbox.Sign.Test { public class MockRestClientHelper { - public static T CreateApi(JObject data, + public static T CreateApi( + JObject data, HttpStatusCode statusCode = HttpStatusCode.Accepted, - string contentType = "application/json") + string contentType = "application/json" + ) { var mockHttp = new MockHttpMessageHandler(); - mockHttp.Expect("https://api.hellosign.com/*") + mockHttp + .Expect("https://api.hellosign.com/*") .Respond(statusCode, contentType, JsonConvert.SerializeObject(data)); return CreateApiInternal(mockHttp); } - public static T CreateApiExpectMultiFormRequest(S data, + public static T CreateApiExpectMultiFormRequest( + S data, HttpStatusCode statusCode = HttpStatusCode.Accepted, - string contentType = "application/json") + string contentType = "application/json" + ) { var mockHttp = new MockHttpMessageHandler(); - mockHttp.Expect("https://api.hellosign.com/*") + mockHttp + .Expect("https://api.hellosign.com/*") .With(request => request.Content.GetType() == typeof(MultipartFormDataContent)) .Respond(statusCode, contentType, JsonConvert.SerializeObject(data)); return CreateApiInternal(mockHttp); } - public static T CreateApiExpectJsonRequest(S data, + public static T CreateApiExpectJsonRequest( + S data, HttpStatusCode statusCode = HttpStatusCode.Accepted, - string contentType = "application/json") + string contentType = "application/json" + ) { var mockHttp = new MockHttpMessageHandler(); - mockHttp.Expect("https://api.hellosign.com/*") + mockHttp + .Expect("https://api.hellosign.com/*") .With(request => request.Content.GetType() == typeof(StringContent)) .Respond(statusCode, contentType, JsonConvert.SerializeObject(data)); return CreateApiInternal(mockHttp); } - public static T CreateApiExpectContentContains(S data, + public static T CreateApiExpectContentContains( + S data, HttpStatusCode statusCode = HttpStatusCode.Accepted, - string contentType = "application/json", params string[] values) + string contentType = "application/json", + params string[] values + ) { var mockHttp = new MockHttpMessageHandler(); - mockHttp.Expect("https://api.hellosign.com/*") + mockHttp + .Expect("https://api.hellosign.com/*") .With(request => { var stream = request.Content.ReadAsStream(); - var streamReader = new StreamReader( stream ); + var streamReader = new StreamReader(stream); var content = streamReader.ReadToEnd(); return values.All(value => content.Contains(value)); }) @@ -80,36 +93,38 @@ private static T CreateApiInternal(MockHttpMessageHandler handler) var options = new RestClientOptions { ConfigureMessageHandler = _ => handler, - BaseUrl = new Uri("https://api.hellosign.com") + BaseUrl = new Uri("https://api.hellosign.com"), }; - var mockRestClient = new RestClient(options, - configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, GlobalConfiguration.Instance)) + var mockRestClient = new RestClient( + options, + configureSerialization: serializerConfig => + serializerConfig.UseSerializer( + () => new CustomJsonCodec(SerializerSettings, GlobalConfiguration.Instance) + ) ); - + Configuration config = new Configuration(); config.Username = "YOUR_API_KEY"; var client = new ApiClient(config.BasePath, mockRestClient); return (T)Activator.CreateInstance(typeof(T), client, client, config); } - + /// /// Specifies the settings on a object. /// These settings can be adjusted to accommodate custom serialization rules. /// - private static JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings - { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - ContractResolver = new DefaultContractResolver + private static JsonSerializerSettings SerializerSettings { get; set; } = + new JsonSerializerSettings { - NamingStrategy = new CamelCaseNamingStrategy + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver { - OverrideSpecifiedNames = false - } - } - }; + NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, + }, + }; } - + // see ApiClient::CustomJsonCodec internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer { @@ -120,11 +135,8 @@ internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, ContractResolver = new DefaultContractResolver { - NamingStrategy = new CamelCaseNamingStrategy - { - OverrideSpecifiedNames = false - } - } + NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, + }, }; public CustomJsonCodec(IReadableConfiguration configuration) @@ -132,7 +144,10 @@ public CustomJsonCodec(IReadableConfiguration configuration) _configuration = configuration; } - public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) + public CustomJsonCodec( + JsonSerializerSettings serializerSettings, + IReadableConfiguration configuration + ) { _serializerSettings = serializerSettings; _configuration = configuration; @@ -186,13 +201,19 @@ internal object Deserialize(RestResponse response, Type type) var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath) ? Path.GetTempPath() : _configuration.TempFolderPath; - var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); + var regex = new Regex( + @"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$" + ); foreach (var header in response.Headers) { var match = regex.Match(header.ToString()); if (match.Success) { - string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); + string fileName = + filePath + + ClientUtils.SanitizeFilename( + match.Groups[1].Value.Replace("\"", "").Replace("'", "") + ); FileIO.WriteAllBytes(fileName, bytes); return new FileStream(fileName, FileMode.Open); } @@ -228,9 +249,13 @@ internal object Deserialize(RestResponse response, Type type) public string[] AcceptedContentTypes => ContentType.JsonAccept; - public SupportsContentType SupportsContentType => contentType => - contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || - contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); + public SupportsContentType SupportsContentType => + contentType => + contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) + || contentType.Value.EndsWith( + "javascript", + StringComparison.InvariantCultureIgnoreCase + ); public ContentType ContentType { get; set; } = ContentType.Json; diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs index 7b6bd8d4d..bbbe26ad5 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; +using Dropbox.Sign.Model; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Xunit; -using Dropbox.Sign.Model; namespace Dropbox.Sign.Test.Model { @@ -89,10 +89,12 @@ public static IEnumerable Data() { using (var r = TestHelper.ReadFileFromResource("SubFormFieldsPerDocument")) { - var payload = JsonConvert.DeserializeObject>(r.ReadToEnd()); + var payload = JsonConvert.DeserializeObject>( + r.ReadToEnd() + ); Assert.NotNull(payload); - return new List {new object[] {payload}}; + return new List { new object[] { payload } }; } } } diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/TestHelper.cs b/sdks/dotnet/src/Dropbox.Sign.Test/TestHelper.cs index 98c3ccb69..859edeae3 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/TestHelper.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/TestHelper.cs @@ -1,8 +1,8 @@ using System; using System.IO; -using Newtonsoft.Json; using Dropbox.Sign.Model; using JsonDiffPatchDotNet; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Xunit; @@ -14,9 +14,7 @@ public class TestHelper public static StreamReader ReadFileFromResource(string fileName) { - return new StreamReader( - RootPath + $"/{fileName}.json" - ); + return new StreamReader(RootPath + $"/{fileName}.json"); } public static FileStream GetFile(string fileName) @@ -29,10 +27,8 @@ public static FileStream GetFile(string fileName) ); } - public static T SerializeFromFile( - string fileName, - string key = "default" - ) where T : IOpenApiTyped + public static T SerializeFromFile(string fileName, string key = "default") + where T : IOpenApiTyped { T instance = (T)Activator.CreateInstance(typeof(T), true); @@ -72,10 +68,7 @@ public static void AssertJsonSame(string left, string right) var result = patch.ToString(); - Assert.True( - result == "", - result - ); + Assert.True(result == "", result); } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs index 35d8c46f6..9f6513c69 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,7 +36,10 @@ public interface IAccountApiSync : IApiAccessor /// /// Index associated with the operation. /// AccountCreateResponse - AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, int operationIndex = 0); + AccountCreateResponse AccountCreate( + AccountCreateRequest accountCreateRequest, + int operationIndex = 0 + ); /// /// Create Account @@ -49,7 +51,11 @@ public interface IAccountApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of AccountCreateResponse - ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, int operationIndex = 0); + ApiResponse AccountCreateWithHttpInfo( + AccountCreateRequest accountCreateRequest, + int operationIndex = 0 + ); + /// /// Get Account /// @@ -61,7 +67,11 @@ public interface IAccountApiSync : IApiAccessor /// `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) /// Index associated with the operation. /// AccountGetResponse - AccountGetResponse AccountGet(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0); + AccountGetResponse AccountGet( + string? accountId = default(string?), + string? emailAddress = default(string?), + int operationIndex = 0 + ); /// /// Get Account @@ -74,7 +84,12 @@ public interface IAccountApiSync : IApiAccessor /// `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) /// Index associated with the operation. /// ApiResponse of AccountGetResponse - ApiResponse AccountGetWithHttpInfo(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0); + ApiResponse AccountGetWithHttpInfo( + string? accountId = default(string?), + string? emailAddress = default(string?), + int operationIndex = 0 + ); + /// /// Update Account /// @@ -85,7 +100,10 @@ public interface IAccountApiSync : IApiAccessor /// /// Index associated with the operation. /// AccountGetResponse - AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0); + AccountGetResponse AccountUpdate( + AccountUpdateRequest accountUpdateRequest, + int operationIndex = 0 + ); /// /// Update Account @@ -97,7 +115,11 @@ public interface IAccountApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of AccountGetResponse - ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0); + ApiResponse AccountUpdateWithHttpInfo( + AccountUpdateRequest accountUpdateRequest, + int operationIndex = 0 + ); + /// /// Verify Account /// @@ -108,7 +130,10 @@ public interface IAccountApiSync : IApiAccessor /// /// Index associated with the operation. /// AccountVerifyResponse - AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0); + AccountVerifyResponse AccountVerify( + AccountVerifyRequest accountVerifyRequest, + int operationIndex = 0 + ); /// /// Verify Account @@ -120,7 +145,10 @@ public interface IAccountApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of AccountVerifyResponse - ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0); + ApiResponse AccountVerifyWithHttpInfo( + AccountVerifyRequest accountVerifyRequest, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -141,7 +169,12 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountCreateAsync( + AccountCreateRequest accountCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Account @@ -154,7 +187,15 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > AccountCreateWithHttpInfoAsync( + AccountCreateRequest accountCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Account /// @@ -167,7 +208,13 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - System.Threading.Tasks.Task AccountGetAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountGetAsync( + string? accountId = default(string?), + string? emailAddress = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Account @@ -181,7 +228,14 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync( + string? accountId = default(string?), + string? emailAddress = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Update Account /// @@ -193,7 +247,12 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountUpdateAsync( + AccountUpdateRequest accountUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Update Account @@ -206,7 +265,13 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync( + AccountUpdateRequest accountUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Verify Account /// @@ -218,7 +283,12 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountVerifyAsync( + AccountVerifyRequest accountVerifyRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Verify Account @@ -231,17 +301,21 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > AccountVerifyWithHttpInfoAsync( + AccountVerifyRequest accountVerifyRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IAccountApi : IAccountApiSync, IAccountApiAsync - { - - } + public interface IAccountApi : IAccountApiSync, IAccountApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -254,9 +328,8 @@ public partial class AccountApi : IAccountApi /// Initializes a new instance of the class. /// /// - public AccountApi() : this((string)null) - { - } + public AccountApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -269,7 +342,9 @@ public AccountApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -281,14 +356,17 @@ public AccountApi(string basePath) /// public AccountApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -299,11 +377,18 @@ public AccountApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public AccountApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public AccountApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -345,7 +430,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -359,9 +446,13 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// AccountCreateResponse - public AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, int operationIndex = 0) + public AccountCreateResponse AccountCreate( + AccountCreateRequest accountCreateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountCreateWithHttpInfo(accountCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + AccountCreateWithHttpInfo(accountCreateRequest); return localVarResponse.Data; } @@ -372,15 +463,22 @@ public AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateReq /// /// Index associated with the operation. /// ApiResponse of AccountCreateResponse - public Dropbox.Sign.Client.ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountCreateWithHttpInfo( + AccountCreateRequest accountCreateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'accountCreateRequest' is set if (accountCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountCreateRequest' when calling AccountApi->AccountCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'accountCreateRequest' when calling AccountApi->AccountCreate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountCreateRequest.GetOpenApiTypes(); @@ -396,9 +494,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -411,25 +507,44 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/account/create", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/account/create", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("AccountCreate", localVarResponse); @@ -450,9 +565,20 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - public async System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountCreateAsync( + AccountCreateRequest accountCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountCreateWithHttpInfoAsync(accountCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await AccountCreateWithHttpInfoAsync( + accountCreateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -464,16 +590,24 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync( + AccountCreateRequest accountCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'accountCreateRequest' is set if (accountCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountCreateRequest' when calling AccountApi->AccountCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'accountCreateRequest' when calling AccountApi->AccountCreate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountCreateRequest.GetOpenApiTypes(); @@ -489,9 +623,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -504,25 +636,47 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/account/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/account/create", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -544,9 +698,14 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) /// Index associated with the operation. /// AccountGetResponse - public AccountGetResponse AccountGet(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0) + public AccountGetResponse AccountGet( + string? accountId = default(string?), + string? emailAddress = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountGetWithHttpInfo(accountId, emailAddress); + Dropbox.Sign.Client.ApiResponse localVarResponse = + AccountGetWithHttpInfo(accountId, emailAddress); return localVarResponse.Data; } @@ -558,18 +717,22 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) /// Index associated with the operation. /// ApiResponse of AccountGetResponse - public Dropbox.Sign.Client.ApiResponse AccountGetWithHttpInfo(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountGetWithHttpInfo( + string? accountId = default(string?), + string? emailAddress = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -584,11 +747,19 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH if (accountId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) + ); } if (emailAddress != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "email_address", + emailAddress + ) + ); } localVarRequestOptions.Operation = "AccountApi.AccountGet"; @@ -596,19 +767,39 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/account", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/account", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("AccountGet", localVarResponse); @@ -630,9 +821,22 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - public async System.Threading.Tasks.Task AccountGetAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountGetAsync( + string? accountId = default(string?), + string? emailAddress = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountGetWithHttpInfoAsync(accountId, emailAddress, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await AccountGetWithHttpInfoAsync( + accountId, + emailAddress, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -645,19 +849,24 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - public async System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync( + string? accountId = default(string?), + string? emailAddress = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -672,11 +881,19 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH if (accountId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) + ); } if (emailAddress != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "email_address", + emailAddress + ) + ); } localVarRequestOptions.Operation = "AccountApi.AccountGet"; @@ -684,19 +901,42 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/account", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/account", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -717,9 +957,13 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// /// Index associated with the operation. /// AccountGetResponse - public AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0) + public AccountGetResponse AccountUpdate( + AccountUpdateRequest accountUpdateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountUpdateWithHttpInfo(accountUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + AccountUpdateWithHttpInfo(accountUpdateRequest); return localVarResponse.Data; } @@ -730,15 +974,22 @@ public AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateReques /// /// Index associated with the operation. /// ApiResponse of AccountGetResponse - public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttpInfo( + AccountUpdateRequest accountUpdateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'accountUpdateRequest' is set if (accountUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountUpdateRequest' when calling AccountApi->AccountUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'accountUpdateRequest' when calling AccountApi->AccountUpdate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountUpdateRequest.GetOpenApiTypes(); @@ -754,9 +1005,7 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -769,25 +1018,44 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Put("/account", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put( + "/account", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("AccountUpdate", localVarResponse); @@ -808,9 +1076,20 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - public async System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountUpdateAsync( + AccountUpdateRequest accountUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountUpdateWithHttpInfoAsync(accountUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await AccountUpdateWithHttpInfoAsync( + accountUpdateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -822,16 +1101,24 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync( + AccountUpdateRequest accountUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'accountUpdateRequest' is set if (accountUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountUpdateRequest' when calling AccountApi->AccountUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'accountUpdateRequest' when calling AccountApi->AccountUpdate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountUpdateRequest.GetOpenApiTypes(); @@ -847,9 +1134,7 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -862,25 +1147,47 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/account", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PutAsync( + "/account", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -901,9 +1208,13 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp /// /// Index associated with the operation. /// AccountVerifyResponse - public AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0) + public AccountVerifyResponse AccountVerify( + AccountVerifyRequest accountVerifyRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountVerifyWithHttpInfo(accountVerifyRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + AccountVerifyWithHttpInfo(accountVerifyRequest); return localVarResponse.Data; } @@ -914,15 +1225,22 @@ public AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyReq /// /// Index associated with the operation. /// ApiResponse of AccountVerifyResponse - public Dropbox.Sign.Client.ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountVerifyWithHttpInfo( + AccountVerifyRequest accountVerifyRequest, + int operationIndex = 0 + ) { // verify the required parameter 'accountVerifyRequest' is set if (accountVerifyRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountVerifyRequest' when calling AccountApi->AccountVerify"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'accountVerifyRequest' when calling AccountApi->AccountVerify" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountVerifyRequest.GetOpenApiTypes(); @@ -938,9 +1256,7 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -953,25 +1269,44 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/account/verify", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/account/verify", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("AccountVerify", localVarResponse); @@ -992,9 +1327,20 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - public async System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountVerifyAsync( + AccountVerifyRequest accountVerifyRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountVerifyWithHttpInfoAsync(accountVerifyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await AccountVerifyWithHttpInfoAsync( + accountVerifyRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1006,16 +1352,24 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync( + AccountVerifyRequest accountVerifyRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'accountVerifyRequest' is set if (accountVerifyRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountVerifyRequest' when calling AccountApi->AccountVerify"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'accountVerifyRequest' when calling AccountApi->AccountVerify" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountVerifyRequest.GetOpenApiTypes(); @@ -1031,9 +1385,7 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1046,25 +1398,47 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/account/verify", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/account/verify", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1077,6 +1451,5 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs index 8e5245e0f..f48372d96 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,7 +36,10 @@ public interface IApiAppApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiAppGetResponse - ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0); + ApiAppGetResponse ApiAppCreate( + ApiAppCreateRequest apiAppCreateRequest, + int operationIndex = 0 + ); /// /// Create API App @@ -49,7 +51,11 @@ public interface IApiAppApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0); + ApiResponse ApiAppCreateWithHttpInfo( + ApiAppCreateRequest apiAppCreateRequest, + int operationIndex = 0 + ); + /// /// Delete API App /// @@ -73,6 +79,7 @@ public interface IApiAppApiSync : IApiAccessor /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse ApiAppDeleteWithHttpInfo(string clientId, int operationIndex = 0); + /// /// Get API App /// @@ -95,7 +102,11 @@ public interface IApiAppApiSync : IApiAccessor /// The client id of the API App to retrieve. /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppGetWithHttpInfo(string clientId, int operationIndex = 0); + ApiResponse ApiAppGetWithHttpInfo( + string clientId, + int operationIndex = 0 + ); + /// /// List API Apps /// @@ -107,7 +118,11 @@ public interface IApiAppApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiAppListResponse - ApiAppListResponse ApiAppList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + ApiAppListResponse ApiAppList( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); /// /// List API Apps @@ -120,7 +135,12 @@ public interface IApiAppApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of ApiAppListResponse - ApiResponse ApiAppListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + ApiResponse ApiAppListWithHttpInfo( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); + /// /// Update API App /// @@ -132,7 +152,11 @@ public interface IApiAppApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiAppGetResponse - ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0); + ApiAppGetResponse ApiAppUpdate( + string clientId, + ApiAppUpdateRequest apiAppUpdateRequest, + int operationIndex = 0 + ); /// /// Update API App @@ -145,7 +169,11 @@ public interface IApiAppApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0); + ApiResponse ApiAppUpdateWithHttpInfo( + string clientId, + ApiAppUpdateRequest apiAppUpdateRequest, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -166,7 +194,12 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppCreateAsync( + ApiAppCreateRequest apiAppCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create API App @@ -179,7 +212,13 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync( + ApiAppCreateRequest apiAppCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Delete API App /// @@ -191,7 +230,12 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task ApiAppDeleteAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppDeleteAsync( + string clientId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Delete API App @@ -204,7 +248,13 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync( + string clientId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get API App /// @@ -216,7 +266,12 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppGetAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppGetAsync( + string clientId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get API App @@ -229,7 +284,13 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync( + string clientId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// List API Apps /// @@ -242,7 +303,13 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppListResponse - System.Threading.Tasks.Task ApiAppListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppListAsync( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// List API Apps @@ -256,7 +323,14 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppListResponse) - System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Update API App /// @@ -269,7 +343,13 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppUpdateAsync( + string clientId, + ApiAppUpdateRequest apiAppUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Update API App @@ -283,17 +363,20 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync( + string clientId, + ApiAppUpdateRequest apiAppUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IApiAppApi : IApiAppApiSync, IApiAppApiAsync - { - - } + public interface IApiAppApi : IApiAppApiSync, IApiAppApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -306,9 +389,8 @@ public partial class ApiAppApi : IApiAppApi /// Initializes a new instance of the class. /// /// - public ApiAppApi() : this((string)null) - { - } + public ApiAppApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -321,7 +403,9 @@ public ApiAppApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -333,14 +417,17 @@ public ApiAppApi(string basePath) /// public ApiAppApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -351,11 +438,18 @@ public ApiAppApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public ApiAppApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public ApiAppApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -397,7 +491,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -411,9 +507,13 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// ApiAppGetResponse - public ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0) + public ApiAppGetResponse ApiAppCreate( + ApiAppCreateRequest apiAppCreateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppCreateWithHttpInfo(apiAppCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + ApiAppCreateWithHttpInfo(apiAppCreateRequest); return localVarResponse.Data; } @@ -424,15 +524,22 @@ public ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, i /// /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpInfo( + ApiAppCreateRequest apiAppCreateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'apiAppCreateRequest' is set if (apiAppCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'apiAppCreateRequest' when calling ApiAppApi->ApiAppCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'apiAppCreateRequest' when calling ApiAppApi->ApiAppCreate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = apiAppCreateRequest.GetOpenApiTypes(); @@ -448,9 +555,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -463,25 +568,44 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/api_app", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/api_app", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppCreate", localVarResponse); @@ -502,9 +626,20 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppCreateAsync( + ApiAppCreateRequest apiAppCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppCreateWithHttpInfoAsync(apiAppCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await ApiAppCreateWithHttpInfoAsync( + apiAppCreateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -516,16 +651,24 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync( + ApiAppCreateRequest apiAppCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'apiAppCreateRequest' is set if (apiAppCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'apiAppCreateRequest' when calling ApiAppApi->ApiAppCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'apiAppCreateRequest' when calling ApiAppApi->ApiAppCreate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = apiAppCreateRequest.GetOpenApiTypes(); @@ -541,9 +684,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -556,25 +697,47 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/api_app", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/api_app", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -607,24 +770,30 @@ public void ApiAppDelete(string clientId, int operationIndex = 0) /// The client id of the API App to delete. /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string clientId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo( + string clientId, + int operationIndex = 0 + ) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppDelete"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppDelete" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -637,26 +806,49 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "client_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) + ); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Delete("/api_app/{client_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete( + "/api_app/{client_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppDelete", localVarResponse); @@ -677,9 +869,15 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task ApiAppDeleteAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppDeleteAsync( + string clientId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - await ApiAppDeleteWithHttpInfoAsync(clientId, operationIndex, cancellationToken).ConfigureAwait(false); + await ApiAppDeleteWithHttpInfoAsync(clientId, operationIndex, cancellationToken) + .ConfigureAwait(false); } /// @@ -690,25 +888,32 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync( + string clientId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppDelete"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppDelete" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -721,26 +926,52 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "client_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) + ); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api_app/{client_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.DeleteAsync( + "/api_app/{client_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -763,7 +994,8 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c /// ApiAppGetResponse public ApiAppGetResponse ApiAppGet(string clientId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppGetWithHttpInfo(clientId); + Dropbox.Sign.Client.ApiResponse localVarResponse = + ApiAppGetWithHttpInfo(clientId); return localVarResponse.Data; } @@ -774,24 +1006,30 @@ public ApiAppGetResponse ApiAppGet(string clientId, int operationIndex = 0) /// The client id of the API App to retrieve. /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo(string clientId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( + string clientId, + int operationIndex = 0 + ) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppGet" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -804,26 +1042,49 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "client_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) + ); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/api_app/{client_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/api_app/{client_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppGet", localVarResponse); @@ -844,9 +1105,16 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppGetAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppGetAsync( + string clientId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppGetWithHttpInfoAsync(clientId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await ApiAppGetWithHttpInfoAsync(clientId, operationIndex, cancellationToken) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -858,25 +1126,32 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync( + string clientId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppGet" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -889,26 +1164,52 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "client_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) + ); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/api_app/{client_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/api_app/{client_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -930,9 +1231,14 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiAppListResponse - public ApiAppListResponse ApiAppList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public ApiAppListResponse ApiAppList( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppListWithHttpInfo(page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = + ApiAppListWithHttpInfo(page, pageSize); return localVarResponse.Data; } @@ -944,18 +1250,22 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of ApiAppListResponse - public Dropbox.Sign.Client.ApiResponse ApiAppListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ApiAppListWithHttpInfo( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -970,11 +1280,15 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "ApiAppApi.ApiAppList"; @@ -982,19 +1296,39 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/api_app/list", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/api_app/list", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppList", localVarResponse); @@ -1016,9 +1350,17 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppListResponse - public async System.Threading.Tasks.Task ApiAppListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppListAsync( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await ApiAppListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1031,19 +1373,24 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppListResponse) - public async System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1058,11 +1405,15 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "ApiAppApi.ApiAppList"; @@ -1070,19 +1421,42 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/api_app/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/api_app/list", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1104,9 +1478,14 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// /// Index associated with the operation. /// ApiAppGetResponse - public ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0) + public ApiAppGetResponse ApiAppUpdate( + string clientId, + ApiAppUpdateRequest apiAppUpdateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest); return localVarResponse.Data; } @@ -1118,21 +1497,32 @@ public ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAp /// /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpInfo( + string clientId, + ApiAppUpdateRequest apiAppUpdateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppUpdate" + ); } // verify the required parameter 'apiAppUpdateRequest' is set if (apiAppUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'apiAppUpdateRequest' when calling ApiAppApi->ApiAppUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'apiAppUpdateRequest' when calling ApiAppApi->ApiAppUpdate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = apiAppUpdateRequest.GetOpenApiTypes(); @@ -1148,9 +1538,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1163,26 +1551,49 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "client_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) + ); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Put("/api_app/{client_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put( + "/api_app/{client_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppUpdate", localVarResponse); @@ -1204,9 +1615,22 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppUpdateAsync( + string clientId, + ApiAppUpdateRequest apiAppUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppUpdateWithHttpInfoAsync(clientId, apiAppUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await ApiAppUpdateWithHttpInfoAsync( + clientId, + apiAppUpdateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1219,22 +1643,34 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync( + string clientId, + ApiAppUpdateRequest apiAppUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppUpdate" + ); } // verify the required parameter 'apiAppUpdateRequest' is set if (apiAppUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'apiAppUpdateRequest' when calling ApiAppApi->ApiAppUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'apiAppUpdateRequest' when calling ApiAppApi->ApiAppUpdate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = apiAppUpdateRequest.GetOpenApiTypes(); @@ -1250,9 +1686,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1265,26 +1699,52 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "client_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) + ); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/api_app/{client_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PutAsync( + "/api_app/{client_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1297,6 +1757,5 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs index fc47749b5..bacdc6046 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -39,7 +38,12 @@ public interface IBulkSendJobApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// BulkSendJobGetResponse - BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + BulkSendJobGetResponse BulkSendJobGet( + string bulkSendJobId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); /// /// Get Bulk Send Job @@ -53,7 +57,13 @@ public interface IBulkSendJobApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of BulkSendJobGetResponse - ApiResponse BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + ApiResponse BulkSendJobGetWithHttpInfo( + string bulkSendJobId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); + /// /// List Bulk Send Jobs /// @@ -65,7 +75,11 @@ public interface IBulkSendJobApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// BulkSendJobListResponse - BulkSendJobListResponse BulkSendJobList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + BulkSendJobListResponse BulkSendJobList( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); /// /// List Bulk Send Jobs @@ -78,7 +92,11 @@ public interface IBulkSendJobApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of BulkSendJobListResponse - ApiResponse BulkSendJobListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + ApiResponse BulkSendJobListWithHttpInfo( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -101,7 +119,14 @@ public interface IBulkSendJobApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobGetResponse - System.Threading.Tasks.Task BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task BulkSendJobGetAsync( + string bulkSendJobId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Bulk Send Job @@ -116,7 +141,17 @@ public interface IBulkSendJobApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobGetResponse) - System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > BulkSendJobGetWithHttpInfoAsync( + string bulkSendJobId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// List Bulk Send Jobs /// @@ -129,7 +164,13 @@ public interface IBulkSendJobApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobListResponse - System.Threading.Tasks.Task BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task BulkSendJobListAsync( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// List Bulk Send Jobs @@ -143,17 +184,22 @@ public interface IBulkSendJobApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobListResponse) - System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > BulkSendJobListWithHttpInfoAsync( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IBulkSendJobApi : IBulkSendJobApiSync, IBulkSendJobApiAsync - { - - } + public interface IBulkSendJobApi : IBulkSendJobApiSync, IBulkSendJobApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -166,9 +212,8 @@ public partial class BulkSendJobApi : IBulkSendJobApi /// Initializes a new instance of the class. /// /// - public BulkSendJobApi() : this((string)null) - { - } + public BulkSendJobApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -181,7 +226,9 @@ public BulkSendJobApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -193,14 +240,17 @@ public BulkSendJobApi(string basePath) /// public BulkSendJobApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -211,11 +261,18 @@ public BulkSendJobApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public BulkSendJobApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public BulkSendJobApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -257,7 +314,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -273,9 +332,15 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// BulkSendJobGetResponse - public BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public BulkSendJobGetResponse BulkSendJobGet( + string bulkSendJobId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = BulkSendJobGetWithHttpInfo(bulkSendJobId, page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = + BulkSendJobGetWithHttpInfo(bulkSendJobId, page, pageSize); return localVarResponse.Data; } @@ -288,24 +353,32 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of BulkSendJobGetResponse - public Dropbox.Sign.Client.ApiResponse BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse BulkSendJobGetWithHttpInfo( + string bulkSendJobId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { // verify the required parameter 'bulkSendJobId' is set if (bulkSendJobId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'bulkSendJobId' when calling BulkSendJobApi->BulkSendJobGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'bulkSendJobId' when calling BulkSendJobApi->BulkSendJobGet" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -318,14 +391,21 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("bulk_send_job_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(bulkSendJobId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "bulk_send_job_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(bulkSendJobId) + ); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobGet"; @@ -333,19 +413,39 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/bulk_send_job/{bulk_send_job_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/bulk_send_job/{bulk_send_job_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("BulkSendJobGet", localVarResponse); @@ -368,9 +468,24 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobGetResponse - public async System.Threading.Tasks.Task BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task BulkSendJobGetAsync( + string bulkSendJobId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await BulkSendJobGetWithHttpInfoAsync(bulkSendJobId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await BulkSendJobGetWithHttpInfoAsync( + bulkSendJobId, + page, + pageSize, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -384,25 +499,34 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobGetResponse) - public async System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync( + string bulkSendJobId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'bulkSendJobId' is set if (bulkSendJobId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'bulkSendJobId' when calling BulkSendJobApi->BulkSendJobGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'bulkSendJobId' when calling BulkSendJobApi->BulkSendJobGet" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -415,14 +539,21 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("bulk_send_job_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(bulkSendJobId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "bulk_send_job_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(bulkSendJobId) + ); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobGet"; @@ -430,19 +561,42 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/bulk_send_job/{bulk_send_job_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/bulk_send_job/{bulk_send_job_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -464,9 +618,14 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// BulkSendJobListResponse - public BulkSendJobListResponse BulkSendJobList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public BulkSendJobListResponse BulkSendJobList( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = BulkSendJobListWithHttpInfo(page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = + BulkSendJobListWithHttpInfo(page, pageSize); return localVarResponse.Data; } @@ -478,18 +637,22 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of BulkSendJobListResponse - public Dropbox.Sign.Client.ApiResponse BulkSendJobListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse BulkSendJobListWithHttpInfo( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -504,11 +667,15 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobList"; @@ -516,19 +683,39 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/bulk_send_job/list", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/bulk_send_job/list", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("BulkSendJobList", localVarResponse); @@ -550,9 +737,22 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobListResponse - public async System.Threading.Tasks.Task BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task BulkSendJobListAsync( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await BulkSendJobListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await BulkSendJobListWithHttpInfoAsync( + page, + pageSize, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -565,19 +765,24 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobListResponse) - public async System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync( + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -592,11 +797,15 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobList"; @@ -604,19 +813,42 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/bulk_send_job/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/bulk_send_job/list", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -629,6 +861,5 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs index 244202a30..b022cc64b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -38,7 +37,11 @@ public interface IEmbeddedApiSync : IApiAccessor /// /// Index associated with the operation. /// EmbeddedEditUrlResponse - EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0); + EmbeddedEditUrlResponse EmbeddedEditUrl( + string templateId, + EmbeddedEditUrlRequest embeddedEditUrlRequest, + int operationIndex = 0 + ); /// /// Get Embedded Template Edit URL @@ -51,7 +54,12 @@ public interface IEmbeddedApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of EmbeddedEditUrlResponse - ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0); + ApiResponse EmbeddedEditUrlWithHttpInfo( + string templateId, + EmbeddedEditUrlRequest embeddedEditUrlRequest, + int operationIndex = 0 + ); + /// /// Get Embedded Sign URL /// @@ -74,7 +82,10 @@ public interface IEmbeddedApiSync : IApiAccessor /// The id of the signature to get a signature url for. /// Index associated with the operation. /// ApiResponse of EmbeddedSignUrlResponse - ApiResponse EmbeddedSignUrlWithHttpInfo(string signatureId, int operationIndex = 0); + ApiResponse EmbeddedSignUrlWithHttpInfo( + string signatureId, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -96,7 +107,13 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task EmbeddedEditUrlAsync( + string templateId, + EmbeddedEditUrlRequest embeddedEditUrlRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Embedded Template Edit URL @@ -110,7 +127,16 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > EmbeddedEditUrlWithHttpInfoAsync( + string templateId, + EmbeddedEditUrlRequest embeddedEditUrlRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Embedded Sign URL /// @@ -122,7 +148,12 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedSignUrlResponse - System.Threading.Tasks.Task EmbeddedSignUrlAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task EmbeddedSignUrlAsync( + string signatureId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Embedded Sign URL @@ -135,17 +166,21 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedSignUrlResponse) - System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > EmbeddedSignUrlWithHttpInfoAsync( + string signatureId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IEmbeddedApi : IEmbeddedApiSync, IEmbeddedApiAsync - { - - } + public interface IEmbeddedApi : IEmbeddedApiSync, IEmbeddedApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -158,9 +193,8 @@ public partial class EmbeddedApi : IEmbeddedApi /// Initializes a new instance of the class. /// /// - public EmbeddedApi() : this((string)null) - { - } + public EmbeddedApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -173,7 +207,9 @@ public EmbeddedApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -185,14 +221,17 @@ public EmbeddedApi(string basePath) /// public EmbeddedApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -203,11 +242,18 @@ public EmbeddedApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public EmbeddedApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public EmbeddedApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -249,7 +295,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -264,9 +312,14 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// EmbeddedEditUrlResponse - public EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0) + public EmbeddedEditUrlResponse EmbeddedEditUrl( + string templateId, + EmbeddedEditUrlRequest embeddedEditUrlRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest); return localVarResponse.Data; } @@ -278,21 +331,32 @@ public EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUr /// /// Index associated with the operation. /// ApiResponse of EmbeddedEditUrlResponse - public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlWithHttpInfo( + string templateId, + EmbeddedEditUrlRequest embeddedEditUrlRequest, + int operationIndex = 0 + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling EmbeddedApi->EmbeddedEditUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling EmbeddedApi->EmbeddedEditUrl" + ); } // verify the required parameter 'embeddedEditUrlRequest' is set if (embeddedEditUrlRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'embeddedEditUrlRequest' when calling EmbeddedApi->EmbeddedEditUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'embeddedEditUrlRequest' when calling EmbeddedApi->EmbeddedEditUrl" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = embeddedEditUrlRequest.GetOpenApiTypes(); @@ -308,9 +372,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -323,26 +385,49 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/embedded/edit_url/{template_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/embedded/edit_url/{template_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("EmbeddedEditUrl", localVarResponse); @@ -364,9 +449,22 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - public async System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task EmbeddedEditUrlAsync( + string templateId, + EmbeddedEditUrlRequest embeddedEditUrlRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedEditUrlWithHttpInfoAsync(templateId, embeddedEditUrlRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await EmbeddedEditUrlWithHttpInfoAsync( + templateId, + embeddedEditUrlRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -379,22 +477,34 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync( + string templateId, + EmbeddedEditUrlRequest embeddedEditUrlRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling EmbeddedApi->EmbeddedEditUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling EmbeddedApi->EmbeddedEditUrl" + ); } // verify the required parameter 'embeddedEditUrlRequest' is set if (embeddedEditUrlRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'embeddedEditUrlRequest' when calling EmbeddedApi->EmbeddedEditUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'embeddedEditUrlRequest' when calling EmbeddedApi->EmbeddedEditUrl" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = embeddedEditUrlRequest.GetOpenApiTypes(); @@ -410,9 +520,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -425,26 +533,52 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/embedded/edit_url/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/embedded/edit_url/{template_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -467,7 +601,8 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW /// EmbeddedSignUrlResponse public EmbeddedSignUrlResponse EmbeddedSignUrl(string signatureId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = EmbeddedSignUrlWithHttpInfo(signatureId); + Dropbox.Sign.Client.ApiResponse localVarResponse = + EmbeddedSignUrlWithHttpInfo(signatureId); return localVarResponse.Data; } @@ -478,24 +613,30 @@ public EmbeddedSignUrlResponse EmbeddedSignUrl(string signatureId, int operation /// The id of the signature to get a signature url for. /// Index associated with the operation. /// ApiResponse of EmbeddedSignUrlResponse - public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlWithHttpInfo(string signatureId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlWithHttpInfo( + string signatureId, + int operationIndex = 0 + ) { // verify the required parameter 'signatureId' is set if (signatureId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureId' when calling EmbeddedApi->EmbeddedSignUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureId' when calling EmbeddedApi->EmbeddedSignUrl" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -508,26 +649,49 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId) + ); // path parameter localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedSignUrl"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/embedded/sign_url/{signature_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/embedded/sign_url/{signature_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("EmbeddedSignUrl", localVarResponse); @@ -548,9 +712,20 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedSignUrlResponse - public async System.Threading.Tasks.Task EmbeddedSignUrlAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task EmbeddedSignUrlAsync( + string signatureId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedSignUrlWithHttpInfoAsync(signatureId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await EmbeddedSignUrlWithHttpInfoAsync( + signatureId, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -562,25 +737,32 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedSignUrlResponse) - public async System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync( + string signatureId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureId' is set if (signatureId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureId' when calling EmbeddedApi->EmbeddedSignUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureId' when calling EmbeddedApi->EmbeddedSignUrl" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -593,26 +775,52 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId) + ); // path parameter localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedSignUrl"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/embedded/sign_url/{signature_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/embedded/sign_url/{signature_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -625,6 +833,5 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs index d1a274cd2..04d79719d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,7 +36,10 @@ public interface IFaxLineApiSync : IApiAccessor /// /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0); + FaxLineResponse FaxLineAddUser( + FaxLineAddUserRequest faxLineAddUserRequest, + int operationIndex = 0 + ); /// /// Add Fax Line User @@ -49,7 +51,11 @@ public interface IFaxLineApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0); + ApiResponse FaxLineAddUserWithHttpInfo( + FaxLineAddUserRequest faxLineAddUserRequest, + int operationIndex = 0 + ); + /// /// Get Available Fax Line Area Codes /// @@ -63,7 +69,13 @@ public interface IFaxLineApiSync : IApiAccessor /// Filter area codes by city. (optional) /// Index associated with the operation. /// FaxLineAreaCodeGetResponse - FaxLineAreaCodeGetResponse FaxLineAreaCodeGet(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0); + FaxLineAreaCodeGetResponse FaxLineAreaCodeGet( + string country, + string? state = default(string?), + string? province = default(string?), + string? city = default(string?), + int operationIndex = 0 + ); /// /// Get Available Fax Line Area Codes @@ -78,7 +90,14 @@ public interface IFaxLineApiSync : IApiAccessor /// Filter area codes by city. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineAreaCodeGetResponse - ApiResponse FaxLineAreaCodeGetWithHttpInfo(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0); + ApiResponse FaxLineAreaCodeGetWithHttpInfo( + string country, + string? state = default(string?), + string? province = default(string?), + string? city = default(string?), + int operationIndex = 0 + ); + /// /// Purchase Fax Line /// @@ -89,7 +108,10 @@ public interface IFaxLineApiSync : IApiAccessor /// /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0); + FaxLineResponse FaxLineCreate( + FaxLineCreateRequest faxLineCreateRequest, + int operationIndex = 0 + ); /// /// Purchase Fax Line @@ -101,7 +123,11 @@ public interface IFaxLineApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0); + ApiResponse FaxLineCreateWithHttpInfo( + FaxLineCreateRequest faxLineCreateRequest, + int operationIndex = 0 + ); + /// /// Delete Fax Line /// @@ -124,7 +150,11 @@ public interface IFaxLineApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse FaxLineDeleteWithHttpInfo(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0); + ApiResponse FaxLineDeleteWithHttpInfo( + FaxLineDeleteRequest faxLineDeleteRequest, + int operationIndex = 0 + ); + /// /// Get Fax Line /// @@ -148,6 +178,7 @@ public interface IFaxLineApiSync : IApiAccessor /// Index associated with the operation. /// ApiResponse of FaxLineResponse ApiResponse FaxLineGetWithHttpInfo(string number, int operationIndex = 0); + /// /// List Fax Lines /// @@ -161,7 +192,13 @@ public interface IFaxLineApiSync : IApiAccessor /// Show team lines (optional) /// Index associated with the operation. /// FaxLineListResponse - FaxLineListResponse FaxLineList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0); + FaxLineListResponse FaxLineList( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + bool? showTeamLines = default(bool?), + int operationIndex = 0 + ); /// /// List Fax Lines @@ -176,7 +213,14 @@ public interface IFaxLineApiSync : IApiAccessor /// Show team lines (optional) /// Index associated with the operation. /// ApiResponse of FaxLineListResponse - ApiResponse FaxLineListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0); + ApiResponse FaxLineListWithHttpInfo( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + bool? showTeamLines = default(bool?), + int operationIndex = 0 + ); + /// /// Remove Fax Line Access /// @@ -187,7 +231,10 @@ public interface IFaxLineApiSync : IApiAccessor /// /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0); + FaxLineResponse FaxLineRemoveUser( + FaxLineRemoveUserRequest faxLineRemoveUserRequest, + int operationIndex = 0 + ); /// /// Remove Fax Line Access @@ -199,7 +246,10 @@ public interface IFaxLineApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0); + ApiResponse FaxLineRemoveUserWithHttpInfo( + FaxLineRemoveUserRequest faxLineRemoveUserRequest, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -220,7 +270,12 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineAddUserAsync( + FaxLineAddUserRequest faxLineAddUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Add Fax Line User @@ -233,7 +288,13 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync( + FaxLineAddUserRequest faxLineAddUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Available Fax Line Area Codes /// @@ -248,7 +309,15 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineAreaCodeGetResponse - System.Threading.Tasks.Task FaxLineAreaCodeGetAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineAreaCodeGetAsync( + string country, + string? state = default(string?), + string? province = default(string?), + string? city = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Available Fax Line Area Codes @@ -264,7 +333,18 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineAreaCodeGetResponse) - System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > FaxLineAreaCodeGetWithHttpInfoAsync( + string country, + string? state = default(string?), + string? province = default(string?), + string? city = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Purchase Fax Line /// @@ -276,7 +356,12 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineCreateAsync( + FaxLineCreateRequest faxLineCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Purchase Fax Line @@ -289,7 +374,13 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync( + FaxLineCreateRequest faxLineCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Delete Fax Line /// @@ -301,7 +392,12 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task FaxLineDeleteAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineDeleteAsync( + FaxLineDeleteRequest faxLineDeleteRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Delete Fax Line @@ -314,7 +410,13 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync( + FaxLineDeleteRequest faxLineDeleteRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Fax Line /// @@ -326,7 +428,12 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineGetAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineGetAsync( + string number, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Fax Line @@ -339,7 +446,13 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync( + string number, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// List Fax Lines /// @@ -354,7 +467,15 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineListResponse - System.Threading.Tasks.Task FaxLineListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineListAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + bool? showTeamLines = default(bool?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// List Fax Lines @@ -370,7 +491,16 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineListResponse) - System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + bool? showTeamLines = default(bool?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Remove Fax Line Access /// @@ -382,7 +512,12 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineRemoveUserAsync( + FaxLineRemoveUserRequest faxLineRemoveUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Remove Fax Line Access @@ -395,17 +530,21 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > FaxLineRemoveUserWithHttpInfoAsync( + FaxLineRemoveUserRequest faxLineRemoveUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IFaxLineApi : IFaxLineApiSync, IFaxLineApiAsync - { - - } + public interface IFaxLineApi : IFaxLineApiSync, IFaxLineApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -418,9 +557,8 @@ public partial class FaxLineApi : IFaxLineApi /// Initializes a new instance of the class. /// /// - public FaxLineApi() : this((string)null) - { - } + public FaxLineApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -433,7 +571,9 @@ public FaxLineApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -445,14 +585,17 @@ public FaxLineApi(string basePath) /// public FaxLineApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -463,11 +606,18 @@ public FaxLineApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public FaxLineApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public FaxLineApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -509,7 +659,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -523,9 +675,13 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0) + public FaxLineResponse FaxLineAddUser( + FaxLineAddUserRequest faxLineAddUserRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineAddUserWithHttpInfo(faxLineAddUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + FaxLineAddUserWithHttpInfo(faxLineAddUserRequest); return localVarResponse.Data; } @@ -536,15 +692,22 @@ public FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserReques /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpInfo( + FaxLineAddUserRequest faxLineAddUserRequest, + int operationIndex = 0 + ) { // verify the required parameter 'faxLineAddUserRequest' is set if (faxLineAddUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineAddUserRequest' when calling FaxLineApi->FaxLineAddUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'faxLineAddUserRequest' when calling FaxLineApi->FaxLineAddUser" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineAddUserRequest.GetOpenApiTypes(); @@ -560,9 +723,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -575,19 +736,32 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Put("/fax_line/add_user", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put( + "/fax_line/add_user", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineAddUser", localVarResponse); @@ -608,9 +782,20 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineAddUserAsync( + FaxLineAddUserRequest faxLineAddUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAddUserWithHttpInfoAsync(faxLineAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await FaxLineAddUserWithHttpInfoAsync( + faxLineAddUserRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -622,16 +807,24 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync( + FaxLineAddUserRequest faxLineAddUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'faxLineAddUserRequest' is set if (faxLineAddUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineAddUserRequest' when calling FaxLineApi->FaxLineAddUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'faxLineAddUserRequest' when calling FaxLineApi->FaxLineAddUser" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineAddUserRequest.GetOpenApiTypes(); @@ -647,9 +840,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -662,19 +853,35 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/fax_line/add_user", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PutAsync( + "/fax_line/add_user", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -698,9 +905,16 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Filter area codes by city. (optional) /// Index associated with the operation. /// FaxLineAreaCodeGetResponse - public FaxLineAreaCodeGetResponse FaxLineAreaCodeGet(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0) + public FaxLineAreaCodeGetResponse FaxLineAreaCodeGet( + string country, + string? state = default(string?), + string? province = default(string?), + string? city = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineAreaCodeGetWithHttpInfo(country, state, province, city); + Dropbox.Sign.Client.ApiResponse localVarResponse = + FaxLineAreaCodeGetWithHttpInfo(country, state, province, city); return localVarResponse.Data; } @@ -714,24 +928,33 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Filter area codes by city. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineAreaCodeGetResponse - public Dropbox.Sign.Client.ApiResponse FaxLineAreaCodeGetWithHttpInfo(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineAreaCodeGetWithHttpInfo( + string country, + string? state = default(string?), + string? province = default(string?), + string? city = default(string?), + int operationIndex = 0 + ) { // verify the required parameter 'country' is set if (country == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'country' when calling FaxLineApi->FaxLineAreaCodeGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'country' when calling FaxLineApi->FaxLineAreaCodeGet" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -744,18 +967,26 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "country", country)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "country", country) + ); if (state != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "state", state)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "state", state) + ); } if (province != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "province", province)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "province", province) + ); } if (city != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city) + ); } localVarRequestOptions.Operation = "FaxLineApi.FaxLineAreaCodeGet"; @@ -763,16 +994,33 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/fax_line/area_codes", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/fax_line/area_codes", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("FaxLineAreaCodeGet", localVarResponse); + Exception _exception = this.ExceptionFactory( + "FaxLineAreaCodeGet", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -793,9 +1041,26 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineAreaCodeGetResponse - public async System.Threading.Tasks.Task FaxLineAreaCodeGetAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineAreaCodeGetAsync( + string country, + string? state = default(string?), + string? province = default(string?), + string? city = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAreaCodeGetWithHttpInfoAsync(country, state, province, city, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await FaxLineAreaCodeGetWithHttpInfoAsync( + country, + state, + province, + city, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -810,25 +1075,35 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineAreaCodeGetResponse) - public async System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync( + string country, + string? state = default(string?), + string? province = default(string?), + string? city = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'country' is set if (country == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'country' when calling FaxLineApi->FaxLineAreaCodeGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'country' when calling FaxLineApi->FaxLineAreaCodeGet" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -841,18 +1116,26 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "country", country)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "country", country) + ); if (state != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "state", state)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "state", state) + ); } if (province != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "province", province)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "province", province) + ); } if (city != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city) + ); } localVarRequestOptions.Operation = "FaxLineApi.FaxLineAreaCodeGet"; @@ -860,17 +1143,37 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/fax_line/area_codes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/fax_line/area_codes", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("FaxLineAreaCodeGet", localVarResponse); + Exception _exception = this.ExceptionFactory( + "FaxLineAreaCodeGet", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -887,9 +1190,13 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0) + public FaxLineResponse FaxLineCreate( + FaxLineCreateRequest faxLineCreateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineCreateWithHttpInfo(faxLineCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + FaxLineCreateWithHttpInfo(faxLineCreateRequest); return localVarResponse.Data; } @@ -900,15 +1207,22 @@ public FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInfo( + FaxLineCreateRequest faxLineCreateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'faxLineCreateRequest' is set if (faxLineCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineCreateRequest' when calling FaxLineApi->FaxLineCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'faxLineCreateRequest' when calling FaxLineApi->FaxLineCreate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineCreateRequest.GetOpenApiTypes(); @@ -924,9 +1238,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -939,19 +1251,32 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/fax_line/create", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/fax_line/create", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineCreate", localVarResponse); @@ -972,9 +1297,20 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineCreateAsync( + FaxLineCreateRequest faxLineCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineCreateWithHttpInfoAsync(faxLineCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await FaxLineCreateWithHttpInfoAsync( + faxLineCreateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -986,16 +1322,24 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync( + FaxLineCreateRequest faxLineCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'faxLineCreateRequest' is set if (faxLineCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineCreateRequest' when calling FaxLineApi->FaxLineCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'faxLineCreateRequest' when calling FaxLineApi->FaxLineCreate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineCreateRequest.GetOpenApiTypes(); @@ -1011,9 +1355,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1026,19 +1368,35 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fax_line/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/fax_line/create", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1071,15 +1429,22 @@ public void FaxLineDelete(FaxLineDeleteRequest faxLineDeleteRequest, int operati /// /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo( + FaxLineDeleteRequest faxLineDeleteRequest, + int operationIndex = 0 + ) { // verify the required parameter 'faxLineDeleteRequest' is set if (faxLineDeleteRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineDeleteRequest' when calling FaxLineApi->FaxLineDelete"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'faxLineDeleteRequest' when calling FaxLineApi->FaxLineDelete" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineDeleteRequest.GetOpenApiTypes(); @@ -1095,9 +1460,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1110,19 +1473,32 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "FaxLineApi.FaxLineDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Delete("/fax_line", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete( + "/fax_line", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineDelete", localVarResponse); @@ -1143,9 +1519,19 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task FaxLineDeleteAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineDeleteAsync( + FaxLineDeleteRequest faxLineDeleteRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - await FaxLineDeleteWithHttpInfoAsync(faxLineDeleteRequest, operationIndex, cancellationToken).ConfigureAwait(false); + await FaxLineDeleteWithHttpInfoAsync( + faxLineDeleteRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); } /// @@ -1156,16 +1542,24 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync( + FaxLineDeleteRequest faxLineDeleteRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'faxLineDeleteRequest' is set if (faxLineDeleteRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineDeleteRequest' when calling FaxLineApi->FaxLineDelete"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'faxLineDeleteRequest' when calling FaxLineApi->FaxLineDelete" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineDeleteRequest.GetOpenApiTypes(); @@ -1181,9 +1575,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1196,19 +1588,35 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "FaxLineApi.FaxLineDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/fax_line", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.DeleteAsync( + "/fax_line", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1231,7 +1639,8 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine /// FaxLineResponse public FaxLineResponse FaxLineGet(string number, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineGetWithHttpInfo(number); + Dropbox.Sign.Client.ApiResponse localVarResponse = + FaxLineGetWithHttpInfo(number); return localVarResponse.Data; } @@ -1242,24 +1651,30 @@ public FaxLineResponse FaxLineGet(string number, int operationIndex = 0) /// The Fax Line number. /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(string number, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo( + string number, + int operationIndex = 0 + ) { // verify the required parameter 'number' is set if (number == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'number' when calling FaxLineApi->FaxLineGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'number' when calling FaxLineApi->FaxLineGet" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1272,20 +1687,36 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number) + ); localVarRequestOptions.Operation = "FaxLineApi.FaxLineGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/fax_line", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/fax_line", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineGet", localVarResponse); @@ -1306,9 +1737,16 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineGetAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineGetAsync( + string number, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineGetWithHttpInfoAsync(number, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await FaxLineGetWithHttpInfoAsync(number, operationIndex, cancellationToken) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1320,25 +1758,32 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync( + string number, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'number' is set if (number == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'number' when calling FaxLineApi->FaxLineGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'number' when calling FaxLineApi->FaxLineGet" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1351,20 +1796,39 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number) + ); localVarRequestOptions.Operation = "FaxLineApi.FaxLineGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/fax_line", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/fax_line", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1388,9 +1852,16 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Show team lines (optional) /// Index associated with the operation. /// FaxLineListResponse - public FaxLineListResponse FaxLineList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0) + public FaxLineListResponse FaxLineList( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + bool? showTeamLines = default(bool?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineListWithHttpInfo(accountId, page, pageSize, showTeamLines); + Dropbox.Sign.Client.ApiResponse localVarResponse = + FaxLineListWithHttpInfo(accountId, page, pageSize, showTeamLines); return localVarResponse.Data; } @@ -1404,18 +1875,24 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Show team lines (optional) /// Index associated with the operation. /// ApiResponse of FaxLineListResponse - public Dropbox.Sign.Client.ApiResponse FaxLineListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineListWithHttpInfo( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + bool? showTeamLines = default(bool?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1430,19 +1907,31 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s if (accountId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) + ); } if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } if (showTeamLines != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "show_team_lines", showTeamLines)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "show_team_lines", + showTeamLines + ) + ); } localVarRequestOptions.Operation = "FaxLineApi.FaxLineList"; @@ -1450,13 +1939,27 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/fax_line/list", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/fax_line/list", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineList", localVarResponse); @@ -1480,9 +1983,26 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineListResponse - public async System.Threading.Tasks.Task FaxLineListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineListAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + bool? showTeamLines = default(bool?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineListWithHttpInfoAsync(accountId, page, pageSize, showTeamLines, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await FaxLineListWithHttpInfoAsync( + accountId, + page, + pageSize, + showTeamLines, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1497,19 +2017,26 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineListResponse) - public async System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + bool? showTeamLines = default(bool?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1524,19 +2051,31 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s if (accountId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) + ); } if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } if (showTeamLines != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "show_team_lines", showTeamLines)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "show_team_lines", + showTeamLines + ) + ); } localVarRequestOptions.Operation = "FaxLineApi.FaxLineList"; @@ -1544,13 +2083,30 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/fax_line/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/fax_line/list", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1571,9 +2127,13 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0) + public FaxLineResponse FaxLineRemoveUser( + FaxLineRemoveUserRequest faxLineRemoveUserRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest); return localVarResponse.Data; } @@ -1584,15 +2144,22 @@ public FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveU /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHttpInfo( + FaxLineRemoveUserRequest faxLineRemoveUserRequest, + int operationIndex = 0 + ) { // verify the required parameter 'faxLineRemoveUserRequest' is set if (faxLineRemoveUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineRemoveUserRequest' when calling FaxLineApi->FaxLineRemoveUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'faxLineRemoveUserRequest' when calling FaxLineApi->FaxLineRemoveUser" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineRemoveUserRequest.GetOpenApiTypes(); @@ -1608,9 +2175,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1623,19 +2188,32 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Put("/fax_line/remove_user", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put( + "/fax_line/remove_user", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineRemoveUser", localVarResponse); @@ -1656,9 +2234,20 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineRemoveUserAsync( + FaxLineRemoveUserRequest faxLineRemoveUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineRemoveUserWithHttpInfoAsync(faxLineRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await FaxLineRemoveUserWithHttpInfoAsync( + faxLineRemoveUserRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1670,16 +2259,24 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync( + FaxLineRemoveUserRequest faxLineRemoveUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'faxLineRemoveUserRequest' is set if (faxLineRemoveUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineRemoveUserRequest' when calling FaxLineApi->FaxLineRemoveUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'faxLineRemoveUserRequest' when calling FaxLineApi->FaxLineRemoveUser" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineRemoveUserRequest.GetOpenApiTypes(); @@ -1695,9 +2292,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1710,19 +2305,35 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/fax_line/remove_user", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PutAsync( + "/fax_line/remove_user", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1735,6 +2346,5 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs index 2f651b2b8..9bce34fc6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,7 +36,10 @@ public interface IOAuthApiSync : IApiAccessor /// /// Index associated with the operation. /// OAuthTokenResponse - OAuthTokenResponse OauthTokenGenerate(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0); + OAuthTokenResponse OauthTokenGenerate( + OAuthTokenGenerateRequest oAuthTokenGenerateRequest, + int operationIndex = 0 + ); /// /// OAuth Token Generate @@ -49,7 +51,11 @@ public interface IOAuthApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of OAuthTokenResponse - ApiResponse OauthTokenGenerateWithHttpInfo(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0); + ApiResponse OauthTokenGenerateWithHttpInfo( + OAuthTokenGenerateRequest oAuthTokenGenerateRequest, + int operationIndex = 0 + ); + /// /// OAuth Token Refresh /// @@ -60,7 +66,10 @@ public interface IOAuthApiSync : IApiAccessor /// /// Index associated with the operation. /// OAuthTokenResponse - OAuthTokenResponse OauthTokenRefresh(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0); + OAuthTokenResponse OauthTokenRefresh( + OAuthTokenRefreshRequest oAuthTokenRefreshRequest, + int operationIndex = 0 + ); /// /// OAuth Token Refresh @@ -72,7 +81,10 @@ public interface IOAuthApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of OAuthTokenResponse - ApiResponse OauthTokenRefreshWithHttpInfo(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0); + ApiResponse OauthTokenRefreshWithHttpInfo( + OAuthTokenRefreshRequest oAuthTokenRefreshRequest, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -93,7 +105,12 @@ public interface IOAuthApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - System.Threading.Tasks.Task OauthTokenGenerateAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task OauthTokenGenerateAsync( + OAuthTokenGenerateRequest oAuthTokenGenerateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// OAuth Token Generate @@ -106,7 +123,15 @@ public interface IOAuthApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > OauthTokenGenerateWithHttpInfoAsync( + OAuthTokenGenerateRequest oAuthTokenGenerateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// OAuth Token Refresh /// @@ -118,7 +143,12 @@ public interface IOAuthApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - System.Threading.Tasks.Task OauthTokenRefreshAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task OauthTokenRefreshAsync( + OAuthTokenRefreshRequest oAuthTokenRefreshRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// OAuth Token Refresh @@ -131,17 +161,21 @@ public interface IOAuthApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > OauthTokenRefreshWithHttpInfoAsync( + OAuthTokenRefreshRequest oAuthTokenRefreshRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IOAuthApi : IOAuthApiSync, IOAuthApiAsync - { - - } + public interface IOAuthApi : IOAuthApiSync, IOAuthApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -154,9 +188,8 @@ public partial class OAuthApi : IOAuthApi /// Initializes a new instance of the class. /// /// - public OAuthApi() : this((string)null) - { - } + public OAuthApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -169,7 +202,9 @@ public OAuthApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -181,14 +216,17 @@ public OAuthApi(string basePath) /// public OAuthApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -199,11 +237,18 @@ public OAuthApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public OAuthApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public OAuthApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -245,7 +290,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -259,9 +306,13 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// OAuthTokenResponse - public OAuthTokenResponse OauthTokenGenerate(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0) + public OAuthTokenResponse OauthTokenGenerate( + OAuthTokenGenerateRequest oAuthTokenGenerateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = OauthTokenGenerateWithHttpInfo(oAuthTokenGenerateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + OauthTokenGenerateWithHttpInfo(oAuthTokenGenerateRequest); return localVarResponse.Data; } @@ -272,15 +323,22 @@ public OAuthTokenResponse OauthTokenGenerate(OAuthTokenGenerateRequest oAuthToke /// /// Index associated with the operation. /// ApiResponse of OAuthTokenResponse - public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWithHttpInfo(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWithHttpInfo( + OAuthTokenGenerateRequest oAuthTokenGenerateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'oAuthTokenGenerateRequest' is set if (oAuthTokenGenerateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'oAuthTokenGenerateRequest' when calling OAuthApi->OauthTokenGenerate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'oAuthTokenGenerateRequest' when calling OAuthApi->OauthTokenGenerate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = oAuthTokenGenerateRequest.GetOpenApiTypes(); @@ -296,9 +354,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -311,16 +367,21 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "OAuthApi.OauthTokenGenerate"; localVarRequestOptions.OperationIndex = operationIndex; - // make the HTTP request - var localVarResponse = this.Client.Post("/oauth/token", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/oauth/token", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("OauthTokenGenerate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "OauthTokenGenerate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -338,9 +399,20 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - public async System.Threading.Tasks.Task OauthTokenGenerateAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task OauthTokenGenerateAsync( + OAuthTokenGenerateRequest oAuthTokenGenerateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await OauthTokenGenerateWithHttpInfoAsync(oAuthTokenGenerateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await OauthTokenGenerateWithHttpInfoAsync( + oAuthTokenGenerateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -352,16 +424,24 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - public async System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync( + OAuthTokenGenerateRequest oAuthTokenGenerateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'oAuthTokenGenerateRequest' is set if (oAuthTokenGenerateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'oAuthTokenGenerateRequest' when calling OAuthApi->OauthTokenGenerate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'oAuthTokenGenerateRequest' when calling OAuthApi->OauthTokenGenerate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = oAuthTokenGenerateRequest.GetOpenApiTypes(); @@ -377,9 +457,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -392,17 +470,25 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "OAuthApi.OauthTokenGenerate"; localVarRequestOptions.OperationIndex = operationIndex; - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/oauth/token", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/oauth/token", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("OauthTokenGenerate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "OauthTokenGenerate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -419,9 +505,13 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit /// /// Index associated with the operation. /// OAuthTokenResponse - public OAuthTokenResponse OauthTokenRefresh(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0) + public OAuthTokenResponse OauthTokenRefresh( + OAuthTokenRefreshRequest oAuthTokenRefreshRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = OauthTokenRefreshWithHttpInfo(oAuthTokenRefreshRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + OauthTokenRefreshWithHttpInfo(oAuthTokenRefreshRequest); return localVarResponse.Data; } @@ -432,15 +522,22 @@ public OAuthTokenResponse OauthTokenRefresh(OAuthTokenRefreshRequest oAuthTokenR /// /// Index associated with the operation. /// ApiResponse of OAuthTokenResponse - public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWithHttpInfo(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWithHttpInfo( + OAuthTokenRefreshRequest oAuthTokenRefreshRequest, + int operationIndex = 0 + ) { // verify the required parameter 'oAuthTokenRefreshRequest' is set if (oAuthTokenRefreshRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'oAuthTokenRefreshRequest' when calling OAuthApi->OauthTokenRefresh"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'oAuthTokenRefreshRequest' when calling OAuthApi->OauthTokenRefresh" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = oAuthTokenRefreshRequest.GetOpenApiTypes(); @@ -456,9 +553,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -471,13 +566,15 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "OAuthApi.OauthTokenRefresh"; localVarRequestOptions.OperationIndex = operationIndex; - // make the HTTP request - var localVarResponse = this.Client.Post("/oauth/token?refresh", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/oauth/token?refresh", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("OauthTokenRefresh", localVarResponse); @@ -498,9 +595,20 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - public async System.Threading.Tasks.Task OauthTokenRefreshAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task OauthTokenRefreshAsync( + OAuthTokenRefreshRequest oAuthTokenRefreshRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await OauthTokenRefreshWithHttpInfoAsync(oAuthTokenRefreshRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await OauthTokenRefreshWithHttpInfoAsync( + oAuthTokenRefreshRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -512,16 +620,24 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - public async System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync( + OAuthTokenRefreshRequest oAuthTokenRefreshRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'oAuthTokenRefreshRequest' is set if (oAuthTokenRefreshRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'oAuthTokenRefreshRequest' when calling OAuthApi->OauthTokenRefresh"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'oAuthTokenRefreshRequest' when calling OAuthApi->OauthTokenRefresh" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = oAuthTokenRefreshRequest.GetOpenApiTypes(); @@ -537,9 +653,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -552,13 +666,18 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "OAuthApi.OauthTokenRefresh"; localVarRequestOptions.OperationIndex = operationIndex; - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/oauth/token?refresh", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/oauth/token?refresh", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -571,6 +690,5 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs index 72b26187a..a2629d868 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,7 +36,10 @@ public interface IReportApiSync : IApiAccessor /// /// Index associated with the operation. /// ReportCreateResponse - ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, int operationIndex = 0); + ReportCreateResponse ReportCreate( + ReportCreateRequest reportCreateRequest, + int operationIndex = 0 + ); /// /// Create Report @@ -49,7 +51,10 @@ public interface IReportApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of ReportCreateResponse - ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, int operationIndex = 0); + ApiResponse ReportCreateWithHttpInfo( + ReportCreateRequest reportCreateRequest, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -70,7 +75,12 @@ public interface IReportApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ReportCreateAsync( + ReportCreateRequest reportCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Report @@ -83,17 +93,21 @@ public interface IReportApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > ReportCreateWithHttpInfoAsync( + ReportCreateRequest reportCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IReportApi : IReportApiSync, IReportApiAsync - { - - } + public interface IReportApi : IReportApiSync, IReportApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -106,9 +120,8 @@ public partial class ReportApi : IReportApi /// Initializes a new instance of the class. /// /// - public ReportApi() : this((string)null) - { - } + public ReportApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -121,7 +134,9 @@ public ReportApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -133,14 +148,17 @@ public ReportApi(string basePath) /// public ReportApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -151,11 +169,18 @@ public ReportApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public ReportApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public ReportApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -197,7 +222,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -211,9 +238,13 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// ReportCreateResponse - public ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, int operationIndex = 0) + public ReportCreateResponse ReportCreate( + ReportCreateRequest reportCreateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ReportCreateWithHttpInfo(reportCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + ReportCreateWithHttpInfo(reportCreateRequest); return localVarResponse.Data; } @@ -224,15 +255,22 @@ public ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest /// /// Index associated with the operation. /// ApiResponse of ReportCreateResponse - public Dropbox.Sign.Client.ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ReportCreateWithHttpInfo( + ReportCreateRequest reportCreateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'reportCreateRequest' is set if (reportCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'reportCreateRequest' when calling ReportApi->ReportCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'reportCreateRequest' when calling ReportApi->ReportCreate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = reportCreateRequest.GetOpenApiTypes(); @@ -248,9 +286,7 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -263,19 +299,32 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/report/create", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/report/create", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ReportCreate", localVarResponse); @@ -296,9 +345,20 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - public async System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ReportCreateAsync( + ReportCreateRequest reportCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ReportCreateWithHttpInfoAsync(reportCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await ReportCreateWithHttpInfoAsync( + reportCreateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -310,16 +370,24 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync( + ReportCreateRequest reportCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'reportCreateRequest' is set if (reportCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'reportCreateRequest' when calling ReportApi->ReportCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'reportCreateRequest' when calling ReportApi->ReportCreate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = reportCreateRequest.GetOpenApiTypes(); @@ -335,9 +403,7 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -350,19 +416,35 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/report/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/report/create", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -375,6 +457,5 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs index 0e84330f1..18262c399 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,7 +36,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// BulkSendJobSendResponse - BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ); /// /// Embedded Bulk Send with Template @@ -49,7 +51,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ); + /// /// Bulk Send with Template /// @@ -60,7 +66,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// BulkSendJobSendResponse - BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0); + BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + int operationIndex = 0 + ); /// /// Bulk Send with Template @@ -72,7 +81,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + int operationIndex = 0 + ); + /// /// Cancel Incomplete Signature Request /// @@ -95,7 +108,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// The id of the incomplete SignatureRequest to cancel. /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, int operationIndex = 0); + ApiResponse SignatureRequestCancelWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ); + /// /// Create Embedded Signature Request /// @@ -106,7 +123,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestCreateEmbedded( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + int operationIndex = 0 + ); /// /// Create Embedded Signature Request @@ -118,7 +138,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0); + ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + int operationIndex = 0 + ); + /// /// Create Embedded Signature Request with Template /// @@ -129,7 +153,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate( + SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ); /// /// Create Embedded Signature Request with Template @@ -141,7 +168,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo( + SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ); + /// /// Download Files /// @@ -153,7 +184,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) /// Index associated with the operation. /// System.IO.Stream - System.IO.Stream SignatureRequestFiles(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0); + System.IO.Stream SignatureRequestFiles( + string signatureRequestId, + string? fileType = default(string?), + int operationIndex = 0 + ); /// /// Download Files @@ -166,7 +201,12 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) /// Index associated with the operation. /// ApiResponse of System.IO.Stream - ApiResponse SignatureRequestFilesWithHttpInfo(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestFilesWithHttpInfo( + string signatureRequestId, + string? fileType = default(string?), + int operationIndex = 0 + ); + /// /// Download Files as Data Uri /// @@ -177,7 +217,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// FileResponseDataUri - FileResponseDataUri SignatureRequestFilesAsDataUri(string signatureRequestId, int operationIndex = 0); + FileResponseDataUri SignatureRequestFilesAsDataUri( + string signatureRequestId, + int operationIndex = 0 + ); /// /// Download Files as Data Uri @@ -189,7 +232,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// ApiResponse of FileResponseDataUri - ApiResponse SignatureRequestFilesAsDataUriWithHttpInfo(string signatureRequestId, int operationIndex = 0); + ApiResponse SignatureRequestFilesAsDataUriWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ); + /// /// Download Files as File Url /// @@ -201,7 +248,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// FileResponse - FileResponse SignatureRequestFilesAsFileUrl(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0); + FileResponse SignatureRequestFilesAsFileUrl( + string signatureRequestId, + int? forceDownload = default(int?), + int operationIndex = 0 + ); /// /// Download Files as File Url @@ -214,7 +265,12 @@ public interface ISignatureRequestApiSync : IApiAccessor /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// ApiResponse of FileResponse - ApiResponse SignatureRequestFilesAsFileUrlWithHttpInfo(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0); + ApiResponse SignatureRequestFilesAsFileUrlWithHttpInfo( + string signatureRequestId, + int? forceDownload = default(int?), + int operationIndex = 0 + ); + /// /// Get Signature Request /// @@ -225,7 +281,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestGet(string signatureRequestId, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestGet( + string signatureRequestId, + int operationIndex = 0 + ); /// /// Get Signature Request @@ -237,7 +296,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestGetWithHttpInfo(string signatureRequestId, int operationIndex = 0); + ApiResponse SignatureRequestGetWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ); + /// /// List Signature Requests /// @@ -251,7 +314,13 @@ public interface ISignatureRequestApiSync : IApiAccessor /// String that includes search terms and/or fields to be used to filter the SignatureRequest objects. (optional) /// Index associated with the operation. /// SignatureRequestListResponse - SignatureRequestListResponse SignatureRequestList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0); + SignatureRequestListResponse SignatureRequestList( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0 + ); /// /// List Signature Requests @@ -266,7 +335,14 @@ public interface ISignatureRequestApiSync : IApiAccessor /// String that includes search terms and/or fields to be used to filter the SignatureRequest objects. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestListResponse - ApiResponse SignatureRequestListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestListWithHttpInfo( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0 + ); + /// /// Release On-Hold Signature Request /// @@ -277,7 +353,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// The id of the SignatureRequest to release. /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestReleaseHold( + string signatureRequestId, + int operationIndex = 0 + ); /// /// Release On-Hold Signature Request @@ -289,7 +368,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// The id of the SignatureRequest to release. /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, int operationIndex = 0); + ApiResponse SignatureRequestReleaseHoldWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ); + /// /// Send Request Reminder /// @@ -301,7 +384,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestRemind( + string signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + int operationIndex = 0 + ); /// /// Send Request Reminder @@ -314,7 +401,12 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0); + ApiResponse SignatureRequestRemindWithHttpInfo( + string signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + int operationIndex = 0 + ); + /// /// Remove Signature Request Access /// @@ -337,7 +429,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// The id of the SignatureRequest to remove. /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, int operationIndex = 0); + ApiResponse SignatureRequestRemoveWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ); + /// /// Send Signature Request /// @@ -348,7 +444,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestSend( + SignatureRequestSendRequest signatureRequestSendRequest, + int operationIndex = 0 + ); /// /// Send Signature Request @@ -360,7 +459,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0); + ApiResponse SignatureRequestSendWithHttpInfo( + SignatureRequestSendRequest signatureRequestSendRequest, + int operationIndex = 0 + ); + /// /// Send with Template /// @@ -371,7 +474,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestSendWithTemplate( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + int operationIndex = 0 + ); /// /// Send with Template @@ -383,7 +489,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestSendWithTemplateWithHttpInfo( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + int operationIndex = 0 + ); + /// /// Update Signature Request /// @@ -395,7 +505,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestUpdate( + string signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + int operationIndex = 0 + ); /// /// Update Signature Request @@ -408,7 +522,11 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0); + ApiResponse SignatureRequestUpdateWithHttpInfo( + string signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -429,7 +547,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Embedded Bulk Send with Template @@ -442,7 +565,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Bulk Send with Template /// @@ -454,7 +585,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Bulk Send with Template @@ -467,7 +603,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestBulkSendWithTemplateWithHttpInfoAsync( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Cancel Incomplete Signature Request /// @@ -479,7 +623,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCancelAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Cancel Incomplete Signature Request @@ -492,7 +641,13 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Create Embedded Signature Request /// @@ -504,7 +659,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Embedded Signature Request @@ -517,7 +677,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestCreateEmbeddedWithHttpInfoAsync( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Create Embedded Signature Request with Template /// @@ -529,7 +697,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync( + SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Embedded Signature Request with Template @@ -542,7 +715,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( + SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Download Files /// @@ -555,7 +736,13 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - System.Threading.Tasks.Task SignatureRequestFilesAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestFilesAsync( + string signatureRequestId, + string? fileType = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Download Files @@ -569,7 +756,16 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestFilesWithHttpInfoAsync( + string signatureRequestId, + string? fileType = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Download Files as Data Uri /// @@ -581,7 +777,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Download Files as Data Uri @@ -594,7 +795,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestFilesAsDataUriWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Download Files as File Url /// @@ -607,7 +816,13 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync( + string signatureRequestId, + int? forceDownload = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Download Files as File Url @@ -621,7 +836,16 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestFilesAsFileUrlWithHttpInfoAsync( + string signatureRequestId, + int? forceDownload = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Signature Request /// @@ -633,7 +857,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestGetAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestGetAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Signature Request @@ -646,7 +875,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestGetWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// List Signature Requests /// @@ -661,7 +898,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestListResponse - System.Threading.Tasks.Task SignatureRequestListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestListAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// List Signature Requests @@ -677,7 +922,18 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestListResponse) - System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestListWithHttpInfoAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Release On-Hold Signature Request /// @@ -689,7 +945,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Release On-Hold Signature Request @@ -702,7 +963,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestReleaseHoldWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Send Request Reminder /// @@ -715,7 +984,13 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestRemindAsync( + string signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Send Request Reminder @@ -729,7 +1004,16 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestRemindWithHttpInfoAsync( + string signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Remove Signature Request Access /// @@ -741,7 +1025,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestRemoveAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Remove Signature Request Access @@ -754,7 +1043,13 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Send Signature Request /// @@ -766,7 +1061,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestSendAsync( + SignatureRequestSendRequest signatureRequestSendRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Send Signature Request @@ -779,7 +1079,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestSendWithHttpInfoAsync( + SignatureRequestSendRequest signatureRequestSendRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Send with Template /// @@ -791,7 +1099,12 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Send with Template @@ -804,7 +1117,15 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestSendWithTemplateWithHttpInfoAsync( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Update Signature Request /// @@ -817,7 +1138,13 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestUpdateAsync( + string signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Update Signature Request @@ -831,17 +1158,22 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > SignatureRequestUpdateWithHttpInfoAsync( + string signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface ISignatureRequestApi : ISignatureRequestApiSync, ISignatureRequestApiAsync - { - - } + public interface ISignatureRequestApi : ISignatureRequestApiSync, ISignatureRequestApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -854,9 +1186,8 @@ public partial class SignatureRequestApi : ISignatureRequestApi /// Initializes a new instance of the class. /// /// - public SignatureRequestApi() : this((string)null) - { - } + public SignatureRequestApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -869,7 +1200,9 @@ public SignatureRequestApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -881,14 +1214,17 @@ public SignatureRequestApi(string basePath) /// public SignatureRequestApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -899,11 +1235,18 @@ public SignatureRequestApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public SignatureRequestApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public SignatureRequestApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -945,7 +1288,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -959,9 +1304,15 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// BulkSendJobSendResponse - public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( + signatureRequestBulkCreateEmbeddedWithTemplateRequest + ); return localVarResponse.Data; } @@ -972,18 +1323,26 @@ public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(Si /// /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' is set if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkCreateEmbeddedWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkCreateEmbeddedWithTemplate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; - var openApiTypes = signatureRequestBulkCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); + var openApiTypes = + signatureRequestBulkCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); if (ClientUtils.HasFileType(openApiTypes)) { ClientUtils.SetFormData(localVarRequestOptions, openApiTypes); @@ -996,9 +1355,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1011,22 +1368,39 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; + localVarRequestOptions.Operation = + "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/bulk_create_embedded_with_template", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/bulk_create_embedded_with_template", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestBulkCreateEmbeddedWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestBulkCreateEmbeddedWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1044,9 +1418,20 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestBulkCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( + signatureRequestBulkCreateEmbeddedWithTemplateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1058,19 +1443,28 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' is set if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkCreateEmbeddedWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkCreateEmbeddedWithTemplate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; - var openApiTypes = signatureRequestBulkCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); + var openApiTypes = + signatureRequestBulkCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); if (ClientUtils.HasFileType(openApiTypes)) { ClientUtils.SetFormData(localVarRequestOptions, openApiTypes); @@ -1083,9 +1477,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1098,23 +1490,43 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; + localVarRequestOptions.Operation = + "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/bulk_create_embedded_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/bulk_create_embedded_with_template", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestBulkCreateEmbeddedWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestBulkCreateEmbeddedWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1131,9 +1543,15 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// /// Index associated with the operation. /// BulkSendJobSendResponse - public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0) + public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestBulkSendWithTemplateWithHttpInfo( + signatureRequestBulkSendWithTemplateRequest + ); return localVarResponse.Data; } @@ -1144,15 +1562,22 @@ public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureReq /// /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestBulkSendWithTemplateRequest' is set if (signatureRequestBulkSendWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkSendWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkSendWithTemplate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestBulkSendWithTemplateRequest.GetOpenApiTypes(); @@ -1168,9 +1593,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1183,28 +1606,51 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; + localVarRequestOptions.Operation = + "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/bulk_send_with_template", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/bulk_send_with_template", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestBulkSendWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestBulkSendWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1222,9 +1668,20 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(signatureRequestBulkSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync( + signatureRequestBulkSendWithTemplateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1236,16 +1693,24 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestBulkSendWithTemplateRequest' is set if (signatureRequestBulkSendWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkSendWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkSendWithTemplate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestBulkSendWithTemplateRequest.GetOpenApiTypes(); @@ -1261,9 +1726,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1276,29 +1739,55 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; + localVarRequestOptions.Operation = + "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/bulk_send_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/bulk_send_with_template", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestBulkSendWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestBulkSendWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1327,24 +1816,30 @@ public void SignatureRequestCancel(string signatureRequestId, int operationIndex /// The id of the incomplete SignatureRequest to cancel. /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestCancel"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestCancel" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1357,29 +1852,55 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/cancel/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/cancel/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestCancel", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestCancel", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1397,9 +1918,19 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCancelAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - await SignatureRequestCancelWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); + await SignatureRequestCancelWithHttpInfoAsync( + signatureRequestId, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); } /// @@ -1410,25 +1941,32 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestCancel"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestCancel" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1441,30 +1979,59 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/cancel/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/cancel/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestCancel", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestCancel", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1481,9 +2048,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestCreateEmbedded( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest); return localVarResponse.Data; } @@ -1494,15 +2065,22 @@ public SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureReque /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestCreateEmbeddedRequest' is set if (signatureRequestCreateEmbeddedRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestCreateEmbeddedRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbedded"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestCreateEmbeddedRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbedded" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestCreateEmbeddedRequest.GetOpenApiTypes(); @@ -1518,9 +2096,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1533,28 +2109,50 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/create_embedded", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/create_embedded", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestCreateEmbedded", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestCreateEmbedded", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1572,9 +2170,20 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithHttpInfoAsync(signatureRequestCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestCreateEmbeddedWithHttpInfoAsync( + signatureRequestCreateEmbeddedRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1586,16 +2195,24 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestCreateEmbeddedRequest' is set if (signatureRequestCreateEmbeddedRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestCreateEmbeddedRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbedded"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestCreateEmbeddedRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbedded" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestCreateEmbeddedRequest.GetOpenApiTypes(); @@ -1611,9 +2228,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1626,29 +2241,54 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/create_embedded", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/create_embedded", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestCreateEmbedded", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestCreateEmbedded", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1665,9 +2305,15 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate( + SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo( + signatureRequestCreateEmbeddedWithTemplateRequest + ); return localVarResponse.Data; } @@ -1678,15 +2324,22 @@ public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(Si /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo( + SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' is set if (signatureRequestCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbeddedWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbeddedWithTemplate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); @@ -1702,9 +2355,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1717,28 +2368,51 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; + localVarRequestOptions.Operation = + "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/create_embedded_with_template", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/create_embedded_with_template", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestCreateEmbeddedWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestCreateEmbeddedWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1756,9 +2430,20 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync( + SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( + signatureRequestCreateEmbeddedWithTemplateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1770,16 +2455,24 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( + SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' is set if (signatureRequestCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbeddedWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbeddedWithTemplate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); @@ -1795,9 +2488,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1810,29 +2501,55 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; + localVarRequestOptions.Operation = + "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/create_embedded_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/create_embedded_with_template", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestCreateEmbeddedWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestCreateEmbeddedWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1850,9 +2567,14 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) /// Index associated with the operation. /// System.IO.Stream - public System.IO.Stream SignatureRequestFiles(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0) + public System.IO.Stream SignatureRequestFiles( + string signatureRequestId, + string? fileType = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestFilesWithHttpInfo(signatureRequestId, fileType); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestFilesWithHttpInfo(signatureRequestId, fileType); return localVarResponse.Data; } @@ -1864,25 +2586,35 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) /// Index associated with the operation. /// ApiResponse of System.IO.Stream - public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesWithHttpInfo(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesWithHttpInfo( + string signatureRequestId, + string? fileType = default(string?), + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFiles"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFiles" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { + string[] _accepts = new string[] + { "application/pdf", "application/zip", - "application/json" + "application/json", }; if (localVarContentType != null) @@ -1896,10 +2628,15 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter if (fileType != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType) + ); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFiles"; @@ -1907,22 +2644,45 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/signature_request/files/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/signature_request/files/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestFiles", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestFiles", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1941,9 +2701,22 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task SignatureRequestFilesAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestFilesAsync( + string signatureRequestId, + string? fileType = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestFilesWithHttpInfoAsync(signatureRequestId, fileType, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestFilesWithHttpInfoAsync( + signatureRequestId, + fileType, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1956,26 +2729,37 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync( + string signatureRequestId, + string? fileType = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFiles"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFiles" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { + string[] _accepts = new string[] + { "application/pdf", "application/zip", - "application/json" + "application/json", }; if (localVarContentType != null) @@ -1989,10 +2773,15 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter if (fileType != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType) + ); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFiles"; @@ -2000,23 +2789,49 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/files/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/signature_request/files/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestFiles", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestFiles", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2033,9 +2848,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// FileResponseDataUri - public FileResponseDataUri SignatureRequestFilesAsDataUri(string signatureRequestId, int operationIndex = 0) + public FileResponseDataUri SignatureRequestFilesAsDataUri( + string signatureRequestId, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestFilesAsDataUriWithHttpInfo(signatureRequestId); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestFilesAsDataUriWithHttpInfo(signatureRequestId); return localVarResponse.Data; } @@ -2046,24 +2865,30 @@ public FileResponseDataUri SignatureRequestFilesAsDataUri(string signatureReques /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// ApiResponse of FileResponseDataUri - public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsDataUriWithHttpInfo(string signatureRequestId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsDataUriWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsDataUri"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsDataUri" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2076,29 +2901,55 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/signature_request/files_as_data_uri/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/signature_request/files_as_data_uri/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestFilesAsDataUri", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestFilesAsDataUri", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2116,9 +2967,20 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - public async System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestFilesAsDataUriWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestFilesAsDataUriWithHttpInfoAsync( + signatureRequestId, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2130,25 +2992,32 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - public async System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsDataUri"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsDataUri" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2161,30 +3030,59 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/files_as_data_uri/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/signature_request/files_as_data_uri/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestFilesAsDataUri", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestFilesAsDataUri", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2202,9 +3100,14 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// FileResponse - public FileResponse SignatureRequestFilesAsFileUrl(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0) + public FileResponse SignatureRequestFilesAsFileUrl( + string signatureRequestId, + int? forceDownload = default(int?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestFilesAsFileUrlWithHttpInfo(signatureRequestId, forceDownload); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestFilesAsFileUrlWithHttpInfo(signatureRequestId, forceDownload); return localVarResponse.Data; } @@ -2216,24 +3119,31 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// ApiResponse of FileResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsFileUrlWithHttpInfo(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsFileUrlWithHttpInfo( + string signatureRequestId, + int? forceDownload = default(int?), + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsFileUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsFileUrl" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2246,10 +3156,19 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter if (forceDownload != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "force_download", + forceDownload + ) + ); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsFileUrl"; @@ -2257,22 +3176,45 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/signature_request/files_as_file_url/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/signature_request/files_as_file_url/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestFilesAsFileUrl", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestFilesAsFileUrl", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2291,9 +3233,22 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - public async System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync( + string signatureRequestId, + int? forceDownload = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestFilesAsFileUrlWithHttpInfoAsync(signatureRequestId, forceDownload, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestFilesAsFileUrlWithHttpInfoAsync( + signatureRequestId, + forceDownload, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2306,25 +3261,33 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - public async System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync( + string signatureRequestId, + int? forceDownload = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsFileUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsFileUrl" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2337,10 +3300,19 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter if (forceDownload != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "force_download", + forceDownload + ) + ); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsFileUrl"; @@ -2348,23 +3320,49 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/files_as_file_url/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/signature_request/files_as_file_url/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestFilesAsFileUrl", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestFilesAsFileUrl", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2381,9 +3379,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestGet(string signatureRequestId, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestGet( + string signatureRequestId, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestGetWithHttpInfo(signatureRequestId); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestGetWithHttpInfo(signatureRequestId); return localVarResponse.Data; } @@ -2394,24 +3396,30 @@ public SignatureRequestGetResponse SignatureRequestGet(string signatureRequestId /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestGetWithHttpInfo(string signatureRequestId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestGetWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestGet" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2424,29 +3432,55 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/signature_request/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/signature_request/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestGet", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestGet", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2464,9 +3498,20 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestGetAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestGetAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestGetWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestGetWithHttpInfoAsync( + signatureRequestId, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2478,25 +3523,32 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestGet" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2509,30 +3561,59 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/signature_request/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestGet", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestGet", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2552,9 +3633,16 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// String that includes search terms and/or fields to be used to filter the SignatureRequest objects. (optional) /// Index associated with the operation. /// SignatureRequestListResponse - public SignatureRequestListResponse SignatureRequestList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0) + public SignatureRequestListResponse SignatureRequestList( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestListWithHttpInfo(accountId, page, pageSize, query); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestListWithHttpInfo(accountId, page, pageSize, query); return localVarResponse.Data; } @@ -2568,18 +3656,24 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// String that includes search terms and/or fields to be used to filter the SignatureRequest objects. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestListResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestListWithHttpInfo( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2594,19 +3688,27 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq if (accountId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) + ); } if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } if (query != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query) + ); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestList"; @@ -2614,22 +3716,45 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/signature_request/list", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/signature_request/list", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestList", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestList", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2650,9 +3775,26 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestListResponse - public async System.Threading.Tasks.Task SignatureRequestListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestListAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestListWithHttpInfoAsync(accountId, page, pageSize, query, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestListWithHttpInfoAsync( + accountId, + page, + pageSize, + query, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2667,19 +3809,26 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestListResponse) - public async System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2694,19 +3843,27 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq if (accountId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) + ); } if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } if (query != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query) + ); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestList"; @@ -2714,23 +3871,49 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/signature_request/list", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestList", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestList", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2747,9 +3930,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// The id of the SignatureRequest to release. /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestReleaseHold( + string signatureRequestId, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId); return localVarResponse.Data; } @@ -2760,24 +3947,30 @@ public SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureR /// The id of the SignatureRequest to release. /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestReleaseHoldWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestReleaseHold"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestReleaseHold" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2790,29 +3983,55 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/release_hold/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/release_hold/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestReleaseHold", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestReleaseHold", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2830,9 +4049,20 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestReleaseHoldWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestReleaseHoldWithHttpInfoAsync( + signatureRequestId, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2844,25 +4074,32 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestReleaseHold"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestReleaseHold" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2875,30 +4112,59 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/release_hold/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/release_hold/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestReleaseHold", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestReleaseHold", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2916,9 +4182,17 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestRemind( + string signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestRemindWithHttpInfo( + signatureRequestId, + signatureRequestRemindRequest + ); return localVarResponse.Data; } @@ -2930,21 +4204,32 @@ public SignatureRequestGetResponse SignatureRequestRemind(string signatureReques /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestRemindWithHttpInfo( + string signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemind"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemind" + ); } // verify the required parameter 'signatureRequestRemindRequest' is set if (signatureRequestRemindRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestRemindRequest' when calling SignatureRequestApi->SignatureRequestRemind"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestRemindRequest' when calling SignatureRequestApi->SignatureRequestRemind" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestRemindRequest.GetOpenApiTypes(); @@ -2960,9 +4245,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2975,29 +4258,55 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/remind/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/remind/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestRemind", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestRemind", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3016,9 +4325,22 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestRemindAsync( + string signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestRemindWithHttpInfoAsync(signatureRequestId, signatureRequestRemindRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestRemindWithHttpInfoAsync( + signatureRequestId, + signatureRequestRemindRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -3031,22 +4353,34 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync( + string signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemind"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemind" + ); } // verify the required parameter 'signatureRequestRemindRequest' is set if (signatureRequestRemindRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestRemindRequest' when calling SignatureRequestApi->SignatureRequestRemind"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestRemindRequest' when calling SignatureRequestApi->SignatureRequestRemind" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestRemindRequest.GetOpenApiTypes(); @@ -3062,9 +4396,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -3077,30 +4409,59 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/remind/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/remind/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestRemind", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestRemind", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3129,24 +4490,30 @@ public void SignatureRequestRemove(string signatureRequestId, int operationIndex /// The id of the SignatureRequest to remove. /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInfo( + string signatureRequestId, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemove"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemove" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -3159,23 +4526,43 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/remove/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/remove/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestRemove", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestRemove", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3193,9 +4580,19 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestRemoveAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - await SignatureRequestRemoveWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); + await SignatureRequestRemoveWithHttpInfoAsync( + signatureRequestId, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); } /// @@ -3206,25 +4603,32 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync( + string signatureRequestId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemove"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemove" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -3237,24 +4641,47 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/remove/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/remove/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestRemove", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestRemove", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3271,9 +4698,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestSend( + SignatureRequestSendRequest signatureRequestSendRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithHttpInfo(signatureRequestSendRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestSendWithHttpInfo(signatureRequestSendRequest); return localVarResponse.Data; } @@ -3284,15 +4715,22 @@ public SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequ /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithHttpInfo( + SignatureRequestSendRequest signatureRequestSendRequest, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestSendRequest' is set if (signatureRequestSendRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestSendRequest' when calling SignatureRequestApi->SignatureRequestSend"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestSendRequest' when calling SignatureRequestApi->SignatureRequestSend" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestSendRequest.GetOpenApiTypes(); @@ -3308,9 +4746,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -3323,28 +4759,50 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/send", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/send", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestSend", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestSend", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3362,9 +4820,20 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestSendAsync( + SignatureRequestSendRequest signatureRequestSendRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithHttpInfoAsync(signatureRequestSendRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestSendWithHttpInfoAsync( + signatureRequestSendRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -3376,16 +4845,24 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync( + SignatureRequestSendRequest signatureRequestSendRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestSendRequest' is set if (signatureRequestSendRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestSendRequest' when calling SignatureRequestApi->SignatureRequestSend"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestSendRequest' when calling SignatureRequestApi->SignatureRequestSend" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestSendRequest.GetOpenApiTypes(); @@ -3401,9 +4878,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -3416,29 +4891,54 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/send", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/send", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestSend", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestSend", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3455,9 +4955,15 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestSendWithTemplate( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestSendWithTemplateWithHttpInfo( + signatureRequestSendWithTemplateRequest + ); return localVarResponse.Data; } @@ -3468,15 +4974,22 @@ public SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureReq /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithTemplateWithHttpInfo( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestSendWithTemplateRequest' is set if (signatureRequestSendWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestSendWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestSendWithTemplate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestSendWithTemplateRequest.GetOpenApiTypes(); @@ -3492,9 +5005,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -3507,28 +5018,51 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; + localVarRequestOptions.Operation = + "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/send_with_template", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/send_with_template", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestSendWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestSendWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3546,9 +5080,20 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithTemplateWithHttpInfoAsync(signatureRequestSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestSendWithTemplateWithHttpInfoAsync( + signatureRequestSendWithTemplateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -3560,16 +5105,24 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestSendWithTemplateRequest' is set if (signatureRequestSendWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestSendWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestSendWithTemplate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestSendWithTemplateRequest.GetOpenApiTypes(); @@ -3585,9 +5138,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -3600,29 +5151,55 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; + localVarRequestOptions.Operation = + "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/send_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/send_with_template", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestSendWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestSendWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3640,9 +5217,17 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestUpdate( + string signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + SignatureRequestUpdateWithHttpInfo( + signatureRequestId, + signatureRequestUpdateRequest + ); return localVarResponse.Data; } @@ -3654,21 +5239,32 @@ public SignatureRequestGetResponse SignatureRequestUpdate(string signatureReques /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestUpdateWithHttpInfo( + string signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestUpdate" + ); } // verify the required parameter 'signatureRequestUpdateRequest' is set if (signatureRequestUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestUpdateRequest' when calling SignatureRequestApi->SignatureRequestUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestUpdateRequest' when calling SignatureRequestApi->SignatureRequestUpdate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestUpdateRequest.GetOpenApiTypes(); @@ -3684,9 +5280,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -3699,29 +5293,55 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/signature_request/update/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/signature_request/update/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestUpdate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestUpdate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3740,9 +5360,22 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestUpdateAsync( + string signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestUpdateWithHttpInfoAsync(signatureRequestId, signatureRequestUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await SignatureRequestUpdateWithHttpInfoAsync( + signatureRequestId, + signatureRequestUpdateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -3755,22 +5388,34 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync( + string signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestUpdate" + ); } // verify the required parameter 'signatureRequestUpdateRequest' is set if (signatureRequestUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestUpdateRequest' when calling SignatureRequestApi->SignatureRequestUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestUpdateRequest' when calling SignatureRequestApi->SignatureRequestUpdate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestUpdateRequest.GetOpenApiTypes(); @@ -3786,9 +5431,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -3801,30 +5444,59 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/update/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/signature_request/update/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SignatureRequestUpdate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "SignatureRequestUpdate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -3833,6 +5505,5 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs index b309fb316..72b89678f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -38,7 +37,11 @@ public interface ITeamApiSync : IApiAccessor /// The id of the team. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0); + TeamGetResponse TeamAddMember( + TeamAddMemberRequest teamAddMemberRequest, + string? teamId = default(string?), + int operationIndex = 0 + ); /// /// Add User to Team @@ -51,7 +54,12 @@ public interface ITeamApiSync : IApiAccessor /// The id of the team. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0); + ApiResponse TeamAddMemberWithHttpInfo( + TeamAddMemberRequest teamAddMemberRequest, + string? teamId = default(string?), + int operationIndex = 0 + ); + /// /// Create Team /// @@ -74,7 +82,11 @@ public interface ITeamApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, int operationIndex = 0); + ApiResponse TeamCreateWithHttpInfo( + TeamCreateRequest teamCreateRequest, + int operationIndex = 0 + ); + /// /// Delete Team /// @@ -96,6 +108,7 @@ public interface ITeamApiSync : IApiAccessor /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse TeamDeleteWithHttpInfo(int operationIndex = 0); + /// /// Get Team /// @@ -117,6 +130,7 @@ public interface ITeamApiSync : IApiAccessor /// Index associated with the operation. /// ApiResponse of TeamGetResponse ApiResponse TeamGetWithHttpInfo(int operationIndex = 0); + /// /// Get Team Info /// @@ -139,7 +153,11 @@ public interface ITeamApiSync : IApiAccessor /// The id of the team. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetInfoResponse - ApiResponse TeamInfoWithHttpInfo(string? teamId = default(string?), int operationIndex = 0); + ApiResponse TeamInfoWithHttpInfo( + string? teamId = default(string?), + int operationIndex = 0 + ); + /// /// List Team Invites /// @@ -150,7 +168,10 @@ public interface ITeamApiSync : IApiAccessor /// The email address for which to display the team invites. (optional) /// Index associated with the operation. /// TeamInvitesResponse - TeamInvitesResponse TeamInvites(string? emailAddress = default(string?), int operationIndex = 0); + TeamInvitesResponse TeamInvites( + string? emailAddress = default(string?), + int operationIndex = 0 + ); /// /// List Team Invites @@ -162,7 +183,11 @@ public interface ITeamApiSync : IApiAccessor /// The email address for which to display the team invites. (optional) /// Index associated with the operation. /// ApiResponse of TeamInvitesResponse - ApiResponse TeamInvitesWithHttpInfo(string? emailAddress = default(string?), int operationIndex = 0); + ApiResponse TeamInvitesWithHttpInfo( + string? emailAddress = default(string?), + int operationIndex = 0 + ); + /// /// List Team Members /// @@ -175,7 +200,12 @@ public interface ITeamApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// TeamMembersResponse - TeamMembersResponse TeamMembers(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + TeamMembersResponse TeamMembers( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); /// /// List Team Members @@ -189,7 +219,13 @@ public interface ITeamApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of TeamMembersResponse - ApiResponse TeamMembersWithHttpInfo(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + ApiResponse TeamMembersWithHttpInfo( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); + /// /// Remove User from Team /// @@ -200,7 +236,10 @@ public interface ITeamApiSync : IApiAccessor /// /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0); + TeamGetResponse TeamRemoveMember( + TeamRemoveMemberRequest teamRemoveMemberRequest, + int operationIndex = 0 + ); /// /// Remove User from Team @@ -212,7 +251,11 @@ public interface ITeamApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0); + ApiResponse TeamRemoveMemberWithHttpInfo( + TeamRemoveMemberRequest teamRemoveMemberRequest, + int operationIndex = 0 + ); + /// /// List Sub Teams /// @@ -225,7 +268,12 @@ public interface ITeamApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// TeamSubTeamsResponse - TeamSubTeamsResponse TeamSubTeams(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + TeamSubTeamsResponse TeamSubTeams( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); /// /// List Sub Teams @@ -239,7 +287,13 @@ public interface ITeamApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of TeamSubTeamsResponse - ApiResponse TeamSubTeamsWithHttpInfo(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); + ApiResponse TeamSubTeamsWithHttpInfo( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ); + /// /// Update Team /// @@ -262,7 +316,10 @@ public interface ITeamApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0); + ApiResponse TeamUpdateWithHttpInfo( + TeamUpdateRequest teamUpdateRequest, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -284,7 +341,13 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamAddMemberAsync( + TeamAddMemberRequest teamAddMemberRequest, + string? teamId = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Add User to Team @@ -298,7 +361,14 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync( + TeamAddMemberRequest teamAddMemberRequest, + string? teamId = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Create Team /// @@ -310,7 +380,12 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamCreateAsync( + TeamCreateRequest teamCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Team @@ -323,7 +398,13 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync( + TeamCreateRequest teamCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Delete Team /// @@ -334,7 +415,11 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TeamDeleteAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamDeleteAsync( + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Delete Team @@ -346,7 +431,12 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync( + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Team /// @@ -357,7 +447,11 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamGetAsync( + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Team @@ -369,7 +463,12 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync( + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Team Info /// @@ -381,7 +480,12 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetInfoResponse - System.Threading.Tasks.Task TeamInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamInfoAsync( + string? teamId = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Team Info @@ -394,7 +498,13 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetInfoResponse) - System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync( + string? teamId = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// List Team Invites /// @@ -406,7 +516,12 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamInvitesResponse - System.Threading.Tasks.Task TeamInvitesAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamInvitesAsync( + string? emailAddress = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// List Team Invites @@ -419,7 +534,13 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamInvitesResponse) - System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync( + string? emailAddress = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// List Team Members /// @@ -433,7 +554,14 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamMembersResponse - System.Threading.Tasks.Task TeamMembersAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamMembersAsync( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// List Team Members @@ -448,7 +576,15 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamMembersResponse) - System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Remove User from Team /// @@ -460,7 +596,12 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamRemoveMemberAsync( + TeamRemoveMemberRequest teamRemoveMemberRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Remove User from Team @@ -473,7 +614,13 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync( + TeamRemoveMemberRequest teamRemoveMemberRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// List Sub Teams /// @@ -487,7 +634,14 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamSubTeamsResponse - System.Threading.Tasks.Task TeamSubTeamsAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamSubTeamsAsync( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// List Sub Teams @@ -502,7 +656,17 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamSubTeamsResponse) - System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > TeamSubTeamsWithHttpInfoAsync( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Update Team /// @@ -514,7 +678,12 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamUpdateAsync( + TeamUpdateRequest teamUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Update Team @@ -527,17 +696,19 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync( + TeamUpdateRequest teamUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface ITeamApi : ITeamApiSync, ITeamApiAsync - { - - } + public interface ITeamApi : ITeamApiSync, ITeamApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -550,9 +721,8 @@ public partial class TeamApi : ITeamApi /// Initializes a new instance of the class. /// /// - public TeamApi() : this((string)null) - { - } + public TeamApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -565,7 +735,9 @@ public TeamApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -577,14 +749,17 @@ public TeamApi(string basePath) /// public TeamApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -595,11 +770,18 @@ public TeamApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public TeamApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public TeamApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -641,7 +823,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -656,9 +840,14 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// The id of the team. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0) + public TeamGetResponse TeamAddMember( + TeamAddMemberRequest teamAddMemberRequest, + string? teamId = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); return localVarResponse.Data; } @@ -670,15 +859,23 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// The id of the team. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInfo( + TeamAddMemberRequest teamAddMemberRequest, + string? teamId = default(string?), + int operationIndex = 0 + ) { // verify the required parameter 'teamAddMemberRequest' is set if (teamAddMemberRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamAddMemberRequest' when calling TeamApi->TeamAddMember"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamAddMemberRequest' when calling TeamApi->TeamAddMember" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamAddMemberRequest.GetOpenApiTypes(); @@ -694,9 +891,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -711,7 +906,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory if (teamId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId) + ); } localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; @@ -719,19 +916,39 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Put("/team/add_member", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put( + "/team/add_member", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamAddMember", localVarResponse); @@ -753,9 +970,22 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamAddMemberAsync( + TeamAddMemberRequest teamAddMemberRequest, + string? teamId = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamAddMemberWithHttpInfoAsync(teamAddMemberRequest, teamId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TeamAddMemberWithHttpInfoAsync( + teamAddMemberRequest, + teamId, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -768,16 +998,25 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync( + TeamAddMemberRequest teamAddMemberRequest, + string? teamId = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'teamAddMemberRequest' is set if (teamAddMemberRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamAddMemberRequest' when calling TeamApi->TeamAddMember"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamAddMemberRequest' when calling TeamApi->TeamAddMember" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamAddMemberRequest.GetOpenApiTypes(); @@ -793,9 +1032,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -810,7 +1047,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory if (teamId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId) + ); } localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; @@ -818,19 +1057,42 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/team/add_member", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PutAsync( + "/team/add_member", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -851,9 +1113,13 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, int operationIndex = 0) + public TeamGetResponse TeamCreate( + TeamCreateRequest teamCreateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamCreateWithHttpInfo(teamCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TeamCreateWithHttpInfo(teamCreateRequest); return localVarResponse.Data; } @@ -864,15 +1130,22 @@ public TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, int opera /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo( + TeamCreateRequest teamCreateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'teamCreateRequest' is set if (teamCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamCreateRequest' when calling TeamApi->TeamCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamCreateRequest' when calling TeamApi->TeamCreate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamCreateRequest.GetOpenApiTypes(); @@ -888,9 +1161,7 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -903,25 +1174,44 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/team/create", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/team/create", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamCreate", localVarResponse); @@ -942,9 +1232,20 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamCreateAsync( + TeamCreateRequest teamCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamCreateWithHttpInfoAsync(teamCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TeamCreateWithHttpInfoAsync( + teamCreateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -956,16 +1257,24 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync( + TeamCreateRequest teamCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'teamCreateRequest' is set if (teamCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamCreateRequest' when calling TeamApi->TeamCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamCreateRequest' when calling TeamApi->TeamCreate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamCreateRequest.GetOpenApiTypes(); @@ -981,9 +1290,7 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -996,25 +1303,47 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/team/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/team/create", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1045,18 +1374,20 @@ public void TeamDelete(int operationIndex = 0) /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo( + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1069,25 +1400,44 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Delete("/team/destroy", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete( + "/team/destroy", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamDelete", localVarResponse); @@ -1107,9 +1457,14 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TeamDeleteAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamDeleteAsync( + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - await TeamDeleteWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + await TeamDeleteWithHttpInfoAsync(operationIndex, cancellationToken) + .ConfigureAwait(false); } /// @@ -1119,19 +1474,22 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync( + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1144,25 +1502,47 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/team/destroy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.DeleteAsync( + "/team/destroy", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1184,7 +1564,8 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat /// TeamGetResponse public TeamGetResponse TeamGet(int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamGetWithHttpInfo(); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TeamGetWithHttpInfo(); return localVarResponse.Data; } @@ -1194,18 +1575,20 @@ public TeamGetResponse TeamGet(int operationIndex = 0) /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo( + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1218,25 +1601,44 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/team", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/team", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamGet", localVarResponse); @@ -1256,9 +1658,15 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamGetAsync( + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TeamGetWithHttpInfoAsync(operationIndex, cancellationToken) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1269,19 +1677,22 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync( + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1294,25 +1705,47 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/team", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/team", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1333,9 +1766,13 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// The id of the team. (optional) /// Index associated with the operation. /// TeamGetInfoResponse - public TeamGetInfoResponse TeamInfo(string? teamId = default(string?), int operationIndex = 0) + public TeamGetInfoResponse TeamInfo( + string? teamId = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamInfoWithHttpInfo(teamId); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TeamInfoWithHttpInfo(teamId); return localVarResponse.Data; } @@ -1346,18 +1783,21 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// The id of the team. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetInfoResponse - public Dropbox.Sign.Client.ApiResponse TeamInfoWithHttpInfo(string? teamId = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamInfoWithHttpInfo( + string? teamId = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1372,7 +1812,9 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int if (teamId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId) + ); } localVarRequestOptions.Operation = "TeamApi.TeamInfo"; @@ -1380,19 +1822,39 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/team/info", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/team/info", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamInfo", localVarResponse); @@ -1413,9 +1875,16 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetInfoResponse - public async System.Threading.Tasks.Task TeamInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamInfoAsync( + string? teamId = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamInfoWithHttpInfoAsync(teamId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TeamInfoWithHttpInfoAsync(teamId, operationIndex, cancellationToken) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1427,19 +1896,23 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetInfoResponse) - public async System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync( + string? teamId = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1454,7 +1927,9 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int if (teamId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId) + ); } localVarRequestOptions.Operation = "TeamApi.TeamInfo"; @@ -1462,19 +1937,42 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/team/info", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/team/info", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1495,9 +1993,13 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// The email address for which to display the team invites. (optional) /// Index associated with the operation. /// TeamInvitesResponse - public TeamInvitesResponse TeamInvites(string? emailAddress = default(string?), int operationIndex = 0) + public TeamInvitesResponse TeamInvites( + string? emailAddress = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamInvitesWithHttpInfo(emailAddress); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TeamInvitesWithHttpInfo(emailAddress); return localVarResponse.Data; } @@ -1508,18 +2010,21 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// The email address for which to display the team invites. (optional) /// Index associated with the operation. /// ApiResponse of TeamInvitesResponse - public Dropbox.Sign.Client.ApiResponse TeamInvitesWithHttpInfo(string? emailAddress = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamInvitesWithHttpInfo( + string? emailAddress = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1534,7 +2039,13 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int if (emailAddress != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "email_address", + emailAddress + ) + ); } localVarRequestOptions.Operation = "TeamApi.TeamInvites"; @@ -1542,19 +2053,39 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/team/invites", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/team/invites", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamInvites", localVarResponse); @@ -1575,9 +2106,16 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamInvitesResponse - public async System.Threading.Tasks.Task TeamInvitesAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamInvitesAsync( + string? emailAddress = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamInvitesWithHttpInfoAsync(emailAddress, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TeamInvitesWithHttpInfoAsync(emailAddress, operationIndex, cancellationToken) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1589,19 +2127,23 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamInvitesResponse) - public async System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync( + string? emailAddress = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1616,7 +2158,13 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int if (emailAddress != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "email_address", + emailAddress + ) + ); } localVarRequestOptions.Operation = "TeamApi.TeamInvites"; @@ -1624,19 +2172,42 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/team/invites", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/team/invites", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1659,9 +2230,15 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// TeamMembersResponse - public TeamMembersResponse TeamMembers(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public TeamMembersResponse TeamMembers( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamMembersWithHttpInfo(teamId, page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TeamMembersWithHttpInfo(teamId, page, pageSize); return localVarResponse.Data; } @@ -1674,24 +2251,32 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of TeamMembersResponse - public Dropbox.Sign.Client.ApiResponse TeamMembersWithHttpInfo(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamMembersWithHttpInfo( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { // verify the required parameter 'teamId' is set if (teamId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamId' when calling TeamApi->TeamMembers"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamId' when calling TeamApi->TeamMembers" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1704,14 +2289,21 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("team_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "team_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId) + ); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "TeamApi.TeamMembers"; @@ -1719,19 +2311,39 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/team/members/{team_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/team/members/{team_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamMembers", localVarResponse); @@ -1754,9 +2366,24 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamMembersResponse - public async System.Threading.Tasks.Task TeamMembersAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamMembersAsync( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamMembersWithHttpInfoAsync(teamId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TeamMembersWithHttpInfoAsync( + teamId, + page, + pageSize, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1770,25 +2397,34 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamMembersResponse) - public async System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'teamId' is set if (teamId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamId' when calling TeamApi->TeamMembers"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamId' when calling TeamApi->TeamMembers" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1801,14 +2437,21 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("team_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "team_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId) + ); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "TeamApi.TeamMembers"; @@ -1816,19 +2459,42 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/team/members/{team_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/team/members/{team_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1849,9 +2515,13 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0) + public TeamGetResponse TeamRemoveMember( + TeamRemoveMemberRequest teamRemoveMemberRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest); return localVarResponse.Data; } @@ -1862,15 +2532,22 @@ public TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMember /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttpInfo( + TeamRemoveMemberRequest teamRemoveMemberRequest, + int operationIndex = 0 + ) { // verify the required parameter 'teamRemoveMemberRequest' is set if (teamRemoveMemberRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamRemoveMemberRequest' when calling TeamApi->TeamRemoveMember"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamRemoveMemberRequest' when calling TeamApi->TeamRemoveMember" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamRemoveMemberRequest.GetOpenApiTypes(); @@ -1886,9 +2563,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1901,25 +2576,44 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/team/remove_member", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/team/remove_member", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamRemoveMember", localVarResponse); @@ -1940,9 +2634,20 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamRemoveMemberAsync( + TeamRemoveMemberRequest teamRemoveMemberRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamRemoveMemberWithHttpInfoAsync(teamRemoveMemberRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TeamRemoveMemberWithHttpInfoAsync( + teamRemoveMemberRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1954,16 +2659,24 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync( + TeamRemoveMemberRequest teamRemoveMemberRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'teamRemoveMemberRequest' is set if (teamRemoveMemberRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamRemoveMemberRequest' when calling TeamApi->TeamRemoveMember"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamRemoveMemberRequest' when calling TeamApi->TeamRemoveMember" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamRemoveMemberRequest.GetOpenApiTypes(); @@ -1979,9 +2692,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1994,25 +2705,47 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/team/remove_member", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/team/remove_member", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2035,9 +2768,15 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// TeamSubTeamsResponse - public TeamSubTeamsResponse TeamSubTeams(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public TeamSubTeamsResponse TeamSubTeams( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamSubTeamsWithHttpInfo(teamId, page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TeamSubTeamsWithHttpInfo(teamId, page, pageSize); return localVarResponse.Data; } @@ -2050,24 +2789,32 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of TeamSubTeamsResponse - public Dropbox.Sign.Client.ApiResponse TeamSubTeamsWithHttpInfo(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamSubTeamsWithHttpInfo( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0 + ) { // verify the required parameter 'teamId' is set if (teamId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamId' when calling TeamApi->TeamSubTeams"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamId' when calling TeamApi->TeamSubTeams" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2080,14 +2827,21 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("team_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "team_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId) + ); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "TeamApi.TeamSubTeams"; @@ -2095,19 +2849,39 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/team/sub_teams/{team_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/team/sub_teams/{team_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamSubTeams", localVarResponse); @@ -2130,9 +2904,24 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamSubTeamsResponse - public async System.Threading.Tasks.Task TeamSubTeamsAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamSubTeamsAsync( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamSubTeamsWithHttpInfoAsync(teamId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TeamSubTeamsWithHttpInfoAsync( + teamId, + page, + pageSize, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2146,25 +2935,34 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamSubTeamsResponse) - public async System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync( + string teamId, + int? page = default(int?), + int? pageSize = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'teamId' is set if (teamId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamId' when calling TeamApi->TeamSubTeams"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamId' when calling TeamApi->TeamSubTeams" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2177,14 +2975,21 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("team_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "team_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId) + ); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } localVarRequestOptions.Operation = "TeamApi.TeamSubTeams"; @@ -2192,19 +2997,42 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/team/sub_teams/{team_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/team/sub_teams/{team_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2225,9 +3053,13 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0) + public TeamGetResponse TeamUpdate( + TeamUpdateRequest teamUpdateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamUpdateWithHttpInfo(teamUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TeamUpdateWithHttpInfo(teamUpdateRequest); return localVarResponse.Data; } @@ -2238,15 +3070,22 @@ public TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, int opera /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo( + TeamUpdateRequest teamUpdateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'teamUpdateRequest' is set if (teamUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamUpdateRequest' when calling TeamApi->TeamUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamUpdateRequest' when calling TeamApi->TeamUpdate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamUpdateRequest.GetOpenApiTypes(); @@ -2262,9 +3101,7 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2277,25 +3114,44 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Put("/team", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put( + "/team", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamUpdate", localVarResponse); @@ -2316,9 +3172,20 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamUpdateAsync( + TeamUpdateRequest teamUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamUpdateWithHttpInfoAsync(teamUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TeamUpdateWithHttpInfoAsync( + teamUpdateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2330,16 +3197,24 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync( + TeamUpdateRequest teamUpdateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'teamUpdateRequest' is set if (teamUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamUpdateRequest' when calling TeamApi->TeamUpdate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'teamUpdateRequest' when calling TeamApi->TeamUpdate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamUpdateRequest.GetOpenApiTypes(); @@ -2355,9 +3230,7 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2370,25 +3243,47 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/team", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PutAsync( + "/team", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2401,6 +3296,5 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs index 6211320d3..dd8149ecc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -38,7 +37,11 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// TemplateGetResponse - TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0); + TemplateGetResponse TemplateAddUser( + string templateId, + TemplateAddUserRequest templateAddUserRequest, + int operationIndex = 0 + ); /// /// Add User to Template @@ -51,7 +54,12 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0); + ApiResponse TemplateAddUserWithHttpInfo( + string templateId, + TemplateAddUserRequest templateAddUserRequest, + int operationIndex = 0 + ); + /// /// Create Template /// @@ -62,7 +70,10 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// TemplateCreateResponse - TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, int operationIndex = 0); + TemplateCreateResponse TemplateCreate( + TemplateCreateRequest templateCreateRequest, + int operationIndex = 0 + ); /// /// Create Template @@ -74,7 +85,11 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of TemplateCreateResponse - ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, int operationIndex = 0); + ApiResponse TemplateCreateWithHttpInfo( + TemplateCreateRequest templateCreateRequest, + int operationIndex = 0 + ); + /// /// Create Embedded Template Draft /// @@ -85,7 +100,10 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// TemplateCreateEmbeddedDraftResponse - TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0); + TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + int operationIndex = 0 + ); /// /// Create Embedded Template Draft @@ -97,7 +115,11 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of TemplateCreateEmbeddedDraftResponse - ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0); + ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + int operationIndex = 0 + ); + /// /// Delete Template /// @@ -121,6 +143,7 @@ public interface ITemplateApiSync : IApiAccessor /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse TemplateDeleteWithHttpInfo(string templateId, int operationIndex = 0); + /// /// Get Template Files /// @@ -132,7 +155,11 @@ public interface ITemplateApiSync : IApiAccessor /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) /// Index associated with the operation. /// System.IO.Stream - System.IO.Stream TemplateFiles(string templateId, string? fileType = default(string?), int operationIndex = 0); + System.IO.Stream TemplateFiles( + string templateId, + string? fileType = default(string?), + int operationIndex = 0 + ); /// /// Get Template Files @@ -145,7 +172,12 @@ public interface ITemplateApiSync : IApiAccessor /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) /// Index associated with the operation. /// ApiResponse of System.IO.Stream - ApiResponse TemplateFilesWithHttpInfo(string templateId, string? fileType = default(string?), int operationIndex = 0); + ApiResponse TemplateFilesWithHttpInfo( + string templateId, + string? fileType = default(string?), + int operationIndex = 0 + ); + /// /// Get Template Files as Data Uri /// @@ -168,7 +200,11 @@ public interface ITemplateApiSync : IApiAccessor /// The id of the template files to retrieve. /// Index associated with the operation. /// ApiResponse of FileResponseDataUri - ApiResponse TemplateFilesAsDataUriWithHttpInfo(string templateId, int operationIndex = 0); + ApiResponse TemplateFilesAsDataUriWithHttpInfo( + string templateId, + int operationIndex = 0 + ); + /// /// Get Template Files as File Url /// @@ -180,7 +216,11 @@ public interface ITemplateApiSync : IApiAccessor /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// FileResponse - FileResponse TemplateFilesAsFileUrl(string templateId, int? forceDownload = default(int?), int operationIndex = 0); + FileResponse TemplateFilesAsFileUrl( + string templateId, + int? forceDownload = default(int?), + int operationIndex = 0 + ); /// /// Get Template Files as File Url @@ -193,7 +233,12 @@ public interface ITemplateApiSync : IApiAccessor /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// ApiResponse of FileResponse - ApiResponse TemplateFilesAsFileUrlWithHttpInfo(string templateId, int? forceDownload = default(int?), int operationIndex = 0); + ApiResponse TemplateFilesAsFileUrlWithHttpInfo( + string templateId, + int? forceDownload = default(int?), + int operationIndex = 0 + ); + /// /// Get Template /// @@ -216,7 +261,11 @@ public interface ITemplateApiSync : IApiAccessor /// The id of the Template to retrieve. /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateGetWithHttpInfo(string templateId, int operationIndex = 0); + ApiResponse TemplateGetWithHttpInfo( + string templateId, + int operationIndex = 0 + ); + /// /// List Templates /// @@ -230,7 +279,13 @@ public interface ITemplateApiSync : IApiAccessor /// String that includes search terms and/or fields to be used to filter the Template objects. (optional) /// Index associated with the operation. /// TemplateListResponse - TemplateListResponse TemplateList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0); + TemplateListResponse TemplateList( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0 + ); /// /// List Templates @@ -245,7 +300,14 @@ public interface ITemplateApiSync : IApiAccessor /// String that includes search terms and/or fields to be used to filter the Template objects. (optional) /// Index associated with the operation. /// ApiResponse of TemplateListResponse - ApiResponse TemplateListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0); + ApiResponse TemplateListWithHttpInfo( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0 + ); + /// /// Remove User from Template /// @@ -257,7 +319,11 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// TemplateGetResponse - TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0); + TemplateGetResponse TemplateRemoveUser( + string templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + int operationIndex = 0 + ); /// /// Remove User from Template @@ -270,7 +336,12 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0); + ApiResponse TemplateRemoveUserWithHttpInfo( + string templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + int operationIndex = 0 + ); + /// /// Update Template Files /// @@ -282,7 +353,11 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// TemplateUpdateFilesResponse - TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0); + TemplateUpdateFilesResponse TemplateUpdateFiles( + string templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + int operationIndex = 0 + ); /// /// Update Template Files @@ -295,7 +370,11 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of TemplateUpdateFilesResponse - ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0); + ApiResponse TemplateUpdateFilesWithHttpInfo( + string templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -317,7 +396,13 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateAddUserAsync( + string templateId, + TemplateAddUserRequest templateAddUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Add User to Template @@ -331,7 +416,16 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > TemplateAddUserWithHttpInfoAsync( + string templateId, + TemplateAddUserRequest templateAddUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Create Template /// @@ -343,7 +437,12 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateCreateAsync( + TemplateCreateRequest templateCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Template @@ -356,7 +455,15 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > TemplateCreateWithHttpInfoAsync( + TemplateCreateRequest templateCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Create Embedded Template Draft /// @@ -368,7 +475,12 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Embedded Template Draft @@ -381,7 +493,15 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > TemplateCreateEmbeddedDraftWithHttpInfoAsync( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Delete Template /// @@ -393,7 +513,12 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateDeleteAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Delete Template @@ -406,7 +531,13 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Template Files /// @@ -419,7 +550,13 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - System.Threading.Tasks.Task TemplateFilesAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateFilesAsync( + string templateId, + string? fileType = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Template Files @@ -433,7 +570,14 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync( + string templateId, + string? fileType = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Template Files as Data Uri /// @@ -445,7 +589,12 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - System.Threading.Tasks.Task TemplateFilesAsDataUriAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateFilesAsDataUriAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Template Files as Data Uri @@ -458,7 +607,15 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > TemplateFilesAsDataUriWithHttpInfoAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Template Files as File Url /// @@ -471,7 +628,13 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync( + string templateId, + int? forceDownload = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Template Files as File Url @@ -485,7 +648,16 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > TemplateFilesAsFileUrlWithHttpInfoAsync( + string templateId, + int? forceDownload = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Get Template /// @@ -497,7 +669,12 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateGetAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateGetAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Get Template @@ -510,7 +687,13 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// List Templates /// @@ -525,7 +708,15 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateListResponse - System.Threading.Tasks.Task TemplateListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateListAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// List Templates @@ -541,7 +732,18 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateListResponse) - System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > TemplateListWithHttpInfoAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Remove User from Template /// @@ -554,7 +756,13 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateRemoveUserAsync( + string templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Remove User from Template @@ -568,7 +776,16 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > TemplateRemoveUserWithHttpInfoAsync( + string templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Update Template Files /// @@ -581,7 +798,13 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateUpdateFilesAsync( + string templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Update Template Files @@ -595,17 +818,22 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > TemplateUpdateFilesWithHttpInfoAsync( + string templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface ITemplateApi : ITemplateApiSync, ITemplateApiAsync - { - - } + public interface ITemplateApi : ITemplateApiSync, ITemplateApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -618,9 +846,8 @@ public partial class TemplateApi : ITemplateApi /// Initializes a new instance of the class. /// /// - public TemplateApi() : this((string)null) - { - } + public TemplateApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -633,7 +860,9 @@ public TemplateApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -645,14 +874,17 @@ public TemplateApi(string basePath) /// public TemplateApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -663,11 +895,18 @@ public TemplateApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public TemplateApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public TemplateApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -709,7 +948,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -724,9 +965,14 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// TemplateGetResponse - public TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0) + public TemplateGetResponse TemplateAddUser( + string templateId, + TemplateAddUserRequest templateAddUserRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest); return localVarResponse.Data; } @@ -738,21 +984,32 @@ public TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserReq /// /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithHttpInfo( + string templateId, + TemplateAddUserRequest templateAddUserRequest, + int operationIndex = 0 + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateAddUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateAddUser" + ); } // verify the required parameter 'templateAddUserRequest' is set if (templateAddUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateAddUserRequest' when calling TemplateApi->TemplateAddUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateAddUserRequest' when calling TemplateApi->TemplateAddUser" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateAddUserRequest.GetOpenApiTypes(); @@ -768,9 +1025,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -783,26 +1038,49 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/template/add_user/{template_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/template/add_user/{template_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateAddUser", localVarResponse); @@ -824,9 +1102,22 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateAddUserAsync( + string templateId, + TemplateAddUserRequest templateAddUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateAddUserWithHttpInfoAsync(templateId, templateAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateAddUserWithHttpInfoAsync( + templateId, + templateAddUserRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -839,22 +1130,34 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync( + string templateId, + TemplateAddUserRequest templateAddUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateAddUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateAddUser" + ); } // verify the required parameter 'templateAddUserRequest' is set if (templateAddUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateAddUserRequest' when calling TemplateApi->TemplateAddUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateAddUserRequest' when calling TemplateApi->TemplateAddUser" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateAddUserRequest.GetOpenApiTypes(); @@ -870,9 +1173,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -885,26 +1186,52 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/template/add_user/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/template/add_user/{template_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -925,9 +1252,13 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH /// /// Index associated with the operation. /// TemplateCreateResponse - public TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, int operationIndex = 0) + public TemplateCreateResponse TemplateCreate( + TemplateCreateRequest templateCreateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateWithHttpInfo(templateCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateCreateWithHttpInfo(templateCreateRequest); return localVarResponse.Data; } @@ -938,15 +1269,22 @@ public TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreat /// /// Index associated with the operation. /// ApiResponse of TemplateCreateResponse - public Dropbox.Sign.Client.ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateCreateWithHttpInfo( + TemplateCreateRequest templateCreateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'templateCreateRequest' is set if (templateCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateCreateRequest' when calling TemplateApi->TemplateCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateCreateRequest' when calling TemplateApi->TemplateCreate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateCreateRequest.GetOpenApiTypes(); @@ -962,9 +1300,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -977,25 +1313,44 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/template/create", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/template/create", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateCreate", localVarResponse); @@ -1016,9 +1371,20 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - public async System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateCreateAsync( + TemplateCreateRequest templateCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateWithHttpInfoAsync(templateCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateCreateWithHttpInfoAsync( + templateCreateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1030,16 +1396,24 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync( + TemplateCreateRequest templateCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateCreateRequest' is set if (templateCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateCreateRequest' when calling TemplateApi->TemplateCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateCreateRequest' when calling TemplateApi->TemplateCreate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateCreateRequest.GetOpenApiTypes(); @@ -1055,9 +1429,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1070,25 +1442,47 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/template/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/template/create", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1109,9 +1503,13 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit /// /// Index associated with the operation. /// TemplateCreateEmbeddedDraftResponse - public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0) + public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest); return localVarResponse.Data; } @@ -1122,15 +1520,22 @@ public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateC /// /// Index associated with the operation. /// ApiResponse of TemplateCreateEmbeddedDraftResponse - public Dropbox.Sign.Client.ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + int operationIndex = 0 + ) { // verify the required parameter 'templateCreateEmbeddedDraftRequest' is set if (templateCreateEmbeddedDraftRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateCreateEmbeddedDraftRequest' when calling TemplateApi->TemplateCreateEmbeddedDraft"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateCreateEmbeddedDraftRequest' when calling TemplateApi->TemplateCreateEmbeddedDraft" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateCreateEmbeddedDraftRequest.GetOpenApiTypes(); @@ -1146,9 +1551,7 @@ public Dropbox.Sign.Client.ApiResponse Temp } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1161,28 +1564,50 @@ public Dropbox.Sign.Client.ApiResponse Temp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/template/create_embedded_draft", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/template/create_embedded_draft", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateCreateEmbeddedDraft", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateCreateEmbeddedDraft", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1200,9 +1625,20 @@ public Dropbox.Sign.Client.ApiResponse Temp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateEmbeddedDraftWithHttpInfoAsync(templateCreateEmbeddedDraftRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateCreateEmbeddedDraftWithHttpInfoAsync( + templateCreateEmbeddedDraftRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1214,16 +1650,24 @@ public Dropbox.Sign.Client.ApiResponse Temp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateCreateEmbeddedDraftRequest' is set if (templateCreateEmbeddedDraftRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateCreateEmbeddedDraftRequest' when calling TemplateApi->TemplateCreateEmbeddedDraft"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateCreateEmbeddedDraftRequest' when calling TemplateApi->TemplateCreateEmbeddedDraft" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateCreateEmbeddedDraftRequest.GetOpenApiTypes(); @@ -1239,9 +1683,7 @@ public Dropbox.Sign.Client.ApiResponse Temp } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1254,29 +1696,54 @@ public Dropbox.Sign.Client.ApiResponse Temp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/template/create_embedded_draft", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/template/create_embedded_draft", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateCreateEmbeddedDraft", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateCreateEmbeddedDraft", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1305,24 +1772,30 @@ public void TemplateDelete(string templateId, int operationIndex = 0) /// The id of the Template to delete. /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string templateId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo( + string templateId, + int operationIndex = 0 + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateDelete"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateDelete" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1335,26 +1808,49 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/template/delete/{template_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/template/delete/{template_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateDelete", localVarResponse); @@ -1375,9 +1871,15 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateDeleteAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); + await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationToken) + .ConfigureAwait(false); } /// @@ -1388,25 +1890,32 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateDelete"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateDelete" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1419,26 +1928,52 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/template/delete/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/template/delete/{template_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1460,9 +1995,14 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) /// Index associated with the operation. /// System.IO.Stream - public System.IO.Stream TemplateFiles(string templateId, string? fileType = default(string?), int operationIndex = 0) + public System.IO.Stream TemplateFiles( + string templateId, + string? fileType = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateFilesWithHttpInfo(templateId, fileType); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateFilesWithHttpInfo(templateId, fileType); return localVarResponse.Data; } @@ -1474,25 +2014,35 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) /// Index associated with the operation. /// ApiResponse of System.IO.Stream - public Dropbox.Sign.Client.ApiResponse TemplateFilesWithHttpInfo(string templateId, string? fileType = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateFilesWithHttpInfo( + string templateId, + string? fileType = default(string?), + int operationIndex = 0 + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFiles"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateFiles" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { + string[] _accepts = new string[] + { "application/pdf", "application/zip", - "application/json" + "application/json", }; if (localVarContentType != null) @@ -1506,10 +2056,15 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter if (fileType != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType) + ); } localVarRequestOptions.Operation = "TemplateApi.TemplateFiles"; @@ -1517,19 +2072,39 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/template/files/{template_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/template/files/{template_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateFiles", localVarResponse); @@ -1551,9 +2126,22 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task TemplateFilesAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateFilesAsync( + string templateId, + string? fileType = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateFilesWithHttpInfoAsync(templateId, fileType, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateFilesWithHttpInfoAsync( + templateId, + fileType, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1566,26 +2154,37 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync( + string templateId, + string? fileType = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFiles"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateFiles" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { + string[] _accepts = new string[] + { "application/pdf", "application/zip", - "application/json" + "application/json", }; if (localVarContentType != null) @@ -1599,10 +2198,15 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter if (fileType != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType) + ); } localVarRequestOptions.Operation = "TemplateApi.TemplateFiles"; @@ -1610,19 +2214,42 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/template/files/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/template/files/{template_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1645,7 +2272,8 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// FileResponseDataUri public FileResponseDataUri TemplateFilesAsDataUri(string templateId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateFilesAsDataUriWithHttpInfo(templateId); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateFilesAsDataUriWithHttpInfo(templateId); return localVarResponse.Data; } @@ -1656,24 +2284,30 @@ public FileResponseDataUri TemplateFilesAsDataUri(string templateId, int operati /// The id of the template files to retrieve. /// Index associated with the operation. /// ApiResponse of FileResponseDataUri - public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataUriWithHttpInfo(string templateId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataUriWithHttpInfo( + string templateId, + int operationIndex = 0 + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsDataUri"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsDataUri" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1686,29 +2320,55 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/template/files_as_data_uri/{template_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/template/files_as_data_uri/{template_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateFilesAsDataUri", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateFilesAsDataUri", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1726,9 +2386,20 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - public async System.Threading.Tasks.Task TemplateFilesAsDataUriAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateFilesAsDataUriAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateFilesAsDataUriWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateFilesAsDataUriWithHttpInfoAsync( + templateId, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1740,25 +2411,32 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - public async System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsDataUri"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsDataUri" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1771,30 +2449,59 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/template/files_as_data_uri/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/template/files_as_data_uri/{template_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateFilesAsDataUri", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateFilesAsDataUri", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1812,9 +2519,14 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// FileResponse - public FileResponse TemplateFilesAsFileUrl(string templateId, int? forceDownload = default(int?), int operationIndex = 0) + public FileResponse TemplateFilesAsFileUrl( + string templateId, + int? forceDownload = default(int?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateFilesAsFileUrlWithHttpInfo(templateId, forceDownload); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateFilesAsFileUrlWithHttpInfo(templateId, forceDownload); return localVarResponse.Data; } @@ -1826,24 +2538,31 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// ApiResponse of FileResponse - public Dropbox.Sign.Client.ApiResponse TemplateFilesAsFileUrlWithHttpInfo(string templateId, int? forceDownload = default(int?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateFilesAsFileUrlWithHttpInfo( + string templateId, + int? forceDownload = default(int?), + int operationIndex = 0 + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsFileUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsFileUrl" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1856,10 +2575,19 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter if (forceDownload != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "force_download", + forceDownload + ) + ); } localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsFileUrl"; @@ -1867,22 +2595,45 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/template/files_as_file_url/{template_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/template/files_as_file_url/{template_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateFilesAsFileUrl", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateFilesAsFileUrl", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1901,9 +2652,22 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - public async System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync( + string templateId, + int? forceDownload = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateFilesAsFileUrlWithHttpInfoAsync(templateId, forceDownload, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateFilesAsFileUrlWithHttpInfoAsync( + templateId, + forceDownload, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1916,25 +2680,33 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - public async System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync( + string templateId, + int? forceDownload = default(int?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsFileUrl"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsFileUrl" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1947,10 +2719,19 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter if (forceDownload != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( + "", + "force_download", + forceDownload + ) + ); } localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsFileUrl"; @@ -1958,23 +2739,49 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/template/files_as_file_url/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/template/files_as_file_url/{template_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateFilesAsFileUrl", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateFilesAsFileUrl", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1993,7 +2800,8 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// TemplateGetResponse public TemplateGetResponse TemplateGet(string templateId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateGetWithHttpInfo(templateId); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateGetWithHttpInfo(templateId); return localVarResponse.Data; } @@ -2004,24 +2812,30 @@ public TemplateGetResponse TemplateGet(string templateId, int operationIndex = 0 /// The id of the Template to retrieve. /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpInfo(string templateId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpInfo( + string templateId, + int operationIndex = 0 + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateGet" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2034,26 +2848,49 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/template/{template_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/template/{template_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateGet", localVarResponse); @@ -2074,9 +2911,16 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateGetAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateGetAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateGetWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateGetWithHttpInfoAsync(templateId, operationIndex, cancellationToken) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2088,25 +2932,32 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync( + string templateId, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateGet"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateGet" + ); } + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2119,26 +2970,52 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/template/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/template/{template_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2162,9 +3039,16 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// String that includes search terms and/or fields to be used to filter the Template objects. (optional) /// Index associated with the operation. /// TemplateListResponse - public TemplateListResponse TemplateList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0) + public TemplateListResponse TemplateList( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateListWithHttpInfo(accountId, page, pageSize, query); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateListWithHttpInfo(accountId, page, pageSize, query); return localVarResponse.Data; } @@ -2178,18 +3062,24 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// String that includes search terms and/or fields to be used to filter the Template objects. (optional) /// Index associated with the operation. /// ApiResponse of TemplateListResponse - public Dropbox.Sign.Client.ApiResponse TemplateListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateListWithHttpInfo( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0 + ) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2204,19 +3094,27 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI if (accountId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) + ); } if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } if (query != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query) + ); } localVarRequestOptions.Operation = "TemplateApi.TemplateList"; @@ -2224,19 +3122,39 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Get("/template/list", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get( + "/template/list", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateList", localVarResponse); @@ -2260,9 +3178,26 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateListResponse - public async System.Threading.Tasks.Task TemplateListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateListAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateListWithHttpInfoAsync(accountId, page, pageSize, query, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateListWithHttpInfoAsync( + accountId, + page, + pageSize, + query, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2277,19 +3212,26 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateListResponse) - public async System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync( + string? accountId = default(string?), + int? page = default(int?), + int? pageSize = default(int?), + string? query = default(string?), + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + string[] _contentTypes = new string[] { }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( + _contentTypes + ); // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2304,19 +3246,27 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI if (accountId != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) + ); } if (page != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) + ); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) + ); } if (query != null) { - localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); + localVarRequestOptions.QueryParameters.Add( + Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query) + ); } localVarRequestOptions.Operation = "TemplateApi.TemplateList"; @@ -2324,19 +3274,42 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/template/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.GetAsync( + "/template/list", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2358,9 +3331,14 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// /// Index associated with the operation. /// TemplateGetResponse - public TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0) + public TemplateGetResponse TemplateRemoveUser( + string templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest); return localVarResponse.Data; } @@ -2372,21 +3350,32 @@ public TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveU /// /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWithHttpInfo( + string templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + int operationIndex = 0 + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateRemoveUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateRemoveUser" + ); } // verify the required parameter 'templateRemoveUserRequest' is set if (templateRemoveUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateRemoveUserRequest' when calling TemplateApi->TemplateRemoveUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateRemoveUserRequest' when calling TemplateApi->TemplateRemoveUser" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateRemoveUserRequest.GetOpenApiTypes(); @@ -2402,9 +3391,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2417,29 +3404,55 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/template/remove_user/{template_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/template/remove_user/{template_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateRemoveUser", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateRemoveUser", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2458,9 +3471,22 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateRemoveUserAsync( + string templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateRemoveUserWithHttpInfoAsync(templateId, templateRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateRemoveUserWithHttpInfoAsync( + templateId, + templateRemoveUserRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2473,22 +3499,34 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync( + string templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateRemoveUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateRemoveUser" + ); } // verify the required parameter 'templateRemoveUserRequest' is set if (templateRemoveUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateRemoveUserRequest' when calling TemplateApi->TemplateRemoveUser"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateRemoveUserRequest' when calling TemplateApi->TemplateRemoveUser" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateRemoveUserRequest.GetOpenApiTypes(); @@ -2504,9 +3542,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2519,30 +3555,59 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/template/remove_user/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/template/remove_user/{template_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateRemoveUser", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateRemoveUser", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2560,9 +3625,14 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi /// /// Index associated with the operation. /// TemplateUpdateFilesResponse - public TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0) + public TemplateUpdateFilesResponse TemplateUpdateFiles( + string templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest); return localVarResponse.Data; } @@ -2574,21 +3644,32 @@ public TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, Templa /// /// Index associated with the operation. /// ApiResponse of TemplateUpdateFilesResponse - public Dropbox.Sign.Client.ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateUpdateFilesWithHttpInfo( + string templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + int operationIndex = 0 + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateUpdateFiles"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateUpdateFiles" + ); } // verify the required parameter 'templateUpdateFilesRequest' is set if (templateUpdateFilesRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateUpdateFilesRequest' when calling TemplateApi->TemplateUpdateFiles"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateUpdateFilesRequest' when calling TemplateApi->TemplateUpdateFiles" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateUpdateFilesRequest.GetOpenApiTypes(); @@ -2604,9 +3685,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2619,29 +3698,55 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/template/update_files/{template_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/template/update_files/{template_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateUpdateFiles", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateUpdateFiles", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2660,9 +3765,22 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - public async System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateUpdateFilesAsync( + string templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateUpdateFilesWithHttpInfoAsync(templateId, templateUpdateFilesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await TemplateUpdateFilesWithHttpInfoAsync( + templateId, + templateUpdateFilesRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -2675,22 +3793,34 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync( + string templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateUpdateFiles"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateId' when calling TemplateApi->TemplateUpdateFiles" + ); } // verify the required parameter 'templateUpdateFilesRequest' is set if (templateUpdateFilesRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateUpdateFilesRequest' when calling TemplateApi->TemplateUpdateFiles"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'templateUpdateFilesRequest' when calling TemplateApi->TemplateUpdateFiles" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateUpdateFilesRequest.GetOpenApiTypes(); @@ -2706,9 +3836,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -2721,30 +3849,59 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "template_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) + ); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/template/update_files/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/template/update_files/{template_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("TemplateUpdateFiles", localVarResponse); + Exception _exception = this.ExceptionFactory( + "TemplateUpdateFiles", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -2753,6 +3910,5 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs index 9db3b6a4c..38b7de216 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs @@ -20,7 +20,6 @@ namespace Dropbox.Sign.Api { - /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,7 +36,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftCreate( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, + int operationIndex = 0 + ); /// /// Create Unclaimed Draft @@ -49,7 +51,11 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0); + ApiResponse UnclaimedDraftCreateWithHttpInfo( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, + int operationIndex = 0 + ); + /// /// Create Embedded Unclaimed Draft /// @@ -60,7 +66,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + int operationIndex = 0 + ); /// /// Create Embedded Unclaimed Draft @@ -72,7 +81,11 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0); + ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + int operationIndex = 0 + ); + /// /// Create Embedded Unclaimed Draft with Template /// @@ -83,7 +96,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate( + UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ); /// /// Create Embedded Unclaimed Draft with Template @@ -95,7 +111,11 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( + UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ); + /// /// Edit and Resend Unclaimed Draft /// @@ -107,7 +127,11 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend( + string signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + int operationIndex = 0 + ); /// /// Edit and Resend Unclaimed Draft @@ -120,7 +144,11 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0); + ApiResponse UnclaimedDraftEditAndResendWithHttpInfo( + string signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + int operationIndex = 0 + ); #endregion Synchronous Operations } @@ -141,7 +169,12 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateAsync( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Unclaimed Draft @@ -154,7 +187,15 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > UnclaimedDraftCreateWithHttpInfoAsync( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Create Embedded Unclaimed Draft /// @@ -166,7 +207,12 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Embedded Unclaimed Draft @@ -179,7 +225,15 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Create Embedded Unclaimed Draft with Template /// @@ -191,7 +245,12 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync( + UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Create Embedded Unclaimed Draft with Template @@ -204,7 +263,15 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( + UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); + /// /// Edit and Resend Unclaimed Draft /// @@ -217,7 +284,13 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync( + string signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Edit and Resend Unclaimed Draft @@ -231,17 +304,22 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task< + ApiResponse + > UnclaimedDraftEditAndResendWithHttpInfoAsync( + string signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IUnclaimedDraftApi : IUnclaimedDraftApiSync, IUnclaimedDraftApiAsync - { - - } + public interface IUnclaimedDraftApi : IUnclaimedDraftApiSync, IUnclaimedDraftApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints @@ -254,9 +332,8 @@ public partial class UnclaimedDraftApi : IUnclaimedDraftApi /// Initializes a new instance of the class. /// /// - public UnclaimedDraftApi() : this((string)null) - { - } + public UnclaimedDraftApi() + : this((string)null) { } /// /// Initializes a new instance of the class. @@ -269,7 +346,9 @@ public UnclaimedDraftApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -281,14 +360,17 @@ public UnclaimedDraftApi(string basePath) /// public UnclaimedDraftApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) throw new ArgumentNullException("configuration"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( + this.Configuration.BasePath + ); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -299,11 +381,18 @@ public UnclaimedDraftApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public UnclaimedDraftApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) + public UnclaimedDraftApi( + Dropbox.Sign.Client.ISynchronousClient client, + Dropbox.Sign.Client.IAsynchronousClient asyncClient, + Dropbox.Sign.Client.IReadableConfiguration configuration + ) { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) + throw new ArgumentNullException("client"); + if (asyncClient == null) + throw new ArgumentNullException("asyncClient"); + if (configuration == null) + throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -345,7 +434,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException( + "Multicast delegate for ExceptionFactory is unsupported." + ); } return _exceptionFactory; } @@ -359,9 +450,13 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftCreate( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest); return localVarResponse.Data; } @@ -372,15 +467,22 @@ public UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateReq /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateWithHttpInfo( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'unclaimedDraftCreateRequest' is set if (unclaimedDraftCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'unclaimedDraftCreateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateRequest.GetOpenApiTypes(); @@ -396,9 +498,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -411,28 +511,50 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/unclaimed_draft/create", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/unclaimed_draft/create", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("UnclaimedDraftCreate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "UnclaimedDraftCreate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -450,9 +572,20 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateWithHttpInfoAsync(unclaimedDraftCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await UnclaimedDraftCreateWithHttpInfoAsync( + unclaimedDraftCreateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -464,16 +597,24 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'unclaimedDraftCreateRequest' is set if (unclaimedDraftCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'unclaimedDraftCreateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateRequest.GetOpenApiTypes(); @@ -489,9 +630,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -504,29 +643,54 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/unclaimed_draft/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/unclaimed_draft/create", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("UnclaimedDraftCreate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "UnclaimedDraftCreate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -543,9 +707,13 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest); return localVarResponse.Data; } @@ -556,15 +724,22 @@ public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftC /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + int operationIndex = 0 + ) { // verify the required parameter 'unclaimedDraftCreateEmbeddedRequest' is set if (unclaimedDraftCreateEmbeddedRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbedded"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbedded" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateEmbeddedRequest.GetOpenApiTypes(); @@ -580,9 +755,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -595,28 +768,50 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/unclaimed_draft/create_embedded", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/unclaimed_draft/create_embedded", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("UnclaimedDraftCreateEmbedded", localVarResponse); + Exception _exception = this.ExceptionFactory( + "UnclaimedDraftCreateEmbedded", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -634,9 +829,20 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(unclaimedDraftCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( + unclaimedDraftCreateEmbeddedRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -648,16 +854,24 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'unclaimedDraftCreateEmbeddedRequest' is set if (unclaimedDraftCreateEmbeddedRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbedded"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbedded" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateEmbeddedRequest.GetOpenApiTypes(); @@ -673,9 +887,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -688,29 +900,54 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/unclaimed_draft/create_embedded", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/unclaimed_draft/create_embedded", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("UnclaimedDraftCreateEmbedded", localVarResponse); + Exception _exception = this.ExceptionFactory( + "UnclaimedDraftCreateEmbedded", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -727,9 +964,15 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate( + UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( + unclaimedDraftCreateEmbeddedWithTemplateRequest + ); return localVarResponse.Data; } @@ -740,15 +983,22 @@ public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(Unc /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( + UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, + int operationIndex = 0 + ) { // verify the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' is set if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbeddedWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbeddedWithTemplate" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); @@ -764,9 +1014,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -779,28 +1027,51 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; + localVarRequestOptions.Operation = + "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/unclaimed_draft/create_embedded_with_template", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/unclaimed_draft/create_embedded_with_template", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("UnclaimedDraftCreateEmbeddedWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "UnclaimedDraftCreateEmbeddedWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -818,9 +1089,20 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync( + UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(unclaimedDraftCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( + unclaimedDraftCreateEmbeddedWithTemplateRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -832,16 +1114,24 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( + UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' is set if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbeddedWithTemplate"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbeddedWithTemplate" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); @@ -857,9 +1147,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -872,29 +1160,55 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - - localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; + localVarRequestOptions.Operation = + "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/unclaimed_draft/create_embedded_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/unclaimed_draft/create_embedded_with_template", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("UnclaimedDraftCreateEmbeddedWithTemplate", localVarResponse); + Exception _exception = this.ExceptionFactory( + "UnclaimedDraftCreateEmbeddedWithTemplate", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -912,9 +1226,17 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend( + string signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + int operationIndex = 0 + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = + UnclaimedDraftEditAndResendWithHttpInfo( + signatureRequestId, + unclaimedDraftEditAndResendRequest + ); return localVarResponse.Data; } @@ -926,21 +1248,32 @@ public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signature /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftEditAndResendWithHttpInfo( + string signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + int operationIndex = 0 + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend" + ); } // verify the required parameter 'unclaimedDraftEditAndResendRequest' is set if (unclaimedDraftEditAndResendRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftEditAndResendRequest' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'unclaimedDraftEditAndResendRequest' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend" + ); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftEditAndResendRequest.GetOpenApiTypes(); @@ -956,9 +1289,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -971,29 +1302,55 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = this.Client.Post("/unclaimed_draft/edit_and_resend/{signature_request_id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post( + "/unclaimed_draft/edit_and_resend/{signature_request_id}", + localVarRequestOptions, + this.Configuration + ); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("UnclaimedDraftEditAndResend", localVarResponse); + Exception _exception = this.ExceptionFactory( + "UnclaimedDraftEditAndResend", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1012,9 +1369,22 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync( + string signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftEditAndResendWithHttpInfoAsync(signatureRequestId, unclaimedDraftEditAndResendRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = + await UnclaimedDraftEditAndResendWithHttpInfoAsync( + signatureRequestId, + unclaimedDraftEditAndResendRequest, + operationIndex, + cancellationToken + ) + .ConfigureAwait(false); return localVarResponse.Data; } @@ -1027,22 +1397,34 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync( + string signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + int operationIndex = 0, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'signatureRequestId' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend" + ); } // verify the required parameter 'unclaimedDraftEditAndResendRequest' is set if (unclaimedDraftEditAndResendRequest == null) { - throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftEditAndResendRequest' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend"); + throw new Dropbox.Sign.Client.ApiException( + 400, + "Missing required parameter 'unclaimedDraftEditAndResendRequest' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend" + ); } - - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = + new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftEditAndResendRequest.GetOpenApiTypes(); @@ -1058,9 +1440,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; + string[] _accepts = new string[] { "application/json" }; if (localVarContentType != null) { @@ -1073,30 +1453,59 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + localVarRequestOptions.PathParameters.Add( + "signature_request_id", + Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) + ); // path parameter localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + if ( + !string.IsNullOrEmpty(this.Configuration.Username) + || !string.IsNullOrEmpty(this.Configuration.Password) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) + { + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Basic " + + Dropbox.Sign.Client.ClientUtils.Base64Encode( + this.Configuration.Username + ":" + this.Configuration.Password + ) + ); } // authentication (oauth2) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + if ( + !string.IsNullOrEmpty(this.Configuration.AccessToken) + && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") + ) { - localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + localVarRequestOptions.HeaderParameters.Add( + "Authorization", + "Bearer " + this.Configuration.AccessToken + ); } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/unclaimed_draft/edit_and_resend/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this + .AsynchronousClient.PostAsync( + "/unclaimed_draft/edit_and_resend/{signature_request_id}", + localVarRequestOptions, + this.Configuration, + cancellationToken + ) + .ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("UnclaimedDraftEditAndResend", localVarResponse); + Exception _exception = this.ExceptionFactory( + "UnclaimedDraftEditAndResend", + localVarResponse + ); if (_exception != null) { throw _exception; @@ -1105,6 +1514,5 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr return localVarResponse; } - } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs index a1e43958a..e962b0f29 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs @@ -20,17 +20,17 @@ using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters; using System.Text; -using System.Threading; using System.Text.RegularExpressions; +using System.Threading; using System.Threading.Tasks; +using Dropbox.Sign.Model; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; +using Polly; using RestSharp; using RestSharp.Serializers; -using RestSharpMethod = RestSharp.Method; using FileIO = System.IO.File; -using Polly; -using Dropbox.Sign.Model; +using RestSharpMethod = RestSharp.Method; namespace Dropbox.Sign.Client { @@ -46,11 +46,8 @@ internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, ContractResolver = new DefaultContractResolver { - NamingStrategy = new CamelCaseNamingStrategy - { - OverrideSpecifiedNames = false - } - } + NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, + }, }; public CustomJsonCodec(IReadableConfiguration configuration) @@ -58,7 +55,10 @@ public CustomJsonCodec(IReadableConfiguration configuration) _configuration = configuration; } - public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) + public CustomJsonCodec( + JsonSerializerSettings serializerSettings, + IReadableConfiguration configuration + ) { _serializerSettings = serializerSettings; _configuration = configuration; @@ -112,13 +112,19 @@ internal object Deserialize(RestResponse response, Type type) var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath) ? Path.GetTempPath() : _configuration.TempFolderPath; - var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); + var regex = new Regex( + @"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$" + ); foreach (var header in response.Headers) { var match = regex.Match(header.ToString()); if (match.Success) { - string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); + string fileName = + filePath + + ClientUtils.SanitizeFilename( + match.Groups[1].Value.Replace("\"", "").Replace("'", "") + ); FileIO.WriteAllBytes(fileName, bytes); return new FileStream(fileName, FileMode.Open); } @@ -154,14 +160,19 @@ internal object Deserialize(RestResponse response, Type type) public string[] AcceptedContentTypes => ContentType.JsonAccept; - public SupportsContentType SupportsContentType => contentType => - contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || - contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); + public SupportsContentType SupportsContentType => + contentType => + contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) + || contentType.Value.EndsWith( + "javascript", + StringComparison.InvariantCultureIgnoreCase + ); public ContentType ContentType { get; set; } = ContentType.Json; public DataFormat DataFormat => DataFormat.Json; } + /// /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), /// encapsulating general REST accessor use cases. @@ -176,18 +187,16 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Specifies the settings on a object. /// These settings can be adjusted to accommodate custom serialization rules. /// - public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings - { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - ContractResolver = new DefaultContractResolver + public JsonSerializerSettings SerializerSettings { get; set; } = + new JsonSerializerSettings { - NamingStrategy = new CamelCaseNamingStrategy + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver { - OverrideSpecifiedNames = false - } - } - }; + NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, + }, + }; /// /// Allows for extending request processing for generated code. @@ -224,15 +233,15 @@ public ApiClient(string basePath) } /// - /// Initializes a new instance of the . This should be used in unit tests only - /// + /// Initializes a new instance of the . This should be used in unit tests only + /// /// The target service's base path in URL format. /// Mock client for unit testing purpose /// public ApiClient(string basePath, RestClient mockClient) { if (string.IsNullOrEmpty(basePath)) - throw new ArgumentException("basePath cannot be empty"); + throw new ArgumentException("basePath cannot be empty"); _baseUrl = basePath; _restClient = mockClient; @@ -279,7 +288,7 @@ private RestSharpMethod Method(HttpMethod method) /// /// Provides all logic for constructing a new RestSharp . - /// At this point, all information for querying the service is known. + /// At this point, all information for querying the service is known. /// Here, it is simply mapped into the RestSharp request. /// /// The http verb. @@ -293,11 +302,15 @@ private RestRequest NewRequest( HttpMethod method, string path, RequestOptions options, - IReadableConfiguration configuration) + IReadableConfiguration configuration + ) { - if (path == null) throw new ArgumentNullException("path"); - if (options == null) throw new ArgumentNullException("options"); - if (configuration == null) throw new ArgumentNullException("configuration"); + if (path == null) + throw new ArgumentNullException("path"); + if (options == null) + throw new ArgumentNullException("options"); + if (configuration == null) + throw new ArgumentNullException("configuration"); RestRequest request = new RestRequest(path, Method(method)); @@ -366,7 +379,10 @@ private RestRequest NewRequest( if (options.HeaderParameters != null) { var contentTypes = options.HeaderParameters["Content-Type"]; - if (contentTypes == null || contentTypes.Any(header => header.Contains("application/json"))) + if ( + contentTypes == null + || contentTypes.Any(header => header.Contains("application/json")) + ) { request.RequestFormat = DataFormat.Json; } @@ -394,7 +410,11 @@ private RestRequest NewRequest( var bytes = ClientUtils.ReadAsBytes(file); var fileStream = file as FileStream; if (fileStream != null) - request.AddFile(fileParam.Key, bytes, Path.GetFileName(fileStream.Name)); + request.AddFile( + fileParam.Key, + bytes, + Path.GetFileName(fileStream.Name) + ); else request.AddFile(fileParam.Key, bytes, "no_file_name_provided"); } @@ -416,17 +436,25 @@ private ApiResponse ToApiResponse(RestResponse response) T result = response.Data; string rawContent = response.Content; - var transformed = new ApiResponse(response.StatusCode, new Multimap(), result, rawContent) + var transformed = new ApiResponse( + response.StatusCode, + new Multimap(), + result, + rawContent + ) { ErrorText = response.ErrorMessage, - Cookies = new List() + Cookies = new List(), }; if (response.Headers != null) { foreach (var responseHeader in response.Headers) { - transformed.Headers.Add(responseHeader.Name, ClientUtils.ParameterToString(responseHeader.Value)); + transformed.Headers.Add( + responseHeader.Name, + ClientUtils.ParameterToString(responseHeader.Value) + ); } } @@ -434,7 +462,10 @@ private ApiResponse ToApiResponse(RestResponse response) { foreach (var responseHeader in response.ContentHeaders) { - transformed.Headers.Add(responseHeader.Name, ClientUtils.ParameterToString(responseHeader.Value)); + transformed.Headers.Add( + responseHeader.Name, + ClientUtils.ParameterToString(responseHeader.Value) + ); } } @@ -447,8 +478,9 @@ private ApiResponse ToApiResponse(RestResponse response) responseCookies.Name, responseCookies.Value, responseCookies.Path, - responseCookies.Domain) - ); + responseCookies.Domain + ) + ); } } @@ -460,15 +492,23 @@ private ApiResponse ToApiResponse(RestResponse response) /// Based on functions received it can be async or sync. /// /// Local function that executes http request and returns http response. - /// Local function to specify options for the service. + /// Local function to specify options for the service. /// The RestSharp request object /// The RestSharp options object /// A per-request configuration object. /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. /// A new ApiResponse instance. - private ApiResponse ExecClient(Func> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) + private ApiResponse ExecClient( + Func> getResponse, + Action setOptions, + RestRequest request, + RequestOptions options, + IReadableConfiguration configuration + ) { - var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; + var baseUrl = + configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) + ?? _baseUrl; var clientOptions = new RestClientOptions(baseUrl) { @@ -477,15 +517,20 @@ private ApiResponse ExecClient(Func> getRespon Proxy = configuration.Proxy, UserAgent = configuration.UserAgent, UseDefaultCredentials = configuration.UseDefaultCredentials, - RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback + RemoteCertificateValidationCallback = + configuration.RemoteCertificateValidationCallback, }; setOptions(clientOptions); - + RestClient client = _restClient; if (client == null) { - client = new RestClient(clientOptions, - configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)) + client = new RestClient( + clientOptions, + configureSerialization: serializerConfig => + serializerConfig.UseSerializer( + () => new CustomJsonCodec(SerializerSettings, configuration) + ) ); } @@ -500,7 +545,10 @@ private ApiResponse ExecClient(Func> getRespon { try { - response.Data = (T)typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + response.Data = (T) + typeof(T) + .GetMethod("FromJson") + .Invoke(null, new object[] { response.Content }); } catch (Exception ex) { @@ -530,7 +578,8 @@ private ApiResponse ExecClient(Func> getRespon if (response.Cookies != null && response.Cookies.Count > 0) { - if (result.Cookies == null) result.Cookies = new List(); + if (result.Cookies == null) + result.Cookies = new List(); foreach (var restResponseCookie in response.Cookies.Cast()) { var cookie = new Cookie( @@ -548,7 +597,7 @@ private ApiResponse ExecClient(Func> getRespon HttpOnly = restResponseCookie.HttpOnly, Port = restResponseCookie.Port, Secure = restResponseCookie.Secure, - Version = restResponseCookie.Version + Version = restResponseCookie.Version, }; result.Cookies.Add(cookie); @@ -558,9 +607,13 @@ private ApiResponse ExecClient(Func> getRespon } } - private RestResponse DeserializeRestResponseFromPolicy(RestClient client, RestRequest request, PolicyResult policyResult) + private RestResponse DeserializeRestResponseFromPolicy( + RestClient client, + RestRequest request, + PolicyResult policyResult + ) { - if (policyResult.Outcome == OutcomeType.Successful) + if (policyResult.Outcome == OutcomeType.Successful) { return client.Deserialize(policyResult.Result); } @@ -568,12 +621,16 @@ private RestResponse DeserializeRestResponseFromPolicy(RestClient client, { return new RestResponse(request) { - ErrorException = policyResult.FinalException + ErrorException = policyResult.FinalException, }; } } - - private ApiResponse Exec(RestRequest request, RequestOptions options, IReadableConfiguration configuration) + + private ApiResponse Exec( + RestRequest request, + RequestOptions options, + IReadableConfiguration configuration + ) { Action setOptions = (clientOptions) => { @@ -606,10 +663,14 @@ private ApiResponse Exec(RestRequest request, RequestOptions options, IRea return ExecClient(getResponse, setOptions, request, options, configuration); } - private Task> ExecAsync(RestRequest request, RequestOptions options, IReadableConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken)) + private Task> ExecAsync( + RestRequest request, + RequestOptions options, + IReadableConfiguration configuration, + CancellationToken cancellationToken = default(CancellationToken) + ) { - Action setOptions = (clientOptions) => - { + Action setOptions = (clientOptions) => { //no extra options }; @@ -620,18 +681,27 @@ private ApiResponse Exec(RestRequest request, RequestOptions options, IRea if (RetryConfiguration.AsyncRetryPolicy != null) { var policy = RetryConfiguration.AsyncRetryPolicy; - var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); + var policyResult = await policy + .ExecuteAndCaptureAsync( + (ct) => client.ExecuteAsync(request, ct), + cancellationToken + ) + .ConfigureAwait(false); return DeserializeRestResponseFromPolicy(client, request, policyResult); } else { - return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false); + return await client + .ExecuteAsync(request, cancellationToken) + .ConfigureAwait(false); } }; return action().Result; }; - return Task.FromResult>(ExecClient(getResponse, setOptions, request, options, configuration)); + return Task.FromResult>( + ExecClient(getResponse, setOptions, request, options, configuration) + ); } #region IAsynchronousClient @@ -644,10 +714,20 @@ private ApiResponse Exec(RestRequest request, RequestOptions options, IRea /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> GetAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + CancellationToken cancellationToken = default + ) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), options, config, cancellationToken); + return ExecAsync( + NewRequest(HttpMethod.Get, path, options, config), + options, + config, + cancellationToken + ); } /// @@ -659,10 +739,20 @@ public Task> GetAsync(string path, RequestOptions options, IRe /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> PostAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + CancellationToken cancellationToken = default + ) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), options, config, cancellationToken); + return ExecAsync( + NewRequest(HttpMethod.Post, path, options, config), + options, + config, + cancellationToken + ); } /// @@ -674,10 +764,20 @@ public Task> PostAsync(string path, RequestOptions options, IR /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> PutAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + CancellationToken cancellationToken = default + ) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), options, config, cancellationToken); + return ExecAsync( + NewRequest(HttpMethod.Put, path, options, config), + options, + config, + cancellationToken + ); } /// @@ -689,10 +789,20 @@ public Task> PutAsync(string path, RequestOptions options, IRe /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> DeleteAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + CancellationToken cancellationToken = default + ) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), options, config, cancellationToken); + return ExecAsync( + NewRequest(HttpMethod.Delete, path, options, config), + options, + config, + cancellationToken + ); } /// @@ -704,10 +814,20 @@ public Task> DeleteAsync(string path, RequestOptions options, /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> HeadAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + CancellationToken cancellationToken = default + ) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), options, config, cancellationToken); + return ExecAsync( + NewRequest(HttpMethod.Head, path, options, config), + options, + config, + cancellationToken + ); } /// @@ -719,10 +839,20 @@ public Task> HeadAsync(string path, RequestOptions options, IR /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> OptionsAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + CancellationToken cancellationToken = default + ) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), options, config, cancellationToken); + return ExecAsync( + NewRequest(HttpMethod.Options, path, options, config), + options, + config, + cancellationToken + ); } /// @@ -734,10 +864,20 @@ public Task> OptionsAsync(string path, RequestOptions options, /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> PatchAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + CancellationToken cancellationToken = default + ) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), options, config, cancellationToken); + return ExecAsync( + NewRequest(HttpMethod.Patch, path, options, config), + options, + config, + cancellationToken + ); } #endregion IAsynchronousClient @@ -750,7 +890,11 @@ public Task> PatchAsync(string path, RequestOptions options, I /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) + public ApiResponse Get( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Get, path, options, config), options, config); @@ -764,7 +908,11 @@ public ApiResponse Get(string path, RequestOptions options, IReadableConfi /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) + public ApiResponse Post( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Post, path, options, config), options, config); @@ -778,7 +926,11 @@ public ApiResponse Post(string path, RequestOptions options, IReadableConf /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) + public ApiResponse Put( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Put, path, options, config), options, config); @@ -792,7 +944,11 @@ public ApiResponse Put(string path, RequestOptions options, IReadableConfi /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null) + public ApiResponse Delete( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Delete, path, options, config), options, config); @@ -806,7 +962,11 @@ public ApiResponse Delete(string path, RequestOptions options, IReadableCo /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) + public ApiResponse Head( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Head, path, options, config), options, config); @@ -820,7 +980,11 @@ public ApiResponse Head(string path, RequestOptions options, IReadableConf /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null) + public ApiResponse Options( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Options, path, options, config), options, config); @@ -834,7 +998,11 @@ public ApiResponse Options(string path, RequestOptions options, IReadableC /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) + public ApiResponse Patch( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Patch, path, options, config), options, config); diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ApiException.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ApiException.cs index 4b1ad2fdb..f0ee8633e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ApiException.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ApiException.cs @@ -47,7 +47,8 @@ public ApiException() { } /// /// HTTP status code. /// Error message. - public ApiException(int errorCode, string message) : base(message) + public ApiException(int errorCode, string message) + : base(message) { this.ErrorCode = errorCode; } @@ -59,12 +60,17 @@ public ApiException(int errorCode, string message) : base(message) /// Error message. /// Error content. /// HTTP Headers. - public ApiException(int errorCode, string message, ErrorResponse errorContent = null, Multimap headers = null) : base(message) + public ApiException( + int errorCode, + string message, + ErrorResponse errorContent = null, + Multimap headers = null + ) + : base(message) { this.ErrorCode = errorCode; this.ErrorContent = errorContent; this.Headers = headers; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ApiResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ApiResponse.cs index 3b57a962e..8238c9776 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ApiResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ApiResponse.cs @@ -125,7 +125,12 @@ public object Content /// HTTP headers. /// Data (parsed HTTP body) /// Raw content. - public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data, string rawContent) + public ApiResponse( + HttpStatusCode statusCode, + Multimap headers, + T data, + string rawContent + ) { StatusCode = statusCode; Headers = headers; @@ -139,9 +144,8 @@ public ApiResponse(HttpStatusCode statusCode, Multimap headers, /// HTTP status code. /// HTTP headers. /// Data (parsed HTTP body) - public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) : this(statusCode, headers, data, null) - { - } + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) + : this(statusCode, headers, data, null) { } /// /// Initializes a new instance of the class. @@ -149,18 +153,16 @@ public ApiResponse(HttpStatusCode statusCode, Multimap headers, /// HTTP status code. /// Data (parsed HTTP body) /// Raw content. - public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) : this(statusCode, null, data, rawContent) - { - } + public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) + : this(statusCode, null, data, rawContent) { } /// /// Initializes a new instance of the class. /// /// HTTP status code. /// Data (parsed HTTP body) - public ApiResponse(HttpStatusCode statusCode, T data) : this(statusCode, data, null) - { - } + public ApiResponse(HttpStatusCode statusCode, T data) + : this(statusCode, data, null) { } #endregion Constructors } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs index c603a93ae..b0bda9c43 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs @@ -18,8 +18,8 @@ using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using Newtonsoft.Json; using Dropbox.Sign.Model; +using Newtonsoft.Json; namespace Dropbox.Sign.Client { @@ -47,7 +47,11 @@ public static string SanitizeFilename(string filename) /// Key name. /// Value object. /// A multimap of keys with 1..n associated values. - public static Multimap ParameterToMultiMap(string collectionFormat, string name, object value) + public static Multimap ParameterToMultiMap( + string collectionFormat, + string name, + object value + ) { var parameters = new Multimap(); @@ -60,13 +64,18 @@ public static Multimap ParameterToMultiMap(string collectionForm } else if (value is IDictionary dictionary) { - if(collectionFormat == "deepObject") { + if (collectionFormat == "deepObject") + { foreach (DictionaryEntry entry in dictionary) { - parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); + parameters.Add( + name + "[" + entry.Key + "]", + ParameterToString(entry.Value) + ); } } - else { + else + { foreach (DictionaryEntry entry in dictionary) { parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); @@ -89,23 +98,31 @@ public static Multimap ParameterToMultiMap(string collectionForm /// The parameter (header, path, query, form). /// An optional configuration instance, providing formatting options used in processing. /// Formatted string. - public static string ParameterToString(object obj, IReadableConfiguration configuration = null) + public static string ParameterToString( + object obj, + IReadableConfiguration configuration = null + ) { if (obj is DateTime dateTime) // Return a formatted date string - Can be customized with Configuration.DateTimeFormat // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 - return dateTime.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + return dateTime.ToString( + (configuration ?? GlobalConfiguration.Instance).DateTimeFormat + ); if (obj is DateTimeOffset dateTimeOffset) // Return a formatted date string - Can be customized with Configuration.DateTimeFormat // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 - return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + return dateTimeOffset.ToString( + (configuration ?? GlobalConfiguration.Instance).DateTimeFormat + ); if (obj is bool boolean) return boolean ? "true" : "false"; - if (obj is ICollection collection) { + if (obj is ICollection collection) + { List entries = new List(); foreach (var entry in collection) entries.Add(ParameterToString(entry, configuration)); @@ -193,7 +210,9 @@ public static string SelectHeaderAccept(string[] accepts) /// /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. /// - public static readonly Regex JsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); + public static readonly Regex JsonRegex = new Regex( + "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$" + ); /// /// Check if the given MIME is a JSON MIME. @@ -207,7 +226,8 @@ public static string SelectHeaderAccept(string[] accepts) /// Returns True if MIME type is json. public static bool IsJsonMime(string mime) { - if (string.IsNullOrWhiteSpace(mime)) return false; + if (string.IsNullOrWhiteSpace(mime)) + return false; return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); } @@ -222,10 +242,17 @@ private static bool HasEnumMemberAttrValue(object enumVal) if (enumVal == null) throw new ArgumentNullException(nameof(enumVal)); var enumType = enumVal.GetType(); - var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); - var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); - if (attr != null) return true; - return false; + var memInfo = enumType.GetMember( + enumVal.ToString() ?? throw new InvalidOperationException() + ); + var attr = memInfo + .FirstOrDefault() + ?.GetCustomAttributes(false) + .OfType() + .FirstOrDefault(); + if (attr != null) + return true; + return false; } /// @@ -238,8 +265,14 @@ public static string GetEnumMemberAttrValue(object enumVal) if (enumVal == null) throw new ArgumentNullException(nameof(enumVal)); var enumType = enumVal.GetType(); - var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); - var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); + var memInfo = enumType.GetMember( + enumVal.ToString() ?? throw new InvalidOperationException() + ); + var attr = memInfo + .FirstOrDefault() + ?.GetCustomAttributes(false) + .OfType() + .FirstOrDefault(); if (attr != null) { return attr.Value; @@ -256,9 +289,8 @@ public static bool HasFileType(List items) foreach (var item in items) { if ( - item.Value != null && - (item.Type == "System.IO.Stream" || - item.Type == "List") + item.Value != null + && (item.Type == "System.IO.Stream" || item.Type == "List") ) { return true; @@ -292,10 +324,7 @@ public static void SetFormData(RequestOptions requestOptions, List if (item.Value is string or int) { - requestOptions.FormParameters.Add( - item.Name, - item.Value.ToString() - ); + requestOptions.FormParameters.Add(item.Name, item.Value.ToString()); continue; } @@ -313,10 +342,7 @@ public static void SetFormData(RequestOptions requestOptions, List { for (var i = 0; i < streams.Count; i++) { - requestOptions.FileParameters.Add( - $"{item.Name}[{i}]", - streams[i] - ); + requestOptions.FileParameters.Add($"{item.Name}[{i}]", streams[i]); } continue; diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs index 4db83046b..85292883d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs @@ -15,13 +15,13 @@ using System.IO; using System.Linq; using System.Net; +using System.Net.Http; +using System.Net.Security; using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Text; -using System.Net.Http; -using System.Net.Security; -using Newtonsoft.Json; using Dropbox.Sign.Model; +using Newtonsoft.Json; namespace Dropbox.Sign.Client { @@ -57,14 +57,20 @@ public class Configuration : IReadableConfiguration var status = (int)response.StatusCode; if (status >= 400) { - return new ApiException(status, + return new ApiException( + status, string.Format("Error calling {0}: {1}", methodName, response.RawContent), - JsonConvert.DeserializeObject(response.RawContent), response.Headers); + JsonConvert.DeserializeObject(response.RawContent), + response.Headers + ); } if (status == 0) { - return new ApiException(status, - string.Format("Error calling {0}: {1}", methodName, response.ErrorText), JsonConvert.DeserializeObject(response.ErrorText)); + return new ApiException( + status, + string.Format("Error calling {0}: {1}", methodName, response.ErrorText), + JsonConvert.DeserializeObject(response.ErrorText) + ); } return null; }; @@ -107,7 +113,10 @@ public class Configuration : IReadableConfiguration /// Gets or sets the operation servers defined in the OpenAPI spec. /// /// The operation servers - private IReadOnlyDictionary>> _operationServers; + private IReadOnlyDictionary< + string, + List> + > _operationServers; #endregion Private Members @@ -116,7 +125,10 @@ public class Configuration : IReadableConfiguration /// /// Initializes a new instance of the class /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [System.Diagnostics.CodeAnalysis.SuppressMessage( + "ReSharper", + "VirtualMemberCallInConstructor" + )] public Configuration() { Proxy = null; @@ -128,34 +140,37 @@ public Configuration() Servers = new List>() { { - new Dictionary { - {"url", "https://api.hellosign.com/v3"}, - {"description", "No description provided"}, + new Dictionary + { + { "url", "https://api.hellosign.com/v3" }, + { "description", "No description provided" }, } - } + }, }; OperationServers = new Dictionary>>() { { - "OAuthApi.OauthTokenGenerate", new List> + "OAuthApi.OauthTokenGenerate", + new List> { { new Dictionary { - {"url", "https://app.hellosign.com"}, - {"description", "No description provided"} + { "url", "https://app.hellosign.com" }, + { "description", "No description provided" }, } }, } }, { - "OAuthApi.OauthTokenRefresh", new List> + "OAuthApi.OauthTokenRefresh", + new List> { { new Dictionary { - {"url", "https://app.hellosign.com"}, - {"description", "No description provided"} + { "url", "https://app.hellosign.com" }, + { "description", "No description provided" }, } }, } @@ -169,12 +184,17 @@ public Configuration() /// /// Initializes a new instance of the class /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [System.Diagnostics.CodeAnalysis.SuppressMessage( + "ReSharper", + "VirtualMemberCallInConstructor" + )] public Configuration( IDictionary defaultHeaders, IDictionary apiKey, IDictionary apiKeyPrefix, - string basePath = "https://api.hellosign.com/v3") : this() + string basePath = "https://api.hellosign.com/v3" + ) + : this() { if (string.IsNullOrWhiteSpace(basePath)) throw new ArgumentException("The provided basePath is invalid.", "basePath"); @@ -210,7 +230,7 @@ public Configuration( /// /// Gets or sets the base path for API access. /// - public virtual string BasePath + public virtual string BasePath { get { return _basePath; } set { _basePath = value; } @@ -231,14 +251,8 @@ public virtual bool UseDefaultCredentials [Obsolete("Use DefaultHeaders instead.")] public virtual IDictionary DefaultHeader { - get - { - return DefaultHeaders; - } - set - { - DefaultHeaders = value; - } + get { return DefaultHeaders; } + set { DefaultHeaders = value; } } /// @@ -314,7 +328,6 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) public virtual string TempFolderPath { get { return _tempFolderPath; } - set { if (string.IsNullOrEmpty(value)) @@ -434,7 +447,10 @@ public virtual IList> Servers /// Gets or sets the operation servers. /// /// The operation servers. - public virtual IReadOnlyDictionary>> OperationServers + public virtual IReadOnlyDictionary< + string, + List> + > OperationServers { get { return _operationServers; } set @@ -487,9 +503,16 @@ public string GetOperationServerUrl(string operation, int index) /// Array index of the server settings. /// Dictionary of the variables and the corresponding values. /// The operation server URL. - public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables) + public string GetOperationServerUrl( + string operation, + int index, + Dictionary inputVariables + ) { - if (operation != null && OperationServers.TryGetValue(operation, out var operationServer)) + if ( + operation != null + && OperationServers.TryGetValue(operation, out var operationServer) + ) { return GetServerUrl(operationServer, index, inputVariables); } @@ -504,11 +527,17 @@ public string GetOperationServerUrl(string operation, int index, DictionaryArray index of the server settings. /// Dictionary of the variables and the corresponding values. /// The server URL. - private string GetServerUrl(IList> servers, int index, Dictionary inputVariables) + private string GetServerUrl( + IList> servers, + int index, + Dictionary inputVariables + ) { if (index < 0 || index >= servers.Count) { - throw new InvalidOperationException($"Invalid index {index} when selecting the server. Must be less than {servers.Count}."); + throw new InvalidOperationException( + $"Invalid index {index} when selecting the server. Must be less than {servers.Count}." + ); } if (inputVariables == null) @@ -522,33 +551,48 @@ private string GetServerUrl(IList> servers, if (server.ContainsKey("variables")) { // go through each variable and assign a value - foreach (KeyValuePair variable in (IReadOnlyDictionary)server["variables"]) + foreach ( + KeyValuePair variable in (IReadOnlyDictionary) + server["variables"] + ) { - - IReadOnlyDictionary serverVariables = (IReadOnlyDictionary)(variable.Value); + IReadOnlyDictionary serverVariables = + (IReadOnlyDictionary)(variable.Value); if (inputVariables.ContainsKey(variable.Key)) { - if (((List)serverVariables["enum_values"]).Contains(inputVariables[variable.Key])) + if ( + ((List)serverVariables["enum_values"]).Contains( + inputVariables[variable.Key] + ) + ) { - url = url.Replace("{" + variable.Key + "}", inputVariables[variable.Key]); + url = url.Replace( + "{" + variable.Key + "}", + inputVariables[variable.Key] + ); } else { - throw new InvalidOperationException($"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}"); + throw new InvalidOperationException( + $"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}" + ); } } else { // use default value - url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]); + url = url.Replace( + "{" + variable.Key + "}", + (string)serverVariables["default_value"] + ); } } } return url; } - + /// /// Gets and Sets the RemoteCertificateValidationCallback /// @@ -565,7 +609,7 @@ public static string ToDebugReport() { string report = "C# SDK (Dropbox.Sign) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; - report += " .NET Framework Version: " + System.Environment.Version + "\n"; + report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 3.0.0\n"; report += " SDK Package Version: 1.5-dev\n"; @@ -602,17 +646,33 @@ public void AddApiKeyPrefix(string key, string value) /// First configuration. /// Second configuration. /// Merged configuration. - public static IReadableConfiguration MergeConfigurations(IReadableConfiguration first, IReadableConfiguration second) + public static IReadableConfiguration MergeConfigurations( + IReadableConfiguration first, + IReadableConfiguration second + ) { - if (second == null) return first ?? GlobalConfiguration.Instance; - - Dictionary apiKey = first.ApiKey.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); - Dictionary apiKeyPrefix = first.ApiKeyPrefix.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); - Dictionary defaultHeaders = first.DefaultHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); - - foreach (var kvp in second.ApiKey) apiKey[kvp.Key] = kvp.Value; - foreach (var kvp in second.ApiKeyPrefix) apiKeyPrefix[kvp.Key] = kvp.Value; - foreach (var kvp in second.DefaultHeaders) defaultHeaders[kvp.Key] = kvp.Value; + if (second == null) + return first ?? GlobalConfiguration.Instance; + + Dictionary apiKey = first.ApiKey.ToDictionary( + kvp => kvp.Key, + kvp => kvp.Value + ); + Dictionary apiKeyPrefix = first.ApiKeyPrefix.ToDictionary( + kvp => kvp.Key, + kvp => kvp.Value + ); + Dictionary defaultHeaders = first.DefaultHeaders.ToDictionary( + kvp => kvp.Key, + kvp => kvp.Value + ); + + foreach (var kvp in second.ApiKey) + apiKey[kvp.Key] = kvp.Value; + foreach (var kvp in second.ApiKeyPrefix) + apiKeyPrefix[kvp.Key] = kvp.Value; + foreach (var kvp in second.DefaultHeaders) + defaultHeaders[kvp.Key] = kvp.Value; var config = new Configuration { @@ -630,7 +690,9 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, UseDefaultCredentials = second.UseDefaultCredentials, - RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? first.RemoteCertificateValidationCallback, + RemoteCertificateValidationCallback = + second.RemoteCertificateValidationCallback + ?? first.RemoteCertificateValidationCallback, }; return config; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/GlobalConfiguration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/GlobalConfiguration.cs index b0d10aeef..ebdd4c126 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/GlobalConfiguration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/GlobalConfiguration.cs @@ -33,14 +33,16 @@ public partial class GlobalConfiguration : Configuration #region Constructors /// - private GlobalConfiguration() - { - } + private GlobalConfiguration() { } /// - public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base(defaultHeader, apiKey, apiKeyPrefix, basePath) - { - } + public GlobalConfiguration( + IDictionary defaultHeader, + IDictionary apiKey, + IDictionary apiKeyPrefix, + string basePath = "http://localhost:3000/api" + ) + : base(defaultHeader, apiKey, apiKeyPrefix, basePath) { } static GlobalConfiguration() { diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/HttpMethod.cs b/sdks/dotnet/src/Dropbox.Sign/Client/HttpMethod.cs index bec196c36..b808e5bc0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/HttpMethod.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/HttpMethod.cs @@ -18,17 +18,23 @@ public enum HttpMethod { /// HTTP GET request. Get, + /// HTTP POST request. Post, + /// HTTP PUT request. Put, + /// HTTP DELETE request. Delete, + /// HTTP HEAD request. Head, + /// HTTP OPTIONS request. Options, + /// HTTP PATCH request. - Patch + Patch, } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs index 6d1c11df9..57dad69dc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs @@ -30,7 +30,13 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Executes a non-blocking call to some using the POST http verb. @@ -41,7 +47,13 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PostAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Executes a non-blocking call to some using the PUT http verb. @@ -52,7 +64,13 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PutAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Executes a non-blocking call to some using the DELETE http verb. @@ -63,7 +81,13 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> DeleteAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Executes a non-blocking call to some using the HEAD http verb. @@ -74,7 +98,13 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> HeadAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Executes a non-blocking call to some using the OPTIONS http verb. @@ -85,7 +115,13 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> OptionsAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); /// /// Executes a non-blocking call to some using the PATCH http verb. @@ -96,6 +132,12 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PatchAsync( + string path, + RequestOptions options, + IReadableConfiguration configuration = null, + System.Threading.CancellationToken cancellationToken = + default(System.Threading.CancellationToken) + ); } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs index a4e493e1c..4dacb6de2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs @@ -110,7 +110,10 @@ public interface IReadableConfiguration /// Get the servers associated with the operation. /// /// Operation servers. - IReadOnlyDictionary>> OperationServers { get; } + IReadOnlyDictionary< + string, + List> + > OperationServers { get; } /// /// Gets the API key with prefix. diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ISynchronousClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ISynchronousClient.cs index fd45e78b7..1b6e8abe3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ISynchronousClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ISynchronousClient.cs @@ -29,7 +29,11 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Get( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ); /// /// Executes a blocking call to some using the POST http verb. @@ -39,7 +43,11 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Post( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ); /// /// Executes a blocking call to some using the PUT http verb. @@ -49,7 +57,11 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Put( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ); /// /// Executes a blocking call to some using the DELETE http verb. @@ -59,7 +71,11 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Delete( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ); /// /// Executes a blocking call to some using the HEAD http verb. @@ -69,7 +85,11 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Head( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ); /// /// Executes a blocking call to some using the OPTIONS http verb. @@ -79,7 +99,11 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Options( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ); /// /// Executes a blocking call to some using the PATCH http verb. @@ -89,6 +113,10 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Patch( + string path, + RequestOptions options, + IReadableConfiguration configuration = null + ); } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/Multimap.cs b/sdks/dotnet/src/Dropbox.Sign/Client/Multimap.cs index af0892421..9cc9d2afd 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/Multimap.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/Multimap.cs @@ -160,7 +160,8 @@ public void Add(TKey key, IList value) { if (_dictionary.TryGetValue(key, out var list)) { - foreach (var k in value) list.Add(k); + foreach (var k in value) + list.Add(k); } else { diff --git a/sdks/dotnet/src/Dropbox.Sign/EventCallbackHelper.cs b/sdks/dotnet/src/Dropbox.Sign/EventCallbackHelper.cs index 40fa9a21b..27704cc6c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/EventCallbackHelper.cs +++ b/sdks/dotnet/src/Dropbox.Sign/EventCallbackHelper.cs @@ -12,7 +12,7 @@ public class EventCallbackHelper public const string EVENT_TYPE_APP_CALLBACK = "app_callback"; - private EventCallbackHelper() {} + private EventCallbackHelper() { } /// /// Verify that a callback came from HelloSign.com @@ -53,9 +53,7 @@ private static string GetHash(string text, string key) var hash = new HMACSHA256(keyBytes); var hashBytes = hash.ComputeHash(textBytes); - return BitConverter.ToString(hashBytes) - .Replace("-", "") - .ToLower(); + return BitConverter.ToString(hashBytes).Replace("-", "").ToLower(); } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs index 76b51744a..12a3c845f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs @@ -10,16 +10,16 @@ using System; +using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -using System.Collections.Generic; namespace Dropbox.Sign.Model { public struct OpenApiType { public string Name { set; get; } - public string Property { set; get; } + public string Property { set; get; } public string Type { set; get; } public object Value { set; get; } } @@ -37,36 +37,32 @@ public abstract partial class AbstractOpenAPISchema /// /// Custom JSON serializer /// - static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings - { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - MissingMemberHandling = MissingMemberHandling.Error, - ContractResolver = new DefaultContractResolver + static public readonly JsonSerializerSettings SerializerSettings = + new JsonSerializerSettings { - NamingStrategy = new CamelCaseNamingStrategy + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Error, + ContractResolver = new DefaultContractResolver { - OverrideSpecifiedNames = false - } - } - }; + NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, + }, + }; /// /// Custom JSON serializer for objects with additional properties /// - static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings - { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - MissingMemberHandling = MissingMemberHandling.Ignore, - ContractResolver = new DefaultContractResolver + static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = + new JsonSerializerSettings { - NamingStrategy = new CamelCaseNamingStrategy + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Ignore, + ContractResolver = new DefaultContractResolver { - OverrideSpecifiedNames = false - } - } - }; + NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, + }, + }; /// /// Gets or Sets the actual instance diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs index 95b17897d..0c5a5d6bf 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class AccountCreateRequest : IEquatable, IV /// [JsonConstructorAttribute] protected AccountCreateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -45,13 +46,19 @@ protected AccountCreateRequest() { } /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization). /// The email address which will be associated with the new Account. (required). /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values.. - public AccountCreateRequest(string clientId = default(string), string clientSecret = default(string), string emailAddress = default(string), string locale = default(string)) + public AccountCreateRequest( + string clientId = default(string), + string clientSecret = default(string), + string emailAddress = default(string), + string locale = default(string) + ) { - // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException("emailAddress is a required property for AccountCreateRequest and cannot be null"); + throw new ArgumentNullException( + "emailAddress is a required property for AccountCreateRequest and cannot be null" + ); } this.EmailAddress = emailAddress; this.ClientId = clientId; @@ -69,7 +76,9 @@ public static AccountCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of AccountCreateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of AccountCreateRequest" + ); } return obj; @@ -81,7 +90,6 @@ public static AccountCreateRequest Init(string jsonData) /// The email address which will be associated with the new Account. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) @@ -89,7 +97,6 @@ public static AccountCreateRequest Init(string jsonData) /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) @@ -97,7 +104,6 @@ public static AccountCreateRequest Init(string jsonData) /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) [DataMember(Name = "client_secret", EmitDefaultValue = true)] public string ClientSecret { get; set; } - /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. @@ -105,7 +111,6 @@ public static AccountCreateRequest Init(string jsonData) /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } - /// /// Returns the string presentation of the object @@ -129,7 +134,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -153,26 +161,21 @@ public bool Equals(AccountCreateRequest input) { return false; } - return - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.Locale == input.Locale || - (this.Locale != null && - this.Locale.Equals(input.Locale)) + return ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.ClientSecret == input.ClientSecret + || (this.ClientSecret != null && this.ClientSecret.Equals(input.ClientSecret)) + ) + && ( + this.Locale == input.Locale + || (this.Locale != null && this.Locale.Equals(input.Locale)) ); } @@ -210,7 +213,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -218,33 +223,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "client_secret", - Property = "ClientSecret", - Type = "string", - Value = ClientSecret, - }); - types.Add(new OpenApiType(){ - Name = "locale", - Property = "Locale", - Type = "string", - Value = Locale, - }); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_secret", + Property = "ClientSecret", + Type = "string", + Value = ClientSecret, + } + ); + types.Add( + new OpenApiType() + { + Name = "locale", + Property = "Locale", + Type = "string", + Value = Locale, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs index a915bb715..6a13f17e2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,22 +31,28 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountCreateResponse : IEquatable, IValidatableObject + public partial class AccountCreateResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected AccountCreateResponse() { } + /// /// Initializes a new instance of the class. /// /// account. /// oauthData. /// A list of warnings.. - public AccountCreateResponse(AccountResponse account = default(AccountResponse), OAuthTokenResponse oauthData = default(OAuthTokenResponse), List warnings = default(List)) + public AccountCreateResponse( + AccountResponse account = default(AccountResponse), + OAuthTokenResponse oauthData = default(OAuthTokenResponse), + List warnings = default(List) + ) { - this.Account = account; this.OauthData = oauthData; this.Warnings = warnings; @@ -62,7 +68,9 @@ public static AccountCreateResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of AccountCreateResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of AccountCreateResponse" + ); } return obj; @@ -73,14 +81,12 @@ public static AccountCreateResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } - /// /// Gets or Sets OauthData /// [DataMember(Name = "oauth_data", EmitDefaultValue = true)] public OAuthTokenResponse OauthData { get; set; } - /// /// A list of warnings. @@ -88,7 +94,6 @@ public static AccountCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -111,7 +116,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -135,22 +143,19 @@ public bool Equals(AccountCreateResponse input) { return false; } - return - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && - ( - this.OauthData == input.OauthData || - (this.OauthData != null && - this.OauthData.Equals(input.OauthData)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Account == input.Account + || (this.Account != null && this.Account.Equals(input.Account)) + ) + && ( + this.OauthData == input.OauthData + || (this.OauthData != null && this.OauthData.Equals(input.OauthData)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -184,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -192,27 +199,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account", - Property = "Account", - Type = "AccountResponse", - Value = Account, - }); - types.Add(new OpenApiType(){ - Name = "oauth_data", - Property = "OauthData", - Type = "OAuthTokenResponse", - Value = OauthData, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "account", + Property = "Account", + Type = "AccountResponse", + Value = Account, + } + ); + types.Add( + new OpenApiType() + { + Name = "oauth_data", + Property = "OauthData", + Type = "OAuthTokenResponse", + Value = OauthData, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs index 069b0cce7..fb1ab2f15 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,14 +38,17 @@ public partial class AccountGetResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected AccountGetResponse() { } + /// /// Initializes a new instance of the class. /// /// account. /// A list of warnings.. - public AccountGetResponse(AccountResponse account = default(AccountResponse), List warnings = default(List)) + public AccountGetResponse( + AccountResponse account = default(AccountResponse), + List warnings = default(List) + ) { - this.Account = account; this.Warnings = warnings; } @@ -71,7 +74,6 @@ public static AccountGetResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } - /// /// A list of warnings. @@ -79,7 +81,6 @@ public static AccountGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +102,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +129,15 @@ public bool Equals(AccountGetResponse input) { return false; } - return - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Account == input.Account + || (this.Account != null && this.Account.Equals(input.Account)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +167,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +177,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account", - Property = "Account", - Type = "AccountResponse", - Value = Account, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "account", + Property = "Account", + Type = "AccountResponse", + Value = Account, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs index 45950883d..e04b20cbd 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class AccountResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected AccountResponse() { } + /// /// Initializes a new instance of the class. /// @@ -52,9 +53,20 @@ protected AccountResponse() { } /// The id of the team account belongs to.. /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values.. /// usage. - public AccountResponse(string accountId = default(string), string emailAddress = default(string), bool isLocked = default(bool), bool isPaidHs = default(bool), bool isPaidHf = default(bool), AccountResponseQuotas quotas = default(AccountResponseQuotas), string callbackUrl = default(string), string roleCode = default(string), string teamId = default(string), string locale = default(string), AccountResponseUsage usage = default(AccountResponseUsage)) + public AccountResponse( + string accountId = default(string), + string emailAddress = default(string), + bool isLocked = default(bool), + bool isPaidHs = default(bool), + bool isPaidHf = default(bool), + AccountResponseQuotas quotas = default(AccountResponseQuotas), + string callbackUrl = default(string), + string roleCode = default(string), + string teamId = default(string), + string locale = default(string), + AccountResponseUsage usage = default(AccountResponseUsage) + ) { - this.AccountId = accountId; this.EmailAddress = emailAddress; this.IsLocked = isLocked; @@ -90,7 +102,6 @@ public static AccountResponse Init(string jsonData) /// The ID of the Account [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The email address associated with the Account. @@ -98,7 +109,6 @@ public static AccountResponse Init(string jsonData) /// The email address associated with the Account. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns `true` if the user has been locked out of their account by a team admin. @@ -106,7 +116,6 @@ public static AccountResponse Init(string jsonData) /// Returns `true` if the user has been locked out of their account by a team admin. [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool IsLocked { get; set; } - /// /// Returns `true` if the user has a paid Dropbox Sign account. @@ -114,7 +123,6 @@ public static AccountResponse Init(string jsonData) /// Returns `true` if the user has a paid Dropbox Sign account. [DataMember(Name = "is_paid_hs", EmitDefaultValue = true)] public bool IsPaidHs { get; set; } - /// /// Returns `true` if the user has a paid HelloFax account. @@ -122,14 +130,12 @@ public static AccountResponse Init(string jsonData) /// Returns `true` if the user has a paid HelloFax account. [DataMember(Name = "is_paid_hf", EmitDefaultValue = true)] public bool IsPaidHf { get; set; } - /// /// Gets or Sets Quotas /// [DataMember(Name = "quotas", EmitDefaultValue = true)] public AccountResponseQuotas Quotas { get; set; } - /// /// The URL that Dropbox Sign events will `POST` to. @@ -137,7 +143,6 @@ public static AccountResponse Init(string jsonData) /// The URL that Dropbox Sign events will `POST` to. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// The membership role for the team. @@ -145,7 +150,6 @@ public static AccountResponse Init(string jsonData) /// The membership role for the team. [DataMember(Name = "role_code", EmitDefaultValue = true)] public string RoleCode { get; set; } - /// /// The id of the team account belongs to. @@ -153,7 +157,6 @@ public static AccountResponse Init(string jsonData) /// The id of the team account belongs to. [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. @@ -161,14 +164,12 @@ public static AccountResponse Init(string jsonData) /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } - /// /// Gets or Sets Usage /// [DataMember(Name = "usage", EmitDefaultValue = true)] public AccountResponseUsage Usage { get; set; } - /// /// Returns the string presentation of the object @@ -199,7 +200,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -223,58 +227,40 @@ public bool Equals(AccountResponse input) { return false; } - return - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.IsLocked == input.IsLocked || - this.IsLocked.Equals(input.IsLocked) - ) && - ( - this.IsPaidHs == input.IsPaidHs || - this.IsPaidHs.Equals(input.IsPaidHs) - ) && - ( - this.IsPaidHf == input.IsPaidHf || - this.IsPaidHf.Equals(input.IsPaidHf) - ) && - ( - this.Quotas == input.Quotas || - (this.Quotas != null && - this.Quotas.Equals(input.Quotas)) - ) && - ( - this.CallbackUrl == input.CallbackUrl || - (this.CallbackUrl != null && - this.CallbackUrl.Equals(input.CallbackUrl)) - ) && - ( - this.RoleCode == input.RoleCode || - (this.RoleCode != null && - this.RoleCode.Equals(input.RoleCode)) - ) && - ( - this.TeamId == input.TeamId || - (this.TeamId != null && - this.TeamId.Equals(input.TeamId)) - ) && - ( - this.Locale == input.Locale || - (this.Locale != null && - this.Locale.Equals(input.Locale)) - ) && - ( - this.Usage == input.Usage || - (this.Usage != null && - this.Usage.Equals(input.Usage)) + return ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && (this.IsLocked == input.IsLocked || this.IsLocked.Equals(input.IsLocked)) + && (this.IsPaidHs == input.IsPaidHs || this.IsPaidHs.Equals(input.IsPaidHs)) + && (this.IsPaidHf == input.IsPaidHf || this.IsPaidHf.Equals(input.IsPaidHf)) + && ( + this.Quotas == input.Quotas + || (this.Quotas != null && this.Quotas.Equals(input.Quotas)) + ) + && ( + this.CallbackUrl == input.CallbackUrl + || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) + ) + && ( + this.RoleCode == input.RoleCode + || (this.RoleCode != null && this.RoleCode.Equals(input.RoleCode)) + ) + && ( + this.TeamId == input.TeamId + || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) + ) + && ( + this.Locale == input.Locale + || (this.Locale != null && this.Locale.Equals(input.Locale)) + ) + && ( + this.Usage == input.Usage + || (this.Usage != null && this.Usage.Equals(input.Usage)) ); } @@ -331,7 +317,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -339,75 +327,107 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "is_locked", - Property = "IsLocked", - Type = "bool", - Value = IsLocked, - }); - types.Add(new OpenApiType(){ - Name = "is_paid_hs", - Property = "IsPaidHs", - Type = "bool", - Value = IsPaidHs, - }); - types.Add(new OpenApiType(){ - Name = "is_paid_hf", - Property = "IsPaidHf", - Type = "bool", - Value = IsPaidHf, - }); - types.Add(new OpenApiType(){ - Name = "quotas", - Property = "Quotas", - Type = "AccountResponseQuotas", - Value = Quotas, - }); - types.Add(new OpenApiType(){ - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - }); - types.Add(new OpenApiType(){ - Name = "role_code", - Property = "RoleCode", - Type = "string", - Value = RoleCode, - }); - types.Add(new OpenApiType(){ - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - }); - types.Add(new OpenApiType(){ - Name = "locale", - Property = "Locale", - Type = "string", - Value = Locale, - }); - types.Add(new OpenApiType(){ - Name = "usage", - Property = "Usage", - Type = "AccountResponseUsage", - Value = Usage, - }); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_locked", + Property = "IsLocked", + Type = "bool", + Value = IsLocked, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_paid_hs", + Property = "IsPaidHs", + Type = "bool", + Value = IsPaidHs, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_paid_hf", + Property = "IsPaidHf", + Type = "bool", + Value = IsPaidHf, + } + ); + types.Add( + new OpenApiType() + { + Name = "quotas", + Property = "Quotas", + Type = "AccountResponseQuotas", + Value = Quotas, + } + ); + types.Add( + new OpenApiType() + { + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "role_code", + Property = "RoleCode", + Type = "string", + Value = RoleCode, + } + ); + types.Add( + new OpenApiType() + { + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + } + ); + types.Add( + new OpenApiType() + { + Name = "locale", + Property = "Locale", + Type = "string", + Value = Locale, + } + ); + types.Add( + new OpenApiType() + { + Name = "usage", + Property = "Usage", + Type = "AccountResponseUsage", + Value = Usage, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs index 56ad16441..b7a586a2c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountResponseQuotas")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountResponseQuotas : IEquatable, IValidatableObject + public partial class AccountResponseQuotas + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected AccountResponseQuotas() { } + /// /// Initializes a new instance of the class. /// @@ -47,9 +50,15 @@ protected AccountResponseQuotas() { } /// API templates remaining.. /// SMS verifications remaining.. /// Number of fax pages left. - public AccountResponseQuotas(int? apiSignatureRequestsLeft = default(int?), int? documentsLeft = default(int?), int? templatesTotal = default(int?), int? templatesLeft = default(int?), int? smsVerificationsLeft = default(int?), int? numFaxPagesLeft = default(int?)) + public AccountResponseQuotas( + int? apiSignatureRequestsLeft = default(int?), + int? documentsLeft = default(int?), + int? templatesTotal = default(int?), + int? templatesLeft = default(int?), + int? smsVerificationsLeft = default(int?), + int? numFaxPagesLeft = default(int?) + ) { - this.ApiSignatureRequestsLeft = apiSignatureRequestsLeft; this.DocumentsLeft = documentsLeft; this.TemplatesTotal = templatesTotal; @@ -68,7 +77,9 @@ public static AccountResponseQuotas Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of AccountResponseQuotas"); + throw new Exception( + "Unable to deserialize JSON to instance of AccountResponseQuotas" + ); } return obj; @@ -80,7 +91,6 @@ public static AccountResponseQuotas Init(string jsonData) /// API signature requests remaining. [DataMember(Name = "api_signature_requests_left", EmitDefaultValue = true)] public int? ApiSignatureRequestsLeft { get; set; } - /// /// Signature requests remaining. @@ -88,7 +98,6 @@ public static AccountResponseQuotas Init(string jsonData) /// Signature requests remaining. [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int? DocumentsLeft { get; set; } - /// /// Total API templates allowed. @@ -96,7 +105,6 @@ public static AccountResponseQuotas Init(string jsonData) /// Total API templates allowed. [DataMember(Name = "templates_total", EmitDefaultValue = true)] public int? TemplatesTotal { get; set; } - /// /// API templates remaining. @@ -104,7 +112,6 @@ public static AccountResponseQuotas Init(string jsonData) /// API templates remaining. [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int? TemplatesLeft { get; set; } - /// /// SMS verifications remaining. @@ -112,7 +119,6 @@ public static AccountResponseQuotas Init(string jsonData) /// SMS verifications remaining. [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int? SmsVerificationsLeft { get; set; } - /// /// Number of fax pages left @@ -120,7 +126,6 @@ public static AccountResponseQuotas Init(string jsonData) /// Number of fax pages left [DataMember(Name = "num_fax_pages_left", EmitDefaultValue = true)] public int? NumFaxPagesLeft { get; set; } - /// /// Returns the string presentation of the object @@ -146,7 +151,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -170,36 +178,45 @@ public bool Equals(AccountResponseQuotas input) { return false; } - return - ( - this.ApiSignatureRequestsLeft == input.ApiSignatureRequestsLeft || - (this.ApiSignatureRequestsLeft != null && - this.ApiSignatureRequestsLeft.Equals(input.ApiSignatureRequestsLeft)) - ) && - ( - this.DocumentsLeft == input.DocumentsLeft || - (this.DocumentsLeft != null && - this.DocumentsLeft.Equals(input.DocumentsLeft)) - ) && - ( - this.TemplatesTotal == input.TemplatesTotal || - (this.TemplatesTotal != null && - this.TemplatesTotal.Equals(input.TemplatesTotal)) - ) && - ( - this.TemplatesLeft == input.TemplatesLeft || - (this.TemplatesLeft != null && - this.TemplatesLeft.Equals(input.TemplatesLeft)) - ) && - ( - this.SmsVerificationsLeft == input.SmsVerificationsLeft || - (this.SmsVerificationsLeft != null && - this.SmsVerificationsLeft.Equals(input.SmsVerificationsLeft)) - ) && - ( - this.NumFaxPagesLeft == input.NumFaxPagesLeft || - (this.NumFaxPagesLeft != null && - this.NumFaxPagesLeft.Equals(input.NumFaxPagesLeft)) + return ( + this.ApiSignatureRequestsLeft == input.ApiSignatureRequestsLeft + || ( + this.ApiSignatureRequestsLeft != null + && this.ApiSignatureRequestsLeft.Equals(input.ApiSignatureRequestsLeft) + ) + ) + && ( + this.DocumentsLeft == input.DocumentsLeft + || ( + this.DocumentsLeft != null && this.DocumentsLeft.Equals(input.DocumentsLeft) + ) + ) + && ( + this.TemplatesTotal == input.TemplatesTotal + || ( + this.TemplatesTotal != null + && this.TemplatesTotal.Equals(input.TemplatesTotal) + ) + ) + && ( + this.TemplatesLeft == input.TemplatesLeft + || ( + this.TemplatesLeft != null && this.TemplatesLeft.Equals(input.TemplatesLeft) + ) + ) + && ( + this.SmsVerificationsLeft == input.SmsVerificationsLeft + || ( + this.SmsVerificationsLeft != null + && this.SmsVerificationsLeft.Equals(input.SmsVerificationsLeft) + ) + ) + && ( + this.NumFaxPagesLeft == input.NumFaxPagesLeft + || ( + this.NumFaxPagesLeft != null + && this.NumFaxPagesLeft.Equals(input.NumFaxPagesLeft) + ) ); } @@ -245,7 +262,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -253,45 +272,62 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "api_signature_requests_left", - Property = "ApiSignatureRequestsLeft", - Type = "int?", - Value = ApiSignatureRequestsLeft, - }); - types.Add(new OpenApiType(){ - Name = "documents_left", - Property = "DocumentsLeft", - Type = "int?", - Value = DocumentsLeft, - }); - types.Add(new OpenApiType(){ - Name = "templates_total", - Property = "TemplatesTotal", - Type = "int?", - Value = TemplatesTotal, - }); - types.Add(new OpenApiType(){ - Name = "templates_left", - Property = "TemplatesLeft", - Type = "int?", - Value = TemplatesLeft, - }); - types.Add(new OpenApiType(){ - Name = "sms_verifications_left", - Property = "SmsVerificationsLeft", - Type = "int?", - Value = SmsVerificationsLeft, - }); - types.Add(new OpenApiType(){ - Name = "num_fax_pages_left", - Property = "NumFaxPagesLeft", - Type = "int?", - Value = NumFaxPagesLeft, - }); + types.Add( + new OpenApiType() + { + Name = "api_signature_requests_left", + Property = "ApiSignatureRequestsLeft", + Type = "int?", + Value = ApiSignatureRequestsLeft, + } + ); + types.Add( + new OpenApiType() + { + Name = "documents_left", + Property = "DocumentsLeft", + Type = "int?", + Value = DocumentsLeft, + } + ); + types.Add( + new OpenApiType() + { + Name = "templates_total", + Property = "TemplatesTotal", + Type = "int?", + Value = TemplatesTotal, + } + ); + types.Add( + new OpenApiType() + { + Name = "templates_left", + Property = "TemplatesLeft", + Type = "int?", + Value = TemplatesLeft, + } + ); + types.Add( + new OpenApiType() + { + Name = "sms_verifications_left", + Property = "SmsVerificationsLeft", + Type = "int?", + Value = SmsVerificationsLeft, + } + ); + types.Add( + new OpenApiType() + { + Name = "num_fax_pages_left", + Property = "NumFaxPagesLeft", + Type = "int?", + Value = NumFaxPagesLeft, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs index 7da9c698a..aded85e1a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class AccountResponseUsage : IEquatable, IV /// [JsonConstructorAttribute] protected AccountResponseUsage() { } + /// /// Initializes a new instance of the class. /// /// Number of fax pages sent. public AccountResponseUsage(int? faxPagesSent = default(int?)) { - this.FaxPagesSent = faxPagesSent; } @@ -58,7 +58,9 @@ public static AccountResponseUsage Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of AccountResponseUsage"); + throw new Exception( + "Unable to deserialize JSON to instance of AccountResponseUsage" + ); } return obj; @@ -70,7 +72,6 @@ public static AccountResponseUsage Init(string jsonData) /// Number of fax pages sent [DataMember(Name = "fax_pages_sent", EmitDefaultValue = true)] public int? FaxPagesSent { get; set; } - /// /// Returns the string presentation of the object @@ -91,7 +92,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -115,12 +119,10 @@ public bool Equals(AccountResponseUsage input) { return false; } - return - ( - this.FaxPagesSent == input.FaxPagesSent || - (this.FaxPagesSent != null && - this.FaxPagesSent.Equals(input.FaxPagesSent)) - ); + return ( + this.FaxPagesSent == input.FaxPagesSent + || (this.FaxPagesSent != null && this.FaxPagesSent.Equals(input.FaxPagesSent)) + ); } /// @@ -145,7 +147,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -153,15 +157,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "fax_pages_sent", - Property = "FaxPagesSent", - Type = "int?", - Value = FaxPagesSent, - }); + types.Add( + new OpenApiType() + { + Name = "fax_pages_sent", + Property = "FaxPagesSent", + Type = "int?", + Value = FaxPagesSent, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs index 8d5e501f7..f8d6307fc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,15 +38,19 @@ public partial class AccountUpdateRequest : IEquatable, IV /// [JsonConstructorAttribute] protected AccountUpdateRequest() { } + /// /// Initializes a new instance of the class. /// /// The ID of the Account. /// The URL that Dropbox Sign should POST events to.. /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values.. - public AccountUpdateRequest(string accountId = default(string), string callbackUrl = default(string), string locale = default(string)) + public AccountUpdateRequest( + string accountId = default(string), + string callbackUrl = default(string), + string locale = default(string) + ) { - this.AccountId = accountId; this.CallbackUrl = callbackUrl; this.Locale = locale; @@ -62,7 +66,9 @@ public static AccountUpdateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of AccountUpdateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of AccountUpdateRequest" + ); } return obj; @@ -74,7 +80,6 @@ public static AccountUpdateRequest Init(string jsonData) /// The ID of the Account [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The URL that Dropbox Sign should POST events to. @@ -82,7 +87,6 @@ public static AccountUpdateRequest Init(string jsonData) /// The URL that Dropbox Sign should POST events to. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. @@ -90,7 +94,6 @@ public static AccountUpdateRequest Init(string jsonData) /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } - /// /// Returns the string presentation of the object @@ -113,7 +116,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -137,21 +143,17 @@ public bool Equals(AccountUpdateRequest input) { return false; } - return - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.CallbackUrl == input.CallbackUrl || - (this.CallbackUrl != null && - this.CallbackUrl.Equals(input.CallbackUrl)) - ) && - ( - this.Locale == input.Locale || - (this.Locale != null && - this.Locale.Equals(input.Locale)) + return ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.CallbackUrl == input.CallbackUrl + || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) + ) + && ( + this.Locale == input.Locale + || (this.Locale != null && this.Locale.Equals(input.Locale)) ); } @@ -185,7 +187,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -193,27 +197,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - }); - types.Add(new OpenApiType(){ - Name = "locale", - Property = "Locale", - Type = "string", - Value = Locale, - }); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "locale", + Property = "Locale", + Type = "string", + Value = Locale, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs index ffa2d3fba..1672379f0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,19 @@ public partial class AccountVerifyRequest : IEquatable, IV /// [JsonConstructorAttribute] protected AccountVerifyRequest() { } + /// /// Initializes a new instance of the class. /// /// Email address to run the verification for. (required). public AccountVerifyRequest(string emailAddress = default(string)) { - // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException("emailAddress is a required property for AccountVerifyRequest and cannot be null"); + throw new ArgumentNullException( + "emailAddress is a required property for AccountVerifyRequest and cannot be null" + ); } this.EmailAddress = emailAddress; } @@ -63,7 +65,9 @@ public static AccountVerifyRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of AccountVerifyRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of AccountVerifyRequest" + ); } return obj; @@ -75,7 +79,6 @@ public static AccountVerifyRequest Init(string jsonData) /// Email address to run the verification for. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object @@ -96,7 +99,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -120,12 +126,10 @@ public bool Equals(AccountVerifyRequest input) { return false; } - return - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ); + return ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ); } /// @@ -150,7 +154,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -158,15 +164,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs index 53cd768c8..0dbd9854e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountVerifyResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountVerifyResponse : IEquatable, IValidatableObject + public partial class AccountVerifyResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected AccountVerifyResponse() { } + /// /// Initializes a new instance of the class. /// /// account. /// A list of warnings.. - public AccountVerifyResponse(AccountVerifyResponseAccount account = default(AccountVerifyResponseAccount), List warnings = default(List)) + public AccountVerifyResponse( + AccountVerifyResponseAccount account = default(AccountVerifyResponseAccount), + List warnings = default(List) + ) { - this.Account = account; this.Warnings = warnings; } @@ -60,7 +65,9 @@ public static AccountVerifyResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of AccountVerifyResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of AccountVerifyResponse" + ); } return obj; @@ -71,7 +78,6 @@ public static AccountVerifyResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountVerifyResponseAccount Account { get; set; } - /// /// A list of warnings. @@ -79,7 +85,6 @@ public static AccountVerifyResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +106,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +133,15 @@ public bool Equals(AccountVerifyResponse input) { return false; } - return - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Account == input.Account + || (this.Account != null && this.Account.Equals(input.Account)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +171,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +181,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account", - Property = "Account", - Type = "AccountVerifyResponseAccount", - Value = Account, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "account", + Property = "Account", + Type = "AccountVerifyResponseAccount", + Value = Account, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs index 5b38e8ce5..8f2197953 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,20 +31,22 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountVerifyResponseAccount")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountVerifyResponseAccount : IEquatable, IValidatableObject + public partial class AccountVerifyResponseAccount + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected AccountVerifyResponseAccount() { } + /// /// Initializes a new instance of the class. /// /// The email address associated with the Account.. public AccountVerifyResponseAccount(string emailAddress = default(string)) { - this.EmailAddress = emailAddress; } @@ -58,7 +60,9 @@ public static AccountVerifyResponseAccount Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of AccountVerifyResponseAccount"); + throw new Exception( + "Unable to deserialize JSON to instance of AccountVerifyResponseAccount" + ); } return obj; @@ -70,7 +74,6 @@ public static AccountVerifyResponseAccount Init(string jsonData) /// The email address associated with the Account. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object @@ -91,7 +94,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -115,12 +121,10 @@ public bool Equals(AccountVerifyResponseAccount input) { return false; } - return - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ); + return ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ); } /// @@ -145,7 +149,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -153,15 +159,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs index 8e6d4818e..b57e80621 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class ApiAppCreateRequest : IEquatable, IVal /// [JsonConstructorAttribute] protected ApiAppCreateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -48,19 +49,30 @@ protected ApiAppCreateRequest() { } /// oauth. /// options. /// whiteLabelingOptions. - public ApiAppCreateRequest(string callbackUrl = default(string), System.IO.Stream customLogoFile = default(System.IO.Stream), List domains = default(List), string name = default(string), SubOAuth oauth = default(SubOAuth), SubOptions options = default(SubOptions), SubWhiteLabelingOptions whiteLabelingOptions = default(SubWhiteLabelingOptions)) + public ApiAppCreateRequest( + string callbackUrl = default(string), + System.IO.Stream customLogoFile = default(System.IO.Stream), + List domains = default(List), + string name = default(string), + SubOAuth oauth = default(SubOAuth), + SubOptions options = default(SubOptions), + SubWhiteLabelingOptions whiteLabelingOptions = default(SubWhiteLabelingOptions) + ) { - // to ensure "domains" is required (not null) if (domains == null) { - throw new ArgumentNullException("domains is a required property for ApiAppCreateRequest and cannot be null"); + throw new ArgumentNullException( + "domains is a required property for ApiAppCreateRequest and cannot be null" + ); } this.Domains = domains; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for ApiAppCreateRequest and cannot be null"); + throw new ArgumentNullException( + "name is a required property for ApiAppCreateRequest and cannot be null" + ); } this.Name = name; this.CallbackUrl = callbackUrl; @@ -80,7 +92,9 @@ public static ApiAppCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of ApiAppCreateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of ApiAppCreateRequest" + ); } return obj; @@ -92,7 +106,6 @@ public static ApiAppCreateRequest Init(string jsonData) /// The domain names the ApiApp will be associated with. [DataMember(Name = "domains", IsRequired = true, EmitDefaultValue = true)] public List Domains { get; set; } - /// /// The name you want to assign to the ApiApp. @@ -100,7 +113,6 @@ public static ApiAppCreateRequest Init(string jsonData) /// The name you want to assign to the ApiApp. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The URL at which the ApiApp should receive event callbacks. @@ -108,7 +120,6 @@ public static ApiAppCreateRequest Init(string jsonData) /// The URL at which the ApiApp should receive event callbacks. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) @@ -116,28 +127,24 @@ public static ApiAppCreateRequest Init(string jsonData) /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) [DataMember(Name = "custom_logo_file", EmitDefaultValue = true)] public System.IO.Stream CustomLogoFile { get; set; } - /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public SubOAuth Oauth { get; set; } - /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public SubOptions Options { get; set; } - /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public SubWhiteLabelingOptions WhiteLabelingOptions { get; set; } - /// /// Returns the string presentation of the object @@ -164,7 +171,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -188,42 +198,38 @@ public bool Equals(ApiAppCreateRequest input) { return false; } - return - ( - this.Domains == input.Domains || - this.Domains != null && - input.Domains != null && - this.Domains.SequenceEqual(input.Domains) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.CallbackUrl == input.CallbackUrl || - (this.CallbackUrl != null && - this.CallbackUrl.Equals(input.CallbackUrl)) - ) && - ( - this.CustomLogoFile == input.CustomLogoFile || - (this.CustomLogoFile != null && - this.CustomLogoFile.Equals(input.CustomLogoFile)) - ) && - ( - this.Oauth == input.Oauth || - (this.Oauth != null && - this.Oauth.Equals(input.Oauth)) - ) && - ( - this.Options == input.Options || - (this.Options != null && - this.Options.Equals(input.Options)) - ) && - ( - this.WhiteLabelingOptions == input.WhiteLabelingOptions || - (this.WhiteLabelingOptions != null && - this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions)) + return ( + this.Domains == input.Domains + || this.Domains != null + && input.Domains != null + && this.Domains.SequenceEqual(input.Domains) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.CallbackUrl == input.CallbackUrl + || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) + ) + && ( + this.CustomLogoFile == input.CustomLogoFile + || ( + this.CustomLogoFile != null + && this.CustomLogoFile.Equals(input.CustomLogoFile) + ) + ) + && ( + this.Oauth == input.Oauth + || (this.Oauth != null && this.Oauth.Equals(input.Oauth)) + ) + && ( + this.Options == input.Options + || (this.Options != null && this.Options.Equals(input.Options)) + ) + && ( + this.WhiteLabelingOptions == input.WhiteLabelingOptions + || ( + this.WhiteLabelingOptions != null + && this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions) + ) ); } @@ -273,7 +279,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -281,51 +289,71 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "domains", - Property = "Domains", - Type = "List", - Value = Domains, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - }); - types.Add(new OpenApiType(){ - Name = "custom_logo_file", - Property = "CustomLogoFile", - Type = "System.IO.Stream", - Value = CustomLogoFile, - }); - types.Add(new OpenApiType(){ - Name = "oauth", - Property = "Oauth", - Type = "SubOAuth", - Value = Oauth, - }); - types.Add(new OpenApiType(){ - Name = "options", - Property = "Options", - Type = "SubOptions", - Value = Options, - }); - types.Add(new OpenApiType(){ - Name = "white_labeling_options", - Property = "WhiteLabelingOptions", - Type = "SubWhiteLabelingOptions", - Value = WhiteLabelingOptions, - }); + types.Add( + new OpenApiType() + { + Name = "domains", + Property = "Domains", + Type = "List", + Value = Domains, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_logo_file", + Property = "CustomLogoFile", + Type = "System.IO.Stream", + Value = CustomLogoFile, + } + ); + types.Add( + new OpenApiType() + { + Name = "oauth", + Property = "Oauth", + Type = "SubOAuth", + Value = Oauth, + } + ); + types.Add( + new OpenApiType() + { + Name = "options", + Property = "Options", + Type = "SubOptions", + Value = Options, + } + ); + types.Add( + new OpenApiType() + { + Name = "white_labeling_options", + Property = "WhiteLabelingOptions", + Type = "SubWhiteLabelingOptions", + Value = WhiteLabelingOptions, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs index 8489b05b2..e27cf8152 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,14 +38,17 @@ public partial class ApiAppGetResponse : IEquatable, IValidat /// [JsonConstructorAttribute] protected ApiAppGetResponse() { } + /// /// Initializes a new instance of the class. /// /// apiApp. /// A list of warnings.. - public ApiAppGetResponse(ApiAppResponse apiApp = default(ApiAppResponse), List warnings = default(List)) + public ApiAppGetResponse( + ApiAppResponse apiApp = default(ApiAppResponse), + List warnings = default(List) + ) { - this.ApiApp = apiApp; this.Warnings = warnings; } @@ -71,7 +74,6 @@ public static ApiAppGetResponse Init(string jsonData) /// [DataMember(Name = "api_app", EmitDefaultValue = true)] public ApiAppResponse ApiApp { get; set; } - /// /// A list of warnings. @@ -79,7 +81,6 @@ public static ApiAppGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +102,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +129,15 @@ public bool Equals(ApiAppGetResponse input) { return false; } - return - ( - this.ApiApp == input.ApiApp || - (this.ApiApp != null && - this.ApiApp.Equals(input.ApiApp)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.ApiApp == input.ApiApp + || (this.ApiApp != null && this.ApiApp.Equals(input.ApiApp)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +167,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +177,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "api_app", - Property = "ApiApp", - Type = "ApiAppResponse", - Value = ApiApp, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "api_app", + Property = "ApiApp", + Type = "ApiAppResponse", + Value = ApiApp, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs index 10fce699c..b5b96a18f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,15 +38,19 @@ public partial class ApiAppListResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected ApiAppListResponse() { } + /// /// Initializes a new instance of the class. /// /// Contains information about API Apps.. /// listInfo. /// A list of warnings.. - public ApiAppListResponse(List apiApps = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) + public ApiAppListResponse( + List apiApps = default(List), + ListInfoResponse listInfo = default(ListInfoResponse), + List warnings = default(List) + ) { - this.ApiApps = apiApps; this.ListInfo = listInfo; this.Warnings = warnings; @@ -74,14 +78,12 @@ public static ApiAppListResponse Init(string jsonData) /// Contains information about API Apps. [DataMember(Name = "api_apps", EmitDefaultValue = true)] public List ApiApps { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// A list of warnings. @@ -89,7 +91,6 @@ public static ApiAppListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +113,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,23 +140,21 @@ public bool Equals(ApiAppListResponse input) { return false; } - return - ( - this.ApiApps == input.ApiApps || - this.ApiApps != null && - input.ApiApps != null && - this.ApiApps.SequenceEqual(input.ApiApps) - ) && - ( - this.ListInfo == input.ListInfo || - (this.ListInfo != null && - this.ListInfo.Equals(input.ListInfo)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.ApiApps == input.ApiApps + || this.ApiApps != null + && input.ApiApps != null + && this.ApiApps.SequenceEqual(input.ApiApps) + ) + && ( + this.ListInfo == input.ListInfo + || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -186,7 +188,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -194,27 +198,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "api_apps", - Property = "ApiApps", - Type = "List", - Value = ApiApps, - }); - types.Add(new OpenApiType(){ - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "api_apps", + Property = "ApiApps", + Type = "List", + Value = ApiApps, + } + ); + types.Add( + new OpenApiType() + { + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs index a27044b2f..108e297c6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class ApiAppResponse : IEquatable, IValidatableOb /// [JsonConstructorAttribute] protected ApiAppResponse() { } + /// /// Initializes a new instance of the class. /// @@ -51,9 +52,20 @@ protected ApiAppResponse() { } /// options. /// ownerAccount. /// whiteLabelingOptions. - public ApiAppResponse(string callbackUrl = default(string), string clientId = default(string), int createdAt = default(int), List domains = default(List), string name = default(string), bool isApproved = default(bool), ApiAppResponseOAuth oauth = default(ApiAppResponseOAuth), ApiAppResponseOptions options = default(ApiAppResponseOptions), ApiAppResponseOwnerAccount ownerAccount = default(ApiAppResponseOwnerAccount), ApiAppResponseWhiteLabelingOptions whiteLabelingOptions = default(ApiAppResponseWhiteLabelingOptions)) + public ApiAppResponse( + string callbackUrl = default(string), + string clientId = default(string), + int createdAt = default(int), + List domains = default(List), + string name = default(string), + bool isApproved = default(bool), + ApiAppResponseOAuth oauth = default(ApiAppResponseOAuth), + ApiAppResponseOptions options = default(ApiAppResponseOptions), + ApiAppResponseOwnerAccount ownerAccount = default(ApiAppResponseOwnerAccount), + ApiAppResponseWhiteLabelingOptions whiteLabelingOptions = + default(ApiAppResponseWhiteLabelingOptions) + ) { - this.CallbackUrl = callbackUrl; this.ClientId = clientId; this.CreatedAt = createdAt; @@ -88,7 +100,6 @@ public static ApiAppResponse Init(string jsonData) /// The app's callback URL (for events) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// The app's client id @@ -96,7 +107,6 @@ public static ApiAppResponse Init(string jsonData) /// The app's client id [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// The time that the app was created @@ -104,7 +114,6 @@ public static ApiAppResponse Init(string jsonData) /// The time that the app was created [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// The domain name(s) associated with the app @@ -112,7 +121,6 @@ public static ApiAppResponse Init(string jsonData) /// The domain name(s) associated with the app [DataMember(Name = "domains", EmitDefaultValue = true)] public List Domains { get; set; } - /// /// The name of the app @@ -120,7 +128,6 @@ public static ApiAppResponse Init(string jsonData) /// The name of the app [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Boolean to indicate if the app has been approved @@ -128,35 +135,30 @@ public static ApiAppResponse Init(string jsonData) /// Boolean to indicate if the app has been approved [DataMember(Name = "is_approved", EmitDefaultValue = true)] public bool IsApproved { get; set; } - /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public ApiAppResponseOAuth Oauth { get; set; } - /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public ApiAppResponseOptions Options { get; set; } - /// /// Gets or Sets OwnerAccount /// [DataMember(Name = "owner_account", EmitDefaultValue = true)] public ApiAppResponseOwnerAccount OwnerAccount { get; set; } - /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public ApiAppResponseWhiteLabelingOptions WhiteLabelingOptions { get; set; } - /// /// Returns the string presentation of the object @@ -186,7 +188,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -210,55 +215,41 @@ public bool Equals(ApiAppResponse input) { return false; } - return - ( - this.CallbackUrl == input.CallbackUrl || - (this.CallbackUrl != null && - this.CallbackUrl.Equals(input.CallbackUrl)) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.CreatedAt == input.CreatedAt || - this.CreatedAt.Equals(input.CreatedAt) - ) && - ( - this.Domains == input.Domains || - this.Domains != null && - input.Domains != null && - this.Domains.SequenceEqual(input.Domains) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.IsApproved == input.IsApproved || - this.IsApproved.Equals(input.IsApproved) - ) && - ( - this.Oauth == input.Oauth || - (this.Oauth != null && - this.Oauth.Equals(input.Oauth)) - ) && - ( - this.Options == input.Options || - (this.Options != null && - this.Options.Equals(input.Options)) - ) && - ( - this.OwnerAccount == input.OwnerAccount || - (this.OwnerAccount != null && - this.OwnerAccount.Equals(input.OwnerAccount)) - ) && - ( - this.WhiteLabelingOptions == input.WhiteLabelingOptions || - (this.WhiteLabelingOptions != null && - this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions)) + return ( + this.CallbackUrl == input.CallbackUrl + || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)) + && ( + this.Domains == input.Domains + || this.Domains != null + && input.Domains != null + && this.Domains.SequenceEqual(input.Domains) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.IsApproved == input.IsApproved || this.IsApproved.Equals(input.IsApproved)) + && ( + this.Oauth == input.Oauth + || (this.Oauth != null && this.Oauth.Equals(input.Oauth)) + ) + && ( + this.Options == input.Options + || (this.Options != null && this.Options.Equals(input.Options)) + ) + && ( + this.OwnerAccount == input.OwnerAccount + || (this.OwnerAccount != null && this.OwnerAccount.Equals(input.OwnerAccount)) + ) + && ( + this.WhiteLabelingOptions == input.WhiteLabelingOptions + || ( + this.WhiteLabelingOptions != null + && this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions) + ) ); } @@ -314,7 +305,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -322,69 +315,98 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - }); - types.Add(new OpenApiType(){ - Name = "domains", - Property = "Domains", - Type = "List", - Value = Domains, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "is_approved", - Property = "IsApproved", - Type = "bool", - Value = IsApproved, - }); - types.Add(new OpenApiType(){ - Name = "oauth", - Property = "Oauth", - Type = "ApiAppResponseOAuth", - Value = Oauth, - }); - types.Add(new OpenApiType(){ - Name = "options", - Property = "Options", - Type = "ApiAppResponseOptions", - Value = Options, - }); - types.Add(new OpenApiType(){ - Name = "owner_account", - Property = "OwnerAccount", - Type = "ApiAppResponseOwnerAccount", - Value = OwnerAccount, - }); - types.Add(new OpenApiType(){ - Name = "white_labeling_options", - Property = "WhiteLabelingOptions", - Type = "ApiAppResponseWhiteLabelingOptions", - Value = WhiteLabelingOptions, - }); + types.Add( + new OpenApiType() + { + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "domains", + Property = "Domains", + Type = "List", + Value = Domains, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_approved", + Property = "IsApproved", + Type = "bool", + Value = IsApproved, + } + ); + types.Add( + new OpenApiType() + { + Name = "oauth", + Property = "Oauth", + Type = "ApiAppResponseOAuth", + Value = Oauth, + } + ); + types.Add( + new OpenApiType() + { + Name = "options", + Property = "Options", + Type = "ApiAppResponseOptions", + Value = Options, + } + ); + types.Add( + new OpenApiType() + { + Name = "owner_account", + Property = "OwnerAccount", + Type = "ApiAppResponseOwnerAccount", + Value = OwnerAccount, + } + ); + types.Add( + new OpenApiType() + { + Name = "white_labeling_options", + Property = "WhiteLabelingOptions", + Type = "ApiAppResponseWhiteLabelingOptions", + Value = WhiteLabelingOptions, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs index 70695cab8..592520115 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class ApiAppResponseOAuth : IEquatable, IVal /// [JsonConstructorAttribute] protected ApiAppResponseOAuth() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +46,13 @@ protected ApiAppResponseOAuth() { } /// The app's OAuth secret, or null if the app does not belong to user.. /// Array of OAuth scopes used by the app.. /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests.. - public ApiAppResponseOAuth(string callbackUrl = default(string), string secret = default(string), List scopes = default(List), bool chargesUsers = default(bool)) + public ApiAppResponseOAuth( + string callbackUrl = default(string), + string secret = default(string), + List scopes = default(List), + bool chargesUsers = default(bool) + ) { - this.CallbackUrl = callbackUrl; this.Secret = secret; this.Scopes = scopes; @@ -64,7 +69,9 @@ public static ApiAppResponseOAuth Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of ApiAppResponseOAuth"); + throw new Exception( + "Unable to deserialize JSON to instance of ApiAppResponseOAuth" + ); } return obj; @@ -76,7 +83,6 @@ public static ApiAppResponseOAuth Init(string jsonData) /// The app's OAuth callback URL. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// The app's OAuth secret, or null if the app does not belong to user. @@ -84,7 +90,6 @@ public static ApiAppResponseOAuth Init(string jsonData) /// The app's OAuth secret, or null if the app does not belong to user. [DataMember(Name = "secret", EmitDefaultValue = true)] public string Secret { get; set; } - /// /// Array of OAuth scopes used by the app. @@ -92,7 +97,6 @@ public static ApiAppResponseOAuth Init(string jsonData) /// Array of OAuth scopes used by the app. [DataMember(Name = "scopes", EmitDefaultValue = true)] public List Scopes { get; set; } - /// /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. @@ -100,7 +104,6 @@ public static ApiAppResponseOAuth Init(string jsonData) /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. [DataMember(Name = "charges_users", EmitDefaultValue = true)] public bool ChargesUsers { get; set; } - /// /// Returns the string presentation of the object @@ -124,7 +127,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -148,26 +154,23 @@ public bool Equals(ApiAppResponseOAuth input) { return false; } - return - ( - this.CallbackUrl == input.CallbackUrl || - (this.CallbackUrl != null && - this.CallbackUrl.Equals(input.CallbackUrl)) - ) && - ( - this.Secret == input.Secret || - (this.Secret != null && - this.Secret.Equals(input.Secret)) - ) && - ( - this.Scopes == input.Scopes || - this.Scopes != null && - input.Scopes != null && - this.Scopes.SequenceEqual(input.Scopes) - ) && - ( - this.ChargesUsers == input.ChargesUsers || - this.ChargesUsers.Equals(input.ChargesUsers) + return ( + this.CallbackUrl == input.CallbackUrl + || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) + ) + && ( + this.Secret == input.Secret + || (this.Secret != null && this.Secret.Equals(input.Secret)) + ) + && ( + this.Scopes == input.Scopes + || this.Scopes != null + && input.Scopes != null + && this.Scopes.SequenceEqual(input.Scopes) + ) + && ( + this.ChargesUsers == input.ChargesUsers + || this.ChargesUsers.Equals(input.ChargesUsers) ); } @@ -202,7 +205,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -210,33 +215,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - }); - types.Add(new OpenApiType(){ - Name = "secret", - Property = "Secret", - Type = "string", - Value = Secret, - }); - types.Add(new OpenApiType(){ - Name = "scopes", - Property = "Scopes", - Type = "List", - Value = Scopes, - }); - types.Add(new OpenApiType(){ - Name = "charges_users", - Property = "ChargesUsers", - Type = "bool", - Value = ChargesUsers, - }); + types.Add( + new OpenApiType() + { + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "secret", + Property = "Secret", + Type = "string", + Value = Secret, + } + ); + types.Add( + new OpenApiType() + { + Name = "scopes", + Property = "Scopes", + Type = "List", + Value = Scopes, + } + ); + types.Add( + new OpenApiType() + { + Name = "charges_users", + Property = "ChargesUsers", + Type = "bool", + Value = ChargesUsers, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs index b662fbe2a..d7dee805c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,20 +31,22 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseOptions : IEquatable, IValidatableObject + public partial class ApiAppResponseOptions + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected ApiAppResponseOptions() { } + /// /// Initializes a new instance of the class. /// /// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document. public ApiAppResponseOptions(bool canInsertEverywhere = default(bool)) { - this.CanInsertEverywhere = canInsertEverywhere; } @@ -58,7 +60,9 @@ public static ApiAppResponseOptions Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of ApiAppResponseOptions"); + throw new Exception( + "Unable to deserialize JSON to instance of ApiAppResponseOptions" + ); } return obj; @@ -70,7 +74,6 @@ public static ApiAppResponseOptions Init(string jsonData) /// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document [DataMember(Name = "can_insert_everywhere", EmitDefaultValue = true)] public bool CanInsertEverywhere { get; set; } - /// /// Returns the string presentation of the object @@ -91,7 +94,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -115,11 +121,10 @@ public bool Equals(ApiAppResponseOptions input) { return false; } - return - ( - this.CanInsertEverywhere == input.CanInsertEverywhere || - this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) - ); + return ( + this.CanInsertEverywhere == input.CanInsertEverywhere + || this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) + ); } /// @@ -141,7 +146,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -149,15 +156,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "can_insert_everywhere", - Property = "CanInsertEverywhere", - Type = "bool", - Value = CanInsertEverywhere, - }); + types.Add( + new OpenApiType() + { + Name = "can_insert_everywhere", + Property = "CanInsertEverywhere", + Type = "bool", + Value = CanInsertEverywhere, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs index 7f2adb90f..052fa24b5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseOwnerAccount")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseOwnerAccount : IEquatable, IValidatableObject + public partial class ApiAppResponseOwnerAccount + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected ApiAppResponseOwnerAccount() { } + /// /// Initializes a new instance of the class. /// /// The owner account's ID. /// The owner account's email address. - public ApiAppResponseOwnerAccount(string accountId = default(string), string emailAddress = default(string)) + public ApiAppResponseOwnerAccount( + string accountId = default(string), + string emailAddress = default(string) + ) { - this.AccountId = accountId; this.EmailAddress = emailAddress; } @@ -60,7 +65,9 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of ApiAppResponseOwnerAccount"); + throw new Exception( + "Unable to deserialize JSON to instance of ApiAppResponseOwnerAccount" + ); } return obj; @@ -72,7 +79,6 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) /// The owner account's ID [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The owner account's email address @@ -80,7 +86,6 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) /// The owner account's email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +107,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,16 +134,13 @@ public bool Equals(ApiAppResponseOwnerAccount input) { return false; } - return - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) + return ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -165,7 +170,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +180,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs index 9f53b68ed..6a3466359 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseWhiteLabelingOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseWhiteLabelingOptions : IEquatable, IValidatableObject + public partial class ApiAppResponseWhiteLabelingOptions + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected ApiAppResponseWhiteLabelingOptions() { } + /// /// Initializes a new instance of the class. /// @@ -55,9 +58,23 @@ protected ApiAppResponseWhiteLabelingOptions() { } /// secondaryButtonTextColorHover. /// textColor1. /// textColor2. - public ApiAppResponseWhiteLabelingOptions(string headerBackgroundColor = default(string), string legalVersion = default(string), string linkColor = default(string), string pageBackgroundColor = default(string), string primaryButtonColor = default(string), string primaryButtonColorHover = default(string), string primaryButtonTextColor = default(string), string primaryButtonTextColorHover = default(string), string secondaryButtonColor = default(string), string secondaryButtonColorHover = default(string), string secondaryButtonTextColor = default(string), string secondaryButtonTextColorHover = default(string), string textColor1 = default(string), string textColor2 = default(string)) + public ApiAppResponseWhiteLabelingOptions( + string headerBackgroundColor = default(string), + string legalVersion = default(string), + string linkColor = default(string), + string pageBackgroundColor = default(string), + string primaryButtonColor = default(string), + string primaryButtonColorHover = default(string), + string primaryButtonTextColor = default(string), + string primaryButtonTextColorHover = default(string), + string secondaryButtonColor = default(string), + string secondaryButtonColorHover = default(string), + string secondaryButtonTextColor = default(string), + string secondaryButtonTextColorHover = default(string), + string textColor1 = default(string), + string textColor2 = default(string) + ) { - this.HeaderBackgroundColor = headerBackgroundColor; this.LegalVersion = legalVersion; this.LinkColor = linkColor; @@ -84,7 +101,9 @@ public static ApiAppResponseWhiteLabelingOptions Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of ApiAppResponseWhiteLabelingOptions"); + throw new Exception( + "Unable to deserialize JSON to instance of ApiAppResponseWhiteLabelingOptions" + ); } return obj; @@ -95,98 +114,84 @@ public static ApiAppResponseWhiteLabelingOptions Init(string jsonData) /// [DataMember(Name = "header_background_color", EmitDefaultValue = true)] public string HeaderBackgroundColor { get; set; } - /// /// Gets or Sets LegalVersion /// [DataMember(Name = "legal_version", EmitDefaultValue = true)] public string LegalVersion { get; set; } - /// /// Gets or Sets LinkColor /// [DataMember(Name = "link_color", EmitDefaultValue = true)] public string LinkColor { get; set; } - /// /// Gets or Sets PageBackgroundColor /// [DataMember(Name = "page_background_color", EmitDefaultValue = true)] public string PageBackgroundColor { get; set; } - /// /// Gets or Sets PrimaryButtonColor /// [DataMember(Name = "primary_button_color", EmitDefaultValue = true)] public string PrimaryButtonColor { get; set; } - /// /// Gets or Sets PrimaryButtonColorHover /// [DataMember(Name = "primary_button_color_hover", EmitDefaultValue = true)] public string PrimaryButtonColorHover { get; set; } - /// /// Gets or Sets PrimaryButtonTextColor /// [DataMember(Name = "primary_button_text_color", EmitDefaultValue = true)] public string PrimaryButtonTextColor { get; set; } - /// /// Gets or Sets PrimaryButtonTextColorHover /// [DataMember(Name = "primary_button_text_color_hover", EmitDefaultValue = true)] public string PrimaryButtonTextColorHover { get; set; } - /// /// Gets or Sets SecondaryButtonColor /// [DataMember(Name = "secondary_button_color", EmitDefaultValue = true)] public string SecondaryButtonColor { get; set; } - /// /// Gets or Sets SecondaryButtonColorHover /// [DataMember(Name = "secondary_button_color_hover", EmitDefaultValue = true)] public string SecondaryButtonColorHover { get; set; } - /// /// Gets or Sets SecondaryButtonTextColor /// [DataMember(Name = "secondary_button_text_color", EmitDefaultValue = true)] public string SecondaryButtonTextColor { get; set; } - /// /// Gets or Sets SecondaryButtonTextColorHover /// [DataMember(Name = "secondary_button_text_color_hover", EmitDefaultValue = true)] public string SecondaryButtonTextColorHover { get; set; } - /// /// Gets or Sets TextColor1 /// [DataMember(Name = "text_color1", EmitDefaultValue = true)] public string TextColor1 { get; set; } - /// /// Gets or Sets TextColor2 /// [DataMember(Name = "text_color2", EmitDefaultValue = true)] public string TextColor2 { get; set; } - /// /// Returns the string presentation of the object @@ -203,11 +208,17 @@ public override string ToString() sb.Append(" PrimaryButtonColor: ").Append(PrimaryButtonColor).Append("\n"); sb.Append(" PrimaryButtonColorHover: ").Append(PrimaryButtonColorHover).Append("\n"); sb.Append(" PrimaryButtonTextColor: ").Append(PrimaryButtonTextColor).Append("\n"); - sb.Append(" PrimaryButtonTextColorHover: ").Append(PrimaryButtonTextColorHover).Append("\n"); + sb.Append(" PrimaryButtonTextColorHover: ") + .Append(PrimaryButtonTextColorHover) + .Append("\n"); sb.Append(" SecondaryButtonColor: ").Append(SecondaryButtonColor).Append("\n"); - sb.Append(" SecondaryButtonColorHover: ").Append(SecondaryButtonColorHover).Append("\n"); + sb.Append(" SecondaryButtonColorHover: ") + .Append(SecondaryButtonColorHover) + .Append("\n"); sb.Append(" SecondaryButtonTextColor: ").Append(SecondaryButtonTextColor).Append("\n"); - sb.Append(" SecondaryButtonTextColorHover: ").Append(SecondaryButtonTextColorHover).Append("\n"); + sb.Append(" SecondaryButtonTextColorHover: ") + .Append(SecondaryButtonTextColorHover) + .Append("\n"); sb.Append(" TextColor1: ").Append(TextColor1).Append("\n"); sb.Append(" TextColor2: ").Append(TextColor2).Append("\n"); sb.Append("}\n"); @@ -220,7 +231,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -244,76 +258,95 @@ public bool Equals(ApiAppResponseWhiteLabelingOptions input) { return false; } - return - ( - this.HeaderBackgroundColor == input.HeaderBackgroundColor || - (this.HeaderBackgroundColor != null && - this.HeaderBackgroundColor.Equals(input.HeaderBackgroundColor)) - ) && - ( - this.LegalVersion == input.LegalVersion || - (this.LegalVersion != null && - this.LegalVersion.Equals(input.LegalVersion)) - ) && - ( - this.LinkColor == input.LinkColor || - (this.LinkColor != null && - this.LinkColor.Equals(input.LinkColor)) - ) && - ( - this.PageBackgroundColor == input.PageBackgroundColor || - (this.PageBackgroundColor != null && - this.PageBackgroundColor.Equals(input.PageBackgroundColor)) - ) && - ( - this.PrimaryButtonColor == input.PrimaryButtonColor || - (this.PrimaryButtonColor != null && - this.PrimaryButtonColor.Equals(input.PrimaryButtonColor)) - ) && - ( - this.PrimaryButtonColorHover == input.PrimaryButtonColorHover || - (this.PrimaryButtonColorHover != null && - this.PrimaryButtonColorHover.Equals(input.PrimaryButtonColorHover)) - ) && - ( - this.PrimaryButtonTextColor == input.PrimaryButtonTextColor || - (this.PrimaryButtonTextColor != null && - this.PrimaryButtonTextColor.Equals(input.PrimaryButtonTextColor)) - ) && - ( - this.PrimaryButtonTextColorHover == input.PrimaryButtonTextColorHover || - (this.PrimaryButtonTextColorHover != null && - this.PrimaryButtonTextColorHover.Equals(input.PrimaryButtonTextColorHover)) - ) && - ( - this.SecondaryButtonColor == input.SecondaryButtonColor || - (this.SecondaryButtonColor != null && - this.SecondaryButtonColor.Equals(input.SecondaryButtonColor)) - ) && - ( - this.SecondaryButtonColorHover == input.SecondaryButtonColorHover || - (this.SecondaryButtonColorHover != null && - this.SecondaryButtonColorHover.Equals(input.SecondaryButtonColorHover)) - ) && - ( - this.SecondaryButtonTextColor == input.SecondaryButtonTextColor || - (this.SecondaryButtonTextColor != null && - this.SecondaryButtonTextColor.Equals(input.SecondaryButtonTextColor)) - ) && - ( - this.SecondaryButtonTextColorHover == input.SecondaryButtonTextColorHover || - (this.SecondaryButtonTextColorHover != null && - this.SecondaryButtonTextColorHover.Equals(input.SecondaryButtonTextColorHover)) - ) && - ( - this.TextColor1 == input.TextColor1 || - (this.TextColor1 != null && - this.TextColor1.Equals(input.TextColor1)) - ) && - ( - this.TextColor2 == input.TextColor2 || - (this.TextColor2 != null && - this.TextColor2.Equals(input.TextColor2)) + return ( + this.HeaderBackgroundColor == input.HeaderBackgroundColor + || ( + this.HeaderBackgroundColor != null + && this.HeaderBackgroundColor.Equals(input.HeaderBackgroundColor) + ) + ) + && ( + this.LegalVersion == input.LegalVersion + || (this.LegalVersion != null && this.LegalVersion.Equals(input.LegalVersion)) + ) + && ( + this.LinkColor == input.LinkColor + || (this.LinkColor != null && this.LinkColor.Equals(input.LinkColor)) + ) + && ( + this.PageBackgroundColor == input.PageBackgroundColor + || ( + this.PageBackgroundColor != null + && this.PageBackgroundColor.Equals(input.PageBackgroundColor) + ) + ) + && ( + this.PrimaryButtonColor == input.PrimaryButtonColor + || ( + this.PrimaryButtonColor != null + && this.PrimaryButtonColor.Equals(input.PrimaryButtonColor) + ) + ) + && ( + this.PrimaryButtonColorHover == input.PrimaryButtonColorHover + || ( + this.PrimaryButtonColorHover != null + && this.PrimaryButtonColorHover.Equals(input.PrimaryButtonColorHover) + ) + ) + && ( + this.PrimaryButtonTextColor == input.PrimaryButtonTextColor + || ( + this.PrimaryButtonTextColor != null + && this.PrimaryButtonTextColor.Equals(input.PrimaryButtonTextColor) + ) + ) + && ( + this.PrimaryButtonTextColorHover == input.PrimaryButtonTextColorHover + || ( + this.PrimaryButtonTextColorHover != null + && this.PrimaryButtonTextColorHover.Equals( + input.PrimaryButtonTextColorHover + ) + ) + ) + && ( + this.SecondaryButtonColor == input.SecondaryButtonColor + || ( + this.SecondaryButtonColor != null + && this.SecondaryButtonColor.Equals(input.SecondaryButtonColor) + ) + ) + && ( + this.SecondaryButtonColorHover == input.SecondaryButtonColorHover + || ( + this.SecondaryButtonColorHover != null + && this.SecondaryButtonColorHover.Equals(input.SecondaryButtonColorHover) + ) + ) + && ( + this.SecondaryButtonTextColor == input.SecondaryButtonTextColor + || ( + this.SecondaryButtonTextColor != null + && this.SecondaryButtonTextColor.Equals(input.SecondaryButtonTextColor) + ) + ) + && ( + this.SecondaryButtonTextColorHover == input.SecondaryButtonTextColorHover + || ( + this.SecondaryButtonTextColorHover != null + && this.SecondaryButtonTextColorHover.Equals( + input.SecondaryButtonTextColorHover + ) + ) + ) + && ( + this.TextColor1 == input.TextColor1 + || (this.TextColor1 != null && this.TextColor1.Equals(input.TextColor1)) + ) + && ( + this.TextColor2 == input.TextColor2 + || (this.TextColor2 != null && this.TextColor2.Equals(input.TextColor2)) ); } @@ -391,7 +424,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -399,93 +434,134 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "header_background_color", - Property = "HeaderBackgroundColor", - Type = "string", - Value = HeaderBackgroundColor, - }); - types.Add(new OpenApiType(){ - Name = "legal_version", - Property = "LegalVersion", - Type = "string", - Value = LegalVersion, - }); - types.Add(new OpenApiType(){ - Name = "link_color", - Property = "LinkColor", - Type = "string", - Value = LinkColor, - }); - types.Add(new OpenApiType(){ - Name = "page_background_color", - Property = "PageBackgroundColor", - Type = "string", - Value = PageBackgroundColor, - }); - types.Add(new OpenApiType(){ - Name = "primary_button_color", - Property = "PrimaryButtonColor", - Type = "string", - Value = PrimaryButtonColor, - }); - types.Add(new OpenApiType(){ - Name = "primary_button_color_hover", - Property = "PrimaryButtonColorHover", - Type = "string", - Value = PrimaryButtonColorHover, - }); - types.Add(new OpenApiType(){ - Name = "primary_button_text_color", - Property = "PrimaryButtonTextColor", - Type = "string", - Value = PrimaryButtonTextColor, - }); - types.Add(new OpenApiType(){ - Name = "primary_button_text_color_hover", - Property = "PrimaryButtonTextColorHover", - Type = "string", - Value = PrimaryButtonTextColorHover, - }); - types.Add(new OpenApiType(){ - Name = "secondary_button_color", - Property = "SecondaryButtonColor", - Type = "string", - Value = SecondaryButtonColor, - }); - types.Add(new OpenApiType(){ - Name = "secondary_button_color_hover", - Property = "SecondaryButtonColorHover", - Type = "string", - Value = SecondaryButtonColorHover, - }); - types.Add(new OpenApiType(){ - Name = "secondary_button_text_color", - Property = "SecondaryButtonTextColor", - Type = "string", - Value = SecondaryButtonTextColor, - }); - types.Add(new OpenApiType(){ - Name = "secondary_button_text_color_hover", - Property = "SecondaryButtonTextColorHover", - Type = "string", - Value = SecondaryButtonTextColorHover, - }); - types.Add(new OpenApiType(){ - Name = "text_color1", - Property = "TextColor1", - Type = "string", - Value = TextColor1, - }); - types.Add(new OpenApiType(){ - Name = "text_color2", - Property = "TextColor2", - Type = "string", - Value = TextColor2, - }); + types.Add( + new OpenApiType() + { + Name = "header_background_color", + Property = "HeaderBackgroundColor", + Type = "string", + Value = HeaderBackgroundColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "legal_version", + Property = "LegalVersion", + Type = "string", + Value = LegalVersion, + } + ); + types.Add( + new OpenApiType() + { + Name = "link_color", + Property = "LinkColor", + Type = "string", + Value = LinkColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "page_background_color", + Property = "PageBackgroundColor", + Type = "string", + Value = PageBackgroundColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "primary_button_color", + Property = "PrimaryButtonColor", + Type = "string", + Value = PrimaryButtonColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "primary_button_color_hover", + Property = "PrimaryButtonColorHover", + Type = "string", + Value = PrimaryButtonColorHover, + } + ); + types.Add( + new OpenApiType() + { + Name = "primary_button_text_color", + Property = "PrimaryButtonTextColor", + Type = "string", + Value = PrimaryButtonTextColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "primary_button_text_color_hover", + Property = "PrimaryButtonTextColorHover", + Type = "string", + Value = PrimaryButtonTextColorHover, + } + ); + types.Add( + new OpenApiType() + { + Name = "secondary_button_color", + Property = "SecondaryButtonColor", + Type = "string", + Value = SecondaryButtonColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "secondary_button_color_hover", + Property = "SecondaryButtonColorHover", + Type = "string", + Value = SecondaryButtonColorHover, + } + ); + types.Add( + new OpenApiType() + { + Name = "secondary_button_text_color", + Property = "SecondaryButtonTextColor", + Type = "string", + Value = SecondaryButtonTextColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "secondary_button_text_color_hover", + Property = "SecondaryButtonTextColorHover", + Type = "string", + Value = SecondaryButtonTextColorHover, + } + ); + types.Add( + new OpenApiType() + { + Name = "text_color1", + Property = "TextColor1", + Type = "string", + Value = TextColor1, + } + ); + types.Add( + new OpenApiType() + { + Name = "text_color2", + Property = "TextColor2", + Type = "string", + Value = TextColor2, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs index 12c9ae00e..46a621a4b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class ApiAppUpdateRequest : IEquatable, IVal /// [JsonConstructorAttribute] protected ApiAppUpdateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -48,9 +49,16 @@ protected ApiAppUpdateRequest() { } /// oauth. /// options. /// whiteLabelingOptions. - public ApiAppUpdateRequest(string callbackUrl = default(string), System.IO.Stream customLogoFile = default(System.IO.Stream), List domains = default(List), string name = default(string), SubOAuth oauth = default(SubOAuth), SubOptions options = default(SubOptions), SubWhiteLabelingOptions whiteLabelingOptions = default(SubWhiteLabelingOptions)) + public ApiAppUpdateRequest( + string callbackUrl = default(string), + System.IO.Stream customLogoFile = default(System.IO.Stream), + List domains = default(List), + string name = default(string), + SubOAuth oauth = default(SubOAuth), + SubOptions options = default(SubOptions), + SubWhiteLabelingOptions whiteLabelingOptions = default(SubWhiteLabelingOptions) + ) { - this.CallbackUrl = callbackUrl; this.CustomLogoFile = customLogoFile; this.Domains = domains; @@ -70,7 +78,9 @@ public static ApiAppUpdateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of ApiAppUpdateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of ApiAppUpdateRequest" + ); } return obj; @@ -82,7 +92,6 @@ public static ApiAppUpdateRequest Init(string jsonData) /// The URL at which the API App should receive event callbacks. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) @@ -90,7 +99,6 @@ public static ApiAppUpdateRequest Init(string jsonData) /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) [DataMember(Name = "custom_logo_file", EmitDefaultValue = true)] public System.IO.Stream CustomLogoFile { get; set; } - /// /// The domain names the ApiApp will be associated with. @@ -98,7 +106,6 @@ public static ApiAppUpdateRequest Init(string jsonData) /// The domain names the ApiApp will be associated with. [DataMember(Name = "domains", EmitDefaultValue = true)] public List Domains { get; set; } - /// /// The name you want to assign to the ApiApp. @@ -106,28 +113,24 @@ public static ApiAppUpdateRequest Init(string jsonData) /// The name you want to assign to the ApiApp. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public SubOAuth Oauth { get; set; } - /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public SubOptions Options { get; set; } - /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public SubWhiteLabelingOptions WhiteLabelingOptions { get; set; } - /// /// Returns the string presentation of the object @@ -154,7 +157,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -178,42 +184,38 @@ public bool Equals(ApiAppUpdateRequest input) { return false; } - return - ( - this.CallbackUrl == input.CallbackUrl || - (this.CallbackUrl != null && - this.CallbackUrl.Equals(input.CallbackUrl)) - ) && - ( - this.CustomLogoFile == input.CustomLogoFile || - (this.CustomLogoFile != null && - this.CustomLogoFile.Equals(input.CustomLogoFile)) - ) && - ( - this.Domains == input.Domains || - this.Domains != null && - input.Domains != null && - this.Domains.SequenceEqual(input.Domains) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Oauth == input.Oauth || - (this.Oauth != null && - this.Oauth.Equals(input.Oauth)) - ) && - ( - this.Options == input.Options || - (this.Options != null && - this.Options.Equals(input.Options)) - ) && - ( - this.WhiteLabelingOptions == input.WhiteLabelingOptions || - (this.WhiteLabelingOptions != null && - this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions)) + return ( + this.CallbackUrl == input.CallbackUrl + || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) + ) + && ( + this.CustomLogoFile == input.CustomLogoFile + || ( + this.CustomLogoFile != null + && this.CustomLogoFile.Equals(input.CustomLogoFile) + ) + ) + && ( + this.Domains == input.Domains + || this.Domains != null + && input.Domains != null + && this.Domains.SequenceEqual(input.Domains) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.Oauth == input.Oauth + || (this.Oauth != null && this.Oauth.Equals(input.Oauth)) + ) + && ( + this.Options == input.Options + || (this.Options != null && this.Options.Equals(input.Options)) + ) + && ( + this.WhiteLabelingOptions == input.WhiteLabelingOptions + || ( + this.WhiteLabelingOptions != null + && this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions) + ) ); } @@ -263,7 +265,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -271,51 +275,71 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - }); - types.Add(new OpenApiType(){ - Name = "custom_logo_file", - Property = "CustomLogoFile", - Type = "System.IO.Stream", - Value = CustomLogoFile, - }); - types.Add(new OpenApiType(){ - Name = "domains", - Property = "Domains", - Type = "List", - Value = Domains, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "oauth", - Property = "Oauth", - Type = "SubOAuth", - Value = Oauth, - }); - types.Add(new OpenApiType(){ - Name = "options", - Property = "Options", - Type = "SubOptions", - Value = Options, - }); - types.Add(new OpenApiType(){ - Name = "white_labeling_options", - Property = "WhiteLabelingOptions", - Type = "SubWhiteLabelingOptions", - Value = WhiteLabelingOptions, - }); + types.Add( + new OpenApiType() + { + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_logo_file", + Property = "CustomLogoFile", + Type = "System.IO.Stream", + Value = CustomLogoFile, + } + ); + types.Add( + new OpenApiType() + { + Name = "domains", + Property = "Domains", + Type = "List", + Value = Domains, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "oauth", + Property = "Oauth", + Type = "SubOAuth", + Value = Oauth, + } + ); + types.Add( + new OpenApiType() + { + Name = "options", + Property = "Options", + Type = "SubOptions", + Value = Options, + } + ); + types.Add( + new OpenApiType() + { + Name = "white_labeling_options", + Property = "WhiteLabelingOptions", + Type = "SubWhiteLabelingOptions", + Value = WhiteLabelingOptions, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs index 55bac37aa..c6ed0aaed 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobGetResponse : IEquatable, IValidatableObject + public partial class BulkSendJobGetResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected BulkSendJobGetResponse() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +48,14 @@ protected BulkSendJobGetResponse() { } /// listInfo. /// Contains information about the Signature Requests sent in bulk.. /// A list of warnings.. - public BulkSendJobGetResponse(BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), ListInfoResponse listInfo = default(ListInfoResponse), List signatureRequests = default(List), List warnings = default(List)) + public BulkSendJobGetResponse( + BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), + ListInfoResponse listInfo = default(ListInfoResponse), + List signatureRequests = + default(List), + List warnings = default(List) + ) { - this.BulkSendJob = bulkSendJob; this.ListInfo = listInfo; this.SignatureRequests = signatureRequests; @@ -64,7 +72,9 @@ public static BulkSendJobGetResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of BulkSendJobGetResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of BulkSendJobGetResponse" + ); } return obj; @@ -75,14 +85,12 @@ public static BulkSendJobGetResponse Init(string jsonData) /// [DataMember(Name = "bulk_send_job", EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// Contains information about the Signature Requests sent in bulk. @@ -90,7 +98,6 @@ public static BulkSendJobGetResponse Init(string jsonData) /// Contains information about the Signature Requests sent in bulk. [DataMember(Name = "signature_requests", EmitDefaultValue = true)] public List SignatureRequests { get; set; } - /// /// A list of warnings. @@ -98,7 +105,6 @@ public static BulkSendJobGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -122,7 +128,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -146,28 +155,25 @@ public bool Equals(BulkSendJobGetResponse input) { return false; } - return - ( - this.BulkSendJob == input.BulkSendJob || - (this.BulkSendJob != null && - this.BulkSendJob.Equals(input.BulkSendJob)) - ) && - ( - this.ListInfo == input.ListInfo || - (this.ListInfo != null && - this.ListInfo.Equals(input.ListInfo)) - ) && - ( - this.SignatureRequests == input.SignatureRequests || - this.SignatureRequests != null && - input.SignatureRequests != null && - this.SignatureRequests.SequenceEqual(input.SignatureRequests) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.BulkSendJob == input.BulkSendJob + || (this.BulkSendJob != null && this.BulkSendJob.Equals(input.BulkSendJob)) + ) + && ( + this.ListInfo == input.ListInfo + || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) + ) + && ( + this.SignatureRequests == input.SignatureRequests + || this.SignatureRequests != null + && input.SignatureRequests != null + && this.SignatureRequests.SequenceEqual(input.SignatureRequests) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -205,7 +211,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -213,33 +221,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "bulk_send_job", - Property = "BulkSendJob", - Type = "BulkSendJobResponse", - Value = BulkSendJob, - }); - types.Add(new OpenApiType(){ - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - }); - types.Add(new OpenApiType(){ - Name = "signature_requests", - Property = "SignatureRequests", - Type = "List", - Value = SignatureRequests, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "bulk_send_job", + Property = "BulkSendJob", + Type = "BulkSendJobResponse", + Value = BulkSendJob, + } + ); + types.Add( + new OpenApiType() + { + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + } + ); + types.Add( + new OpenApiType() + { + Name = "signature_requests", + Property = "SignatureRequests", + Type = "List", + Value = SignatureRequests, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index de4b96fe1..a93697137 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobGetResponseSignatureRequests")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobGetResponseSignatureRequests : IEquatable, IValidatableObject + public partial class BulkSendJobGetResponseSignatureRequests + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected BulkSendJobGetResponseSignatureRequests() { } + /// /// Initializes a new instance of the class. /// @@ -66,9 +69,38 @@ protected BulkSendJobGetResponseSignatureRequests() { } /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers.. /// An array of signature objects, 1 for each signer.. /// The id of the BulkSendJob.. - public BulkSendJobGetResponseSignatureRequests(bool? testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Object metadata = default(Object), int createdAt = default(int), int expiresAt = default(int), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) + public BulkSendJobGetResponseSignatureRequests( + bool? testMode = false, + string signatureRequestId = default(string), + string requesterEmailAddress = default(string), + string title = default(string), + string originalTitle = default(string), + string subject = default(string), + string message = default(string), + Object metadata = default(Object), + int createdAt = default(int), + int expiresAt = default(int), + bool isComplete = default(bool), + bool isDeclined = default(bool), + bool hasError = default(bool), + string filesUrl = default(string), + string signingUrl = default(string), + string detailsUrl = default(string), + List ccEmailAddresses = default(List), + string signingRedirectUrl = default(string), + string finalCopyUri = default(string), + List templateIds = default(List), + List customFields = + default(List), + List attachments = + default(List), + List responseData = + default(List), + List signatures = + default(List), + string bulkSendJobId = default(string) + ) { - // use default value if no "testMode" provided this.TestMode = testMode ?? false; this.SignatureRequestId = signatureRequestId; @@ -103,11 +135,15 @@ protected BulkSendJobGetResponseSignatureRequests() { } /// String of JSON data representing target object public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of BulkSendJobGetResponseSignatureRequests"); + throw new Exception( + "Unable to deserialize JSON to instance of BulkSendJobGetResponseSignatureRequests" + ); } return obj; @@ -119,7 +155,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool? TestMode { get; set; } - /// /// The id of the SignatureRequest. @@ -127,7 +162,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The id of the SignatureRequest. [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } - /// /// The email address of the initiator of the SignatureRequest. @@ -135,7 +169,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The email address of the initiator of the SignatureRequest. [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// The title the specified Account uses for the SignatureRequest. @@ -143,7 +176,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The title the specified Account uses for the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Default Label for account. @@ -151,7 +183,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Default Label for account. [DataMember(Name = "original_title", EmitDefaultValue = true)] public string OriginalTitle { get; set; } - /// /// The subject in the email that was initially sent to the signers. @@ -159,7 +190,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The subject in the email that was initially sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// The custom message in the email that was initially sent to the signers. @@ -167,7 +197,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The custom message in the email that was initially sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// The metadata attached to the signature request. @@ -175,7 +204,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } - /// /// Time the signature request was created. @@ -183,7 +211,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Time the signature request was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -191,7 +218,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -199,7 +225,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether or not the SignatureRequest has been fully executed by all signers. [DataMember(Name = "is_complete", EmitDefaultValue = true)] public bool IsComplete { get; set; } - /// /// Whether or not the SignatureRequest has been declined by a signer. @@ -207,7 +232,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether or not the SignatureRequest has been declined by a signer. [DataMember(Name = "is_declined", EmitDefaultValue = true)] public bool IsDeclined { get; set; } - /// /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). @@ -215,7 +239,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). [DataMember(Name = "has_error", EmitDefaultValue = true)] public bool HasError { get; set; } - /// /// The URL where a copy of the request's documents can be downloaded. @@ -223,7 +246,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL where a copy of the request's documents can be downloaded. [DataMember(Name = "files_url", EmitDefaultValue = true)] public string FilesUrl { get; set; } - /// /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. @@ -231,7 +253,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. [DataMember(Name = "signing_url", EmitDefaultValue = true)] public string SigningUrl { get; set; } - /// /// The URL where the requester and the signers can view the current status of the SignatureRequest. @@ -239,7 +260,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL where the requester and the signers can view the current status of the SignatureRequest. [DataMember(Name = "details_url", EmitDefaultValue = true)] public string DetailsUrl { get; set; } - /// /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. @@ -247,7 +267,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// The URL you want the signer redirected to after they successfully sign. @@ -255,7 +274,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL you want the signer redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The path where the completed document can be downloaded @@ -263,7 +281,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The path where the completed document can be downloaded [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] public string FinalCopyUri { get; set; } - /// /// Templates IDs used in this SignatureRequest (if any). @@ -271,7 +288,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Templates IDs used in this SignatureRequest (if any). [DataMember(Name = "template_ids", EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` @@ -279,7 +295,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Signer attachments. @@ -287,7 +302,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Signer attachments. [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. @@ -295,7 +309,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. [DataMember(Name = "response_data", EmitDefaultValue = true)] public List ResponseData { get; set; } - /// /// An array of signature objects, 1 for each signer. @@ -303,7 +316,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// An array of signature objects, 1 for each signer. [DataMember(Name = "signatures", EmitDefaultValue = true)] public List Signatures { get; set; } - /// /// The id of the BulkSendJob. @@ -311,7 +323,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The id of the BulkSendJob. [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } - /// /// Returns the string presentation of the object @@ -356,7 +367,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -380,132 +394,115 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) { return false; } - return - ( - this.TestMode == input.TestMode || - (this.TestMode != null && - this.TestMode.Equals(input.TestMode)) - ) && - ( - this.SignatureRequestId == input.SignatureRequestId || - (this.SignatureRequestId != null && - this.SignatureRequestId.Equals(input.SignatureRequestId)) - ) && - ( - this.RequesterEmailAddress == input.RequesterEmailAddress || - (this.RequesterEmailAddress != null && - this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.OriginalTitle == input.OriginalTitle || - (this.OriginalTitle != null && - this.OriginalTitle.Equals(input.OriginalTitle)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - (this.Metadata != null && - this.Metadata.Equals(input.Metadata)) - ) && - ( - this.CreatedAt == input.CreatedAt || - this.CreatedAt.Equals(input.CreatedAt) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) - ) && - ( - this.IsComplete == input.IsComplete || - this.IsComplete.Equals(input.IsComplete) - ) && - ( - this.IsDeclined == input.IsDeclined || - this.IsDeclined.Equals(input.IsDeclined) - ) && - ( - this.HasError == input.HasError || - this.HasError.Equals(input.HasError) - ) && - ( - this.FilesUrl == input.FilesUrl || - (this.FilesUrl != null && - this.FilesUrl.Equals(input.FilesUrl)) - ) && - ( - this.SigningUrl == input.SigningUrl || - (this.SigningUrl != null && - this.SigningUrl.Equals(input.SigningUrl)) - ) && - ( - this.DetailsUrl == input.DetailsUrl || - (this.DetailsUrl != null && - this.DetailsUrl.Equals(input.DetailsUrl)) - ) && - ( - this.CcEmailAddresses == input.CcEmailAddresses || - this.CcEmailAddresses != null && - input.CcEmailAddresses != null && - this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.FinalCopyUri == input.FinalCopyUri || - (this.FinalCopyUri != null && - this.FinalCopyUri.Equals(input.FinalCopyUri)) - ) && - ( - this.TemplateIds == input.TemplateIds || - this.TemplateIds != null && - input.TemplateIds != null && - this.TemplateIds.SequenceEqual(input.TemplateIds) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.ResponseData == input.ResponseData || - this.ResponseData != null && - input.ResponseData != null && - this.ResponseData.SequenceEqual(input.ResponseData) - ) && - ( - this.Signatures == input.Signatures || - this.Signatures != null && - input.Signatures != null && - this.Signatures.SequenceEqual(input.Signatures) - ) && - ( - this.BulkSendJobId == input.BulkSendJobId || - (this.BulkSendJobId != null && - this.BulkSendJobId.Equals(input.BulkSendJobId)) + return ( + this.TestMode == input.TestMode + || (this.TestMode != null && this.TestMode.Equals(input.TestMode)) + ) + && ( + this.SignatureRequestId == input.SignatureRequestId + || ( + this.SignatureRequestId != null + && this.SignatureRequestId.Equals(input.SignatureRequestId) + ) + ) + && ( + this.RequesterEmailAddress == input.RequesterEmailAddress + || ( + this.RequesterEmailAddress != null + && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) + ) + ) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.OriginalTitle == input.OriginalTitle + || ( + this.OriginalTitle != null && this.OriginalTitle.Equals(input.OriginalTitle) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || (this.Metadata != null && this.Metadata.Equals(input.Metadata)) + ) + && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)) + && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)) + && (this.IsComplete == input.IsComplete || this.IsComplete.Equals(input.IsComplete)) + && (this.IsDeclined == input.IsDeclined || this.IsDeclined.Equals(input.IsDeclined)) + && (this.HasError == input.HasError || this.HasError.Equals(input.HasError)) + && ( + this.FilesUrl == input.FilesUrl + || (this.FilesUrl != null && this.FilesUrl.Equals(input.FilesUrl)) + ) + && ( + this.SigningUrl == input.SigningUrl + || (this.SigningUrl != null && this.SigningUrl.Equals(input.SigningUrl)) + ) + && ( + this.DetailsUrl == input.DetailsUrl + || (this.DetailsUrl != null && this.DetailsUrl.Equals(input.DetailsUrl)) + ) + && ( + this.CcEmailAddresses == input.CcEmailAddresses + || this.CcEmailAddresses != null + && input.CcEmailAddresses != null + && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.FinalCopyUri == input.FinalCopyUri + || (this.FinalCopyUri != null && this.FinalCopyUri.Equals(input.FinalCopyUri)) + ) + && ( + this.TemplateIds == input.TemplateIds + || this.TemplateIds != null + && input.TemplateIds != null + && this.TemplateIds.SequenceEqual(input.TemplateIds) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.ResponseData == input.ResponseData + || this.ResponseData != null + && input.ResponseData != null + && this.ResponseData.SequenceEqual(input.ResponseData) + ) + && ( + this.Signatures == input.Signatures + || this.Signatures != null + && input.Signatures != null + && this.Signatures.SequenceEqual(input.Signatures) + ) + && ( + this.BulkSendJobId == input.BulkSendJobId + || ( + this.BulkSendJobId != null && this.BulkSendJobId.Equals(input.BulkSendJobId) + ) ); } @@ -612,7 +609,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -620,159 +619,233 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool?", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "signature_request_id", - Property = "SignatureRequestId", - Type = "string", - Value = SignatureRequestId, - }); - types.Add(new OpenApiType(){ - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "original_title", - Property = "OriginalTitle", - Type = "string", - Value = OriginalTitle, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Object", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - }); - types.Add(new OpenApiType(){ - Name = "is_complete", - Property = "IsComplete", - Type = "bool", - Value = IsComplete, - }); - types.Add(new OpenApiType(){ - Name = "is_declined", - Property = "IsDeclined", - Type = "bool", - Value = IsDeclined, - }); - types.Add(new OpenApiType(){ - Name = "has_error", - Property = "HasError", - Type = "bool", - Value = HasError, - }); - types.Add(new OpenApiType(){ - Name = "files_url", - Property = "FilesUrl", - Type = "string", - Value = FilesUrl, - }); - types.Add(new OpenApiType(){ - Name = "signing_url", - Property = "SigningUrl", - Type = "string", - Value = SigningUrl, - }); - types.Add(new OpenApiType(){ - Name = "details_url", - Property = "DetailsUrl", - Type = "string", - Value = DetailsUrl, - }); - types.Add(new OpenApiType(){ - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "final_copy_uri", - Property = "FinalCopyUri", - Type = "string", - Value = FinalCopyUri, - }); - types.Add(new OpenApiType(){ - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "response_data", - Property = "ResponseData", - Type = "List", - Value = ResponseData, - }); - types.Add(new OpenApiType(){ - Name = "signatures", - Property = "Signatures", - Type = "List", - Value = Signatures, - }); - types.Add(new OpenApiType(){ - Name = "bulk_send_job_id", - Property = "BulkSendJobId", - Type = "string", - Value = BulkSendJobId, - }); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool?", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "signature_request_id", + Property = "SignatureRequestId", + Type = "string", + Value = SignatureRequestId, + } + ); + types.Add( + new OpenApiType() + { + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "original_title", + Property = "OriginalTitle", + Type = "string", + Value = OriginalTitle, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Object", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_complete", + Property = "IsComplete", + Type = "bool", + Value = IsComplete, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_declined", + Property = "IsDeclined", + Type = "bool", + Value = IsDeclined, + } + ); + types.Add( + new OpenApiType() + { + Name = "has_error", + Property = "HasError", + Type = "bool", + Value = HasError, + } + ); + types.Add( + new OpenApiType() + { + Name = "files_url", + Property = "FilesUrl", + Type = "string", + Value = FilesUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_url", + Property = "SigningUrl", + Type = "string", + Value = SigningUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "details_url", + Property = "DetailsUrl", + Type = "string", + Value = DetailsUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "final_copy_uri", + Property = "FinalCopyUri", + Type = "string", + Value = FinalCopyUri, + } + ); + types.Add( + new OpenApiType() + { + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "response_data", + Property = "ResponseData", + Type = "List", + Value = ResponseData, + } + ); + types.Add( + new OpenApiType() + { + Name = "signatures", + Property = "Signatures", + Type = "List", + Value = Signatures, + } + ); + types.Add( + new OpenApiType() + { + Name = "bulk_send_job_id", + Property = "BulkSendJobId", + Type = "string", + Value = BulkSendJobId, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs index 3494c14c8..a29a91943 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,22 +31,28 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobListResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobListResponse : IEquatable, IValidatableObject + public partial class BulkSendJobListResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected BulkSendJobListResponse() { } + /// /// Initializes a new instance of the class. /// /// Contains a list of BulkSendJobs that the API caller has access to.. /// listInfo. /// A list of warnings.. - public BulkSendJobListResponse(List bulkSendJobs = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) + public BulkSendJobListResponse( + List bulkSendJobs = default(List), + ListInfoResponse listInfo = default(ListInfoResponse), + List warnings = default(List) + ) { - this.BulkSendJobs = bulkSendJobs; this.ListInfo = listInfo; this.Warnings = warnings; @@ -62,7 +68,9 @@ public static BulkSendJobListResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of BulkSendJobListResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of BulkSendJobListResponse" + ); } return obj; @@ -74,14 +82,12 @@ public static BulkSendJobListResponse Init(string jsonData) /// Contains a list of BulkSendJobs that the API caller has access to. [DataMember(Name = "bulk_send_jobs", EmitDefaultValue = true)] public List BulkSendJobs { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// A list of warnings. @@ -89,7 +95,6 @@ public static BulkSendJobListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +117,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,23 +144,21 @@ public bool Equals(BulkSendJobListResponse input) { return false; } - return - ( - this.BulkSendJobs == input.BulkSendJobs || - this.BulkSendJobs != null && - input.BulkSendJobs != null && - this.BulkSendJobs.SequenceEqual(input.BulkSendJobs) - ) && - ( - this.ListInfo == input.ListInfo || - (this.ListInfo != null && - this.ListInfo.Equals(input.ListInfo)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.BulkSendJobs == input.BulkSendJobs + || this.BulkSendJobs != null + && input.BulkSendJobs != null + && this.BulkSendJobs.SequenceEqual(input.BulkSendJobs) + ) + && ( + this.ListInfo == input.ListInfo + || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -186,7 +192,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -194,27 +202,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "bulk_send_jobs", - Property = "BulkSendJobs", - Type = "List", - Value = BulkSendJobs, - }); - types.Add(new OpenApiType(){ - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "bulk_send_jobs", + Property = "BulkSendJobs", + Type = "List", + Value = BulkSendJobs, + } + ); + types.Add( + new OpenApiType() + { + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs index e61d3015a..29eea4fd7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class BulkSendJobResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected BulkSendJobResponse() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +46,13 @@ protected BulkSendJobResponse() { } /// The total amount of Signature Requests queued for sending.. /// True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member.. /// Time that the BulkSendJob was created.. - public BulkSendJobResponse(string bulkSendJobId = default(string), int total = default(int), bool isCreator = default(bool), int createdAt = default(int)) + public BulkSendJobResponse( + string bulkSendJobId = default(string), + int total = default(int), + bool isCreator = default(bool), + int createdAt = default(int) + ) { - this.BulkSendJobId = bulkSendJobId; this.Total = total; this.IsCreator = isCreator; @@ -64,7 +69,9 @@ public static BulkSendJobResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of BulkSendJobResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of BulkSendJobResponse" + ); } return obj; @@ -76,7 +83,6 @@ public static BulkSendJobResponse Init(string jsonData) /// The id of the BulkSendJob. [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } - /// /// The total amount of Signature Requests queued for sending. @@ -84,7 +90,6 @@ public static BulkSendJobResponse Init(string jsonData) /// The total amount of Signature Requests queued for sending. [DataMember(Name = "total", EmitDefaultValue = true)] public int Total { get; set; } - /// /// True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. @@ -92,7 +97,6 @@ public static BulkSendJobResponse Init(string jsonData) /// True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. [DataMember(Name = "is_creator", EmitDefaultValue = true)] public bool IsCreator { get; set; } - /// /// Time that the BulkSendJob was created. @@ -100,7 +104,6 @@ public static BulkSendJobResponse Init(string jsonData) /// Time that the BulkSendJob was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// Returns the string presentation of the object @@ -124,7 +127,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -148,24 +154,15 @@ public bool Equals(BulkSendJobResponse input) { return false; } - return - ( - this.BulkSendJobId == input.BulkSendJobId || - (this.BulkSendJobId != null && - this.BulkSendJobId.Equals(input.BulkSendJobId)) - ) && - ( - this.Total == input.Total || - this.Total.Equals(input.Total) - ) && - ( - this.IsCreator == input.IsCreator || - this.IsCreator.Equals(input.IsCreator) - ) && - ( - this.CreatedAt == input.CreatedAt || - this.CreatedAt.Equals(input.CreatedAt) - ); + return ( + this.BulkSendJobId == input.BulkSendJobId + || ( + this.BulkSendJobId != null && this.BulkSendJobId.Equals(input.BulkSendJobId) + ) + ) + && (this.Total == input.Total || this.Total.Equals(input.Total)) + && (this.IsCreator == input.IsCreator || this.IsCreator.Equals(input.IsCreator)) + && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)); } /// @@ -193,7 +190,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -201,33 +200,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "bulk_send_job_id", - Property = "BulkSendJobId", - Type = "string", - Value = BulkSendJobId, - }); - types.Add(new OpenApiType(){ - Name = "total", - Property = "Total", - Type = "int", - Value = Total, - }); - types.Add(new OpenApiType(){ - Name = "is_creator", - Property = "IsCreator", - Type = "bool", - Value = IsCreator, - }); - types.Add(new OpenApiType(){ - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - }); + types.Add( + new OpenApiType() + { + Name = "bulk_send_job_id", + Property = "BulkSendJobId", + Type = "string", + Value = BulkSendJobId, + } + ); + types.Add( + new OpenApiType() + { + Name = "total", + Property = "Total", + Type = "int", + Value = Total, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_creator", + Property = "IsCreator", + Type = "bool", + Value = IsCreator, + } + ); + types.Add( + new OpenApiType() + { + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs index 48677a1c9..962614584 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobSendResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobSendResponse : IEquatable, IValidatableObject + public partial class BulkSendJobSendResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected BulkSendJobSendResponse() { } + /// /// Initializes a new instance of the class. /// /// bulkSendJob. /// A list of warnings.. - public BulkSendJobSendResponse(BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), List warnings = default(List)) + public BulkSendJobSendResponse( + BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), + List warnings = default(List) + ) { - this.BulkSendJob = bulkSendJob; this.Warnings = warnings; } @@ -60,7 +65,9 @@ public static BulkSendJobSendResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of BulkSendJobSendResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of BulkSendJobSendResponse" + ); } return obj; @@ -71,7 +78,6 @@ public static BulkSendJobSendResponse Init(string jsonData) /// [DataMember(Name = "bulk_send_job", EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } - /// /// A list of warnings. @@ -79,7 +85,6 @@ public static BulkSendJobSendResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +106,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +133,15 @@ public bool Equals(BulkSendJobSendResponse input) { return false; } - return - ( - this.BulkSendJob == input.BulkSendJob || - (this.BulkSendJob != null && - this.BulkSendJob.Equals(input.BulkSendJob)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.BulkSendJob == input.BulkSendJob + || (this.BulkSendJob != null && this.BulkSendJob.Equals(input.BulkSendJob)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +171,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +181,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "bulk_send_job", - Property = "BulkSendJob", - Type = "BulkSendJobResponse", - Value = BulkSendJob, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "bulk_send_job", + Property = "BulkSendJob", + Type = "BulkSendJobResponse", + Value = BulkSendJob, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs index 7854b27ec..fb34f05d2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedEditUrlRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedEditUrlRequest : IEquatable, IValidatableObject + public partial class EmbeddedEditUrlRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedEditUrlRequest() { } + /// /// Initializes a new instance of the class. /// @@ -51,9 +54,19 @@ protected EmbeddedEditUrlRequest() { } /// This allows the requester to enable the editor/preview experience. (default to false). /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. (default to true). /// Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. (default to false). - public EmbeddedEditUrlRequest(bool allowEditCcs = false, List ccRoles = default(List), SubEditorOptions editorOptions = default(SubEditorOptions), bool forceSignerRoles = false, bool forceSubjectMessage = false, List mergeFields = default(List), bool previewOnly = false, bool showPreview = false, bool showProgressStepper = true, bool testMode = false) + public EmbeddedEditUrlRequest( + bool allowEditCcs = false, + List ccRoles = default(List), + SubEditorOptions editorOptions = default(SubEditorOptions), + bool forceSignerRoles = false, + bool forceSubjectMessage = false, + List mergeFields = default(List), + bool previewOnly = false, + bool showPreview = false, + bool showProgressStepper = true, + bool testMode = false + ) { - this.AllowEditCcs = allowEditCcs; this.CcRoles = ccRoles; this.EditorOptions = editorOptions; @@ -76,7 +89,9 @@ public static EmbeddedEditUrlRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of EmbeddedEditUrlRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of EmbeddedEditUrlRequest" + ); } return obj; @@ -88,7 +103,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// This allows the requester to enable/disable to add or change CC roles when editing the template. [DataMember(Name = "allow_edit_ccs", EmitDefaultValue = true)] public bool AllowEditCcs { get; set; } - /// /// The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. @@ -96,14 +110,12 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// Provide users the ability to review/edit the template signer roles. @@ -111,7 +123,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Provide users the ability to review/edit the template signer roles. [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } - /// /// Provide users the ability to review/edit the template subject and message. @@ -119,7 +130,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Provide users the ability to review/edit the template subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } - /// /// Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template. Remove all merge fields on the template by passing an empty array `[]`. @@ -127,7 +137,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template. Remove all merge fields on the template by passing an empty array `[]`. [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } - /// /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). **NOTE:** This parameter overwrites `show_preview=true` (if set). @@ -135,7 +144,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). **NOTE:** This parameter overwrites `show_preview=true` (if set). [DataMember(Name = "preview_only", EmitDefaultValue = true)] public bool PreviewOnly { get; set; } - /// /// This allows the requester to enable the editor/preview experience. @@ -143,7 +151,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// This allows the requester to enable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -151,7 +158,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. @@ -159,7 +165,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Returns the string presentation of the object @@ -189,7 +194,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -213,52 +221,49 @@ public bool Equals(EmbeddedEditUrlRequest input) { return false; } - return - ( - this.AllowEditCcs == input.AllowEditCcs || - this.AllowEditCcs.Equals(input.AllowEditCcs) - ) && - ( - this.CcRoles == input.CcRoles || - this.CcRoles != null && - input.CcRoles != null && - this.CcRoles.SequenceEqual(input.CcRoles) - ) && - ( - this.EditorOptions == input.EditorOptions || - (this.EditorOptions != null && - this.EditorOptions.Equals(input.EditorOptions)) - ) && - ( - this.ForceSignerRoles == input.ForceSignerRoles || - this.ForceSignerRoles.Equals(input.ForceSignerRoles) - ) && - ( - this.ForceSubjectMessage == input.ForceSubjectMessage || - this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) - ) && - ( - this.MergeFields == input.MergeFields || - this.MergeFields != null && - input.MergeFields != null && - this.MergeFields.SequenceEqual(input.MergeFields) - ) && - ( - this.PreviewOnly == input.PreviewOnly || - this.PreviewOnly.Equals(input.PreviewOnly) - ) && - ( - this.ShowPreview == input.ShowPreview || - this.ShowPreview.Equals(input.ShowPreview) - ) && - ( - this.ShowProgressStepper == input.ShowProgressStepper || - this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ); + return ( + this.AllowEditCcs == input.AllowEditCcs + || this.AllowEditCcs.Equals(input.AllowEditCcs) + ) + && ( + this.CcRoles == input.CcRoles + || this.CcRoles != null + && input.CcRoles != null + && this.CcRoles.SequenceEqual(input.CcRoles) + ) + && ( + this.EditorOptions == input.EditorOptions + || ( + this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) + ) + ) + && ( + this.ForceSignerRoles == input.ForceSignerRoles + || this.ForceSignerRoles.Equals(input.ForceSignerRoles) + ) + && ( + this.ForceSubjectMessage == input.ForceSubjectMessage + || this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) + ) + && ( + this.MergeFields == input.MergeFields + || this.MergeFields != null + && input.MergeFields != null + && this.MergeFields.SequenceEqual(input.MergeFields) + ) + && ( + this.PreviewOnly == input.PreviewOnly + || this.PreviewOnly.Equals(input.PreviewOnly) + ) + && ( + this.ShowPreview == input.ShowPreview + || this.ShowPreview.Equals(input.ShowPreview) + ) + && ( + this.ShowProgressStepper == input.ShowProgressStepper + || this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)); } /// @@ -298,7 +303,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -306,69 +313,98 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "allow_edit_ccs", - Property = "AllowEditCcs", - Type = "bool", - Value = AllowEditCcs, - }); - types.Add(new OpenApiType(){ - Name = "cc_roles", - Property = "CcRoles", - Type = "List", - Value = CcRoles, - }); - types.Add(new OpenApiType(){ - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - }); - types.Add(new OpenApiType(){ - Name = "force_signer_roles", - Property = "ForceSignerRoles", - Type = "bool", - Value = ForceSignerRoles, - }); - types.Add(new OpenApiType(){ - Name = "force_subject_message", - Property = "ForceSubjectMessage", - Type = "bool", - Value = ForceSubjectMessage, - }); - types.Add(new OpenApiType(){ - Name = "merge_fields", - Property = "MergeFields", - Type = "List", - Value = MergeFields, - }); - types.Add(new OpenApiType(){ - Name = "preview_only", - Property = "PreviewOnly", - Type = "bool", - Value = PreviewOnly, - }); - types.Add(new OpenApiType(){ - Name = "show_preview", - Property = "ShowPreview", - Type = "bool", - Value = ShowPreview, - }); - types.Add(new OpenApiType(){ - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); + types.Add( + new OpenApiType() + { + Name = "allow_edit_ccs", + Property = "AllowEditCcs", + Type = "bool", + Value = AllowEditCcs, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_roles", + Property = "CcRoles", + Type = "List", + Value = CcRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "force_signer_roles", + Property = "ForceSignerRoles", + Type = "bool", + Value = ForceSignerRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "force_subject_message", + Property = "ForceSubjectMessage", + Type = "bool", + Value = ForceSubjectMessage, + } + ); + types.Add( + new OpenApiType() + { + Name = "merge_fields", + Property = "MergeFields", + Type = "List", + Value = MergeFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "preview_only", + Property = "PreviewOnly", + Type = "bool", + Value = PreviewOnly, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_preview", + Property = "ShowPreview", + Type = "bool", + Value = ShowPreview, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs index 9b6ac92d8..d0954501c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedEditUrlResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedEditUrlResponse : IEquatable, IValidatableObject + public partial class EmbeddedEditUrlResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedEditUrlResponse() { } + /// /// Initializes a new instance of the class. /// /// embedded. /// A list of warnings.. - public EmbeddedEditUrlResponse(EmbeddedEditUrlResponseEmbedded embedded = default(EmbeddedEditUrlResponseEmbedded), List warnings = default(List)) + public EmbeddedEditUrlResponse( + EmbeddedEditUrlResponseEmbedded embedded = default(EmbeddedEditUrlResponseEmbedded), + List warnings = default(List) + ) { - this.Embedded = embedded; this.Warnings = warnings; } @@ -60,7 +65,9 @@ public static EmbeddedEditUrlResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of EmbeddedEditUrlResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of EmbeddedEditUrlResponse" + ); } return obj; @@ -71,7 +78,6 @@ public static EmbeddedEditUrlResponse Init(string jsonData) /// [DataMember(Name = "embedded", EmitDefaultValue = true)] public EmbeddedEditUrlResponseEmbedded Embedded { get; set; } - /// /// A list of warnings. @@ -79,7 +85,6 @@ public static EmbeddedEditUrlResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +106,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +133,15 @@ public bool Equals(EmbeddedEditUrlResponse input) { return false; } - return - ( - this.Embedded == input.Embedded || - (this.Embedded != null && - this.Embedded.Equals(input.Embedded)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Embedded == input.Embedded + || (this.Embedded != null && this.Embedded.Equals(input.Embedded)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +171,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +181,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "embedded", - Property = "Embedded", - Type = "EmbeddedEditUrlResponseEmbedded", - Value = Embedded, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "embedded", + Property = "Embedded", + Type = "EmbeddedEditUrlResponseEmbedded", + Value = Embedded, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs index 26da981f8..33293e4f8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedEditUrlResponseEmbedded")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedEditUrlResponseEmbedded : IEquatable, IValidatableObject + public partial class EmbeddedEditUrlResponseEmbedded + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedEditUrlResponseEmbedded() { } + /// /// Initializes a new instance of the class. /// /// A template url that can be opened in an iFrame.. /// The specific time that the the `edit_url` link expires, in epoch.. - public EmbeddedEditUrlResponseEmbedded(string editUrl = default(string), int expiresAt = default(int)) + public EmbeddedEditUrlResponseEmbedded( + string editUrl = default(string), + int expiresAt = default(int) + ) { - this.EditUrl = editUrl; this.ExpiresAt = expiresAt; } @@ -60,7 +65,9 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of EmbeddedEditUrlResponseEmbedded"); + throw new Exception( + "Unable to deserialize JSON to instance of EmbeddedEditUrlResponseEmbedded" + ); } return obj; @@ -72,7 +79,6 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) /// A template url that can be opened in an iFrame. [DataMember(Name = "edit_url", EmitDefaultValue = true)] public string EditUrl { get; set; } - /// /// The specific time that the the `edit_url` link expires, in epoch. @@ -80,7 +86,6 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) /// The specific time that the the `edit_url` link expires, in epoch. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +107,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,16 +134,10 @@ public bool Equals(EmbeddedEditUrlResponseEmbedded input) { return false; } - return - ( - this.EditUrl == input.EditUrl || - (this.EditUrl != null && - this.EditUrl.Equals(input.EditUrl)) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) - ); + return ( + this.EditUrl == input.EditUrl + || (this.EditUrl != null && this.EditUrl.Equals(input.EditUrl)) + ) && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)); } /// @@ -161,7 +163,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -169,21 +173,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "edit_url", - Property = "EditUrl", - Type = "string", - Value = EditUrl, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "edit_url", + Property = "EditUrl", + Type = "string", + Value = EditUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs index df9fb1ac6..6fd755393 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedSignUrlResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedSignUrlResponse : IEquatable, IValidatableObject + public partial class EmbeddedSignUrlResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedSignUrlResponse() { } + /// /// Initializes a new instance of the class. /// /// embedded. /// A list of warnings.. - public EmbeddedSignUrlResponse(EmbeddedSignUrlResponseEmbedded embedded = default(EmbeddedSignUrlResponseEmbedded), List warnings = default(List)) + public EmbeddedSignUrlResponse( + EmbeddedSignUrlResponseEmbedded embedded = default(EmbeddedSignUrlResponseEmbedded), + List warnings = default(List) + ) { - this.Embedded = embedded; this.Warnings = warnings; } @@ -60,7 +65,9 @@ public static EmbeddedSignUrlResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of EmbeddedSignUrlResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of EmbeddedSignUrlResponse" + ); } return obj; @@ -71,7 +78,6 @@ public static EmbeddedSignUrlResponse Init(string jsonData) /// [DataMember(Name = "embedded", EmitDefaultValue = true)] public EmbeddedSignUrlResponseEmbedded Embedded { get; set; } - /// /// A list of warnings. @@ -79,7 +85,6 @@ public static EmbeddedSignUrlResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +106,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +133,15 @@ public bool Equals(EmbeddedSignUrlResponse input) { return false; } - return - ( - this.Embedded == input.Embedded || - (this.Embedded != null && - this.Embedded.Equals(input.Embedded)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Embedded == input.Embedded + || (this.Embedded != null && this.Embedded.Equals(input.Embedded)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +171,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +181,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "embedded", - Property = "Embedded", - Type = "EmbeddedSignUrlResponseEmbedded", - Value = Embedded, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "embedded", + Property = "Embedded", + Type = "EmbeddedSignUrlResponseEmbedded", + Value = Embedded, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs index e87b0268d..7248de1b7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedSignUrlResponseEmbedded")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedSignUrlResponseEmbedded : IEquatable, IValidatableObject + public partial class EmbeddedSignUrlResponseEmbedded + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedSignUrlResponseEmbedded() { } + /// /// Initializes a new instance of the class. /// /// A signature url that can be opened in an iFrame.. /// The specific time that the the `sign_url` link expires, in epoch.. - public EmbeddedSignUrlResponseEmbedded(string signUrl = default(string), int expiresAt = default(int)) + public EmbeddedSignUrlResponseEmbedded( + string signUrl = default(string), + int expiresAt = default(int) + ) { - this.SignUrl = signUrl; this.ExpiresAt = expiresAt; } @@ -60,7 +65,9 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of EmbeddedSignUrlResponseEmbedded"); + throw new Exception( + "Unable to deserialize JSON to instance of EmbeddedSignUrlResponseEmbedded" + ); } return obj; @@ -72,7 +79,6 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) /// A signature url that can be opened in an iFrame. [DataMember(Name = "sign_url", EmitDefaultValue = true)] public string SignUrl { get; set; } - /// /// The specific time that the the `sign_url` link expires, in epoch. @@ -80,7 +86,6 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) /// The specific time that the the `sign_url` link expires, in epoch. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +107,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,16 +134,10 @@ public bool Equals(EmbeddedSignUrlResponseEmbedded input) { return false; } - return - ( - this.SignUrl == input.SignUrl || - (this.SignUrl != null && - this.SignUrl.Equals(input.SignUrl)) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) - ); + return ( + this.SignUrl == input.SignUrl + || (this.SignUrl != null && this.SignUrl.Equals(input.SignUrl)) + ) && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)); } /// @@ -161,7 +163,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -169,21 +173,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "sign_url", - Property = "SignUrl", - Type = "string", - Value = SignUrl, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "sign_url", + Property = "SignUrl", + Type = "string", + Value = SignUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs index 01adc8eee..db04d1a77 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,19 @@ public partial class ErrorResponse : IEquatable, IValidatableObje /// [JsonConstructorAttribute] protected ErrorResponse() { } + /// /// Initializes a new instance of the class. /// /// error (required). public ErrorResponse(ErrorResponseError error = default(ErrorResponseError)) { - // to ensure "error" is required (not null) if (error == null) { - throw new ArgumentNullException("error is a required property for ErrorResponse and cannot be null"); + throw new ArgumentNullException( + "error is a required property for ErrorResponse and cannot be null" + ); } this.Error = error; } @@ -74,7 +76,6 @@ public static ErrorResponse Init(string jsonData) /// [DataMember(Name = "error", IsRequired = true, EmitDefaultValue = true)] public ErrorResponseError Error { get; set; } - /// /// Returns the string presentation of the object @@ -95,7 +96,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -119,12 +123,9 @@ public bool Equals(ErrorResponse input) { return false; } - return - ( - this.Error == input.Error || - (this.Error != null && - this.Error.Equals(input.Error)) - ); + return ( + this.Error == input.Error || (this.Error != null && this.Error.Equals(input.Error)) + ); } /// @@ -149,7 +150,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -157,15 +160,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "error", - Property = "Error", - Type = "ErrorResponseError", - Value = Error, - }); + types.Add( + new OpenApiType() + { + Name = "error", + Property = "Error", + Type = "ErrorResponseError", + Value = Error, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs index 6cb22d019..dc924acc3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,25 +38,33 @@ public partial class ErrorResponseError : IEquatable, IValid /// [JsonConstructorAttribute] protected ErrorResponseError() { } + /// /// Initializes a new instance of the class. /// /// Message describing an error. (required). /// Path at which an error occurred.. /// Name of the error. (required). - public ErrorResponseError(string errorMsg = default(string), string errorPath = default(string), string errorName = default(string)) + public ErrorResponseError( + string errorMsg = default(string), + string errorPath = default(string), + string errorName = default(string) + ) { - // to ensure "errorMsg" is required (not null) if (errorMsg == null) { - throw new ArgumentNullException("errorMsg is a required property for ErrorResponseError and cannot be null"); + throw new ArgumentNullException( + "errorMsg is a required property for ErrorResponseError and cannot be null" + ); } this.ErrorMsg = errorMsg; // to ensure "errorName" is required (not null) if (errorName == null) { - throw new ArgumentNullException("errorName is a required property for ErrorResponseError and cannot be null"); + throw new ArgumentNullException( + "errorName is a required property for ErrorResponseError and cannot be null" + ); } this.ErrorName = errorName; this.ErrorPath = errorPath; @@ -84,7 +92,6 @@ public static ErrorResponseError Init(string jsonData) /// Message describing an error. [DataMember(Name = "error_msg", IsRequired = true, EmitDefaultValue = true)] public string ErrorMsg { get; set; } - /// /// Name of the error. @@ -92,7 +99,6 @@ public static ErrorResponseError Init(string jsonData) /// Name of the error. [DataMember(Name = "error_name", IsRequired = true, EmitDefaultValue = true)] public string ErrorName { get; set; } - /// /// Path at which an error occurred. @@ -100,7 +106,6 @@ public static ErrorResponseError Init(string jsonData) /// Path at which an error occurred. [DataMember(Name = "error_path", EmitDefaultValue = true)] public string ErrorPath { get; set; } - /// /// Returns the string presentation of the object @@ -123,7 +128,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -147,21 +155,17 @@ public bool Equals(ErrorResponseError input) { return false; } - return - ( - this.ErrorMsg == input.ErrorMsg || - (this.ErrorMsg != null && - this.ErrorMsg.Equals(input.ErrorMsg)) - ) && - ( - this.ErrorName == input.ErrorName || - (this.ErrorName != null && - this.ErrorName.Equals(input.ErrorName)) - ) && - ( - this.ErrorPath == input.ErrorPath || - (this.ErrorPath != null && - this.ErrorPath.Equals(input.ErrorPath)) + return ( + this.ErrorMsg == input.ErrorMsg + || (this.ErrorMsg != null && this.ErrorMsg.Equals(input.ErrorMsg)) + ) + && ( + this.ErrorName == input.ErrorName + || (this.ErrorName != null && this.ErrorName.Equals(input.ErrorName)) + ) + && ( + this.ErrorPath == input.ErrorPath + || (this.ErrorPath != null && this.ErrorPath.Equals(input.ErrorPath)) ); } @@ -195,7 +199,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -203,27 +209,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "error_msg", - Property = "ErrorMsg", - Type = "string", - Value = ErrorMsg, - }); - types.Add(new OpenApiType(){ - Name = "error_name", - Property = "ErrorName", - Type = "string", - Value = ErrorName, - }); - types.Add(new OpenApiType(){ - Name = "error_path", - Property = "ErrorPath", - Type = "string", - Value = ErrorPath, - }); + types.Add( + new OpenApiType() + { + Name = "error_msg", + Property = "ErrorMsg", + Type = "string", + Value = ErrorMsg, + } + ); + types.Add( + new OpenApiType() + { + Name = "error_name", + Property = "ErrorName", + Type = "string", + Value = ErrorName, + } + ); + types.Add( + new OpenApiType() + { + Name = "error_path", + Property = "ErrorPath", + Type = "string", + Value = ErrorPath, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs index e293104a0..e869d2cfe 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class EventCallbackRequest : IEquatable, IV /// [JsonConstructorAttribute] protected EventCallbackRequest() { } + /// /// Initializes a new instance of the class. /// @@ -45,13 +46,19 @@ protected EventCallbackRequest() { } /// account. /// signatureRequest. /// template. - public EventCallbackRequest(EventCallbackRequestEvent varEvent = default(EventCallbackRequestEvent), AccountResponse account = default(AccountResponse), SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), TemplateResponse template = default(TemplateResponse)) + public EventCallbackRequest( + EventCallbackRequestEvent varEvent = default(EventCallbackRequestEvent), + AccountResponse account = default(AccountResponse), + SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), + TemplateResponse template = default(TemplateResponse) + ) { - // to ensure "varEvent" is required (not null) if (varEvent == null) { - throw new ArgumentNullException("varEvent is a required property for EventCallbackRequest and cannot be null"); + throw new ArgumentNullException( + "varEvent is a required property for EventCallbackRequest and cannot be null" + ); } this.Event = varEvent; this.Account = account; @@ -69,7 +76,9 @@ public static EventCallbackRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of EventCallbackRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of EventCallbackRequest" + ); } return obj; @@ -80,28 +89,24 @@ public static EventCallbackRequest Init(string jsonData) /// [DataMember(Name = "event", IsRequired = true, EmitDefaultValue = true)] public EventCallbackRequestEvent Event { get; set; } - /// /// Gets or Sets Account /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } - /// /// Gets or Sets SignatureRequest /// [DataMember(Name = "signature_request", EmitDefaultValue = true)] public SignatureRequestResponse SignatureRequest { get; set; } - /// /// Gets or Sets Template /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateResponse Template { get; set; } - /// /// Returns the string presentation of the object @@ -125,7 +130,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -149,26 +157,24 @@ public bool Equals(EventCallbackRequest input) { return false; } - return - ( - this.Event == input.Event || - (this.Event != null && - this.Event.Equals(input.Event)) - ) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && - ( - this.SignatureRequest == input.SignatureRequest || - (this.SignatureRequest != null && - this.SignatureRequest.Equals(input.SignatureRequest)) - ) && - ( - this.Template == input.Template || - (this.Template != null && - this.Template.Equals(input.Template)) + return ( + this.Event == input.Event + || (this.Event != null && this.Event.Equals(input.Event)) + ) + && ( + this.Account == input.Account + || (this.Account != null && this.Account.Equals(input.Account)) + ) + && ( + this.SignatureRequest == input.SignatureRequest + || ( + this.SignatureRequest != null + && this.SignatureRequest.Equals(input.SignatureRequest) + ) + ) + && ( + this.Template == input.Template + || (this.Template != null && this.Template.Equals(input.Template)) ); } @@ -206,7 +212,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -214,33 +222,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "event", - Property = "Event", - Type = "EventCallbackRequestEvent", - Value = Event, - }); - types.Add(new OpenApiType(){ - Name = "account", - Property = "Account", - Type = "AccountResponse", - Value = Account, - }); - types.Add(new OpenApiType(){ - Name = "signature_request", - Property = "SignatureRequest", - Type = "SignatureRequestResponse", - Value = SignatureRequest, - }); - types.Add(new OpenApiType(){ - Name = "template", - Property = "Template", - Type = "TemplateResponse", - Value = Template, - }); + types.Add( + new OpenApiType() + { + Name = "event", + Property = "Event", + Type = "EventCallbackRequestEvent", + Value = Event, + } + ); + types.Add( + new OpenApiType() + { + Name = "account", + Property = "Account", + Type = "AccountResponse", + Value = Account, + } + ); + types.Add( + new OpenApiType() + { + Name = "signature_request", + Property = "SignatureRequest", + Type = "SignatureRequestResponse", + Value = SignatureRequest, + } + ); + types.Add( + new OpenApiType() + { + Name = "template", + Property = "Template", + Type = "TemplateResponse", + Value = Template, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs index 8208b889c..f7af4d663 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,9 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EventCallbackRequestEvent")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EventCallbackRequestEvent : IEquatable, IValidatableObject + public partial class EventCallbackRequestEvent + : IEquatable, + IValidatableObject { /// /// Type of callback event that was triggered. @@ -176,21 +178,22 @@ public enum EventTypeEnum /// Enum SignatureRequestSignerRemoved for value: signature_request_signer_removed /// [EnumMember(Value = "signature_request_signer_removed")] - SignatureRequestSignerRemoved = 23 + SignatureRequestSignerRemoved = 23, } - /// /// Type of callback event that was triggered. /// /// Type of callback event that was triggered. [DataMember(Name = "event_type", IsRequired = true, EmitDefaultValue = true)] public EventTypeEnum EventType { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EventCallbackRequestEvent() { } + /// /// Initializes a new instance of the class. /// @@ -198,20 +201,29 @@ protected EventCallbackRequestEvent() { } /// Type of callback event that was triggered. (required). /// Generated hash used to verify source of event data. (required). /// eventMetadata. - public EventCallbackRequestEvent(string eventTime = default(string), EventTypeEnum eventType = default(EventTypeEnum), string eventHash = default(string), EventCallbackRequestEventMetadata eventMetadata = default(EventCallbackRequestEventMetadata)) + public EventCallbackRequestEvent( + string eventTime = default(string), + EventTypeEnum eventType = default(EventTypeEnum), + string eventHash = default(string), + EventCallbackRequestEventMetadata eventMetadata = + default(EventCallbackRequestEventMetadata) + ) { - // to ensure "eventTime" is required (not null) if (eventTime == null) { - throw new ArgumentNullException("eventTime is a required property for EventCallbackRequestEvent and cannot be null"); + throw new ArgumentNullException( + "eventTime is a required property for EventCallbackRequestEvent and cannot be null" + ); } this.EventTime = eventTime; this.EventType = eventType; // to ensure "eventHash" is required (not null) if (eventHash == null) { - throw new ArgumentNullException("eventHash is a required property for EventCallbackRequestEvent and cannot be null"); + throw new ArgumentNullException( + "eventHash is a required property for EventCallbackRequestEvent and cannot be null" + ); } this.EventHash = eventHash; this.EventMetadata = eventMetadata; @@ -227,7 +239,9 @@ public static EventCallbackRequestEvent Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of EventCallbackRequestEvent"); + throw new Exception( + "Unable to deserialize JSON to instance of EventCallbackRequestEvent" + ); } return obj; @@ -239,7 +253,6 @@ public static EventCallbackRequestEvent Init(string jsonData) /// Time the event was created (using Unix time). [DataMember(Name = "event_time", IsRequired = true, EmitDefaultValue = true)] public string EventTime { get; set; } - /// /// Generated hash used to verify source of event data. @@ -247,14 +260,12 @@ public static EventCallbackRequestEvent Init(string jsonData) /// Generated hash used to verify source of event data. [DataMember(Name = "event_hash", IsRequired = true, EmitDefaultValue = true)] public string EventHash { get; set; } - /// /// Gets or Sets EventMetadata /// [DataMember(Name = "event_metadata", EmitDefaultValue = true)] public EventCallbackRequestEventMetadata EventMetadata { get; set; } - /// /// Returns the string presentation of the object @@ -278,7 +289,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -302,25 +316,20 @@ public bool Equals(EventCallbackRequestEvent input) { return false; } - return - ( - this.EventTime == input.EventTime || - (this.EventTime != null && - this.EventTime.Equals(input.EventTime)) - ) && - ( - this.EventType == input.EventType || - this.EventType.Equals(input.EventType) - ) && - ( - this.EventHash == input.EventHash || - (this.EventHash != null && - this.EventHash.Equals(input.EventHash)) - ) && - ( - this.EventMetadata == input.EventMetadata || - (this.EventMetadata != null && - this.EventMetadata.Equals(input.EventMetadata)) + return ( + this.EventTime == input.EventTime + || (this.EventTime != null && this.EventTime.Equals(input.EventTime)) + ) + && (this.EventType == input.EventType || this.EventType.Equals(input.EventType)) + && ( + this.EventHash == input.EventHash + || (this.EventHash != null && this.EventHash.Equals(input.EventHash)) + ) + && ( + this.EventMetadata == input.EventMetadata + || ( + this.EventMetadata != null && this.EventMetadata.Equals(input.EventMetadata) + ) ); } @@ -355,7 +364,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -363,33 +374,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "event_time", - Property = "EventTime", - Type = "string", - Value = EventTime, - }); - types.Add(new OpenApiType(){ - Name = "event_type", - Property = "EventType", - Type = "string", - Value = EventType, - }); - types.Add(new OpenApiType(){ - Name = "event_hash", - Property = "EventHash", - Type = "string", - Value = EventHash, - }); - types.Add(new OpenApiType(){ - Name = "event_metadata", - Property = "EventMetadata", - Type = "EventCallbackRequestEventMetadata", - Value = EventMetadata, - }); + types.Add( + new OpenApiType() + { + Name = "event_time", + Property = "EventTime", + Type = "string", + Value = EventTime, + } + ); + types.Add( + new OpenApiType() + { + Name = "event_type", + Property = "EventType", + Type = "string", + Value = EventType, + } + ); + types.Add( + new OpenApiType() + { + Name = "event_hash", + Property = "EventHash", + Type = "string", + Value = EventHash, + } + ); + types.Add( + new OpenApiType() + { + Name = "event_metadata", + Property = "EventMetadata", + Type = "EventCallbackRequestEventMetadata", + Value = EventMetadata, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs index e8b39f5d8..379e22905 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EventCallbackRequestEventMetadata")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EventCallbackRequestEventMetadata : IEquatable, IValidatableObject + public partial class EventCallbackRequestEventMetadata + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EventCallbackRequestEventMetadata() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +48,13 @@ protected EventCallbackRequestEventMetadata() { } /// Account ID the event was reported for.. /// App ID the event was reported for.. /// Message about a declined or failed (due to error) signature flow.. - public EventCallbackRequestEventMetadata(string relatedSignatureId = default(string), string reportedForAccountId = default(string), string reportedForAppId = default(string), string eventMessage = default(string)) + public EventCallbackRequestEventMetadata( + string relatedSignatureId = default(string), + string reportedForAccountId = default(string), + string reportedForAppId = default(string), + string eventMessage = default(string) + ) { - this.RelatedSignatureId = relatedSignatureId; this.ReportedForAccountId = reportedForAccountId; this.ReportedForAppId = reportedForAppId; @@ -64,7 +71,9 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of EventCallbackRequestEventMetadata"); + throw new Exception( + "Unable to deserialize JSON to instance of EventCallbackRequestEventMetadata" + ); } return obj; @@ -76,7 +85,6 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// Signature ID for a specific signer. Applicable to `signature_request_signed` and `signature_request_viewed` events. [DataMember(Name = "related_signature_id", EmitDefaultValue = true)] public string RelatedSignatureId { get; set; } - /// /// Account ID the event was reported for. @@ -84,7 +92,6 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// Account ID the event was reported for. [DataMember(Name = "reported_for_account_id", EmitDefaultValue = true)] public string ReportedForAccountId { get; set; } - /// /// App ID the event was reported for. @@ -92,7 +99,6 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// App ID the event was reported for. [DataMember(Name = "reported_for_app_id", EmitDefaultValue = true)] public string ReportedForAppId { get; set; } - /// /// Message about a declined or failed (due to error) signature flow. @@ -100,7 +106,6 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// Message about a declined or failed (due to error) signature flow. [DataMember(Name = "event_message", EmitDefaultValue = true)] public string EventMessage { get; set; } - /// /// Returns the string presentation of the object @@ -124,7 +129,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -148,26 +156,30 @@ public bool Equals(EventCallbackRequestEventMetadata input) { return false; } - return - ( - this.RelatedSignatureId == input.RelatedSignatureId || - (this.RelatedSignatureId != null && - this.RelatedSignatureId.Equals(input.RelatedSignatureId)) - ) && - ( - this.ReportedForAccountId == input.ReportedForAccountId || - (this.ReportedForAccountId != null && - this.ReportedForAccountId.Equals(input.ReportedForAccountId)) - ) && - ( - this.ReportedForAppId == input.ReportedForAppId || - (this.ReportedForAppId != null && - this.ReportedForAppId.Equals(input.ReportedForAppId)) - ) && - ( - this.EventMessage == input.EventMessage || - (this.EventMessage != null && - this.EventMessage.Equals(input.EventMessage)) + return ( + this.RelatedSignatureId == input.RelatedSignatureId + || ( + this.RelatedSignatureId != null + && this.RelatedSignatureId.Equals(input.RelatedSignatureId) + ) + ) + && ( + this.ReportedForAccountId == input.ReportedForAccountId + || ( + this.ReportedForAccountId != null + && this.ReportedForAccountId.Equals(input.ReportedForAccountId) + ) + ) + && ( + this.ReportedForAppId == input.ReportedForAppId + || ( + this.ReportedForAppId != null + && this.ReportedForAppId.Equals(input.ReportedForAppId) + ) + ) + && ( + this.EventMessage == input.EventMessage + || (this.EventMessage != null && this.EventMessage.Equals(input.EventMessage)) ); } @@ -205,7 +217,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -213,33 +227,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "related_signature_id", - Property = "RelatedSignatureId", - Type = "string", - Value = RelatedSignatureId, - }); - types.Add(new OpenApiType(){ - Name = "reported_for_account_id", - Property = "ReportedForAccountId", - Type = "string", - Value = ReportedForAccountId, - }); - types.Add(new OpenApiType(){ - Name = "reported_for_app_id", - Property = "ReportedForAppId", - Type = "string", - Value = ReportedForAppId, - }); - types.Add(new OpenApiType(){ - Name = "event_message", - Property = "EventMessage", - Type = "string", - Value = EventMessage, - }); + types.Add( + new OpenApiType() + { + Name = "related_signature_id", + Property = "RelatedSignatureId", + Type = "string", + Value = RelatedSignatureId, + } + ); + types.Add( + new OpenApiType() + { + Name = "reported_for_account_id", + Property = "ReportedForAccountId", + Type = "string", + Value = ReportedForAccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "reported_for_app_id", + Property = "ReportedForAppId", + Type = "string", + Value = ReportedForAppId, + } + ); + types.Add( + new OpenApiType() + { + Name = "event_message", + Property = "EventMessage", + Type = "string", + Value = EventMessage, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs index 8ded1b15c..e2379f0a6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class FaxLine : IOpenApiTyped, IEquatable, IValidatableO /// [JsonConstructorAttribute] protected FaxLine() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +46,13 @@ protected FaxLine() { } /// Created at. /// Updated at. /// accounts. - public FaxLine(string number = default(string), string createdAt = default(string), string updatedAt = default(string), List accounts = default(List)) + public FaxLine( + string number = default(string), + string createdAt = default(string), + string updatedAt = default(string), + List accounts = default(List) + ) { - this.Number = number; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; @@ -119,7 +124,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -143,27 +151,23 @@ public bool Equals(FaxLine input) { return false; } - return - ( - this.Number == input.Number || - (this.Number != null && - this.Number.Equals(input.Number)) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && - ( - this.UpdatedAt == input.UpdatedAt || - (this.UpdatedAt != null && - this.UpdatedAt.Equals(input.UpdatedAt)) - ) && - ( - this.Accounts == input.Accounts || - this.Accounts != null && - input.Accounts != null && - this.Accounts.SequenceEqual(input.Accounts) + return ( + this.Number == input.Number + || (this.Number != null && this.Number.Equals(input.Number)) + ) + && ( + this.CreatedAt == input.CreatedAt + || (this.CreatedAt != null && this.CreatedAt.Equals(input.CreatedAt)) + ) + && ( + this.UpdatedAt == input.UpdatedAt + || (this.UpdatedAt != null && this.UpdatedAt.Equals(input.UpdatedAt)) + ) + && ( + this.Accounts == input.Accounts + || this.Accounts != null + && input.Accounts != null + && this.Accounts.SequenceEqual(input.Accounts) ); } @@ -199,30 +203,42 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - }); - types.Add(new OpenApiType(){ - Name = "created_at", - Property = "CreatedAt", - Type = "string", - Value = CreatedAt, - }); - types.Add(new OpenApiType(){ - Name = "updated_at", - Property = "UpdatedAt", - Type = "string", - Value = UpdatedAt, - }); - types.Add(new OpenApiType(){ - Name = "accounts", - Property = "Accounts", - Type = "List", - Value = Accounts, - }); + types.Add( + new OpenApiType() + { + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + } + ); + types.Add( + new OpenApiType() + { + Name = "created_at", + Property = "CreatedAt", + Type = "string", + Value = CreatedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "updated_at", + Property = "UpdatedAt", + Type = "string", + Value = UpdatedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "accounts", + Property = "Accounts", + Type = "List", + Value = Accounts, + } + ); return types; } @@ -232,10 +248,11 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs index bb774265a..8b0bac10e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,34 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineAddUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineAddUserRequest : IEquatable, IValidatableObject + public partial class FaxLineAddUserRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineAddUserRequest() { } + /// /// Initializes a new instance of the class. /// /// The Fax Line number. (required). /// Account ID. /// Email address. - public FaxLineAddUserRequest(string number = default(string), string accountId = default(string), string emailAddress = default(string)) + public FaxLineAddUserRequest( + string number = default(string), + string accountId = default(string), + string emailAddress = default(string) + ) { - // to ensure "number" is required (not null) if (number == null) { - throw new ArgumentNullException("number is a required property for FaxLineAddUserRequest and cannot be null"); + throw new ArgumentNullException( + "number is a required property for FaxLineAddUserRequest and cannot be null" + ); } this.Number = number; this.AccountId = accountId; @@ -67,7 +75,9 @@ public static FaxLineAddUserRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of FaxLineAddUserRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of FaxLineAddUserRequest" + ); } return obj; @@ -79,7 +89,6 @@ public static FaxLineAddUserRequest Init(string jsonData) /// The Fax Line number. [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } - /// /// Account ID @@ -88,7 +97,6 @@ public static FaxLineAddUserRequest Init(string jsonData) /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// Email address @@ -96,7 +104,6 @@ public static FaxLineAddUserRequest Init(string jsonData) /// Email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object @@ -119,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -143,21 +153,17 @@ public bool Equals(FaxLineAddUserRequest input) { return false; } - return - ( - this.Number == input.Number || - (this.Number != null && - this.Number.Equals(input.Number)) - ) && - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) + return ( + this.Number == input.Number + || (this.Number != null && this.Number.Equals(input.Number)) + ) + && ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -191,7 +197,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -199,27 +207,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - }); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); + types.Add( + new OpenApiType() + { + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + } + ); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs index bf41606e5..60f538258 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -48,7 +48,6 @@ public enum FaxLineAreaCodeGetCountryEnum /// Enum UK for value: UK /// [EnumMember(Value = "UK")] - UK = 3 + UK = 3, } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs index 1179ce049..de4b4bb26 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -108,7 +108,6 @@ public enum FaxLineAreaCodeGetProvinceEnum /// Enum YT for value: YT /// [EnumMember(Value = "YT")] - YT = 13 + YT = 13, } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs index 5136ad865..c5adac73a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,20 +31,22 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineAreaCodeGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineAreaCodeGetResponse : IEquatable, IValidatableObject + public partial class FaxLineAreaCodeGetResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineAreaCodeGetResponse() { } + /// /// Initializes a new instance of the class. /// /// areaCodes. public FaxLineAreaCodeGetResponse(List areaCodes = default(List)) { - this.AreaCodes = areaCodes; } @@ -58,7 +60,9 @@ public static FaxLineAreaCodeGetResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of FaxLineAreaCodeGetResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of FaxLineAreaCodeGetResponse" + ); } return obj; @@ -69,7 +73,6 @@ public static FaxLineAreaCodeGetResponse Init(string jsonData) /// [DataMember(Name = "area_codes", EmitDefaultValue = true)] public List AreaCodes { get; set; } - /// /// Returns the string presentation of the object @@ -90,7 +93,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -114,13 +120,12 @@ public bool Equals(FaxLineAreaCodeGetResponse input) { return false; } - return - ( - this.AreaCodes == input.AreaCodes || - this.AreaCodes != null && - input.AreaCodes != null && - this.AreaCodes.SequenceEqual(input.AreaCodes) - ); + return ( + this.AreaCodes == input.AreaCodes + || this.AreaCodes != null + && input.AreaCodes != null + && this.AreaCodes.SequenceEqual(input.AreaCodes) + ); } /// @@ -145,7 +150,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -153,15 +160,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "area_codes", - Property = "AreaCodes", - Type = "List", - Value = AreaCodes, - }); + types.Add( + new OpenApiType() + { + Name = "area_codes", + Property = "AreaCodes", + Type = "List", + Value = AreaCodes, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs index c62661b55..10fa57811 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -336,7 +336,6 @@ public enum FaxLineAreaCodeGetStateEnum /// Enum WY for value: WY /// [EnumMember(Value = "WY")] - WY = 51 + WY = 51, } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs index 42717e772..5c540cee4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -56,21 +56,22 @@ public enum CountryEnum /// Enum UK for value: UK /// [EnumMember(Value = "UK")] - UK = 3 + UK = 3, } - /// /// Country /// /// Country [DataMember(Name = "country", IsRequired = true, EmitDefaultValue = true)] public CountryEnum Country { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineCreateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -78,9 +79,13 @@ protected FaxLineCreateRequest() { } /// Country (required). /// City. /// Account ID. - public FaxLineCreateRequest(int areaCode = default(int), CountryEnum country = default(CountryEnum), string city = default(string), string accountId = default(string)) + public FaxLineCreateRequest( + int areaCode = default(int), + CountryEnum country = default(CountryEnum), + string city = default(string), + string accountId = default(string) + ) { - this.AreaCode = areaCode; this.Country = country; this.City = city; @@ -97,7 +102,9 @@ public static FaxLineCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of FaxLineCreateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of FaxLineCreateRequest" + ); } return obj; @@ -109,7 +116,6 @@ public static FaxLineCreateRequest Init(string jsonData) /// Area code [DataMember(Name = "area_code", IsRequired = true, EmitDefaultValue = true)] public int AreaCode { get; set; } - /// /// City @@ -117,7 +123,6 @@ public static FaxLineCreateRequest Init(string jsonData) /// City [DataMember(Name = "city", EmitDefaultValue = true)] public string City { get; set; } - /// /// Account ID @@ -126,7 +131,6 @@ public static FaxLineCreateRequest Init(string jsonData) /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// Returns the string presentation of the object @@ -150,7 +154,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -174,24 +181,12 @@ public bool Equals(FaxLineCreateRequest input) { return false; } - return - ( - this.AreaCode == input.AreaCode || - this.AreaCode.Equals(input.AreaCode) - ) && - ( - this.Country == input.Country || - this.Country.Equals(input.Country) - ) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) + return (this.AreaCode == input.AreaCode || this.AreaCode.Equals(input.AreaCode)) + && (this.Country == input.Country || this.Country.Equals(input.Country)) + && (this.City == input.City || (this.City != null && this.City.Equals(input.City))) + && ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) ); } @@ -223,7 +218,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -231,33 +228,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "area_code", - Property = "AreaCode", - Type = "int", - Value = AreaCode, - }); - types.Add(new OpenApiType(){ - Name = "country", - Property = "Country", - Type = "string", - Value = Country, - }); - types.Add(new OpenApiType(){ - Name = "city", - Property = "City", - Type = "string", - Value = City, - }); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); + types.Add( + new OpenApiType() + { + Name = "area_code", + Property = "AreaCode", + Type = "int", + Value = AreaCode, + } + ); + types.Add( + new OpenApiType() + { + Name = "country", + Property = "Country", + Type = "string", + Value = Country, + } + ); + types.Add( + new OpenApiType() + { + Name = "city", + Property = "City", + Type = "string", + Value = City, + } + ); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs index 576797ef7..27ee3b54c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,19 @@ public partial class FaxLineDeleteRequest : IEquatable, IV /// [JsonConstructorAttribute] protected FaxLineDeleteRequest() { } + /// /// Initializes a new instance of the class. /// /// The Fax Line number. (required). public FaxLineDeleteRequest(string number = default(string)) { - // to ensure "number" is required (not null) if (number == null) { - throw new ArgumentNullException("number is a required property for FaxLineDeleteRequest and cannot be null"); + throw new ArgumentNullException( + "number is a required property for FaxLineDeleteRequest and cannot be null" + ); } this.Number = number; } @@ -63,7 +65,9 @@ public static FaxLineDeleteRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of FaxLineDeleteRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of FaxLineDeleteRequest" + ); } return obj; @@ -75,7 +79,6 @@ public static FaxLineDeleteRequest Init(string jsonData) /// The Fax Line number. [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } - /// /// Returns the string presentation of the object @@ -96,7 +99,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -120,12 +126,10 @@ public bool Equals(FaxLineDeleteRequest input) { return false; } - return - ( - this.Number == input.Number || - (this.Number != null && - this.Number.Equals(input.Number)) - ); + return ( + this.Number == input.Number + || (this.Number != null && this.Number.Equals(input.Number)) + ); } /// @@ -150,7 +154,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -158,15 +164,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - }); + types.Add( + new OpenApiType() + { + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs index 383e9a7e7..e33920e6f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,15 +38,19 @@ public partial class FaxLineListResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected FaxLineListResponse() { } + /// /// Initializes a new instance of the class. /// /// listInfo. /// faxLines. /// warnings. - public FaxLineListResponse(ListInfoResponse listInfo = default(ListInfoResponse), List faxLines = default(List), WarningResponse warnings = default(WarningResponse)) + public FaxLineListResponse( + ListInfoResponse listInfo = default(ListInfoResponse), + List faxLines = default(List), + WarningResponse warnings = default(WarningResponse) + ) { - this.ListInfo = listInfo; this.FaxLines = faxLines; this.Warnings = warnings; @@ -62,7 +66,9 @@ public static FaxLineListResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of FaxLineListResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of FaxLineListResponse" + ); } return obj; @@ -73,21 +79,18 @@ public static FaxLineListResponse Init(string jsonData) /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// Gets or Sets FaxLines /// [DataMember(Name = "fax_lines", EmitDefaultValue = true)] public List FaxLines { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public WarningResponse Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -110,7 +113,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -134,22 +140,19 @@ public bool Equals(FaxLineListResponse input) { return false; } - return - ( - this.ListInfo == input.ListInfo || - (this.ListInfo != null && - this.ListInfo.Equals(input.ListInfo)) - ) && - ( - this.FaxLines == input.FaxLines || - this.FaxLines != null && - input.FaxLines != null && - this.FaxLines.SequenceEqual(input.FaxLines) - ) && - ( - this.Warnings == input.Warnings || - (this.Warnings != null && - this.Warnings.Equals(input.Warnings)) + return ( + this.ListInfo == input.ListInfo + || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) + ) + && ( + this.FaxLines == input.FaxLines + || this.FaxLines != null + && input.FaxLines != null + && this.FaxLines.SequenceEqual(input.FaxLines) + ) + && ( + this.Warnings == input.Warnings + || (this.Warnings != null && this.Warnings.Equals(input.Warnings)) ); } @@ -183,7 +186,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -191,27 +196,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - }); - types.Add(new OpenApiType(){ - Name = "fax_lines", - Property = "FaxLines", - Type = "List", - Value = FaxLines, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "WarningResponse", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + } + ); + types.Add( + new OpenApiType() + { + Name = "fax_lines", + Property = "FaxLines", + Type = "List", + Value = FaxLines, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "WarningResponse", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs index 49ef2d4b8..98817a342 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,34 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineRemoveUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineRemoveUserRequest : IEquatable, IValidatableObject + public partial class FaxLineRemoveUserRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineRemoveUserRequest() { } + /// /// Initializes a new instance of the class. /// /// The Fax Line number. (required). /// Account ID. /// Email address. - public FaxLineRemoveUserRequest(string number = default(string), string accountId = default(string), string emailAddress = default(string)) + public FaxLineRemoveUserRequest( + string number = default(string), + string accountId = default(string), + string emailAddress = default(string) + ) { - // to ensure "number" is required (not null) if (number == null) { - throw new ArgumentNullException("number is a required property for FaxLineRemoveUserRequest and cannot be null"); + throw new ArgumentNullException( + "number is a required property for FaxLineRemoveUserRequest and cannot be null" + ); } this.Number = number; this.AccountId = accountId; @@ -67,7 +75,9 @@ public static FaxLineRemoveUserRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of FaxLineRemoveUserRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of FaxLineRemoveUserRequest" + ); } return obj; @@ -79,7 +89,6 @@ public static FaxLineRemoveUserRequest Init(string jsonData) /// The Fax Line number. [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } - /// /// Account ID @@ -88,7 +97,6 @@ public static FaxLineRemoveUserRequest Init(string jsonData) /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// Email address @@ -96,7 +104,6 @@ public static FaxLineRemoveUserRequest Init(string jsonData) /// Email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object @@ -119,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -143,21 +153,17 @@ public bool Equals(FaxLineRemoveUserRequest input) { return false; } - return - ( - this.Number == input.Number || - (this.Number != null && - this.Number.Equals(input.Number)) - ) && - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) + return ( + this.Number == input.Number + || (this.Number != null && this.Number.Equals(input.Number)) + ) + && ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -191,7 +197,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -199,27 +207,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - }); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); + types.Add( + new OpenApiType() + { + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + } + ); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs index a281d57a1..13c6f89e9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,14 +38,17 @@ public partial class FaxLineResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected FaxLineResponse() { } + /// /// Initializes a new instance of the class. /// /// faxLine. /// warnings. - public FaxLineResponse(FaxLineResponseFaxLine faxLine = default(FaxLineResponseFaxLine), WarningResponse warnings = default(WarningResponse)) + public FaxLineResponse( + FaxLineResponseFaxLine faxLine = default(FaxLineResponseFaxLine), + WarningResponse warnings = default(WarningResponse) + ) { - this.FaxLine = faxLine; this.Warnings = warnings; } @@ -71,14 +74,12 @@ public static FaxLineResponse Init(string jsonData) /// [DataMember(Name = "fax_line", EmitDefaultValue = true)] public FaxLineResponseFaxLine FaxLine { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public WarningResponse Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -100,7 +101,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -124,16 +128,13 @@ public bool Equals(FaxLineResponse input) { return false; } - return - ( - this.FaxLine == input.FaxLine || - (this.FaxLine != null && - this.FaxLine.Equals(input.FaxLine)) - ) && - ( - this.Warnings == input.Warnings || - (this.Warnings != null && - this.Warnings.Equals(input.Warnings)) + return ( + this.FaxLine == input.FaxLine + || (this.FaxLine != null && this.FaxLine.Equals(input.FaxLine)) + ) + && ( + this.Warnings == input.Warnings + || (this.Warnings != null && this.Warnings.Equals(input.Warnings)) ); } @@ -163,7 +164,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -171,21 +174,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "fax_line", - Property = "FaxLine", - Type = "FaxLineResponseFaxLine", - Value = FaxLine, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "WarningResponse", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "fax_line", + Property = "FaxLine", + Type = "FaxLineResponseFaxLine", + Value = FaxLine, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "WarningResponse", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs index 52a0b0ca0..ee5ea520d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineResponseFaxLine")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineResponseFaxLine : IEquatable, IValidatableObject + public partial class FaxLineResponseFaxLine + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineResponseFaxLine() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +48,13 @@ protected FaxLineResponseFaxLine() { } /// Created at. /// Updated at. /// accounts. - public FaxLineResponseFaxLine(string number = default(string), int createdAt = default(int), int updatedAt = default(int), List accounts = default(List)) + public FaxLineResponseFaxLine( + string number = default(string), + int createdAt = default(int), + int updatedAt = default(int), + List accounts = default(List) + ) { - this.Number = number; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; @@ -64,7 +71,9 @@ public static FaxLineResponseFaxLine Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of FaxLineResponseFaxLine"); + throw new Exception( + "Unable to deserialize JSON to instance of FaxLineResponseFaxLine" + ); } return obj; @@ -76,7 +85,6 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Number [DataMember(Name = "number", EmitDefaultValue = true)] public string Number { get; set; } - /// /// Created at @@ -84,7 +92,6 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Created at [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// Updated at @@ -92,14 +99,12 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Updated at [DataMember(Name = "updated_at", EmitDefaultValue = true)] public int UpdatedAt { get; set; } - /// /// Gets or Sets Accounts /// [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } - /// /// Returns the string presentation of the object @@ -123,7 +128,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -147,25 +155,17 @@ public bool Equals(FaxLineResponseFaxLine input) { return false; } - return - ( - this.Number == input.Number || - (this.Number != null && - this.Number.Equals(input.Number)) - ) && - ( - this.CreatedAt == input.CreatedAt || - this.CreatedAt.Equals(input.CreatedAt) - ) && - ( - this.UpdatedAt == input.UpdatedAt || - this.UpdatedAt.Equals(input.UpdatedAt) - ) && - ( - this.Accounts == input.Accounts || - this.Accounts != null && - input.Accounts != null && - this.Accounts.SequenceEqual(input.Accounts) + return ( + this.Number == input.Number + || (this.Number != null && this.Number.Equals(input.Number)) + ) + && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)) + && (this.UpdatedAt == input.UpdatedAt || this.UpdatedAt.Equals(input.UpdatedAt)) + && ( + this.Accounts == input.Accounts + || this.Accounts != null + && input.Accounts != null + && this.Accounts.SequenceEqual(input.Accounts) ); } @@ -197,7 +197,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -205,33 +207,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - }); - types.Add(new OpenApiType(){ - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - }); - types.Add(new OpenApiType(){ - Name = "updated_at", - Property = "UpdatedAt", - Type = "int", - Value = UpdatedAt, - }); - types.Add(new OpenApiType(){ - Name = "accounts", - Property = "Accounts", - Type = "List", - Value = Accounts, - }); + types.Add( + new OpenApiType() + { + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + } + ); + types.Add( + new OpenApiType() + { + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "updated_at", + Property = "UpdatedAt", + Type = "int", + Value = UpdatedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "accounts", + Property = "Accounts", + Type = "List", + Value = Accounts, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs index e8381f689..fb0188b76 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class FileResponse : IEquatable, IValidatableObject /// [JsonConstructorAttribute] protected FileResponse() { } + /// /// Initializes a new instance of the class. /// @@ -45,7 +46,6 @@ protected FileResponse() { } /// When the link expires.. public FileResponse(string fileUrl = default(string), int expiresAt = default(int)) { - this.FileUrl = fileUrl; this.ExpiresAt = expiresAt; } @@ -72,7 +72,6 @@ public static FileResponse Init(string jsonData) /// URL to the file. [DataMember(Name = "file_url", EmitDefaultValue = true)] public string FileUrl { get; set; } - /// /// When the link expires. @@ -80,7 +79,6 @@ public static FileResponse Init(string jsonData) /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +100,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,16 +127,10 @@ public bool Equals(FileResponse input) { return false; } - return - ( - this.FileUrl == input.FileUrl || - (this.FileUrl != null && - this.FileUrl.Equals(input.FileUrl)) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) - ); + return ( + this.FileUrl == input.FileUrl + || (this.FileUrl != null && this.FileUrl.Equals(input.FileUrl)) + ) && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)); } /// @@ -161,7 +156,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -169,21 +166,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "file_url", - Property = "FileUrl", - Type = "string", - Value = FileUrl, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "file_url", + Property = "FileUrl", + Type = "string", + Value = FileUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs index 7d359e8c5..aea83a1da 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class FileResponseDataUri : IEquatable, IVal /// [JsonConstructorAttribute] protected FileResponseDataUri() { } + /// /// Initializes a new instance of the class. /// /// File as base64 encoded string.. public FileResponseDataUri(string dataUri = default(string)) { - this.DataUri = dataUri; } @@ -58,7 +58,9 @@ public static FileResponseDataUri Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of FileResponseDataUri"); + throw new Exception( + "Unable to deserialize JSON to instance of FileResponseDataUri" + ); } return obj; @@ -70,7 +72,6 @@ public static FileResponseDataUri Init(string jsonData) /// File as base64 encoded string. [DataMember(Name = "data_uri", EmitDefaultValue = true)] public string DataUri { get; set; } - /// /// Returns the string presentation of the object @@ -91,7 +92,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -115,12 +119,10 @@ public bool Equals(FileResponseDataUri input) { return false; } - return - ( - this.DataUri == input.DataUri || - (this.DataUri != null && - this.DataUri.Equals(input.DataUri)) - ); + return ( + this.DataUri == input.DataUri + || (this.DataUri != null && this.DataUri.Equals(input.DataUri)) + ); } /// @@ -145,7 +147,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -153,15 +157,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "data_uri", - Property = "DataUri", - Type = "string", - Value = DataUri, - }); + types.Add( + new OpenApiType() + { + Name = "data_uri", + Property = "DataUri", + Type = "string", + Value = DataUri, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs index 8597e03a9..223deff0a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class ListInfoResponse : IEquatable, IValidatab /// [JsonConstructorAttribute] protected ListInfoResponse() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +46,13 @@ protected ListInfoResponse() { } /// Total number of objects available.. /// Number of the page being returned.. /// Objects returned per page.. - public ListInfoResponse(int numPages = default(int), int? numResults = default(int?), int page = default(int), int pageSize = default(int)) + public ListInfoResponse( + int numPages = default(int), + int? numResults = default(int?), + int page = default(int), + int pageSize = default(int) + ) { - this.NumPages = numPages; this.NumResults = numResults; this.Page = page; @@ -76,7 +81,6 @@ public static ListInfoResponse Init(string jsonData) /// Total number of pages available. [DataMember(Name = "num_pages", EmitDefaultValue = true)] public int NumPages { get; set; } - /// /// Total number of objects available. @@ -84,7 +88,6 @@ public static ListInfoResponse Init(string jsonData) /// Total number of objects available. [DataMember(Name = "num_results", EmitDefaultValue = true)] public int? NumResults { get; set; } - /// /// Number of the page being returned. @@ -92,7 +95,6 @@ public static ListInfoResponse Init(string jsonData) /// Number of the page being returned. [DataMember(Name = "page", EmitDefaultValue = true)] public int Page { get; set; } - /// /// Objects returned per page. @@ -100,7 +102,6 @@ public static ListInfoResponse Init(string jsonData) /// Objects returned per page. [DataMember(Name = "page_size", EmitDefaultValue = true)] public int PageSize { get; set; } - /// /// Returns the string presentation of the object @@ -124,7 +125,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -148,24 +152,13 @@ public bool Equals(ListInfoResponse input) { return false; } - return - ( - this.NumPages == input.NumPages || - this.NumPages.Equals(input.NumPages) - ) && - ( - this.NumResults == input.NumResults || - (this.NumResults != null && - this.NumResults.Equals(input.NumResults)) - ) && - ( - this.Page == input.Page || - this.Page.Equals(input.Page) - ) && - ( - this.PageSize == input.PageSize || - this.PageSize.Equals(input.PageSize) - ); + return (this.NumPages == input.NumPages || this.NumPages.Equals(input.NumPages)) + && ( + this.NumResults == input.NumResults + || (this.NumResults != null && this.NumResults.Equals(input.NumResults)) + ) + && (this.Page == input.Page || this.Page.Equals(input.Page)) + && (this.PageSize == input.PageSize || this.PageSize.Equals(input.PageSize)); } /// @@ -193,7 +186,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -201,33 +196,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "num_pages", - Property = "NumPages", - Type = "int", - Value = NumPages, - }); - types.Add(new OpenApiType(){ - Name = "num_results", - Property = "NumResults", - Type = "int?", - Value = NumResults, - }); - types.Add(new OpenApiType(){ - Name = "page", - Property = "Page", - Type = "int", - Value = Page, - }); - types.Add(new OpenApiType(){ - Name = "page_size", - Property = "PageSize", - Type = "int", - Value = PageSize, - }); + types.Add( + new OpenApiType() + { + Name = "num_pages", + Property = "NumPages", + Type = "int", + Value = NumPages, + } + ); + types.Add( + new OpenApiType() + { + Name = "num_results", + Property = "NumResults", + Type = "int?", + Value = NumResults, + } + ); + types.Add( + new OpenApiType() + { + Name = "page", + Property = "Page", + Type = "int", + Value = Page, + } + ); + types.Add( + new OpenApiType() + { + Name = "page_size", + Property = "PageSize", + Type = "int", + Value = PageSize, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs index 872a93b07..2a7ddbb11 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "OAuthTokenGenerateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class OAuthTokenGenerateRequest : IEquatable, IValidatableObject + public partial class OAuthTokenGenerateRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected OAuthTokenGenerateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -46,37 +49,52 @@ protected OAuthTokenGenerateRequest() { } /// The code passed to your callback when the user granted access. (required). /// When generating a new token use `authorization_code`. (required) (default to "authorization_code"). /// Same as the state you specified earlier. (required). - public OAuthTokenGenerateRequest(string clientId = default(string), string clientSecret = default(string), string code = default(string), string grantType = @"authorization_code", string state = default(string)) + public OAuthTokenGenerateRequest( + string clientId = default(string), + string clientSecret = default(string), + string code = default(string), + string grantType = @"authorization_code", + string state = default(string) + ) { - // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for OAuthTokenGenerateRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for OAuthTokenGenerateRequest and cannot be null" + ); } this.ClientId = clientId; // to ensure "clientSecret" is required (not null) if (clientSecret == null) { - throw new ArgumentNullException("clientSecret is a required property for OAuthTokenGenerateRequest and cannot be null"); + throw new ArgumentNullException( + "clientSecret is a required property for OAuthTokenGenerateRequest and cannot be null" + ); } this.ClientSecret = clientSecret; // to ensure "code" is required (not null) if (code == null) { - throw new ArgumentNullException("code is a required property for OAuthTokenGenerateRequest and cannot be null"); + throw new ArgumentNullException( + "code is a required property for OAuthTokenGenerateRequest and cannot be null" + ); } this.Code = code; // to ensure "grantType" is required (not null) if (grantType == null) { - throw new ArgumentNullException("grantType is a required property for OAuthTokenGenerateRequest and cannot be null"); + throw new ArgumentNullException( + "grantType is a required property for OAuthTokenGenerateRequest and cannot be null" + ); } this.GrantType = grantType; // to ensure "state" is required (not null) if (state == null) { - throw new ArgumentNullException("state is a required property for OAuthTokenGenerateRequest and cannot be null"); + throw new ArgumentNullException( + "state is a required property for OAuthTokenGenerateRequest and cannot be null" + ); } this.State = state; } @@ -91,7 +109,9 @@ public static OAuthTokenGenerateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of OAuthTokenGenerateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of OAuthTokenGenerateRequest" + ); } return obj; @@ -103,7 +123,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// The client id of the app requesting authorization. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// The secret token of your app. @@ -111,7 +130,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// The secret token of your app. [DataMember(Name = "client_secret", IsRequired = true, EmitDefaultValue = true)] public string ClientSecret { get; set; } - /// /// The code passed to your callback when the user granted access. @@ -119,7 +137,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// The code passed to your callback when the user granted access. [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] public string Code { get; set; } - /// /// When generating a new token use `authorization_code`. @@ -127,7 +144,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// When generating a new token use `authorization_code`. [DataMember(Name = "grant_type", IsRequired = true, EmitDefaultValue = true)] public string GrantType { get; set; } - /// /// Same as the state you specified earlier. @@ -135,7 +151,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// Same as the state you specified earlier. [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] public string State { get; set; } - /// /// Returns the string presentation of the object @@ -160,7 +175,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -184,31 +202,22 @@ public bool Equals(OAuthTokenGenerateRequest input) { return false; } - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.ClientSecret == input.ClientSecret || - (this.ClientSecret != null && - this.ClientSecret.Equals(input.ClientSecret)) - ) && - ( - this.Code == input.Code || - (this.Code != null && - this.Code.Equals(input.Code)) - ) && - ( - this.GrantType == input.GrantType || - (this.GrantType != null && - this.GrantType.Equals(input.GrantType)) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) + return ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.ClientSecret == input.ClientSecret + || (this.ClientSecret != null && this.ClientSecret.Equals(input.ClientSecret)) + ) + && (this.Code == input.Code || (this.Code != null && this.Code.Equals(input.Code))) + && ( + this.GrantType == input.GrantType + || (this.GrantType != null && this.GrantType.Equals(input.GrantType)) + ) + && ( + this.State == input.State + || (this.State != null && this.State.Equals(input.State)) ); } @@ -250,7 +259,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -258,39 +269,53 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "client_secret", - Property = "ClientSecret", - Type = "string", - Value = ClientSecret, - }); - types.Add(new OpenApiType(){ - Name = "code", - Property = "Code", - Type = "string", - Value = Code, - }); - types.Add(new OpenApiType(){ - Name = "grant_type", - Property = "GrantType", - Type = "string", - Value = GrantType, - }); - types.Add(new OpenApiType(){ - Name = "state", - Property = "State", - Type = "string", - Value = State, - }); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_secret", + Property = "ClientSecret", + Type = "string", + Value = ClientSecret, + } + ); + types.Add( + new OpenApiType() + { + Name = "code", + Property = "Code", + Type = "string", + Value = Code, + } + ); + types.Add( + new OpenApiType() + { + Name = "grant_type", + Property = "GrantType", + Type = "string", + Value = GrantType, + } + ); + types.Add( + new OpenApiType() + { + Name = "state", + Property = "State", + Type = "string", + Value = State, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs index 805664337..b8dea853c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,31 +31,40 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "OAuthTokenRefreshRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class OAuthTokenRefreshRequest : IEquatable, IValidatableObject + public partial class OAuthTokenRefreshRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected OAuthTokenRefreshRequest() { } + /// /// Initializes a new instance of the class. /// /// When refreshing an existing token use `refresh_token`. (required) (default to "refresh_token"). /// The token provided when you got the expired access token. (required). - public OAuthTokenRefreshRequest(string grantType = @"refresh_token", string refreshToken = default(string)) + public OAuthTokenRefreshRequest( + string grantType = @"refresh_token", + string refreshToken = default(string) + ) { - // to ensure "grantType" is required (not null) if (grantType == null) { - throw new ArgumentNullException("grantType is a required property for OAuthTokenRefreshRequest and cannot be null"); + throw new ArgumentNullException( + "grantType is a required property for OAuthTokenRefreshRequest and cannot be null" + ); } this.GrantType = grantType; // to ensure "refreshToken" is required (not null) if (refreshToken == null) { - throw new ArgumentNullException("refreshToken is a required property for OAuthTokenRefreshRequest and cannot be null"); + throw new ArgumentNullException( + "refreshToken is a required property for OAuthTokenRefreshRequest and cannot be null" + ); } this.RefreshToken = refreshToken; } @@ -70,7 +79,9 @@ public static OAuthTokenRefreshRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of OAuthTokenRefreshRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of OAuthTokenRefreshRequest" + ); } return obj; @@ -82,7 +93,6 @@ public static OAuthTokenRefreshRequest Init(string jsonData) /// When refreshing an existing token use `refresh_token`. [DataMember(Name = "grant_type", IsRequired = true, EmitDefaultValue = true)] public string GrantType { get; set; } - /// /// The token provided when you got the expired access token. @@ -90,7 +100,6 @@ public static OAuthTokenRefreshRequest Init(string jsonData) /// The token provided when you got the expired access token. [DataMember(Name = "refresh_token", IsRequired = true, EmitDefaultValue = true)] public string RefreshToken { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +121,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +148,13 @@ public bool Equals(OAuthTokenRefreshRequest input) { return false; } - return - ( - this.GrantType == input.GrantType || - (this.GrantType != null && - this.GrantType.Equals(input.GrantType)) - ) && - ( - this.RefreshToken == input.RefreshToken || - (this.RefreshToken != null && - this.RefreshToken.Equals(input.RefreshToken)) + return ( + this.GrantType == input.GrantType + || (this.GrantType != null && this.GrantType.Equals(input.GrantType)) + ) + && ( + this.RefreshToken == input.RefreshToken + || (this.RefreshToken != null && this.RefreshToken.Equals(input.RefreshToken)) ); } @@ -175,7 +184,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -183,21 +194,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "grant_type", - Property = "GrantType", - Type = "string", - Value = GrantType, - }); - types.Add(new OpenApiType(){ - Name = "refresh_token", - Property = "RefreshToken", - Type = "string", - Value = RefreshToken, - }); + types.Add( + new OpenApiType() + { + Name = "grant_type", + Property = "GrantType", + Type = "string", + Value = GrantType, + } + ); + types.Add( + new OpenApiType() + { + Name = "refresh_token", + Property = "RefreshToken", + Type = "string", + Value = RefreshToken, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs index 785fe808f..0c468bf58 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class OAuthTokenResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected OAuthTokenResponse() { } + /// /// Initializes a new instance of the class. /// @@ -46,9 +47,14 @@ protected OAuthTokenResponse() { } /// refreshToken. /// Number of seconds until the `access_token` expires. Uses epoch time.. /// state. - public OAuthTokenResponse(string accessToken = default(string), string tokenType = default(string), string refreshToken = default(string), int expiresIn = default(int), string state = default(string)) + public OAuthTokenResponse( + string accessToken = default(string), + string tokenType = default(string), + string refreshToken = default(string), + int expiresIn = default(int), + string state = default(string) + ) { - this.AccessToken = accessToken; this.TokenType = tokenType; this.RefreshToken = refreshToken; @@ -77,21 +83,18 @@ public static OAuthTokenResponse Init(string jsonData) /// [DataMember(Name = "access_token", EmitDefaultValue = true)] public string AccessToken { get; set; } - /// /// Gets or Sets TokenType /// [DataMember(Name = "token_type", EmitDefaultValue = true)] public string TokenType { get; set; } - /// /// Gets or Sets RefreshToken /// [DataMember(Name = "refresh_token", EmitDefaultValue = true)] public string RefreshToken { get; set; } - /// /// Number of seconds until the `access_token` expires. Uses epoch time. @@ -99,14 +102,12 @@ public static OAuthTokenResponse Init(string jsonData) /// Number of seconds until the `access_token` expires. Uses epoch time. [DataMember(Name = "expires_in", EmitDefaultValue = true)] public int ExpiresIn { get; set; } - /// /// Gets or Sets State /// [DataMember(Name = "state", EmitDefaultValue = true)] public string State { get; set; } - /// /// Returns the string presentation of the object @@ -131,7 +132,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -155,30 +159,22 @@ public bool Equals(OAuthTokenResponse input) { return false; } - return - ( - this.AccessToken == input.AccessToken || - (this.AccessToken != null && - this.AccessToken.Equals(input.AccessToken)) - ) && - ( - this.TokenType == input.TokenType || - (this.TokenType != null && - this.TokenType.Equals(input.TokenType)) - ) && - ( - this.RefreshToken == input.RefreshToken || - (this.RefreshToken != null && - this.RefreshToken.Equals(input.RefreshToken)) - ) && - ( - this.ExpiresIn == input.ExpiresIn || - this.ExpiresIn.Equals(input.ExpiresIn) - ) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) + return ( + this.AccessToken == input.AccessToken + || (this.AccessToken != null && this.AccessToken.Equals(input.AccessToken)) + ) + && ( + this.TokenType == input.TokenType + || (this.TokenType != null && this.TokenType.Equals(input.TokenType)) + ) + && ( + this.RefreshToken == input.RefreshToken + || (this.RefreshToken != null && this.RefreshToken.Equals(input.RefreshToken)) + ) + && (this.ExpiresIn == input.ExpiresIn || this.ExpiresIn.Equals(input.ExpiresIn)) + && ( + this.State == input.State + || (this.State != null && this.State.Equals(input.State)) ); } @@ -217,7 +213,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -225,39 +223,53 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "access_token", - Property = "AccessToken", - Type = "string", - Value = AccessToken, - }); - types.Add(new OpenApiType(){ - Name = "token_type", - Property = "TokenType", - Type = "string", - Value = TokenType, - }); - types.Add(new OpenApiType(){ - Name = "refresh_token", - Property = "RefreshToken", - Type = "string", - Value = RefreshToken, - }); - types.Add(new OpenApiType(){ - Name = "expires_in", - Property = "ExpiresIn", - Type = "int", - Value = ExpiresIn, - }); - types.Add(new OpenApiType(){ - Name = "state", - Property = "State", - Type = "string", - Value = State, - }); + types.Add( + new OpenApiType() + { + Name = "access_token", + Property = "AccessToken", + Type = "string", + Value = AccessToken, + } + ); + types.Add( + new OpenApiType() + { + Name = "token_type", + Property = "TokenType", + Type = "string", + Value = TokenType, + } + ); + types.Add( + new OpenApiType() + { + Name = "refresh_token", + Property = "RefreshToken", + Type = "string", + Value = RefreshToken, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_in", + Property = "ExpiresIn", + Type = "int", + Value = ExpiresIn, + } + ); + types.Add( + new OpenApiType() + { + Name = "state", + Property = "State", + Type = "string", + Value = State, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs index 8c0f5945f..f1b5d5437 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -49,7 +49,7 @@ public enum ReportTypeEnum /// Enum DocumentStatus for value: document_status /// [EnumMember(Value = "document_status")] - DocumentStatus = 2 + DocumentStatus = 2, } /// @@ -57,31 +57,41 @@ public enum ReportTypeEnum /// [JsonConstructorAttribute] protected ReportCreateRequest() { } + /// /// Initializes a new instance of the class. /// /// The (inclusive) end date for the report data in `MM/DD/YYYY` format. (required). /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). (required). /// The (inclusive) start date for the report data in `MM/DD/YYYY` format. (required). - public ReportCreateRequest(string endDate = default(string), List reportType = default(List), string startDate = default(string)) + public ReportCreateRequest( + string endDate = default(string), + List reportType = default(List), + string startDate = default(string) + ) { - // to ensure "endDate" is required (not null) if (endDate == null) { - throw new ArgumentNullException("endDate is a required property for ReportCreateRequest and cannot be null"); + throw new ArgumentNullException( + "endDate is a required property for ReportCreateRequest and cannot be null" + ); } this.EndDate = endDate; // to ensure "reportType" is required (not null) if (reportType == null) { - throw new ArgumentNullException("reportType is a required property for ReportCreateRequest and cannot be null"); + throw new ArgumentNullException( + "reportType is a required property for ReportCreateRequest and cannot be null" + ); } this.ReportType = reportType; // to ensure "startDate" is required (not null) if (startDate == null) { - throw new ArgumentNullException("startDate is a required property for ReportCreateRequest and cannot be null"); + throw new ArgumentNullException( + "startDate is a required property for ReportCreateRequest and cannot be null" + ); } this.StartDate = startDate; } @@ -96,7 +106,9 @@ public static ReportCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of ReportCreateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of ReportCreateRequest" + ); } return obj; @@ -108,7 +120,6 @@ public static ReportCreateRequest Init(string jsonData) /// The (inclusive) end date for the report data in `MM/DD/YYYY` format. [DataMember(Name = "end_date", IsRequired = true, EmitDefaultValue = true)] public string EndDate { get; set; } - /// /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). @@ -116,7 +127,6 @@ public static ReportCreateRequest Init(string jsonData) /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). [DataMember(Name = "report_type", IsRequired = true, EmitDefaultValue = true)] public List ReportType { get; set; } - /// /// The (inclusive) start date for the report data in `MM/DD/YYYY` format. @@ -124,7 +134,6 @@ public static ReportCreateRequest Init(string jsonData) /// The (inclusive) start date for the report data in `MM/DD/YYYY` format. [DataMember(Name = "start_date", IsRequired = true, EmitDefaultValue = true)] public string StartDate { get; set; } - /// /// Returns the string presentation of the object @@ -147,7 +156,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -171,22 +183,19 @@ public bool Equals(ReportCreateRequest input) { return false; } - return - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && - ( - this.ReportType == input.ReportType || - this.ReportType != null && - input.ReportType != null && - this.ReportType.SequenceEqual(input.ReportType) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) + return ( + this.EndDate == input.EndDate + || (this.EndDate != null && this.EndDate.Equals(input.EndDate)) + ) + && ( + this.ReportType == input.ReportType + || this.ReportType != null + && input.ReportType != null + && this.ReportType.SequenceEqual(input.ReportType) + ) + && ( + this.StartDate == input.StartDate + || (this.StartDate != null && this.StartDate.Equals(input.StartDate)) ); } @@ -220,7 +229,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -228,27 +239,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "end_date", - Property = "EndDate", - Type = "string", - Value = EndDate, - }); - types.Add(new OpenApiType(){ - Name = "report_type", - Property = "ReportType", - Type = "List", - Value = ReportType, - }); - types.Add(new OpenApiType(){ - Name = "start_date", - Property = "StartDate", - Type = "string", - Value = StartDate, - }); + types.Add( + new OpenApiType() + { + Name = "end_date", + Property = "EndDate", + Type = "string", + Value = EndDate, + } + ); + types.Add( + new OpenApiType() + { + Name = "report_type", + Property = "ReportType", + Type = "List", + Value = ReportType, + } + ); + types.Add( + new OpenApiType() + { + Name = "start_date", + Property = "StartDate", + Type = "string", + Value = StartDate, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs index e361b4ecb..4916d6d9e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,14 +38,17 @@ public partial class ReportCreateResponse : IEquatable, IV /// [JsonConstructorAttribute] protected ReportCreateResponse() { } + /// /// Initializes a new instance of the class. /// /// report. /// A list of warnings.. - public ReportCreateResponse(ReportResponse report = default(ReportResponse), List warnings = default(List)) + public ReportCreateResponse( + ReportResponse report = default(ReportResponse), + List warnings = default(List) + ) { - this.Report = report; this.Warnings = warnings; } @@ -60,7 +63,9 @@ public static ReportCreateResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of ReportCreateResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of ReportCreateResponse" + ); } return obj; @@ -71,7 +76,6 @@ public static ReportCreateResponse Init(string jsonData) /// [DataMember(Name = "report", EmitDefaultValue = true)] public ReportResponse Report { get; set; } - /// /// A list of warnings. @@ -79,7 +83,6 @@ public static ReportCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +104,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +131,15 @@ public bool Equals(ReportCreateResponse input) { return false; } - return - ( - this.Report == input.Report || - (this.Report != null && - this.Report.Equals(input.Report)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Report == input.Report + || (this.Report != null && this.Report.Equals(input.Report)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +169,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +179,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "report", - Property = "Report", - Type = "ReportResponse", - Value = Report, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "report", + Property = "Report", + Type = "ReportResponse", + Value = Report, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs index 02759c3ff..eac3cefa7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -49,7 +49,7 @@ public enum ReportTypeEnum /// Enum DocumentStatus for value: document_status /// [EnumMember(Value = "document_status")] - DocumentStatus = 2 + DocumentStatus = 2, } /// @@ -57,6 +57,7 @@ public enum ReportTypeEnum /// [JsonConstructorAttribute] protected ReportResponse() { } + /// /// Initializes a new instance of the class. /// @@ -64,9 +65,13 @@ protected ReportResponse() { } /// The (inclusive) start date for the report data in MM/DD/YYYY format.. /// The (inclusive) end date for the report data in MM/DD/YYYY format.. /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status).. - public ReportResponse(string success = default(string), string startDate = default(string), string endDate = default(string), List reportType = default(List)) + public ReportResponse( + string success = default(string), + string startDate = default(string), + string endDate = default(string), + List reportType = default(List) + ) { - this.Success = success; this.StartDate = startDate; this.EndDate = endDate; @@ -95,7 +100,6 @@ public static ReportResponse Init(string jsonData) /// A message indicating the requested operation's success [DataMember(Name = "success", EmitDefaultValue = true)] public string Success { get; set; } - /// /// The (inclusive) start date for the report data in MM/DD/YYYY format. @@ -103,7 +107,6 @@ public static ReportResponse Init(string jsonData) /// The (inclusive) start date for the report data in MM/DD/YYYY format. [DataMember(Name = "start_date", EmitDefaultValue = true)] public string StartDate { get; set; } - /// /// The (inclusive) end date for the report data in MM/DD/YYYY format. @@ -111,7 +114,6 @@ public static ReportResponse Init(string jsonData) /// The (inclusive) end date for the report data in MM/DD/YYYY format. [DataMember(Name = "end_date", EmitDefaultValue = true)] public string EndDate { get; set; } - /// /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). @@ -119,7 +121,6 @@ public static ReportResponse Init(string jsonData) /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). [DataMember(Name = "report_type", EmitDefaultValue = true)] public List ReportType { get; set; } - /// /// Returns the string presentation of the object @@ -143,7 +144,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -167,27 +171,23 @@ public bool Equals(ReportResponse input) { return false; } - return - ( - this.Success == input.Success || - (this.Success != null && - this.Success.Equals(input.Success)) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && - ( - this.ReportType == input.ReportType || - this.ReportType != null && - input.ReportType != null && - this.ReportType.SequenceEqual(input.ReportType) + return ( + this.Success == input.Success + || (this.Success != null && this.Success.Equals(input.Success)) + ) + && ( + this.StartDate == input.StartDate + || (this.StartDate != null && this.StartDate.Equals(input.StartDate)) + ) + && ( + this.EndDate == input.EndDate + || (this.EndDate != null && this.EndDate.Equals(input.EndDate)) + ) + && ( + this.ReportType == input.ReportType + || this.ReportType != null + && input.ReportType != null + && this.ReportType.SequenceEqual(input.ReportType) ); } @@ -225,7 +225,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -233,33 +235,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "success", - Property = "Success", - Type = "string", - Value = Success, - }); - types.Add(new OpenApiType(){ - Name = "start_date", - Property = "StartDate", - Type = "string", - Value = StartDate, - }); - types.Add(new OpenApiType(){ - Name = "end_date", - Property = "EndDate", - Type = "string", - Value = EndDate, - }); - types.Add(new OpenApiType(){ - Name = "report_type", - Property = "ReportType", - Type = "List", - Value = ReportType, - }); + types.Add( + new OpenApiType() + { + Name = "success", + Property = "Success", + Type = "string", + Value = Success, + } + ); + types.Add( + new OpenApiType() + { + Name = "start_date", + Property = "StartDate", + Type = "string", + Value = StartDate, + } + ); + types.Add( + new OpenApiType() + { + Name = "end_date", + Property = "EndDate", + Type = "string", + Value = EndDate, + } + ); + types.Add( + new OpenApiType() + { + Name = "report_type", + Property = "ReportType", + Type = "List", + Value = ReportType, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs index 65fa89808..fc987c5bb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestBulkCreateEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestBulkCreateEmbeddedWithTemplateRequest : IEquatable, IValidatableObject + public partial class SignatureRequestBulkCreateEmbeddedWithTemplateRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestBulkCreateEmbeddedWithTemplateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -54,19 +57,36 @@ protected SignatureRequestBulkCreateEmbeddedWithTemplateRequest() { } /// The subject in the email that will be sent to the signers.. /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest(List templateIds = default(List), System.IO.Stream signerFile = default(System.IO.Stream), List signerList = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), string message = default(string), Dictionary metadata = default(Dictionary), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string)) + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest( + List templateIds = default(List), + System.IO.Stream signerFile = default(System.IO.Stream), + List signerList = default(List), + bool allowDecline = false, + List ccs = default(List), + string clientId = default(string), + List customFields = default(List), + string message = default(string), + Dictionary metadata = default(Dictionary), + string signingRedirectUrl = default(string), + string subject = default(string), + bool testMode = false, + string title = default(string) + ) { - // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException("templateIds is a required property for SignatureRequestBulkCreateEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "templateIds is a required property for SignatureRequestBulkCreateEmbeddedWithTemplateRequest and cannot be null" + ); } this.TemplateIds = templateIds; // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for SignatureRequestBulkCreateEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for SignatureRequestBulkCreateEmbeddedWithTemplateRequest and cannot be null" + ); } this.ClientId = clientId; this.SignerFile = signerFile; @@ -88,11 +108,16 @@ protected SignatureRequestBulkCreateEmbeddedWithTemplateRequest() { } /// String of JSON data representing target object public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = + JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestBulkCreateEmbeddedWithTemplateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestBulkCreateEmbeddedWithTemplateRequest" + ); } return obj; @@ -104,7 +129,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// Client id of the app you're using to create this embedded signature request. Used for security purposes. @@ -112,7 +136,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Client id of the app you're using to create this embedded signature request. Used for security purposes. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` @@ -120,7 +143,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` [DataMember(Name = "signer_file", EmitDefaultValue = true)] public System.IO.Stream SignerFile { get; set; } - /// /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. @@ -128,7 +150,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. [DataMember(Name = "signer_list", EmitDefaultValue = true)] public List SignerList { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -136,7 +157,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -144,7 +164,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -152,7 +171,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// The custom message in the email that will be sent to the signers. @@ -160,7 +178,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -168,7 +185,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. @@ -176,7 +192,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. @@ -184,7 +199,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -192,7 +206,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. @@ -200,7 +213,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Returns the string presentation of the object @@ -233,7 +245,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -257,74 +272,65 @@ public bool Equals(SignatureRequestBulkCreateEmbeddedWithTemplateRequest input) { return false; } - return - ( - this.TemplateIds == input.TemplateIds || - this.TemplateIds != null && - input.TemplateIds != null && - this.TemplateIds.SequenceEqual(input.TemplateIds) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.SignerFile == input.SignerFile || - (this.SignerFile != null && - this.SignerFile.Equals(input.SignerFile)) - ) && - ( - this.SignerList == input.SignerList || - this.SignerList != null && - input.SignerList != null && - this.SignerList.SequenceEqual(input.SignerList) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.Ccs == input.Ccs || - this.Ccs != null && - input.Ccs != null && - this.Ccs.SequenceEqual(input.Ccs) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) + return ( + this.TemplateIds == input.TemplateIds + || this.TemplateIds != null + && input.TemplateIds != null + && this.TemplateIds.SequenceEqual(input.TemplateIds) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.SignerFile == input.SignerFile + || (this.SignerFile != null && this.SignerFile.Equals(input.SignerFile)) + ) + && ( + this.SignerList == input.SignerList + || this.SignerList != null + && input.SignerList != null + && this.SignerList.SequenceEqual(input.SignerList) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.Ccs == input.Ccs + || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) ); } @@ -392,24 +398,35 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; @@ -418,87 +435,125 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "signer_file", - Property = "SignerFile", - Type = "System.IO.Stream", - Value = SignerFile, - }); - types.Add(new OpenApiType(){ - Name = "signer_list", - Property = "SignerList", - Type = "List", - Value = SignerList, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); + types.Add( + new OpenApiType() + { + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_file", + Property = "SignerFile", + Type = "System.IO.Stream", + Value = SignerFile, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_list", + Property = "SignerList", + Type = "List", + Value = SignerList, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs index 7542ae15d..248c529af 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestBulkSendWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestBulkSendWithTemplateRequest : IEquatable, IValidatableObject + public partial class SignatureRequestBulkSendWithTemplateRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestBulkSendWithTemplateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -54,13 +57,28 @@ protected SignatureRequestBulkSendWithTemplateRequest() { } /// The subject in the email that will be sent to the signers.. /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. - public SignatureRequestBulkSendWithTemplateRequest(List templateIds = default(List), System.IO.Stream signerFile = default(System.IO.Stream), List signerList = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), string message = default(string), Dictionary metadata = default(Dictionary), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string)) + public SignatureRequestBulkSendWithTemplateRequest( + List templateIds = default(List), + System.IO.Stream signerFile = default(System.IO.Stream), + List signerList = default(List), + bool allowDecline = false, + List ccs = default(List), + string clientId = default(string), + List customFields = default(List), + string message = default(string), + Dictionary metadata = default(Dictionary), + string signingRedirectUrl = default(string), + string subject = default(string), + bool testMode = false, + string title = default(string) + ) { - // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException("templateIds is a required property for SignatureRequestBulkSendWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "templateIds is a required property for SignatureRequestBulkSendWithTemplateRequest and cannot be null" + ); } this.TemplateIds = templateIds; this.SignerFile = signerFile; @@ -83,11 +101,15 @@ protected SignatureRequestBulkSendWithTemplateRequest() { } /// String of JSON data representing target object public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestBulkSendWithTemplateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestBulkSendWithTemplateRequest" + ); } return obj; @@ -99,7 +121,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` @@ -107,7 +128,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` [DataMember(Name = "signer_file", EmitDefaultValue = true)] public System.IO.Stream SignerFile { get; set; } - /// /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. @@ -115,7 +135,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. [DataMember(Name = "signer_list", EmitDefaultValue = true)] public List SignerList { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -123,7 +142,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -131,7 +149,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. @@ -139,7 +156,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -147,7 +163,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// The custom message in the email that will be sent to the signers. @@ -155,7 +170,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -163,7 +177,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. @@ -171,7 +184,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. @@ -179,7 +191,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -187,7 +198,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. @@ -195,7 +205,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Returns the string presentation of the object @@ -228,7 +237,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -252,74 +264,65 @@ public bool Equals(SignatureRequestBulkSendWithTemplateRequest input) { return false; } - return - ( - this.TemplateIds == input.TemplateIds || - this.TemplateIds != null && - input.TemplateIds != null && - this.TemplateIds.SequenceEqual(input.TemplateIds) - ) && - ( - this.SignerFile == input.SignerFile || - (this.SignerFile != null && - this.SignerFile.Equals(input.SignerFile)) - ) && - ( - this.SignerList == input.SignerList || - this.SignerList != null && - input.SignerList != null && - this.SignerList.SequenceEqual(input.SignerList) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.Ccs == input.Ccs || - this.Ccs != null && - input.Ccs != null && - this.Ccs.SequenceEqual(input.Ccs) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) + return ( + this.TemplateIds == input.TemplateIds + || this.TemplateIds != null + && input.TemplateIds != null + && this.TemplateIds.SequenceEqual(input.TemplateIds) + ) + && ( + this.SignerFile == input.SignerFile + || (this.SignerFile != null && this.SignerFile.Equals(input.SignerFile)) + ) + && ( + this.SignerList == input.SignerList + || this.SignerList != null + && input.SignerList != null + && this.SignerList.SequenceEqual(input.SignerList) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.Ccs == input.Ccs + || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) ); } @@ -387,24 +390,35 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; @@ -413,87 +427,125 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - }); - types.Add(new OpenApiType(){ - Name = "signer_file", - Property = "SignerFile", - Type = "System.IO.Stream", - Value = SignerFile, - }); - types.Add(new OpenApiType(){ - Name = "signer_list", - Property = "SignerList", - Type = "List", - Value = SignerList, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); + types.Add( + new OpenApiType() + { + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_file", + Property = "SignerFile", + Type = "System.IO.Stream", + Value = SignerFile, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_list", + Property = "SignerList", + Type = "List", + Value = SignerList, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs index bfe4e51d3..e1fdf06ab 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestCreateEmbeddedRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestCreateEmbeddedRequest : IEquatable, IValidatableObject + public partial class SignatureRequestCreateEmbeddedRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestCreateEmbeddedRequest() { } + /// /// Initializes a new instance of the class. /// @@ -65,13 +68,41 @@ protected SignatureRequestCreateEmbeddedRequest() { } /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. (default to false). /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestCreateEmbeddedRequest(List files = default(List), List fileUrls = default(List), List signers = default(List), List groupedSigners = default(List), bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, string message = default(string), Dictionary metadata = default(Dictionary), SubSigningOptions signingOptions = default(SubSigningOptions), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, bool populateAutoFillFields = false, int? expiresAt = default(int?)) + public SignatureRequestCreateEmbeddedRequest( + List files = default(List), + List fileUrls = default(List), + List signers = default(List), + List groupedSigners = + default(List), + bool allowDecline = false, + bool allowReassign = false, + List attachments = default(List), + List ccEmailAddresses = default(List), + string clientId = default(string), + List customFields = default(List), + SubFieldOptions fieldOptions = default(SubFieldOptions), + List formFieldGroups = default(List), + List formFieldRules = default(List), + List formFieldsPerDocument = + default(List), + bool hideTextTags = false, + string message = default(string), + Dictionary metadata = default(Dictionary), + SubSigningOptions signingOptions = default(SubSigningOptions), + string subject = default(string), + bool testMode = false, + string title = default(string), + bool useTextTags = false, + bool populateAutoFillFields = false, + int? expiresAt = default(int?) + ) { - // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for SignatureRequestCreateEmbeddedRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for SignatureRequestCreateEmbeddedRequest and cannot be null" + ); } this.ClientId = clientId; this.Files = files; @@ -105,11 +136,15 @@ protected SignatureRequestCreateEmbeddedRequest() { } /// String of JSON data representing target object public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestCreateEmbeddedRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestCreateEmbeddedRequest" + ); } return obj; @@ -121,7 +156,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Client id of the app you're using to create this embedded signature request. Used for security purposes. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -129,7 +163,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -137,7 +170,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -145,7 +177,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -153,7 +184,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "grouped_signers", EmitDefaultValue = true)] public List GroupedSigners { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -161,7 +191,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan. @@ -169,7 +198,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments @@ -177,7 +205,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The email addresses that should be CCed. @@ -185,7 +212,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -193,14 +219,12 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -208,7 +232,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -216,7 +239,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -224,7 +246,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. @@ -232,7 +253,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } - /// /// The custom message in the email that will be sent to the signers. @@ -240,7 +260,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -248,14 +267,12 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The subject in the email that will be sent to the signers. @@ -263,7 +280,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -271,7 +287,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. @@ -279,7 +294,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. @@ -287,7 +301,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } - /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -295,7 +308,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } - /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -303,7 +315,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object @@ -347,7 +358,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -371,131 +385,123 @@ public bool Equals(SignatureRequestCreateEmbeddedRequest input) { return false; } - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.GroupedSigners == input.GroupedSigners || - this.GroupedSigners != null && - input.GroupedSigners != null && - this.GroupedSigners.SequenceEqual(input.GroupedSigners) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.AllowReassign == input.AllowReassign || - this.AllowReassign.Equals(input.AllowReassign) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.CcEmailAddresses == input.CcEmailAddresses || - this.CcEmailAddresses != null && - input.CcEmailAddresses != null && - this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.FieldOptions == input.FieldOptions || - (this.FieldOptions != null && - this.FieldOptions.Equals(input.FieldOptions)) - ) && - ( - this.FormFieldGroups == input.FormFieldGroups || - this.FormFieldGroups != null && - input.FormFieldGroups != null && - this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) && - ( - this.FormFieldRules == input.FormFieldRules || - this.FormFieldRules != null && - input.FormFieldRules != null && - this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) && - ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument || - this.FormFieldsPerDocument != null && - input.FormFieldsPerDocument != null && - this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) && - ( - this.HideTextTags == input.HideTextTags || - this.HideTextTags.Equals(input.HideTextTags) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.UseTextTags == input.UseTextTags || - this.UseTextTags.Equals(input.UseTextTags) - ) && - ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields || - this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - (this.ExpiresAt != null && - this.ExpiresAt.Equals(input.ExpiresAt)) + return ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.GroupedSigners == input.GroupedSigners + || this.GroupedSigners != null + && input.GroupedSigners != null + && this.GroupedSigners.SequenceEqual(input.GroupedSigners) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.AllowReassign == input.AllowReassign + || this.AllowReassign.Equals(input.AllowReassign) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.CcEmailAddresses == input.CcEmailAddresses + || this.CcEmailAddresses != null + && input.CcEmailAddresses != null + && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.FieldOptions == input.FieldOptions + || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) + ) + && ( + this.FormFieldGroups == input.FormFieldGroups + || this.FormFieldGroups != null + && input.FormFieldGroups != null + && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) + && ( + this.FormFieldRules == input.FormFieldRules + || this.FormFieldRules != null + && input.FormFieldRules != null + && this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) + && ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument + || this.FormFieldsPerDocument != null + && input.FormFieldsPerDocument != null + && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) + && ( + this.HideTextTags == input.HideTextTags + || this.HideTextTags.Equals(input.HideTextTags) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.UseTextTags == input.UseTextTags + || this.UseTextTags.Equals(input.UseTextTags) + ) + && ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields + || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + ) + && ( + this.ExpiresAt == input.ExpiresAt + || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -595,24 +601,35 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; @@ -621,153 +638,224 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "grouped_signers", - Property = "GroupedSigners", - Type = "List", - Value = GroupedSigners, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - }); - types.Add(new OpenApiType(){ - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - }); - types.Add(new OpenApiType(){ - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - }); - types.Add(new OpenApiType(){ - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - }); - types.Add(new OpenApiType(){ - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - }); - types.Add(new OpenApiType(){ - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "grouped_signers", + Property = "GroupedSigners", + Type = "List", + Value = GroupedSigners, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + } + ); + types.Add( + new OpenApiType() + { + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs index 682c38df4..84ea9c036 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestCreateEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestCreateEmbeddedWithTemplateRequest : IEquatable, IValidatableObject + public partial class SignatureRequestCreateEmbeddedWithTemplateRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestCreateEmbeddedWithTemplateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -56,25 +59,47 @@ protected SignatureRequestCreateEmbeddedWithTemplateRequest() { } /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). - public SignatureRequestCreateEmbeddedWithTemplateRequest(List templateIds = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), List files = default(List), List fileUrls = default(List), string message = default(string), Dictionary metadata = default(Dictionary), List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string subject = default(string), bool testMode = false, string title = default(string), bool populateAutoFillFields = false) + public SignatureRequestCreateEmbeddedWithTemplateRequest( + List templateIds = default(List), + bool allowDecline = false, + List ccs = default(List), + string clientId = default(string), + List customFields = default(List), + List files = default(List), + List fileUrls = default(List), + string message = default(string), + Dictionary metadata = default(Dictionary), + List signers = + default(List), + SubSigningOptions signingOptions = default(SubSigningOptions), + string subject = default(string), + bool testMode = false, + string title = default(string), + bool populateAutoFillFields = false + ) { - // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException("templateIds is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "templateIds is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null" + ); } this.TemplateIds = templateIds; // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null" + ); } this.ClientId = clientId; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException("signers is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "signers is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null" + ); } this.Signers = signers; this.AllowDecline = allowDecline; @@ -97,11 +122,16 @@ protected SignatureRequestCreateEmbeddedWithTemplateRequest() { } /// String of JSON data representing target object public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = + JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestCreateEmbeddedWithTemplateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestCreateEmbeddedWithTemplateRequest" + ); } return obj; @@ -113,7 +143,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// Client id of the app you're using to create this embedded signature request. Used for security purposes. @@ -121,7 +150,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Client id of the app you're using to create this embedded signature request. Used for security purposes. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Add Signers to your Templated-based Signature Request. @@ -129,7 +157,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Add Signers to your Templated-based Signature Request. [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -137,7 +164,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -145,7 +171,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. @@ -153,7 +178,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// An array defining values and options for custom fields. Required when a custom field exists in the Template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -161,7 +185,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -169,7 +192,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// The custom message in the email that will be sent to the signers. @@ -177,7 +199,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -185,14 +206,12 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The subject in the email that will be sent to the signers. @@ -200,7 +219,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -208,7 +226,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. @@ -216,7 +233,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -224,7 +240,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } - /// /// Returns the string presentation of the object @@ -259,7 +274,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -283,85 +301,77 @@ public bool Equals(SignatureRequestCreateEmbeddedWithTemplateRequest input) { return false; } - return - ( - this.TemplateIds == input.TemplateIds || - this.TemplateIds != null && - input.TemplateIds != null && - this.TemplateIds.SequenceEqual(input.TemplateIds) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.Ccs == input.Ccs || - this.Ccs != null && - input.Ccs != null && - this.Ccs.SequenceEqual(input.Ccs) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields || - this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + return ( + this.TemplateIds == input.TemplateIds + || this.TemplateIds != null + && input.TemplateIds != null + && this.TemplateIds.SequenceEqual(input.TemplateIds) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.Ccs == input.Ccs + || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields + || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) ); } @@ -434,24 +444,35 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; @@ -460,99 +481,143 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - }); + types.Add( + new OpenApiType() + { + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs index 8f9595f2d..a44d62c8d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,17 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestEditEmbeddedRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestEditEmbeddedRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestEditEmbeddedRequest + : IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestEditEmbeddedRequest() { } + /// /// Initializes a new instance of the class. /// @@ -65,13 +69,41 @@ protected SignatureRequestEditEmbeddedRequest() { } /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. (default to false). /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestEditEmbeddedRequest(List files = default(List), List fileUrls = default(List), List signers = default(List), List groupedSigners = default(List), bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, string message = default(string), Dictionary metadata = default(Dictionary), SubSigningOptions signingOptions = default(SubSigningOptions), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, bool populateAutoFillFields = false, int? expiresAt = default(int?)) + public SignatureRequestEditEmbeddedRequest( + List files = default(List), + List fileUrls = default(List), + List signers = default(List), + List groupedSigners = + default(List), + bool allowDecline = false, + bool allowReassign = false, + List attachments = default(List), + List ccEmailAddresses = default(List), + string clientId = default(string), + List customFields = default(List), + SubFieldOptions fieldOptions = default(SubFieldOptions), + List formFieldGroups = default(List), + List formFieldRules = default(List), + List formFieldsPerDocument = + default(List), + bool hideTextTags = false, + string message = default(string), + Dictionary metadata = default(Dictionary), + SubSigningOptions signingOptions = default(SubSigningOptions), + string subject = default(string), + bool testMode = false, + string title = default(string), + bool useTextTags = false, + bool populateAutoFillFields = false, + int? expiresAt = default(int?) + ) { - // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for SignatureRequestEditEmbeddedRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for SignatureRequestEditEmbeddedRequest and cannot be null" + ); } this.ClientId = clientId; this.Files = files; @@ -109,7 +141,9 @@ public static SignatureRequestEditEmbeddedRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestEditEmbeddedRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestEditEmbeddedRequest" + ); } return obj; @@ -323,7 +357,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -347,131 +384,123 @@ public bool Equals(SignatureRequestEditEmbeddedRequest input) { return false; } - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.GroupedSigners == input.GroupedSigners || - this.GroupedSigners != null && - input.GroupedSigners != null && - this.GroupedSigners.SequenceEqual(input.GroupedSigners) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.AllowReassign == input.AllowReassign || - this.AllowReassign.Equals(input.AllowReassign) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.CcEmailAddresses == input.CcEmailAddresses || - this.CcEmailAddresses != null && - input.CcEmailAddresses != null && - this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.FieldOptions == input.FieldOptions || - (this.FieldOptions != null && - this.FieldOptions.Equals(input.FieldOptions)) - ) && - ( - this.FormFieldGroups == input.FormFieldGroups || - this.FormFieldGroups != null && - input.FormFieldGroups != null && - this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) && - ( - this.FormFieldRules == input.FormFieldRules || - this.FormFieldRules != null && - input.FormFieldRules != null && - this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) && - ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument || - this.FormFieldsPerDocument != null && - input.FormFieldsPerDocument != null && - this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) && - ( - this.HideTextTags == input.HideTextTags || - this.HideTextTags.Equals(input.HideTextTags) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.UseTextTags == input.UseTextTags || - this.UseTextTags.Equals(input.UseTextTags) - ) && - ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields || - this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - (this.ExpiresAt != null && - this.ExpiresAt.Equals(input.ExpiresAt)) + return ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.GroupedSigners == input.GroupedSigners + || this.GroupedSigners != null + && input.GroupedSigners != null + && this.GroupedSigners.SequenceEqual(input.GroupedSigners) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.AllowReassign == input.AllowReassign + || this.AllowReassign.Equals(input.AllowReassign) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.CcEmailAddresses == input.CcEmailAddresses + || this.CcEmailAddresses != null + && input.CcEmailAddresses != null + && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.FieldOptions == input.FieldOptions + || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) + ) + && ( + this.FormFieldGroups == input.FormFieldGroups + || this.FormFieldGroups != null + && input.FormFieldGroups != null + && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) + && ( + this.FormFieldRules == input.FormFieldRules + || this.FormFieldRules != null + && input.FormFieldRules != null + && this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) + && ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument + || this.FormFieldsPerDocument != null + && input.FormFieldsPerDocument != null + && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) + && ( + this.HideTextTags == input.HideTextTags + || this.HideTextTags.Equals(input.HideTextTags) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.UseTextTags == input.UseTextTags + || this.UseTextTags.Equals(input.UseTextTags) + ) + && ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields + || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + ) + && ( + this.ExpiresAt == input.ExpiresAt + || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -569,150 +598,222 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "grouped_signers", - Property = "GroupedSigners", - Type = "List", - Value = GroupedSigners, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - }); - types.Add(new OpenApiType(){ - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - }); - types.Add(new OpenApiType(){ - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - }); - types.Add(new OpenApiType(){ - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - }); - types.Add(new OpenApiType(){ - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - }); - types.Add(new OpenApiType(){ - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "grouped_signers", + Property = "GroupedSigners", + Type = "List", + Value = GroupedSigners, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + } + ); + types.Add( + new OpenApiType() + { + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + } + ); return types; } @@ -722,28 +823,38 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs index f39ecc06d..d0f172099 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,17 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestEditEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestEditEmbeddedWithTemplateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestEditEmbeddedWithTemplateRequest + : IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestEditEmbeddedWithTemplateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -56,25 +60,47 @@ protected SignatureRequestEditEmbeddedWithTemplateRequest() { } /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). - public SignatureRequestEditEmbeddedWithTemplateRequest(List templateIds = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), List files = default(List), List fileUrls = default(List), string message = default(string), Dictionary metadata = default(Dictionary), List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string subject = default(string), bool testMode = false, string title = default(string), bool populateAutoFillFields = false) + public SignatureRequestEditEmbeddedWithTemplateRequest( + List templateIds = default(List), + bool allowDecline = false, + List ccs = default(List), + string clientId = default(string), + List customFields = default(List), + List files = default(List), + List fileUrls = default(List), + string message = default(string), + Dictionary metadata = default(Dictionary), + List signers = + default(List), + SubSigningOptions signingOptions = default(SubSigningOptions), + string subject = default(string), + bool testMode = false, + string title = default(string), + bool populateAutoFillFields = false + ) { - // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException("templateIds is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "templateIds is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null" + ); } this.TemplateIds = templateIds; // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null" + ); } this.ClientId = clientId; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException("signers is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "signers is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null" + ); } this.Signers = signers; this.AllowDecline = allowDecline; @@ -97,11 +123,16 @@ protected SignatureRequestEditEmbeddedWithTemplateRequest() { } /// String of JSON data representing target object public static SignatureRequestEditEmbeddedWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = + JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestEditEmbeddedWithTemplateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestEditEmbeddedWithTemplateRequest" + ); } return obj; @@ -244,7 +275,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -268,85 +302,77 @@ public bool Equals(SignatureRequestEditEmbeddedWithTemplateRequest input) { return false; } - return - ( - this.TemplateIds == input.TemplateIds || - this.TemplateIds != null && - input.TemplateIds != null && - this.TemplateIds.SequenceEqual(input.TemplateIds) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.Ccs == input.Ccs || - this.Ccs != null && - input.Ccs != null && - this.Ccs.SequenceEqual(input.Ccs) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields || - this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + return ( + this.TemplateIds == input.TemplateIds + || this.TemplateIds != null + && input.TemplateIds != null + && this.TemplateIds.SequenceEqual(input.TemplateIds) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.Ccs == input.Ccs + || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields + || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) ); } @@ -417,96 +443,141 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - }); + types.Add( + new OpenApiType() + { + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + } + ); return types; } @@ -516,28 +587,38 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs index c2b13b0d2..aaf6f65d6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,17 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestEditRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestEditRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestEditRequest + : IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestEditRequest() { } + /// /// Initializes a new instance of the class. /// @@ -67,9 +71,37 @@ protected SignatureRequestEditRequest() { } /// The title you want to assign to the SignatureRequest.. /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestEditRequest(List files = default(List), List fileUrls = default(List), List signers = default(List), List groupedSigners = default(List), bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary metadata = default(Dictionary), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, int? expiresAt = default(int?)) + public SignatureRequestEditRequest( + List files = default(List), + List fileUrls = default(List), + List signers = default(List), + List groupedSigners = + default(List), + bool allowDecline = false, + bool allowReassign = false, + List attachments = default(List), + List ccEmailAddresses = default(List), + string clientId = default(string), + List customFields = default(List), + SubFieldOptions fieldOptions = default(SubFieldOptions), + List formFieldGroups = default(List), + List formFieldRules = default(List), + List formFieldsPerDocument = + default(List), + bool hideTextTags = false, + bool isQualifiedSignature = false, + bool isEid = false, + string message = default(string), + Dictionary metadata = default(Dictionary), + SubSigningOptions signingOptions = default(SubSigningOptions), + string signingRedirectUrl = default(string), + string subject = default(string), + bool testMode = false, + string title = default(string), + bool useTextTags = false, + int? expiresAt = default(int?) + ) { - this.Files = files; this.FileUrls = fileUrls; this.Signers = signers; @@ -108,7 +140,9 @@ public static SignatureRequestEditRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestEditRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestEditRequest" + ); } return obj; @@ -339,7 +373,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -363,140 +400,131 @@ public bool Equals(SignatureRequestEditRequest input) { return false; } - return - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.GroupedSigners == input.GroupedSigners || - this.GroupedSigners != null && - input.GroupedSigners != null && - this.GroupedSigners.SequenceEqual(input.GroupedSigners) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.AllowReassign == input.AllowReassign || - this.AllowReassign.Equals(input.AllowReassign) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.CcEmailAddresses == input.CcEmailAddresses || - this.CcEmailAddresses != null && - input.CcEmailAddresses != null && - this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.FieldOptions == input.FieldOptions || - (this.FieldOptions != null && - this.FieldOptions.Equals(input.FieldOptions)) - ) && - ( - this.FormFieldGroups == input.FormFieldGroups || - this.FormFieldGroups != null && - input.FormFieldGroups != null && - this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) && - ( - this.FormFieldRules == input.FormFieldRules || - this.FormFieldRules != null && - input.FormFieldRules != null && - this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) && - ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument || - this.FormFieldsPerDocument != null && - input.FormFieldsPerDocument != null && - this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) && - ( - this.HideTextTags == input.HideTextTags || - this.HideTextTags.Equals(input.HideTextTags) - ) && - ( - this.IsQualifiedSignature == input.IsQualifiedSignature || - this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) - ) && - ( - this.IsEid == input.IsEid || - this.IsEid.Equals(input.IsEid) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.UseTextTags == input.UseTextTags || - this.UseTextTags.Equals(input.UseTextTags) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - (this.ExpiresAt != null && - this.ExpiresAt.Equals(input.ExpiresAt)) + return ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.GroupedSigners == input.GroupedSigners + || this.GroupedSigners != null + && input.GroupedSigners != null + && this.GroupedSigners.SequenceEqual(input.GroupedSigners) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.AllowReassign == input.AllowReassign + || this.AllowReassign.Equals(input.AllowReassign) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.CcEmailAddresses == input.CcEmailAddresses + || this.CcEmailAddresses != null + && input.CcEmailAddresses != null + && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.FieldOptions == input.FieldOptions + || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) + ) + && ( + this.FormFieldGroups == input.FormFieldGroups + || this.FormFieldGroups != null + && input.FormFieldGroups != null + && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) + && ( + this.FormFieldRules == input.FormFieldRules + || this.FormFieldRules != null + && input.FormFieldRules != null + && this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) + && ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument + || this.FormFieldsPerDocument != null + && input.FormFieldsPerDocument != null + && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) + && ( + this.HideTextTags == input.HideTextTags + || this.HideTextTags.Equals(input.HideTextTags) + ) + && ( + this.IsQualifiedSignature == input.IsQualifiedSignature + || this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) + ) + && (this.IsEid == input.IsEid || this.IsEid.Equals(input.IsEid)) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.UseTextTags == input.UseTextTags + || this.UseTextTags.Equals(input.UseTextTags) + ) + && ( + this.ExpiresAt == input.ExpiresAt + || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -599,162 +627,240 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "grouped_signers", - Property = "GroupedSigners", - Type = "List", - Value = GroupedSigners, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - }); - types.Add(new OpenApiType(){ - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - }); - types.Add(new OpenApiType(){ - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - }); - types.Add(new OpenApiType(){ - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - }); - types.Add(new OpenApiType(){ - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - }); - types.Add(new OpenApiType(){ - Name = "is_qualified_signature", - Property = "IsQualifiedSignature", - Type = "bool", - Value = IsQualifiedSignature, - }); - types.Add(new OpenApiType(){ - Name = "is_eid", - Property = "IsEid", - Type = "bool", - Value = IsEid, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "grouped_signers", + Property = "GroupedSigners", + Type = "List", + Value = GroupedSigners, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + } + ); + types.Add( + new OpenApiType() + { + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_qualified_signature", + Property = "IsQualifiedSignature", + Type = "bool", + Value = IsQualifiedSignature, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_eid", + Property = "IsEid", + Type = "bool", + Value = IsEid, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + } + ); return types; } @@ -764,28 +870,38 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs index 44674918d..2f1941916 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,17 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestEditWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestEditWithTemplateRequest : IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestEditWithTemplateRequest + : IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestEditWithTemplateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -58,19 +62,41 @@ protected SignatureRequestEditWithTemplateRequest() { } /// The subject in the email that will be sent to the signers.. /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. - public SignatureRequestEditWithTemplateRequest(List templateIds = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), List files = default(List), List fileUrls = default(List), bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary metadata = default(Dictionary), List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string)) + public SignatureRequestEditWithTemplateRequest( + List templateIds = default(List), + bool allowDecline = false, + List ccs = default(List), + string clientId = default(string), + List customFields = default(List), + List files = default(List), + List fileUrls = default(List), + bool isQualifiedSignature = false, + bool isEid = false, + string message = default(string), + Dictionary metadata = default(Dictionary), + List signers = + default(List), + SubSigningOptions signingOptions = default(SubSigningOptions), + string signingRedirectUrl = default(string), + string subject = default(string), + bool testMode = false, + string title = default(string) + ) { - // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException("templateIds is a required property for SignatureRequestEditWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "templateIds is a required property for SignatureRequestEditWithTemplateRequest and cannot be null" + ); } this.TemplateIds = templateIds; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException("signers is a required property for SignatureRequestEditWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "signers is a required property for SignatureRequestEditWithTemplateRequest and cannot be null" + ); } this.Signers = signers; this.AllowDecline = allowDecline; @@ -96,11 +122,15 @@ protected SignatureRequestEditWithTemplateRequest() { } /// String of JSON data representing target object public static SignatureRequestEditWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestEditWithTemplateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestEditWithTemplateRequest" + ); } return obj; @@ -260,7 +290,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -284,94 +317,85 @@ public bool Equals(SignatureRequestEditWithTemplateRequest input) { return false; } - return - ( - this.TemplateIds == input.TemplateIds || - this.TemplateIds != null && - input.TemplateIds != null && - this.TemplateIds.SequenceEqual(input.TemplateIds) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.Ccs == input.Ccs || - this.Ccs != null && - input.Ccs != null && - this.Ccs.SequenceEqual(input.Ccs) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.IsQualifiedSignature == input.IsQualifiedSignature || - this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) - ) && - ( - this.IsEid == input.IsEid || - this.IsEid.Equals(input.IsEid) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) + return ( + this.TemplateIds == input.TemplateIds + || this.TemplateIds != null + && input.TemplateIds != null + && this.TemplateIds.SequenceEqual(input.TemplateIds) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.Ccs == input.Ccs + || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.IsQualifiedSignature == input.IsQualifiedSignature + || this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) + ) + && (this.IsEid == input.IsEid || this.IsEid.Equals(input.IsEid)) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) ); } @@ -447,108 +471,159 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "is_qualified_signature", - Property = "IsQualifiedSignature", - Type = "bool", - Value = IsQualifiedSignature, - }); - types.Add(new OpenApiType(){ - Name = "is_eid", - Property = "IsEid", - Type = "bool", - Value = IsEid, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); + types.Add( + new OpenApiType() + { + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_qualified_signature", + Property = "IsQualifiedSignature", + Type = "bool", + Value = IsQualifiedSignature, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_eid", + Property = "IsEid", + Type = "bool", + Value = IsEid, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); return types; } @@ -558,28 +633,38 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs index 2b6c6d163..7d330f00c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestGetResponse : IEquatable, IValidatableObject + public partial class SignatureRequestGetResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestGetResponse() { } + /// /// Initializes a new instance of the class. /// /// signatureRequest. /// A list of warnings.. - public SignatureRequestGetResponse(SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), List warnings = default(List)) + public SignatureRequestGetResponse( + SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), + List warnings = default(List) + ) { - this.SignatureRequest = signatureRequest; this.Warnings = warnings; } @@ -60,7 +65,9 @@ public static SignatureRequestGetResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestGetResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestGetResponse" + ); } return obj; @@ -71,7 +78,6 @@ public static SignatureRequestGetResponse Init(string jsonData) /// [DataMember(Name = "signature_request", EmitDefaultValue = true)] public SignatureRequestResponse SignatureRequest { get; set; } - /// /// A list of warnings. @@ -79,7 +85,6 @@ public static SignatureRequestGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +106,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +133,18 @@ public bool Equals(SignatureRequestGetResponse input) { return false; } - return - ( - this.SignatureRequest == input.SignatureRequest || - (this.SignatureRequest != null && - this.SignatureRequest.Equals(input.SignatureRequest)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.SignatureRequest == input.SignatureRequest + || ( + this.SignatureRequest != null + && this.SignatureRequest.Equals(input.SignatureRequest) + ) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +174,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +184,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "signature_request", - Property = "SignatureRequest", - Type = "SignatureRequestResponse", - Value = SignatureRequest, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "signature_request", + Property = "SignatureRequest", + Type = "SignatureRequestResponse", + Value = SignatureRequest, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs index 05a74cfca..6800f1360 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,22 +31,29 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestListResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestListResponse : IEquatable, IValidatableObject + public partial class SignatureRequestListResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestListResponse() { } + /// /// Initializes a new instance of the class. /// /// Contains information about signature requests.. /// listInfo. /// A list of warnings.. - public SignatureRequestListResponse(List signatureRequests = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) + public SignatureRequestListResponse( + List signatureRequests = + default(List), + ListInfoResponse listInfo = default(ListInfoResponse), + List warnings = default(List) + ) { - this.SignatureRequests = signatureRequests; this.ListInfo = listInfo; this.Warnings = warnings; @@ -62,7 +69,9 @@ public static SignatureRequestListResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestListResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestListResponse" + ); } return obj; @@ -74,14 +83,12 @@ public static SignatureRequestListResponse Init(string jsonData) /// Contains information about signature requests. [DataMember(Name = "signature_requests", EmitDefaultValue = true)] public List SignatureRequests { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// A list of warnings. @@ -89,7 +96,6 @@ public static SignatureRequestListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +118,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,23 +145,21 @@ public bool Equals(SignatureRequestListResponse input) { return false; } - return - ( - this.SignatureRequests == input.SignatureRequests || - this.SignatureRequests != null && - input.SignatureRequests != null && - this.SignatureRequests.SequenceEqual(input.SignatureRequests) - ) && - ( - this.ListInfo == input.ListInfo || - (this.ListInfo != null && - this.ListInfo.Equals(input.ListInfo)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.SignatureRequests == input.SignatureRequests + || this.SignatureRequests != null + && input.SignatureRequests != null + && this.SignatureRequests.SequenceEqual(input.SignatureRequests) + ) + && ( + this.ListInfo == input.ListInfo + || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -186,7 +193,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -194,27 +203,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "signature_requests", - Property = "SignatureRequests", - Type = "List", - Value = SignatureRequests, - }); - types.Add(new OpenApiType(){ - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "signature_requests", + Property = "SignatureRequests", + Type = "List", + Value = SignatureRequests, + } + ); + types.Add( + new OpenApiType() + { + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs index ab313fc4e..950d99662 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,25 +31,32 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestRemindRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestRemindRequest : IEquatable, IValidatableObject + public partial class SignatureRequestRemindRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestRemindRequest() { } + /// /// Initializes a new instance of the class. /// /// The email address of the signer to send a reminder to. (required). /// The name of the signer to send a reminder to. Include if two or more signers share an email address.. - public SignatureRequestRemindRequest(string emailAddress = default(string), string name = default(string)) + public SignatureRequestRemindRequest( + string emailAddress = default(string), + string name = default(string) + ) { - // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException("emailAddress is a required property for SignatureRequestRemindRequest and cannot be null"); + throw new ArgumentNullException( + "emailAddress is a required property for SignatureRequestRemindRequest and cannot be null" + ); } this.EmailAddress = emailAddress; this.Name = name; @@ -65,7 +72,9 @@ public static SignatureRequestRemindRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestRemindRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestRemindRequest" + ); } return obj; @@ -77,7 +86,6 @@ public static SignatureRequestRemindRequest Init(string jsonData) /// The email address of the signer to send a reminder to. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The name of the signer to send a reminder to. Include if two or more signers share an email address. @@ -85,7 +93,6 @@ public static SignatureRequestRemindRequest Init(string jsonData) /// The name of the signer to send a reminder to. Include if two or more signers share an email address. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object @@ -107,7 +114,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -131,17 +141,11 @@ public bool Equals(SignatureRequestRemindRequest input) { return false; } - return - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); + return ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); } /// @@ -170,7 +174,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -178,21 +184,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index bc12bed71..ebdbdb4e0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponse : IEquatable, IValidatableObject + public partial class SignatureRequestResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponse() { } + /// /// Initializes a new instance of the class. /// @@ -66,9 +69,38 @@ protected SignatureRequestResponse() { } /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers.. /// An array of signature objects, 1 for each signer.. /// The ID of the Bulk Send job which sent the signature request, if applicable.. - public SignatureRequestResponse(bool? testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Object metadata = default(Object), int createdAt = default(int), int expiresAt = default(int), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) + public SignatureRequestResponse( + bool? testMode = false, + string signatureRequestId = default(string), + string requesterEmailAddress = default(string), + string title = default(string), + string originalTitle = default(string), + string subject = default(string), + string message = default(string), + Object metadata = default(Object), + int createdAt = default(int), + int expiresAt = default(int), + bool isComplete = default(bool), + bool isDeclined = default(bool), + bool hasError = default(bool), + string filesUrl = default(string), + string signingUrl = default(string), + string detailsUrl = default(string), + List ccEmailAddresses = default(List), + string signingRedirectUrl = default(string), + string finalCopyUri = default(string), + List templateIds = default(List), + List customFields = + default(List), + List attachments = + default(List), + List responseData = + default(List), + List signatures = + default(List), + string bulkSendJobId = default(string) + ) { - // use default value if no "testMode" provided this.TestMode = testMode ?? false; this.SignatureRequestId = signatureRequestId; @@ -107,7 +139,9 @@ public static SignatureRequestResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponse" + ); } return obj; @@ -119,7 +153,6 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool? TestMode { get; set; } - /// /// The id of the SignatureRequest. @@ -127,7 +160,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The id of the SignatureRequest. [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } - /// /// The email address of the initiator of the SignatureRequest. @@ -135,7 +167,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The email address of the initiator of the SignatureRequest. [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// The title the specified Account uses for the SignatureRequest. @@ -143,7 +174,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The title the specified Account uses for the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Default Label for account. @@ -151,7 +181,6 @@ public static SignatureRequestResponse Init(string jsonData) /// Default Label for account. [DataMember(Name = "original_title", EmitDefaultValue = true)] public string OriginalTitle { get; set; } - /// /// The subject in the email that was initially sent to the signers. @@ -159,7 +188,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The subject in the email that was initially sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// The custom message in the email that was initially sent to the signers. @@ -167,7 +195,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The custom message in the email that was initially sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// The metadata attached to the signature request. @@ -175,7 +202,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } - /// /// Time the signature request was created. @@ -183,7 +209,6 @@ public static SignatureRequestResponse Init(string jsonData) /// Time the signature request was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -191,7 +216,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -199,7 +223,6 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether or not the SignatureRequest has been fully executed by all signers. [DataMember(Name = "is_complete", EmitDefaultValue = true)] public bool IsComplete { get; set; } - /// /// Whether or not the SignatureRequest has been declined by a signer. @@ -207,7 +230,6 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether or not the SignatureRequest has been declined by a signer. [DataMember(Name = "is_declined", EmitDefaultValue = true)] public bool IsDeclined { get; set; } - /// /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). @@ -215,7 +237,6 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). [DataMember(Name = "has_error", EmitDefaultValue = true)] public bool HasError { get; set; } - /// /// The URL where a copy of the request's documents can be downloaded. @@ -223,7 +244,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL where a copy of the request's documents can be downloaded. [DataMember(Name = "files_url", EmitDefaultValue = true)] public string FilesUrl { get; set; } - /// /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. @@ -231,7 +251,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. [DataMember(Name = "signing_url", EmitDefaultValue = true)] public string SigningUrl { get; set; } - /// /// The URL where the requester and the signers can view the current status of the SignatureRequest. @@ -239,7 +258,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL where the requester and the signers can view the current status of the SignatureRequest. [DataMember(Name = "details_url", EmitDefaultValue = true)] public string DetailsUrl { get; set; } - /// /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. @@ -247,7 +265,6 @@ public static SignatureRequestResponse Init(string jsonData) /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// The URL you want the signer redirected to after they successfully sign. @@ -255,7 +272,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL you want the signer redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The path where the completed document can be downloaded @@ -263,7 +279,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The path where the completed document can be downloaded [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] public string FinalCopyUri { get; set; } - /// /// Templates IDs used in this SignatureRequest (if any). @@ -271,7 +286,6 @@ public static SignatureRequestResponse Init(string jsonData) /// Templates IDs used in this SignatureRequest (if any). [DataMember(Name = "template_ids", EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` @@ -279,7 +293,6 @@ public static SignatureRequestResponse Init(string jsonData) /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Signer attachments. @@ -287,7 +300,6 @@ public static SignatureRequestResponse Init(string jsonData) /// Signer attachments. [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. @@ -295,7 +307,6 @@ public static SignatureRequestResponse Init(string jsonData) /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. [DataMember(Name = "response_data", EmitDefaultValue = true)] public List ResponseData { get; set; } - /// /// An array of signature objects, 1 for each signer. @@ -303,7 +314,6 @@ public static SignatureRequestResponse Init(string jsonData) /// An array of signature objects, 1 for each signer. [DataMember(Name = "signatures", EmitDefaultValue = true)] public List Signatures { get; set; } - /// /// The ID of the Bulk Send job which sent the signature request, if applicable. @@ -311,7 +321,6 @@ public static SignatureRequestResponse Init(string jsonData) /// The ID of the Bulk Send job which sent the signature request, if applicable. [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } - /// /// Returns the string presentation of the object @@ -356,7 +365,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -380,132 +392,115 @@ public bool Equals(SignatureRequestResponse input) { return false; } - return - ( - this.TestMode == input.TestMode || - (this.TestMode != null && - this.TestMode.Equals(input.TestMode)) - ) && - ( - this.SignatureRequestId == input.SignatureRequestId || - (this.SignatureRequestId != null && - this.SignatureRequestId.Equals(input.SignatureRequestId)) - ) && - ( - this.RequesterEmailAddress == input.RequesterEmailAddress || - (this.RequesterEmailAddress != null && - this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.OriginalTitle == input.OriginalTitle || - (this.OriginalTitle != null && - this.OriginalTitle.Equals(input.OriginalTitle)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - (this.Metadata != null && - this.Metadata.Equals(input.Metadata)) - ) && - ( - this.CreatedAt == input.CreatedAt || - this.CreatedAt.Equals(input.CreatedAt) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) - ) && - ( - this.IsComplete == input.IsComplete || - this.IsComplete.Equals(input.IsComplete) - ) && - ( - this.IsDeclined == input.IsDeclined || - this.IsDeclined.Equals(input.IsDeclined) - ) && - ( - this.HasError == input.HasError || - this.HasError.Equals(input.HasError) - ) && - ( - this.FilesUrl == input.FilesUrl || - (this.FilesUrl != null && - this.FilesUrl.Equals(input.FilesUrl)) - ) && - ( - this.SigningUrl == input.SigningUrl || - (this.SigningUrl != null && - this.SigningUrl.Equals(input.SigningUrl)) - ) && - ( - this.DetailsUrl == input.DetailsUrl || - (this.DetailsUrl != null && - this.DetailsUrl.Equals(input.DetailsUrl)) - ) && - ( - this.CcEmailAddresses == input.CcEmailAddresses || - this.CcEmailAddresses != null && - input.CcEmailAddresses != null && - this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.FinalCopyUri == input.FinalCopyUri || - (this.FinalCopyUri != null && - this.FinalCopyUri.Equals(input.FinalCopyUri)) - ) && - ( - this.TemplateIds == input.TemplateIds || - this.TemplateIds != null && - input.TemplateIds != null && - this.TemplateIds.SequenceEqual(input.TemplateIds) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.ResponseData == input.ResponseData || - this.ResponseData != null && - input.ResponseData != null && - this.ResponseData.SequenceEqual(input.ResponseData) - ) && - ( - this.Signatures == input.Signatures || - this.Signatures != null && - input.Signatures != null && - this.Signatures.SequenceEqual(input.Signatures) - ) && - ( - this.BulkSendJobId == input.BulkSendJobId || - (this.BulkSendJobId != null && - this.BulkSendJobId.Equals(input.BulkSendJobId)) + return ( + this.TestMode == input.TestMode + || (this.TestMode != null && this.TestMode.Equals(input.TestMode)) + ) + && ( + this.SignatureRequestId == input.SignatureRequestId + || ( + this.SignatureRequestId != null + && this.SignatureRequestId.Equals(input.SignatureRequestId) + ) + ) + && ( + this.RequesterEmailAddress == input.RequesterEmailAddress + || ( + this.RequesterEmailAddress != null + && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) + ) + ) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.OriginalTitle == input.OriginalTitle + || ( + this.OriginalTitle != null && this.OriginalTitle.Equals(input.OriginalTitle) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || (this.Metadata != null && this.Metadata.Equals(input.Metadata)) + ) + && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)) + && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)) + && (this.IsComplete == input.IsComplete || this.IsComplete.Equals(input.IsComplete)) + && (this.IsDeclined == input.IsDeclined || this.IsDeclined.Equals(input.IsDeclined)) + && (this.HasError == input.HasError || this.HasError.Equals(input.HasError)) + && ( + this.FilesUrl == input.FilesUrl + || (this.FilesUrl != null && this.FilesUrl.Equals(input.FilesUrl)) + ) + && ( + this.SigningUrl == input.SigningUrl + || (this.SigningUrl != null && this.SigningUrl.Equals(input.SigningUrl)) + ) + && ( + this.DetailsUrl == input.DetailsUrl + || (this.DetailsUrl != null && this.DetailsUrl.Equals(input.DetailsUrl)) + ) + && ( + this.CcEmailAddresses == input.CcEmailAddresses + || this.CcEmailAddresses != null + && input.CcEmailAddresses != null + && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.FinalCopyUri == input.FinalCopyUri + || (this.FinalCopyUri != null && this.FinalCopyUri.Equals(input.FinalCopyUri)) + ) + && ( + this.TemplateIds == input.TemplateIds + || this.TemplateIds != null + && input.TemplateIds != null + && this.TemplateIds.SequenceEqual(input.TemplateIds) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.ResponseData == input.ResponseData + || this.ResponseData != null + && input.ResponseData != null + && this.ResponseData.SequenceEqual(input.ResponseData) + ) + && ( + this.Signatures == input.Signatures + || this.Signatures != null + && input.Signatures != null + && this.Signatures.SequenceEqual(input.Signatures) + ) + && ( + this.BulkSendJobId == input.BulkSendJobId + || ( + this.BulkSendJobId != null && this.BulkSendJobId.Equals(input.BulkSendJobId) + ) ); } @@ -612,7 +607,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -620,159 +617,233 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool?", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "signature_request_id", - Property = "SignatureRequestId", - Type = "string", - Value = SignatureRequestId, - }); - types.Add(new OpenApiType(){ - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "original_title", - Property = "OriginalTitle", - Type = "string", - Value = OriginalTitle, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Object", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - }); - types.Add(new OpenApiType(){ - Name = "is_complete", - Property = "IsComplete", - Type = "bool", - Value = IsComplete, - }); - types.Add(new OpenApiType(){ - Name = "is_declined", - Property = "IsDeclined", - Type = "bool", - Value = IsDeclined, - }); - types.Add(new OpenApiType(){ - Name = "has_error", - Property = "HasError", - Type = "bool", - Value = HasError, - }); - types.Add(new OpenApiType(){ - Name = "files_url", - Property = "FilesUrl", - Type = "string", - Value = FilesUrl, - }); - types.Add(new OpenApiType(){ - Name = "signing_url", - Property = "SigningUrl", - Type = "string", - Value = SigningUrl, - }); - types.Add(new OpenApiType(){ - Name = "details_url", - Property = "DetailsUrl", - Type = "string", - Value = DetailsUrl, - }); - types.Add(new OpenApiType(){ - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "final_copy_uri", - Property = "FinalCopyUri", - Type = "string", - Value = FinalCopyUri, - }); - types.Add(new OpenApiType(){ - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "response_data", - Property = "ResponseData", - Type = "List", - Value = ResponseData, - }); - types.Add(new OpenApiType(){ - Name = "signatures", - Property = "Signatures", - Type = "List", - Value = Signatures, - }); - types.Add(new OpenApiType(){ - Name = "bulk_send_job_id", - Property = "BulkSendJobId", - Type = "string", - Value = BulkSendJobId, - }); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool?", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "signature_request_id", + Property = "SignatureRequestId", + Type = "string", + Value = SignatureRequestId, + } + ); + types.Add( + new OpenApiType() + { + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "original_title", + Property = "OriginalTitle", + Type = "string", + Value = OriginalTitle, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Object", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_complete", + Property = "IsComplete", + Type = "bool", + Value = IsComplete, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_declined", + Property = "IsDeclined", + Type = "bool", + Value = IsDeclined, + } + ); + types.Add( + new OpenApiType() + { + Name = "has_error", + Property = "HasError", + Type = "bool", + Value = HasError, + } + ); + types.Add( + new OpenApiType() + { + Name = "files_url", + Property = "FilesUrl", + Type = "string", + Value = FilesUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_url", + Property = "SigningUrl", + Type = "string", + Value = SigningUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "details_url", + Property = "DetailsUrl", + Type = "string", + Value = DetailsUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "final_copy_uri", + Property = "FinalCopyUri", + Type = "string", + Value = FinalCopyUri, + } + ); + types.Add( + new OpenApiType() + { + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "response_data", + Property = "ResponseData", + Type = "List", + Value = ResponseData, + } + ); + types.Add( + new OpenApiType() + { + Name = "signatures", + Property = "Signatures", + Type = "List", + Value = Signatures, + } + ); + types.Add( + new OpenApiType() + { + Name = "bulk_send_job_id", + Property = "BulkSendJobId", + Type = "string", + Value = BulkSendJobId, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs index 757001c70..a20f1ec33 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseAttachment")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseAttachment : IEquatable, IValidatableObject + public partial class SignatureRequestResponseAttachment + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseAttachment() { } + /// /// Initializes a new instance of the class. /// @@ -47,25 +50,37 @@ protected SignatureRequestResponseAttachment() { } /// A boolean value denoting if this attachment is required. (required). /// Instructions for Signer.. /// Timestamp when attachment was uploaded by Signer.. - public SignatureRequestResponseAttachment(string id = default(string), string signer = default(string), string name = default(string), bool required = default(bool), string instructions = default(string), int? uploadedAt = default(int?)) + public SignatureRequestResponseAttachment( + string id = default(string), + string signer = default(string), + string name = default(string), + bool required = default(bool), + string instructions = default(string), + int? uploadedAt = default(int?) + ) { - // to ensure "id" is required (not null) if (id == null) { - throw new ArgumentNullException("id is a required property for SignatureRequestResponseAttachment and cannot be null"); + throw new ArgumentNullException( + "id is a required property for SignatureRequestResponseAttachment and cannot be null" + ); } this.Id = id; // to ensure "signer" is required (not null) if (signer == null) { - throw new ArgumentNullException("signer is a required property for SignatureRequestResponseAttachment and cannot be null"); + throw new ArgumentNullException( + "signer is a required property for SignatureRequestResponseAttachment and cannot be null" + ); } this.Signer = signer; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SignatureRequestResponseAttachment and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SignatureRequestResponseAttachment and cannot be null" + ); } this.Name = name; this.Required = required; @@ -83,7 +98,9 @@ public static SignatureRequestResponseAttachment Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseAttachment"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseAttachment" + ); } return obj; @@ -95,7 +112,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// The unique ID for this attachment. [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } - /// /// The Signer this attachment is assigned to. @@ -103,7 +119,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// The Signer this attachment is assigned to. [DataMember(Name = "signer", IsRequired = true, EmitDefaultValue = true)] public string Signer { get; set; } - /// /// The name of this attachment. @@ -111,7 +126,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// The name of this attachment. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// A boolean value denoting if this attachment is required. @@ -119,7 +133,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// A boolean value denoting if this attachment is required. [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] public bool Required { get; set; } - /// /// Instructions for Signer. @@ -127,7 +140,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// Instructions for Signer. [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } - /// /// Timestamp when attachment was uploaded by Signer. @@ -135,7 +147,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// Timestamp when attachment was uploaded by Signer. [DataMember(Name = "uploaded_at", EmitDefaultValue = true)] public int? UploadedAt { get; set; } - /// /// Returns the string presentation of the object @@ -161,7 +172,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -185,35 +199,20 @@ public bool Equals(SignatureRequestResponseAttachment input) { return false; } - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Signer == input.Signer || - (this.Signer != null && - this.Signer.Equals(input.Signer)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.Instructions == input.Instructions || - (this.Instructions != null && - this.Instructions.Equals(input.Instructions)) - ) && - ( - this.UploadedAt == input.UploadedAt || - (this.UploadedAt != null && - this.UploadedAt.Equals(input.UploadedAt)) + return (this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id))) + && ( + this.Signer == input.Signer + || (this.Signer != null && this.Signer.Equals(input.Signer)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.Instructions == input.Instructions + || (this.Instructions != null && this.Instructions.Equals(input.Instructions)) + ) + && ( + this.UploadedAt == input.UploadedAt + || (this.UploadedAt != null && this.UploadedAt.Equals(input.UploadedAt)) ); } @@ -256,7 +255,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -264,45 +265,62 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "id", - Property = "Id", - Type = "string", - Value = Id, - }); - types.Add(new OpenApiType(){ - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "instructions", - Property = "Instructions", - Type = "string", - Value = Instructions, - }); - types.Add(new OpenApiType(){ - Name = "uploaded_at", - Property = "UploadedAt", - Type = "int?", - Value = UploadedAt, - }); + types.Add( + new OpenApiType() + { + Name = "id", + Property = "Id", + Type = "string", + Value = Id, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "instructions", + Property = "Instructions", + Type = "string", + Value = Instructions, + } + ); + types.Add( + new OpenApiType() + { + Name = "uploaded_at", + Property = "UploadedAt", + Type = "int?", + Value = UploadedAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs index 0b45e5aa3..4da3b6b3c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; +using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -35,13 +35,16 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseCustomFieldBase : IEquatable, IValidatableObject + public partial class SignatureRequestResponseCustomFieldBase + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseCustomFieldBase() { } + /// /// Initializes a new instance of the class. /// @@ -50,19 +53,28 @@ protected SignatureRequestResponseCustomFieldBase() { } /// A boolean value denoting if this field is required.. /// The unique ID for this field.. /// The name of the Role that is able to edit this field.. - public SignatureRequestResponseCustomFieldBase(string type = default(string), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) + public SignatureRequestResponseCustomFieldBase( + string type = default(string), + string name = default(string), + bool required = default(bool), + string apiId = default(string), + string editor = default(string) + ) { - // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SignatureRequestResponseCustomFieldBase and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SignatureRequestResponseCustomFieldBase and cannot be null" + ); } this.Type = type; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SignatureRequestResponseCustomFieldBase and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SignatureRequestResponseCustomFieldBase and cannot be null" + ); } this.Name = name; this.Required = required; @@ -76,11 +88,15 @@ protected SignatureRequestResponseCustomFieldBase() { } /// String of JSON data representing target object public static SignatureRequestResponseCustomFieldBase Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldBase"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldBase" + ); } return obj; @@ -92,7 +108,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// The name of the Custom Field. @@ -100,7 +115,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The name of the Custom Field. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// A boolean value denoting if this field is required. @@ -108,7 +122,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// A boolean value denoting if this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The unique ID for this field. @@ -116,7 +129,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The name of the Role that is able to edit this field. @@ -124,7 +136,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The name of the Role that is able to edit this field. [DataMember(Name = "editor", EmitDefaultValue = true)] public string Editor { get; set; } - /// /// Returns the string presentation of the object @@ -149,7 +160,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -173,30 +187,16 @@ public bool Equals(SignatureRequestResponseCustomFieldBase input) { return false; } - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Editor == input.Editor || - (this.Editor != null && - this.Editor.Equals(input.Editor)) + return (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && ( + this.Editor == input.Editor + || (this.Editor != null && this.Editor.Equals(input.Editor)) ); } @@ -235,7 +235,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -253,39 +255,53 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "editor", - Property = "Editor", - Type = "string", - Value = Editor, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "editor", + Property = "Editor", + Type = "string", + Value = Editor, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs index 1e69eed13..4126e608b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseCustomFieldCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseCustomFieldCheckbox : SignatureRequestResponseCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseCustomFieldCheckbox + : SignatureRequestResponseCustomFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseCustomFieldCheckbox() { } + /// /// Initializes a new instance of the class. /// @@ -47,17 +52,26 @@ protected SignatureRequestResponseCustomFieldCheckbox() { } /// A boolean value denoting if this field is required.. /// The unique ID for this field.. /// The name of the Role that is able to edit this field.. - public SignatureRequestResponseCustomFieldCheckbox(string type = @"checkbox", bool value = default(bool), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) + public SignatureRequestResponseCustomFieldCheckbox( + string type = @"checkbox", + bool value = default(bool), + string name = default(string), + bool required = default(bool), + string apiId = default(string), + string editor = default(string) + ) { this.Name = name; this.Required = required; this.ApiId = apiId; this.Editor = editor; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SignatureRequestResponseCustomFieldCheckbox and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SignatureRequestResponseCustomFieldCheckbox and cannot be null" + ); } this.Type = type; this.Value = value; @@ -69,11 +83,15 @@ protected SignatureRequestResponseCustomFieldCheckbox() { } /// String of JSON data representing target object public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldCheckbox"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldCheckbox" + ); } return obj; @@ -85,7 +103,6 @@ public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) /// The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// A true/false for checkbox fields @@ -93,7 +110,6 @@ public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) /// A true/false for checkbox fields [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } - /// /// Returns the string presentation of the object @@ -116,7 +132,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -140,16 +159,10 @@ public bool Equals(SignatureRequestResponseCustomFieldCheckbox input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - this.Value.Equals(input.Value) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && (this.Value == input.Value || this.Value.Equals(input.Value)); } /// @@ -175,7 +188,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -197,21 +212,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "bool", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "bool", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs index b037de58a..037ae8fec 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseCustomFieldText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseCustomFieldText : SignatureRequestResponseCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseCustomFieldText + : SignatureRequestResponseCustomFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseCustomFieldText() { } + /// /// Initializes a new instance of the class. /// @@ -47,17 +52,26 @@ protected SignatureRequestResponseCustomFieldText() { } /// A boolean value denoting if this field is required.. /// The unique ID for this field.. /// The name of the Role that is able to edit this field.. - public SignatureRequestResponseCustomFieldText(string type = @"text", string value = default(string), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) + public SignatureRequestResponseCustomFieldText( + string type = @"text", + string value = default(string), + string name = default(string), + bool required = default(bool), + string apiId = default(string), + string editor = default(string) + ) { this.Name = name; this.Required = required; this.ApiId = apiId; this.Editor = editor; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SignatureRequestResponseCustomFieldText and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SignatureRequestResponseCustomFieldText and cannot be null" + ); } this.Type = type; this.Value = value; @@ -69,11 +83,15 @@ protected SignatureRequestResponseCustomFieldText() { } /// String of JSON data representing target object public static SignatureRequestResponseCustomFieldText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldText"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldText" + ); } return obj; @@ -85,7 +103,6 @@ public static SignatureRequestResponseCustomFieldText Init(string jsonData) /// The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// A text string for text fields @@ -93,7 +110,6 @@ public static SignatureRequestResponseCustomFieldText Init(string jsonData) /// A text string for text fields [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -116,7 +132,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -140,16 +159,12 @@ public bool Equals(SignatureRequestResponseCustomFieldText input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -179,7 +194,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -201,21 +218,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs index fc25c94fb..98f612ae8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -42,7 +42,6 @@ public enum SignatureRequestResponseCustomFieldTypeEnum /// Enum Checkbox for value: checkbox /// [EnumMember(Value = "checkbox")] - Checkbox = 2 + Checkbox = 2, } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs index c1846dcc4..c442bc338 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; +using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -33,7 +33,10 @@ namespace Dropbox.Sign.Model [DataContract(Name = "SignatureRequestResponseDataBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] + [JsonSubtypes.KnownSubType( + typeof(SignatureRequestResponseDataValueCheckboxMerge), + "checkbox-merge" + )] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] @@ -42,13 +45,16 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataBase : IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataBase + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataBase() { } + /// /// Initializes a new instance of the class. /// @@ -57,9 +63,14 @@ protected SignatureRequestResponseDataBase() { } /// The name of the form field.. /// A boolean value denoting if this field is required.. /// type. - public SignatureRequestResponseDataBase(string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool), string type = default(string)) + public SignatureRequestResponseDataBase( + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool), + string type = default(string) + ) { - this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; @@ -77,7 +88,9 @@ public static SignatureRequestResponseDataBase Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataBase"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataBase" + ); } return obj; @@ -89,7 +102,6 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The ID of the signature to which this response is linked. @@ -97,7 +109,6 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// The ID of the signature to which this response is linked. [DataMember(Name = "signature_id", EmitDefaultValue = true)] public string SignatureId { get; set; } - /// /// The name of the form field. @@ -105,7 +116,6 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// The name of the form field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// A boolean value denoting if this field is required. @@ -113,14 +123,12 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// A boolean value denoting if this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// Gets or Sets Type /// [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -145,7 +153,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -169,31 +180,17 @@ public bool Equals(SignatureRequestResponseDataBase input) { return false; } - return - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.SignatureId == input.SignatureId || - (this.SignatureId != null && - this.SignatureId.Equals(input.SignatureId)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && ( + this.SignatureId == input.SignatureId + || (this.SignatureId != null && this.SignatureId.Equals(input.SignatureId)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -231,7 +228,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -249,39 +248,53 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "signature_id", - Property = "SignatureId", - Type = "string", - Value = SignatureId, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "signature_id", + Property = "SignatureId", + Type = "string", + Value = SignatureId, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs index 25f045437..79e95d946 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -84,7 +84,6 @@ public enum SignatureRequestResponseDataTypeEnum /// Enum CheckboxMerge for value: checkbox-merge /// [EnumMember(Value = "checkbox-merge")] - CheckboxMerge = 9 + CheckboxMerge = 9, } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs index 56a568383..282a115be 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueCheckbox : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataValueCheckbox + : SignatureRequestResponseDataBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueCheckbox() { } + /// /// Initializes a new instance of the class. /// @@ -47,13 +52,20 @@ protected SignatureRequestResponseDataValueCheckbox() { } /// 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 SignatureRequestResponseDataValueCheckbox(string type = @"checkbox", bool value = default(bool), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueCheckbox( + string type = @"checkbox", + bool value = default(bool), + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool) + ) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "checkbox"; this.Value = value; @@ -65,11 +77,15 @@ protected SignatureRequestResponseDataValueCheckbox() { } /// String of JSON data representing target object public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueCheckbox"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueCheckbox" + ); } return obj; @@ -81,7 +97,6 @@ public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) /// A yes/no checkbox [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. @@ -89,7 +104,6 @@ public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +153,10 @@ public bool Equals(SignatureRequestResponseDataValueCheckbox input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - this.Value.Equals(input.Value) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && (this.Value == input.Value || this.Value.Equals(input.Value)); } /// @@ -171,7 +182,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -193,21 +206,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "bool", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "bool", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs index 209028568..384b0bcc1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueCheckboxMerge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueCheckboxMerge : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataValueCheckboxMerge + : SignatureRequestResponseDataBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueCheckboxMerge() { } + /// /// Initializes a new instance of the class. /// @@ -47,13 +52,20 @@ protected SignatureRequestResponseDataValueCheckboxMerge() { } /// 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 SignatureRequestResponseDataValueCheckboxMerge(string type = @"checkbox-merge", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueCheckboxMerge( + string type = @"checkbox-merge", + string value = default(string), + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool) + ) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "checkbox-merge"; this.Value = value; @@ -65,11 +77,15 @@ protected SignatureRequestResponseDataValueCheckboxMerge() { } /// String of JSON data representing target object public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueCheckboxMerge"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueCheckboxMerge" + ); } return obj; @@ -81,7 +97,6 @@ public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonDat /// A checkbox field that has default value set by the api [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. @@ -89,7 +104,6 @@ public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonDat /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +153,12 @@ public bool Equals(SignatureRequestResponseDataValueCheckboxMerge input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -175,7 +188,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -197,21 +212,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs index 1229c2424..88cec3189 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueDateSigned")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueDateSigned : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataValueDateSigned + : SignatureRequestResponseDataBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueDateSigned() { } + /// /// Initializes a new instance of the class. /// @@ -47,13 +52,20 @@ protected SignatureRequestResponseDataValueDateSigned() { } /// 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 SignatureRequestResponseDataValueDateSigned(string type = @"date_signed", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueDateSigned( + string type = @"date_signed", + string value = default(string), + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool) + ) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "date_signed"; this.Value = value; @@ -65,11 +77,15 @@ protected SignatureRequestResponseDataValueDateSigned() { } /// String of JSON data representing target object public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueDateSigned"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueDateSigned" + ); } return obj; @@ -81,7 +97,6 @@ public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) /// A date [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. @@ -89,7 +104,6 @@ public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +153,12 @@ public bool Equals(SignatureRequestResponseDataValueDateSigned input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -175,7 +188,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -197,21 +212,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs index d6061231a..2bf613724 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueDropdown")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueDropdown : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataValueDropdown + : SignatureRequestResponseDataBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueDropdown() { } + /// /// Initializes a new instance of the class. /// @@ -47,13 +52,20 @@ protected SignatureRequestResponseDataValueDropdown() { } /// 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 SignatureRequestResponseDataValueDropdown(string type = @"dropdown", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueDropdown( + string type = @"dropdown", + string value = default(string), + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool) + ) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "dropdown"; this.Value = value; @@ -65,11 +77,15 @@ protected SignatureRequestResponseDataValueDropdown() { } /// String of JSON data representing target object public static SignatureRequestResponseDataValueDropdown Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueDropdown"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueDropdown" + ); } return obj; @@ -81,7 +97,6 @@ public static SignatureRequestResponseDataValueDropdown Init(string jsonData) /// An input field for dropdowns [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. @@ -89,7 +104,6 @@ public static SignatureRequestResponseDataValueDropdown Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +153,12 @@ public bool Equals(SignatureRequestResponseDataValueDropdown input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -175,7 +188,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -197,21 +212,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index 92a7b8fd7..e5053afe6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueInitials")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueInitials : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataValueInitials + : SignatureRequestResponseDataBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueInitials() { } + /// /// Initializes a new instance of the class. /// @@ -47,13 +52,20 @@ 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), 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), + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool) + ) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "initials"; this.Value = value; @@ -65,11 +77,15 @@ protected SignatureRequestResponseDataValueInitials() { } /// String of JSON data representing target object public static SignatureRequestResponseDataValueInitials Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueInitials"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueInitials" + ); } return obj; @@ -81,7 +97,6 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) /// An input field for initials [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. @@ -89,7 +104,6 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +153,12 @@ public bool Equals(SignatureRequestResponseDataValueInitials input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -175,7 +188,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -197,21 +212,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs index 565377f5b..8ce6ec55c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueRadio")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueRadio : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataValueRadio + : SignatureRequestResponseDataBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueRadio() { } + /// /// Initializes a new instance of the class. /// @@ -47,13 +52,20 @@ protected SignatureRequestResponseDataValueRadio() { } /// 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 SignatureRequestResponseDataValueRadio(string type = @"radio", bool value = default(bool), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueRadio( + string type = @"radio", + bool value = default(bool), + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool) + ) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "radio"; this.Value = value; @@ -65,11 +77,15 @@ protected SignatureRequestResponseDataValueRadio() { } /// String of JSON data representing target object public static SignatureRequestResponseDataValueRadio Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueRadio"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueRadio" + ); } return obj; @@ -81,7 +97,6 @@ public static SignatureRequestResponseDataValueRadio Init(string jsonData) /// An input field for radios [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. @@ -89,7 +104,6 @@ public static SignatureRequestResponseDataValueRadio Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +153,10 @@ public bool Equals(SignatureRequestResponseDataValueRadio input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - this.Value.Equals(input.Value) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && (this.Value == input.Value || this.Value.Equals(input.Value)); } /// @@ -171,7 +182,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -193,21 +206,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "bool", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "bool", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index 28b9e5a03..8fe0ffd6a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueSignature")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueSignature : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataValueSignature + : SignatureRequestResponseDataBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueSignature() { } + /// /// Initializes a new instance of the class. /// @@ -47,13 +52,20 @@ 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), 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), + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool) + ) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "signature"; this.Value = value; @@ -65,11 +77,15 @@ protected SignatureRequestResponseDataValueSignature() { } /// String of JSON data representing target object public static SignatureRequestResponseDataValueSignature Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueSignature"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueSignature" + ); } return obj; @@ -81,7 +97,6 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) /// A signature input field [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. @@ -89,7 +104,6 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +153,12 @@ public bool Equals(SignatureRequestResponseDataValueSignature input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -175,7 +188,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -197,21 +212,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs index 84a9330af..651ca8c90 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueText : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataValueText + : SignatureRequestResponseDataBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueText() { } + /// /// Initializes a new instance of the class. /// @@ -47,13 +52,20 @@ protected SignatureRequestResponseDataValueText() { } /// 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 SignatureRequestResponseDataValueText(string type = @"text", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueText( + string type = @"text", + string value = default(string), + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool) + ) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "text"; this.Value = value; @@ -65,11 +77,15 @@ protected SignatureRequestResponseDataValueText() { } /// String of JSON data representing target object public static SignatureRequestResponseDataValueText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueText"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueText" + ); } return obj; @@ -81,7 +97,6 @@ public static SignatureRequestResponseDataValueText Init(string jsonData) /// A text input field [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. @@ -89,7 +104,6 @@ public static SignatureRequestResponseDataValueText Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +153,12 @@ public bool Equals(SignatureRequestResponseDataValueText input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -175,7 +188,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -197,21 +212,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs index fa93108e2..9338cb57e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueTextMerge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueTextMerge : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SignatureRequestResponseDataValueTextMerge + : SignatureRequestResponseDataBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueTextMerge() { } + /// /// Initializes a new instance of the class. /// @@ -47,13 +52,20 @@ protected SignatureRequestResponseDataValueTextMerge() { } /// 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 SignatureRequestResponseDataValueTextMerge(string type = @"text-merge", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueTextMerge( + string type = @"text-merge", + string value = default(string), + string apiId = default(string), + string signatureId = default(string), + string name = default(string), + bool required = default(bool) + ) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "text-merge"; this.Value = value; @@ -65,11 +77,15 @@ protected SignatureRequestResponseDataValueTextMerge() { } /// String of JSON data representing target object public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueTextMerge"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueTextMerge" + ); } return obj; @@ -81,7 +97,6 @@ public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) /// A text field that has default text set by the api [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. @@ -89,7 +104,6 @@ public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +126,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +153,12 @@ public bool Equals(SignatureRequestResponseDataValueTextMerge input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -175,7 +188,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -197,21 +212,26 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs index ddb7c147b..902aea4ad 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseSignatures")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseSignatures : IEquatable, IValidatableObject + public partial class SignatureRequestResponseSignatures + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseSignatures() { } + /// /// Initializes a new instance of the class. /// @@ -60,9 +63,28 @@ protected SignatureRequestResponseSignatures() { } /// Reason provided by original signer who reassigned to this signer.. /// Previous signature identifier.. /// Error message pertaining to this signer, or null.. - public SignatureRequestResponseSignatures(string signatureId = default(string), string signerGroupGuid = default(string), string signerEmailAddress = default(string), string signerName = default(string), string signerRole = default(string), int? order = default(int?), string statusCode = default(string), string declineReason = default(string), int? signedAt = default(int?), int? lastViewedAt = default(int?), int? lastRemindedAt = default(int?), bool hasPin = default(bool), bool? hasSmsAuth = default(bool?), bool? hasSmsDelivery = default(bool?), string smsPhoneNumber = default(string), string reassignedBy = default(string), string reassignmentReason = default(string), string reassignedFrom = default(string), string error = default(string)) + public SignatureRequestResponseSignatures( + string signatureId = default(string), + string signerGroupGuid = default(string), + string signerEmailAddress = default(string), + string signerName = default(string), + string signerRole = default(string), + int? order = default(int?), + string statusCode = default(string), + string declineReason = default(string), + int? signedAt = default(int?), + int? lastViewedAt = default(int?), + int? lastRemindedAt = default(int?), + bool hasPin = default(bool), + bool? hasSmsAuth = default(bool?), + bool? hasSmsDelivery = default(bool?), + string smsPhoneNumber = default(string), + string reassignedBy = default(string), + string reassignmentReason = default(string), + string reassignedFrom = default(string), + string error = default(string) + ) { - this.SignatureId = signatureId; this.SignerGroupGuid = signerGroupGuid; this.SignerEmailAddress = signerEmailAddress; @@ -94,7 +116,9 @@ public static SignatureRequestResponseSignatures Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseSignatures"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestResponseSignatures" + ); } return obj; @@ -106,7 +130,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Signature identifier. [DataMember(Name = "signature_id", EmitDefaultValue = true)] public string SignatureId { get; set; } - /// /// Signer Group GUID @@ -114,7 +137,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Signer Group GUID [DataMember(Name = "signer_group_guid", EmitDefaultValue = true)] public string SignerGroupGuid { get; set; } - /// /// The email address of the signer. @@ -122,7 +144,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The email address of the signer. [DataMember(Name = "signer_email_address", EmitDefaultValue = true)] public string SignerEmailAddress { get; set; } - /// /// The name of the signer. @@ -130,7 +151,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The name of the signer. [DataMember(Name = "signer_name", EmitDefaultValue = true)] public string SignerName { get; set; } - /// /// The role of the signer. @@ -138,7 +158,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The role of the signer. [DataMember(Name = "signer_role", EmitDefaultValue = true)] public string SignerRole { get; set; } - /// /// If signer order is assigned this is the 0-based index for this signer. @@ -146,7 +165,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// If signer order is assigned this is the 0-based index for this signer. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// The current status of the signature. eg: awaiting_signature, signed, declined. @@ -154,7 +172,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The current status of the signature. eg: awaiting_signature, signed, declined. [DataMember(Name = "status_code", EmitDefaultValue = true)] public string StatusCode { get; set; } - /// /// The reason provided by the signer for declining the request. @@ -162,7 +179,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The reason provided by the signer for declining the request. [DataMember(Name = "decline_reason", EmitDefaultValue = true)] public string DeclineReason { get; set; } - /// /// Time that the document was signed or null. @@ -170,7 +186,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Time that the document was signed or null. [DataMember(Name = "signed_at", EmitDefaultValue = true)] public int? SignedAt { get; set; } - /// /// The time that the document was last viewed by this signer or null. @@ -178,7 +193,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The time that the document was last viewed by this signer or null. [DataMember(Name = "last_viewed_at", EmitDefaultValue = true)] public int? LastViewedAt { get; set; } - /// /// The time the last reminder email was sent to the signer or null. @@ -186,7 +200,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The time the last reminder email was sent to the signer or null. [DataMember(Name = "last_reminded_at", EmitDefaultValue = true)] public int? LastRemindedAt { get; set; } - /// /// Boolean to indicate whether this signature requires a PIN to access. @@ -194,7 +207,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Boolean to indicate whether this signature requires a PIN to access. [DataMember(Name = "has_pin", EmitDefaultValue = true)] public bool HasPin { get; set; } - /// /// Boolean to indicate whether this signature has SMS authentication enabled. @@ -202,7 +214,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Boolean to indicate whether this signature has SMS authentication enabled. [DataMember(Name = "has_sms_auth", EmitDefaultValue = true)] public bool? HasSmsAuth { get; set; } - /// /// Boolean to indicate whether this signature has SMS delivery enabled. @@ -210,7 +221,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Boolean to indicate whether this signature has SMS delivery enabled. [DataMember(Name = "has_sms_delivery", EmitDefaultValue = true)] public bool? HasSmsDelivery { get; set; } - /// /// The SMS phone number used for authentication or signature request delivery. @@ -218,7 +228,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The SMS phone number used for authentication or signature request delivery. [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } - /// /// Email address of original signer who reassigned to this signer. @@ -226,7 +235,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Email address of original signer who reassigned to this signer. [DataMember(Name = "reassigned_by", EmitDefaultValue = true)] public string ReassignedBy { get; set; } - /// /// Reason provided by original signer who reassigned to this signer. @@ -234,7 +242,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Reason provided by original signer who reassigned to this signer. [DataMember(Name = "reassignment_reason", EmitDefaultValue = true)] public string ReassignmentReason { get; set; } - /// /// Previous signature identifier. @@ -242,7 +249,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Previous signature identifier. [DataMember(Name = "reassigned_from", EmitDefaultValue = true)] public string ReassignedFrom { get; set; } - /// /// Error message pertaining to this signer, or null. @@ -250,7 +256,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Error message pertaining to this signer, or null. [DataMember(Name = "error", EmitDefaultValue = true)] public string Error { get; set; } - /// /// Returns the string presentation of the object @@ -289,7 +294,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -313,100 +321,101 @@ public bool Equals(SignatureRequestResponseSignatures input) { return false; } - return - ( - this.SignatureId == input.SignatureId || - (this.SignatureId != null && - this.SignatureId.Equals(input.SignatureId)) - ) && - ( - this.SignerGroupGuid == input.SignerGroupGuid || - (this.SignerGroupGuid != null && - this.SignerGroupGuid.Equals(input.SignerGroupGuid)) - ) && - ( - this.SignerEmailAddress == input.SignerEmailAddress || - (this.SignerEmailAddress != null && - this.SignerEmailAddress.Equals(input.SignerEmailAddress)) - ) && - ( - this.SignerName == input.SignerName || - (this.SignerName != null && - this.SignerName.Equals(input.SignerName)) - ) && - ( - this.SignerRole == input.SignerRole || - (this.SignerRole != null && - this.SignerRole.Equals(input.SignerRole)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.StatusCode == input.StatusCode || - (this.StatusCode != null && - this.StatusCode.Equals(input.StatusCode)) - ) && - ( - this.DeclineReason == input.DeclineReason || - (this.DeclineReason != null && - this.DeclineReason.Equals(input.DeclineReason)) - ) && - ( - this.SignedAt == input.SignedAt || - (this.SignedAt != null && - this.SignedAt.Equals(input.SignedAt)) - ) && - ( - this.LastViewedAt == input.LastViewedAt || - (this.LastViewedAt != null && - this.LastViewedAt.Equals(input.LastViewedAt)) - ) && - ( - this.LastRemindedAt == input.LastRemindedAt || - (this.LastRemindedAt != null && - this.LastRemindedAt.Equals(input.LastRemindedAt)) - ) && - ( - this.HasPin == input.HasPin || - this.HasPin.Equals(input.HasPin) - ) && - ( - this.HasSmsAuth == input.HasSmsAuth || - (this.HasSmsAuth != null && - this.HasSmsAuth.Equals(input.HasSmsAuth)) - ) && - ( - this.HasSmsDelivery == input.HasSmsDelivery || - (this.HasSmsDelivery != null && - this.HasSmsDelivery.Equals(input.HasSmsDelivery)) - ) && - ( - this.SmsPhoneNumber == input.SmsPhoneNumber || - (this.SmsPhoneNumber != null && - this.SmsPhoneNumber.Equals(input.SmsPhoneNumber)) - ) && - ( - this.ReassignedBy == input.ReassignedBy || - (this.ReassignedBy != null && - this.ReassignedBy.Equals(input.ReassignedBy)) - ) && - ( - this.ReassignmentReason == input.ReassignmentReason || - (this.ReassignmentReason != null && - this.ReassignmentReason.Equals(input.ReassignmentReason)) - ) && - ( - this.ReassignedFrom == input.ReassignedFrom || - (this.ReassignedFrom != null && - this.ReassignedFrom.Equals(input.ReassignedFrom)) - ) && - ( - this.Error == input.Error || - (this.Error != null && - this.Error.Equals(input.Error)) + return ( + this.SignatureId == input.SignatureId + || (this.SignatureId != null && this.SignatureId.Equals(input.SignatureId)) + ) + && ( + this.SignerGroupGuid == input.SignerGroupGuid + || ( + this.SignerGroupGuid != null + && this.SignerGroupGuid.Equals(input.SignerGroupGuid) + ) + ) + && ( + this.SignerEmailAddress == input.SignerEmailAddress + || ( + this.SignerEmailAddress != null + && this.SignerEmailAddress.Equals(input.SignerEmailAddress) + ) + ) + && ( + this.SignerName == input.SignerName + || (this.SignerName != null && this.SignerName.Equals(input.SignerName)) + ) + && ( + this.SignerRole == input.SignerRole + || (this.SignerRole != null && this.SignerRole.Equals(input.SignerRole)) + ) + && ( + this.Order == input.Order + || (this.Order != null && this.Order.Equals(input.Order)) + ) + && ( + this.StatusCode == input.StatusCode + || (this.StatusCode != null && this.StatusCode.Equals(input.StatusCode)) + ) + && ( + this.DeclineReason == input.DeclineReason + || ( + this.DeclineReason != null && this.DeclineReason.Equals(input.DeclineReason) + ) + ) + && ( + this.SignedAt == input.SignedAt + || (this.SignedAt != null && this.SignedAt.Equals(input.SignedAt)) + ) + && ( + this.LastViewedAt == input.LastViewedAt + || (this.LastViewedAt != null && this.LastViewedAt.Equals(input.LastViewedAt)) + ) + && ( + this.LastRemindedAt == input.LastRemindedAt + || ( + this.LastRemindedAt != null + && this.LastRemindedAt.Equals(input.LastRemindedAt) + ) + ) + && (this.HasPin == input.HasPin || this.HasPin.Equals(input.HasPin)) + && ( + this.HasSmsAuth == input.HasSmsAuth + || (this.HasSmsAuth != null && this.HasSmsAuth.Equals(input.HasSmsAuth)) + ) + && ( + this.HasSmsDelivery == input.HasSmsDelivery + || ( + this.HasSmsDelivery != null + && this.HasSmsDelivery.Equals(input.HasSmsDelivery) + ) + ) + && ( + this.SmsPhoneNumber == input.SmsPhoneNumber + || ( + this.SmsPhoneNumber != null + && this.SmsPhoneNumber.Equals(input.SmsPhoneNumber) + ) + ) + && ( + this.ReassignedBy == input.ReassignedBy + || (this.ReassignedBy != null && this.ReassignedBy.Equals(input.ReassignedBy)) + ) + && ( + this.ReassignmentReason == input.ReassignmentReason + || ( + this.ReassignmentReason != null + && this.ReassignmentReason.Equals(input.ReassignmentReason) + ) + ) + && ( + this.ReassignedFrom == input.ReassignedFrom + || ( + this.ReassignedFrom != null + && this.ReassignedFrom.Equals(input.ReassignedFrom) + ) + ) + && ( + this.Error == input.Error + || (this.Error != null && this.Error.Equals(input.Error)) ); } @@ -501,7 +510,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -509,123 +520,179 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "signature_id", - Property = "SignatureId", - Type = "string", - Value = SignatureId, - }); - types.Add(new OpenApiType(){ - Name = "signer_group_guid", - Property = "SignerGroupGuid", - Type = "string", - Value = SignerGroupGuid, - }); - types.Add(new OpenApiType(){ - Name = "signer_email_address", - Property = "SignerEmailAddress", - Type = "string", - Value = SignerEmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "signer_name", - Property = "SignerName", - Type = "string", - Value = SignerName, - }); - types.Add(new OpenApiType(){ - Name = "signer_role", - Property = "SignerRole", - Type = "string", - Value = SignerRole, - }); - types.Add(new OpenApiType(){ - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - }); - types.Add(new OpenApiType(){ - Name = "status_code", - Property = "StatusCode", - Type = "string", - Value = StatusCode, - }); - types.Add(new OpenApiType(){ - Name = "decline_reason", - Property = "DeclineReason", - Type = "string", - Value = DeclineReason, - }); - types.Add(new OpenApiType(){ - Name = "signed_at", - Property = "SignedAt", - Type = "int?", - Value = SignedAt, - }); - types.Add(new OpenApiType(){ - Name = "last_viewed_at", - Property = "LastViewedAt", - Type = "int?", - Value = LastViewedAt, - }); - types.Add(new OpenApiType(){ - Name = "last_reminded_at", - Property = "LastRemindedAt", - Type = "int?", - Value = LastRemindedAt, - }); - types.Add(new OpenApiType(){ - Name = "has_pin", - Property = "HasPin", - Type = "bool", - Value = HasPin, - }); - types.Add(new OpenApiType(){ - Name = "has_sms_auth", - Property = "HasSmsAuth", - Type = "bool?", - Value = HasSmsAuth, - }); - types.Add(new OpenApiType(){ - Name = "has_sms_delivery", - Property = "HasSmsDelivery", - Type = "bool?", - Value = HasSmsDelivery, - }); - types.Add(new OpenApiType(){ - Name = "sms_phone_number", - Property = "SmsPhoneNumber", - Type = "string", - Value = SmsPhoneNumber, - }); - types.Add(new OpenApiType(){ - Name = "reassigned_by", - Property = "ReassignedBy", - Type = "string", - Value = ReassignedBy, - }); - types.Add(new OpenApiType(){ - Name = "reassignment_reason", - Property = "ReassignmentReason", - Type = "string", - Value = ReassignmentReason, - }); - types.Add(new OpenApiType(){ - Name = "reassigned_from", - Property = "ReassignedFrom", - Type = "string", - Value = ReassignedFrom, - }); - types.Add(new OpenApiType(){ - Name = "error", - Property = "Error", - Type = "string", - Value = Error, - }); + types.Add( + new OpenApiType() + { + Name = "signature_id", + Property = "SignatureId", + Type = "string", + Value = SignatureId, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_group_guid", + Property = "SignerGroupGuid", + Type = "string", + Value = SignerGroupGuid, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_email_address", + Property = "SignerEmailAddress", + Type = "string", + Value = SignerEmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_name", + Property = "SignerName", + Type = "string", + Value = SignerName, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_role", + Property = "SignerRole", + Type = "string", + Value = SignerRole, + } + ); + types.Add( + new OpenApiType() + { + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + } + ); + types.Add( + new OpenApiType() + { + Name = "status_code", + Property = "StatusCode", + Type = "string", + Value = StatusCode, + } + ); + types.Add( + new OpenApiType() + { + Name = "decline_reason", + Property = "DeclineReason", + Type = "string", + Value = DeclineReason, + } + ); + types.Add( + new OpenApiType() + { + Name = "signed_at", + Property = "SignedAt", + Type = "int?", + Value = SignedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "last_viewed_at", + Property = "LastViewedAt", + Type = "int?", + Value = LastViewedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "last_reminded_at", + Property = "LastRemindedAt", + Type = "int?", + Value = LastRemindedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "has_pin", + Property = "HasPin", + Type = "bool", + Value = HasPin, + } + ); + types.Add( + new OpenApiType() + { + Name = "has_sms_auth", + Property = "HasSmsAuth", + Type = "bool?", + Value = HasSmsAuth, + } + ); + types.Add( + new OpenApiType() + { + Name = "has_sms_delivery", + Property = "HasSmsDelivery", + Type = "bool?", + Value = HasSmsDelivery, + } + ); + types.Add( + new OpenApiType() + { + Name = "sms_phone_number", + Property = "SmsPhoneNumber", + Type = "string", + Value = SmsPhoneNumber, + } + ); + types.Add( + new OpenApiType() + { + Name = "reassigned_by", + Property = "ReassignedBy", + Type = "string", + Value = ReassignedBy, + } + ); + types.Add( + new OpenApiType() + { + Name = "reassignment_reason", + Property = "ReassignmentReason", + Type = "string", + Value = ReassignmentReason, + } + ); + types.Add( + new OpenApiType() + { + Name = "reassigned_from", + Property = "ReassignedFrom", + Type = "string", + Value = ReassignedFrom, + } + ); + types.Add( + new OpenApiType() + { + Name = "error", + Property = "Error", + Type = "string", + Value = Error, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs index 815366e24..670e0444c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestSendRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestSendRequest : IEquatable, IValidatableObject + public partial class SignatureRequestSendRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestSendRequest() { } + /// /// Initializes a new instance of the class. /// @@ -67,9 +70,37 @@ protected SignatureRequestSendRequest() { } /// The title you want to assign to the SignatureRequest.. /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestSendRequest(List files = default(List), List fileUrls = default(List), List signers = default(List), List groupedSigners = default(List), bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary metadata = default(Dictionary), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, int? expiresAt = default(int?)) + public SignatureRequestSendRequest( + List files = default(List), + List fileUrls = default(List), + List signers = default(List), + List groupedSigners = + default(List), + bool allowDecline = false, + bool allowReassign = false, + List attachments = default(List), + List ccEmailAddresses = default(List), + string clientId = default(string), + List customFields = default(List), + SubFieldOptions fieldOptions = default(SubFieldOptions), + List formFieldGroups = default(List), + List formFieldRules = default(List), + List formFieldsPerDocument = + default(List), + bool hideTextTags = false, + bool isQualifiedSignature = false, + bool isEid = false, + string message = default(string), + Dictionary metadata = default(Dictionary), + SubSigningOptions signingOptions = default(SubSigningOptions), + string signingRedirectUrl = default(string), + string subject = default(string), + bool testMode = false, + string title = default(string), + bool useTextTags = false, + int? expiresAt = default(int?) + ) { - this.Files = files; this.FileUrls = fileUrls; this.Signers = signers; @@ -108,7 +139,9 @@ public static SignatureRequestSendRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestSendRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestSendRequest" + ); } return obj; @@ -120,7 +153,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -128,7 +160,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -136,7 +167,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -144,7 +174,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "grouped_signers", EmitDefaultValue = true)] public List GroupedSigners { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -152,7 +181,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -160,7 +188,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments @@ -168,7 +195,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The email addresses that should be CCed. @@ -176,7 +202,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. @@ -184,7 +209,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -192,14 +216,12 @@ public static SignatureRequestSendRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -207,7 +229,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -215,7 +236,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -223,7 +243,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. @@ -231,7 +250,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } - /// /// Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br> **NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -240,7 +258,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "is_qualified_signature", EmitDefaultValue = true)] [Obsolete] public bool IsQualifiedSignature { get; set; } - /// /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -248,7 +265,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. [DataMember(Name = "is_eid", EmitDefaultValue = true)] public bool IsEid { get; set; } - /// /// The custom message in the email that will be sent to the signers. @@ -256,7 +272,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -264,14 +279,12 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. @@ -279,7 +292,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. @@ -287,7 +299,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -295,7 +306,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. @@ -303,7 +313,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. @@ -311,7 +320,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } - /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -319,7 +327,6 @@ public static SignatureRequestSendRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object @@ -365,7 +372,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -389,140 +399,131 @@ public bool Equals(SignatureRequestSendRequest input) { return false; } - return - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.GroupedSigners == input.GroupedSigners || - this.GroupedSigners != null && - input.GroupedSigners != null && - this.GroupedSigners.SequenceEqual(input.GroupedSigners) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.AllowReassign == input.AllowReassign || - this.AllowReassign.Equals(input.AllowReassign) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.CcEmailAddresses == input.CcEmailAddresses || - this.CcEmailAddresses != null && - input.CcEmailAddresses != null && - this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.FieldOptions == input.FieldOptions || - (this.FieldOptions != null && - this.FieldOptions.Equals(input.FieldOptions)) - ) && - ( - this.FormFieldGroups == input.FormFieldGroups || - this.FormFieldGroups != null && - input.FormFieldGroups != null && - this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) && - ( - this.FormFieldRules == input.FormFieldRules || - this.FormFieldRules != null && - input.FormFieldRules != null && - this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) && - ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument || - this.FormFieldsPerDocument != null && - input.FormFieldsPerDocument != null && - this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) && - ( - this.HideTextTags == input.HideTextTags || - this.HideTextTags.Equals(input.HideTextTags) - ) && - ( - this.IsQualifiedSignature == input.IsQualifiedSignature || - this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) - ) && - ( - this.IsEid == input.IsEid || - this.IsEid.Equals(input.IsEid) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.UseTextTags == input.UseTextTags || - this.UseTextTags.Equals(input.UseTextTags) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - (this.ExpiresAt != null && - this.ExpiresAt.Equals(input.ExpiresAt)) + return ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.GroupedSigners == input.GroupedSigners + || this.GroupedSigners != null + && input.GroupedSigners != null + && this.GroupedSigners.SequenceEqual(input.GroupedSigners) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.AllowReassign == input.AllowReassign + || this.AllowReassign.Equals(input.AllowReassign) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.CcEmailAddresses == input.CcEmailAddresses + || this.CcEmailAddresses != null + && input.CcEmailAddresses != null + && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.FieldOptions == input.FieldOptions + || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) + ) + && ( + this.FormFieldGroups == input.FormFieldGroups + || this.FormFieldGroups != null + && input.FormFieldGroups != null + && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) + && ( + this.FormFieldRules == input.FormFieldRules + || this.FormFieldRules != null + && input.FormFieldRules != null + && this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) + && ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument + || this.FormFieldsPerDocument != null + && input.FormFieldsPerDocument != null + && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) + && ( + this.HideTextTags == input.HideTextTags + || this.HideTextTags.Equals(input.HideTextTags) + ) + && ( + this.IsQualifiedSignature == input.IsQualifiedSignature + || this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) + ) + && (this.IsEid == input.IsEid || this.IsEid.Equals(input.IsEid)) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.UseTextTags == input.UseTextTags + || this.UseTextTags.Equals(input.UseTextTags) + ) + && ( + this.ExpiresAt == input.ExpiresAt + || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -627,24 +628,35 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; @@ -653,165 +665,242 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "grouped_signers", - Property = "GroupedSigners", - Type = "List", - Value = GroupedSigners, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - }); - types.Add(new OpenApiType(){ - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - }); - types.Add(new OpenApiType(){ - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - }); - types.Add(new OpenApiType(){ - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - }); - types.Add(new OpenApiType(){ - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - }); - types.Add(new OpenApiType(){ - Name = "is_qualified_signature", - Property = "IsQualifiedSignature", - Type = "bool", - Value = IsQualifiedSignature, - }); - types.Add(new OpenApiType(){ - Name = "is_eid", - Property = "IsEid", - Type = "bool", - Value = IsEid, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "grouped_signers", + Property = "GroupedSigners", + Type = "List", + Value = GroupedSigners, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + } + ); + types.Add( + new OpenApiType() + { + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_qualified_signature", + Property = "IsQualifiedSignature", + Type = "bool", + Value = IsQualifiedSignature, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_eid", + Property = "IsEid", + Type = "bool", + Value = IsEid, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs index 181c4a721..322b3aa43 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestSendWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestSendWithTemplateRequest : IEquatable, IValidatableObject + public partial class SignatureRequestSendWithTemplateRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestSendWithTemplateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -58,19 +61,41 @@ protected SignatureRequestSendWithTemplateRequest() { } /// The subject in the email that will be sent to the signers.. /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. - public SignatureRequestSendWithTemplateRequest(List templateIds = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), List files = default(List), List fileUrls = default(List), bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary metadata = default(Dictionary), List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string)) + public SignatureRequestSendWithTemplateRequest( + List templateIds = default(List), + bool allowDecline = false, + List ccs = default(List), + string clientId = default(string), + List customFields = default(List), + List files = default(List), + List fileUrls = default(List), + bool isQualifiedSignature = false, + bool isEid = false, + string message = default(string), + Dictionary metadata = default(Dictionary), + List signers = + default(List), + SubSigningOptions signingOptions = default(SubSigningOptions), + string signingRedirectUrl = default(string), + string subject = default(string), + bool testMode = false, + string title = default(string) + ) { - // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException("templateIds is a required property for SignatureRequestSendWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "templateIds is a required property for SignatureRequestSendWithTemplateRequest and cannot be null" + ); } this.TemplateIds = templateIds; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException("signers is a required property for SignatureRequestSendWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "signers is a required property for SignatureRequestSendWithTemplateRequest and cannot be null" + ); } this.Signers = signers; this.AllowDecline = allowDecline; @@ -96,11 +121,15 @@ protected SignatureRequestSendWithTemplateRequest() { } /// String of JSON data representing target object public static SignatureRequestSendWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestSendWithTemplateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestSendWithTemplateRequest" + ); } return obj; @@ -112,7 +141,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// Add Signers to your Templated-based Signature Request. @@ -120,7 +148,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Add Signers to your Templated-based Signature Request. [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -128,7 +155,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -136,7 +162,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. @@ -144,7 +169,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. @@ -152,7 +176,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// An array defining values and options for custom fields. Required when a custom field exists in the Template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -160,7 +183,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -168,7 +190,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br> **NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -177,7 +198,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "is_qualified_signature", EmitDefaultValue = true)] [Obsolete] public bool IsQualifiedSignature { get; set; } - /// /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -185,7 +205,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. [DataMember(Name = "is_eid", EmitDefaultValue = true)] public bool IsEid { get; set; } - /// /// The custom message in the email that will be sent to the signers. @@ -193,7 +212,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -201,14 +219,12 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. @@ -216,7 +232,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. @@ -224,7 +239,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -232,7 +246,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. @@ -240,7 +253,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Returns the string presentation of the object @@ -277,7 +289,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -301,94 +316,85 @@ public bool Equals(SignatureRequestSendWithTemplateRequest input) { return false; } - return - ( - this.TemplateIds == input.TemplateIds || - this.TemplateIds != null && - input.TemplateIds != null && - this.TemplateIds.SequenceEqual(input.TemplateIds) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.Ccs == input.Ccs || - this.Ccs != null && - input.Ccs != null && - this.Ccs.SequenceEqual(input.Ccs) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.IsQualifiedSignature == input.IsQualifiedSignature || - this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) - ) && - ( - this.IsEid == input.IsEid || - this.IsEid.Equals(input.IsEid) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) + return ( + this.TemplateIds == input.TemplateIds + || this.TemplateIds != null + && input.TemplateIds != null + && this.TemplateIds.SequenceEqual(input.TemplateIds) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.Ccs == input.Ccs + || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.IsQualifiedSignature == input.IsQualifiedSignature + || this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) + ) + && (this.IsEid == input.IsEid || this.IsEid.Equals(input.IsEid)) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) ); } @@ -466,24 +472,35 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; @@ -492,111 +509,161 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "is_qualified_signature", - Property = "IsQualifiedSignature", - Type = "bool", - Value = IsQualifiedSignature, - }); - types.Add(new OpenApiType(){ - Name = "is_eid", - Property = "IsEid", - Type = "bool", - Value = IsEid, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); + types.Add( + new OpenApiType() + { + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_qualified_signature", + Property = "IsQualifiedSignature", + Type = "bool", + Value = IsQualifiedSignature, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_eid", + Property = "IsEid", + Type = "bool", + Value = IsEid, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs index 8f9d4a916..84c22e54f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestUpdateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestUpdateRequest : IEquatable, IValidatableObject + public partial class SignatureRequestUpdateRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestUpdateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -45,13 +48,19 @@ protected SignatureRequestUpdateRequest() { } /// The new name for the recipient. **NOTE:** Optional if `email_address` is provided.. /// The signature ID for the recipient. (required). /// The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestUpdateRequest(string emailAddress = default(string), string name = default(string), string signatureId = default(string), int? expiresAt = default(int?)) + public SignatureRequestUpdateRequest( + string emailAddress = default(string), + string name = default(string), + string signatureId = default(string), + int? expiresAt = default(int?) + ) { - // to ensure "signatureId" is required (not null) if (signatureId == null) { - throw new ArgumentNullException("signatureId is a required property for SignatureRequestUpdateRequest and cannot be null"); + throw new ArgumentNullException( + "signatureId is a required property for SignatureRequestUpdateRequest and cannot be null" + ); } this.SignatureId = signatureId; this.EmailAddress = emailAddress; @@ -69,7 +78,9 @@ public static SignatureRequestUpdateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestUpdateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of SignatureRequestUpdateRequest" + ); } return obj; @@ -81,7 +92,6 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The signature ID for the recipient. [DataMember(Name = "signature_id", IsRequired = true, EmitDefaultValue = true)] public string SignatureId { get; set; } - /// /// The new email address for the recipient. This will generate a new `signature_id` value. **NOTE:** Optional if `name` is provided. @@ -89,7 +99,6 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The new email address for the recipient. This will generate a new `signature_id` value. **NOTE:** Optional if `name` is provided. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The new name for the recipient. **NOTE:** Optional if `email_address` is provided. @@ -97,7 +106,6 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The new name for the recipient. **NOTE:** Optional if `email_address` is provided. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -105,7 +113,6 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object @@ -129,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -153,26 +163,18 @@ public bool Equals(SignatureRequestUpdateRequest input) { return false; } - return - ( - this.SignatureId == input.SignatureId || - (this.SignatureId != null && - this.SignatureId.Equals(input.SignatureId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - (this.ExpiresAt != null && - this.ExpiresAt.Equals(input.ExpiresAt)) + return ( + this.SignatureId == input.SignatureId + || (this.SignatureId != null && this.SignatureId.Equals(input.SignatureId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.ExpiresAt == input.ExpiresAt + || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -210,7 +212,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -218,33 +222,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "signature_id", - Property = "SignatureId", - Type = "string", - Value = SignatureId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "signature_id", + Property = "SignatureId", + Type = "string", + Value = SignatureId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs index 458d8d43d..b5aff52c3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class SubAttachment : IEquatable, IValidatableObje /// [JsonConstructorAttribute] protected SubAttachment() { } + /// /// Initializes a new instance of the class. /// @@ -45,13 +46,19 @@ protected SubAttachment() { } /// The name of attachment. (required). /// Determines if the attachment must be uploaded. (default to false). /// The signer's index in the `signers` parameter (0-based indexing). **NOTE:** Only one signer can be assigned per attachment. (required). - public SubAttachment(string instructions = default(string), string name = default(string), bool required = false, int signerIndex = default(int)) + public SubAttachment( + string instructions = default(string), + string name = default(string), + bool required = false, + int signerIndex = default(int) + ) { - // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SubAttachment and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SubAttachment and cannot be null" + ); } this.Name = name; this.SignerIndex = signerIndex; @@ -81,7 +88,6 @@ public static SubAttachment Init(string jsonData) /// The name of attachment. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The signer's index in the `signers` parameter (0-based indexing). **NOTE:** Only one signer can be assigned per attachment. @@ -89,7 +95,6 @@ public static SubAttachment Init(string jsonData) /// The signer's index in the `signers` parameter (0-based indexing). **NOTE:** Only one signer can be assigned per attachment. [DataMember(Name = "signer_index", IsRequired = true, EmitDefaultValue = true)] public int SignerIndex { get; set; } - /// /// The instructions for uploading the attachment. @@ -97,7 +102,6 @@ public static SubAttachment Init(string jsonData) /// The instructions for uploading the attachment. [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } - /// /// Determines if the attachment must be uploaded. @@ -105,7 +109,6 @@ public static SubAttachment Init(string jsonData) /// Determines if the attachment must be uploaded. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// Returns the string presentation of the object @@ -129,7 +132,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -153,25 +159,16 @@ public bool Equals(SubAttachment input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.SignerIndex == input.SignerIndex || - this.SignerIndex.Equals(input.SignerIndex) - ) && - ( - this.Instructions == input.Instructions || - (this.Instructions != null && - this.Instructions.Equals(input.Instructions)) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ); + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.SignerIndex == input.SignerIndex + || this.SignerIndex.Equals(input.SignerIndex) + ) + && ( + this.Instructions == input.Instructions + || (this.Instructions != null && this.Instructions.Equals(input.Instructions)) + ) + && (this.Required == input.Required || this.Required.Equals(input.Required)); } /// @@ -202,7 +199,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -210,33 +209,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "signer_index", - Property = "SignerIndex", - Type = "int", - Value = SignerIndex, - }); - types.Add(new OpenApiType(){ - Name = "instructions", - Property = "Instructions", - Type = "string", - Value = Instructions, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_index", + Property = "SignerIndex", + Type = "int", + Value = SignerIndex, + } + ); + types.Add( + new OpenApiType() + { + Name = "instructions", + Property = "Instructions", + Type = "string", + Value = Instructions, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs index 6cb0453c4..925c5645c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,14 +38,19 @@ public partial class SubBulkSignerList : IEquatable, IValidat /// [JsonConstructorAttribute] protected SubBulkSignerList() { } + /// /// Initializes a new instance of the class. /// /// An array of custom field values.. /// Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. Currently only templates with a single role are supported. All signers must have the same `role` value.. - public SubBulkSignerList(List customFields = default(List), List signers = default(List)) + public SubBulkSignerList( + List customFields = + default(List), + List signers = + default(List) + ) { - this.CustomFields = customFields; this.Signers = signers; } @@ -72,7 +77,6 @@ public static SubBulkSignerList Init(string jsonData) /// An array of custom field values. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. Currently only templates with a single role are supported. All signers must have the same `role` value. @@ -80,7 +84,6 @@ public static SubBulkSignerList Init(string jsonData) /// Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. Currently only templates with a single role are supported. All signers must have the same `role` value. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +105,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,18 +132,17 @@ public bool Equals(SubBulkSignerList input) { return false; } - return - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) + return ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) ); } @@ -167,7 +172,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -175,21 +182,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs index b03715cf8..cb754f1d7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,31 +31,40 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubBulkSignerListCustomField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubBulkSignerListCustomField : IEquatable, IValidatableObject + public partial class SubBulkSignerListCustomField + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubBulkSignerListCustomField() { } + /// /// Initializes a new instance of the class. /// /// The name of the custom field. Must be the field's `name` or `api_id`. (required). /// The value of the custom field. (required). - public SubBulkSignerListCustomField(string name = default(string), string value = default(string)) + public SubBulkSignerListCustomField( + string name = default(string), + string value = default(string) + ) { - // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SubBulkSignerListCustomField and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SubBulkSignerListCustomField and cannot be null" + ); } this.Name = name; // to ensure "value" is required (not null) if (value == null) { - throw new ArgumentNullException("value is a required property for SubBulkSignerListCustomField and cannot be null"); + throw new ArgumentNullException( + "value is a required property for SubBulkSignerListCustomField and cannot be null" + ); } this.Value = value; } @@ -70,7 +79,9 @@ public static SubBulkSignerListCustomField Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubBulkSignerListCustomField"); + throw new Exception( + "Unable to deserialize JSON to instance of SubBulkSignerListCustomField" + ); } return obj; @@ -82,7 +93,6 @@ public static SubBulkSignerListCustomField Init(string jsonData) /// The name of the custom field. Must be the field's `name` or `api_id`. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The value of the custom field. @@ -90,7 +100,6 @@ public static SubBulkSignerListCustomField Init(string jsonData) /// The value of the custom field. [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +121,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +148,10 @@ public bool Equals(SubBulkSignerListCustomField input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -175,7 +181,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -183,21 +191,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs index 152097511..51ecc85f2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class SubCC : IEquatable, IValidatableObject /// [JsonConstructorAttribute] protected SubCC() { } + /// /// Initializes a new instance of the class. /// @@ -45,17 +46,20 @@ protected SubCC() { } /// The email address of the CC recipient. (required). public SubCC(string role = default(string), string emailAddress = default(string)) { - // to ensure "role" is required (not null) if (role == null) { - throw new ArgumentNullException("role is a required property for SubCC and cannot be null"); + throw new ArgumentNullException( + "role is a required property for SubCC and cannot be null" + ); } this.Role = role; // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException("emailAddress is a required property for SubCC and cannot be null"); + throw new ArgumentNullException( + "emailAddress is a required property for SubCC and cannot be null" + ); } this.EmailAddress = emailAddress; } @@ -82,7 +86,6 @@ public static SubCC Init(string jsonData) /// Must match an existing CC role in chosen Template(s). Multiple CC recipients cannot share the same CC role. [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } - /// /// The email address of the CC recipient. @@ -90,7 +93,6 @@ public static SubCC Init(string jsonData) /// The email address of the CC recipient. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +114,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +141,10 @@ public bool Equals(SubCC input) { return false; } - return - ( - this.Role == input.Role || - (this.Role != null && - this.Role.Equals(input.Role)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) + return (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -175,7 +174,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -183,21 +184,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); + types.Add( + new OpenApiType() + { + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs index b2ef09c4e..16dd9f3d5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class SubCustomField : IEquatable, IValidatableOb /// [JsonConstructorAttribute] protected SubCustomField() { } + /// /// Initializes a new instance of the class. /// @@ -45,13 +46,19 @@ protected SubCustomField() { } /// The name of a custom field. When working with pre-filled data, the custom field's name must have a matching merge field name or the field will remain empty on the document during signing. (required). /// Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. (default to false). /// The string that resolves (aka \"pre-fills\") to the merge field on the final document(s) used for signing.. - public SubCustomField(string editor = default(string), string name = default(string), bool required = false, string value = default(string)) + public SubCustomField( + string editor = default(string), + string name = default(string), + bool required = false, + string value = default(string) + ) { - // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SubCustomField and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SubCustomField and cannot be null" + ); } this.Name = name; this.Editor = editor; @@ -81,7 +88,6 @@ public static SubCustomField Init(string jsonData) /// The name of a custom field. When working with pre-filled data, the custom field's name must have a matching merge field name or the field will remain empty on the document during signing. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`. **NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. @@ -89,7 +95,6 @@ public static SubCustomField Init(string jsonData) /// Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`. **NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. [DataMember(Name = "editor", EmitDefaultValue = true)] public string Editor { get; set; } - /// /// Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. @@ -97,7 +102,6 @@ public static SubCustomField Init(string jsonData) /// Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The string that resolves (aka \"pre-fills\") to the merge field on the final document(s) used for signing. @@ -105,7 +109,6 @@ public static SubCustomField Init(string jsonData) /// The string that resolves (aka \"pre-fills\") to the merge field on the final document(s) used for signing. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object @@ -129,7 +132,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -153,25 +159,15 @@ public bool Equals(SubCustomField input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Editor == input.Editor || - (this.Editor != null && - this.Editor.Equals(input.Editor)) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.Editor == input.Editor + || (this.Editor != null && this.Editor.Equals(input.Editor)) + ) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) ); } @@ -206,7 +202,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -214,33 +212,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "editor", - Property = "Editor", - Type = "string", - Value = Editor, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "editor", + Property = "Editor", + Type = "string", + Value = Editor, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs index 584230378..8853c7083 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class SubEditorOptions : IEquatable, IValidatab /// [JsonConstructorAttribute] protected SubEditorOptions() { } + /// /// Initializes a new instance of the class. /// @@ -45,7 +46,6 @@ protected SubEditorOptions() { } /// Allows requesters to edit documents, including delete and add (default to false). public SubEditorOptions(bool allowEditSigners = false, bool allowEditDocuments = false) { - this.AllowEditSigners = allowEditSigners; this.AllowEditDocuments = allowEditDocuments; } @@ -72,7 +72,6 @@ public static SubEditorOptions Init(string jsonData) /// Allows requesters to edit the list of signers [DataMember(Name = "allow_edit_signers", EmitDefaultValue = true)] public bool AllowEditSigners { get; set; } - /// /// Allows requesters to edit documents, including delete and add @@ -80,7 +79,6 @@ public static SubEditorOptions Init(string jsonData) /// Allows requesters to edit documents, including delete and add [DataMember(Name = "allow_edit_documents", EmitDefaultValue = true)] public bool AllowEditDocuments { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +100,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,14 +127,13 @@ public bool Equals(SubEditorOptions input) { return false; } - return - ( - this.AllowEditSigners == input.AllowEditSigners || - this.AllowEditSigners.Equals(input.AllowEditSigners) - ) && - ( - this.AllowEditDocuments == input.AllowEditDocuments || - this.AllowEditDocuments.Equals(input.AllowEditDocuments) + return ( + this.AllowEditSigners == input.AllowEditSigners + || this.AllowEditSigners.Equals(input.AllowEditSigners) + ) + && ( + this.AllowEditDocuments == input.AllowEditDocuments + || this.AllowEditDocuments.Equals(input.AllowEditDocuments) ); } @@ -157,7 +157,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -165,21 +167,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "allow_edit_signers", - Property = "AllowEditSigners", - Type = "bool", - Value = AllowEditSigners, - }); - types.Add(new OpenApiType(){ - Name = "allow_edit_documents", - Property = "AllowEditDocuments", - Type = "bool", - Value = AllowEditDocuments, - }); + types.Add( + new OpenApiType() + { + Name = "allow_edit_signers", + Property = "AllowEditSigners", + Type = "bool", + Value = AllowEditSigners, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_edit_documents", + Property = "AllowEditDocuments", + Type = "bool", + Value = AllowEditDocuments, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs index deefc0ed6..2265daa0b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -74,28 +74,28 @@ public enum DateFormatEnum /// Enum YYYY_MM_DD for value: YYYY - MM - DD /// [EnumMember(Value = "YYYY - MM - DD")] - YYYY_MM_DD = 6 + YYYY_MM_DD = 6, } - /// /// Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) **NOTE:** Only available for Premium and higher. /// /// Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) **NOTE:** Only available for Premium and higher. [DataMember(Name = "date_format", IsRequired = true, EmitDefaultValue = true)] public DateFormatEnum DateFormat { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFieldOptions() { } + /// /// Initializes a new instance of the class. /// /// Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) **NOTE:** Only available for Premium and higher. (required). public SubFieldOptions(DateFormatEnum dateFormat = default(DateFormatEnum)) { - this.DateFormat = dateFormat; } @@ -134,7 +134,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -158,11 +161,9 @@ public bool Equals(SubFieldOptions input) { return false; } - return - ( - this.DateFormat == input.DateFormat || - this.DateFormat.Equals(input.DateFormat) - ); + return ( + this.DateFormat == input.DateFormat || this.DateFormat.Equals(input.DateFormat) + ); } /// @@ -184,7 +185,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -192,15 +195,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "date_format", - Property = "DateFormat", - Type = "string", - Value = DateFormat, - }); + types.Add( + new OpenApiType() + { + Name = "date_format", + Property = "DateFormat", + Type = "string", + Value = DateFormat, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs index 47c5ba279..e05a55a81 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,31 +38,41 @@ public partial class SubFormFieldGroup : IEquatable, IValidat /// [JsonConstructorAttribute] protected SubFormFieldGroup() { } + /// /// Initializes a new instance of the class. /// /// ID of group. Use this to reference a specific group from the `group` value in `form_fields_per_document`. (required). /// Name of the group (required). /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. (required). - public SubFormFieldGroup(string groupId = default(string), string groupLabel = default(string), string requirement = default(string)) + public SubFormFieldGroup( + string groupId = default(string), + string groupLabel = default(string), + string requirement = default(string) + ) { - // to ensure "groupId" is required (not null) if (groupId == null) { - throw new ArgumentNullException("groupId is a required property for SubFormFieldGroup and cannot be null"); + throw new ArgumentNullException( + "groupId is a required property for SubFormFieldGroup and cannot be null" + ); } this.GroupId = groupId; // to ensure "groupLabel" is required (not null) if (groupLabel == null) { - throw new ArgumentNullException("groupLabel is a required property for SubFormFieldGroup and cannot be null"); + throw new ArgumentNullException( + "groupLabel is a required property for SubFormFieldGroup and cannot be null" + ); } this.GroupLabel = groupLabel; // to ensure "requirement" is required (not null) if (requirement == null) { - throw new ArgumentNullException("requirement is a required property for SubFormFieldGroup and cannot be null"); + throw new ArgumentNullException( + "requirement is a required property for SubFormFieldGroup and cannot be null" + ); } this.Requirement = requirement; } @@ -89,7 +99,6 @@ public static SubFormFieldGroup Init(string jsonData) /// ID of group. Use this to reference a specific group from the `group` value in `form_fields_per_document`. [DataMember(Name = "group_id", IsRequired = true, EmitDefaultValue = true)] public string GroupId { get; set; } - /// /// Name of the group @@ -97,7 +106,6 @@ public static SubFormFieldGroup Init(string jsonData) /// Name of the group [DataMember(Name = "group_label", IsRequired = true, EmitDefaultValue = true)] public string GroupLabel { get; set; } - /// /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. @@ -105,7 +113,6 @@ public static SubFormFieldGroup Init(string jsonData) /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. [DataMember(Name = "requirement", IsRequired = true, EmitDefaultValue = true)] public string Requirement { get; set; } - /// /// Returns the string presentation of the object @@ -128,7 +135,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -152,21 +162,17 @@ public bool Equals(SubFormFieldGroup input) { return false; } - return - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && - ( - this.GroupLabel == input.GroupLabel || - (this.GroupLabel != null && - this.GroupLabel.Equals(input.GroupLabel)) - ) && - ( - this.Requirement == input.Requirement || - (this.Requirement != null && - this.Requirement.Equals(input.Requirement)) + return ( + this.GroupId == input.GroupId + || (this.GroupId != null && this.GroupId.Equals(input.GroupId)) + ) + && ( + this.GroupLabel == input.GroupLabel + || (this.GroupLabel != null && this.GroupLabel.Equals(input.GroupLabel)) + ) + && ( + this.Requirement == input.Requirement + || (this.Requirement != null && this.Requirement.Equals(input.Requirement)) ); } @@ -200,7 +206,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -208,27 +216,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "group_id", - Property = "GroupId", - Type = "string", - Value = GroupId, - }); - types.Add(new OpenApiType(){ - Name = "group_label", - Property = "GroupLabel", - Type = "string", - Value = GroupLabel, - }); - types.Add(new OpenApiType(){ - Name = "requirement", - Property = "Requirement", - Type = "string", - Value = Requirement, - }); + types.Add( + new OpenApiType() + { + Name = "group_id", + Property = "GroupId", + Type = "string", + Value = GroupId, + } + ); + types.Add( + new OpenApiType() + { + Name = "group_label", + Property = "GroupLabel", + Type = "string", + Value = GroupLabel, + } + ); + types.Add( + new OpenApiType() + { + Name = "requirement", + Property = "Requirement", + Type = "string", + Value = Requirement, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs index d214e456f..396f81f23 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class SubFormFieldRule : IEquatable, IValidatab /// [JsonConstructorAttribute] protected SubFormFieldRule() { } + /// /// Initializes a new instance of the class. /// @@ -45,31 +46,43 @@ protected SubFormFieldRule() { } /// Currently only `AND` is supported. Support for `OR` is being worked on. (required) (default to "AND"). /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. (required). /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. (required). - public SubFormFieldRule(string id = default(string), string triggerOperator = @"AND", List triggers = default(List), List actions = default(List)) + public SubFormFieldRule( + string id = default(string), + string triggerOperator = @"AND", + List triggers = default(List), + List actions = default(List) + ) { - // to ensure "id" is required (not null) if (id == null) { - throw new ArgumentNullException("id is a required property for SubFormFieldRule and cannot be null"); + throw new ArgumentNullException( + "id is a required property for SubFormFieldRule and cannot be null" + ); } this.Id = id; // to ensure "triggerOperator" is required (not null) if (triggerOperator == null) { - throw new ArgumentNullException("triggerOperator is a required property for SubFormFieldRule and cannot be null"); + throw new ArgumentNullException( + "triggerOperator is a required property for SubFormFieldRule and cannot be null" + ); } this.TriggerOperator = triggerOperator; // to ensure "triggers" is required (not null) if (triggers == null) { - throw new ArgumentNullException("triggers is a required property for SubFormFieldRule and cannot be null"); + throw new ArgumentNullException( + "triggers is a required property for SubFormFieldRule and cannot be null" + ); } this.Triggers = triggers; // to ensure "actions" is required (not null) if (actions == null) { - throw new ArgumentNullException("actions is a required property for SubFormFieldRule and cannot be null"); + throw new ArgumentNullException( + "actions is a required property for SubFormFieldRule and cannot be null" + ); } this.Actions = actions; } @@ -96,7 +109,6 @@ public static SubFormFieldRule Init(string jsonData) /// Must be unique across all defined rules. [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } - /// /// Currently only `AND` is supported. Support for `OR` is being worked on. @@ -104,7 +116,6 @@ public static SubFormFieldRule Init(string jsonData) /// Currently only `AND` is supported. Support for `OR` is being worked on. [DataMember(Name = "trigger_operator", IsRequired = true, EmitDefaultValue = true)] public string TriggerOperator { get; set; } - /// /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. @@ -112,7 +123,6 @@ public static SubFormFieldRule Init(string jsonData) /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. [DataMember(Name = "triggers", IsRequired = true, EmitDefaultValue = true)] public List Triggers { get; set; } - /// /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. @@ -120,7 +130,6 @@ public static SubFormFieldRule Init(string jsonData) /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. [DataMember(Name = "actions", IsRequired = true, EmitDefaultValue = true)] public List Actions { get; set; } - /// /// Returns the string presentation of the object @@ -144,7 +153,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -168,28 +180,25 @@ public bool Equals(SubFormFieldRule input) { return false; } - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.TriggerOperator == input.TriggerOperator || - (this.TriggerOperator != null && - this.TriggerOperator.Equals(input.TriggerOperator)) - ) && - ( - this.Triggers == input.Triggers || - this.Triggers != null && - input.Triggers != null && - this.Triggers.SequenceEqual(input.Triggers) - ) && - ( - this.Actions == input.Actions || - this.Actions != null && - input.Actions != null && - this.Actions.SequenceEqual(input.Actions) + return (this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id))) + && ( + this.TriggerOperator == input.TriggerOperator + || ( + this.TriggerOperator != null + && this.TriggerOperator.Equals(input.TriggerOperator) + ) + ) + && ( + this.Triggers == input.Triggers + || this.Triggers != null + && input.Triggers != null + && this.Triggers.SequenceEqual(input.Triggers) + ) + && ( + this.Actions == input.Actions + || this.Actions != null + && input.Actions != null + && this.Actions.SequenceEqual(input.Actions) ); } @@ -227,7 +236,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -235,33 +246,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "id", - Property = "Id", - Type = "string", - Value = Id, - }); - types.Add(new OpenApiType(){ - Name = "trigger_operator", - Property = "TriggerOperator", - Type = "string", - Value = TriggerOperator, - }); - types.Add(new OpenApiType(){ - Name = "triggers", - Property = "Triggers", - Type = "List", - Value = Triggers, - }); - types.Add(new OpenApiType(){ - Name = "actions", - Property = "Actions", - Type = "List", - Value = Actions, - }); + types.Add( + new OpenApiType() + { + Name = "id", + Property = "Id", + Type = "string", + Value = Id, + } + ); + types.Add( + new OpenApiType() + { + Name = "trigger_operator", + Property = "TriggerOperator", + Type = "string", + Value = TriggerOperator, + } + ); + types.Add( + new OpenApiType() + { + Name = "triggers", + Property = "Triggers", + Type = "List", + Value = Triggers, + } + ); + types.Add( + new OpenApiType() + { + Name = "actions", + Property = "Actions", + Type = "List", + Value = Actions, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs index e2350b07c..0c5a70164 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,9 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldRuleAction")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldRuleAction : IEquatable, IValidatableObject + public partial class SubFormFieldRuleAction + : IEquatable, + IValidatableObject { /// /// Defines Type @@ -49,20 +51,21 @@ public enum TypeEnum /// Enum GroupVisibility for value: change-group-visibility /// [EnumMember(Value = "change-group-visibility")] - GroupVisibility = 2 + GroupVisibility = 2, } - /// /// Gets or Sets Type /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public TypeEnum Type { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldRuleAction() { } + /// /// Initializes a new instance of the class. /// @@ -70,9 +73,13 @@ protected SubFormFieldRuleAction() { } /// **group_id** or **field_id** is required, but not both. Must reference the ID of an existing group defined within `form_field_groups`. Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer.. /// `true` to hide the target field when rule is satisfied, otherwise `false`. (required). /// type (required). - public SubFormFieldRuleAction(string fieldId = default(string), string groupId = default(string), bool hidden = default(bool), TypeEnum type = default(TypeEnum)) + public SubFormFieldRuleAction( + string fieldId = default(string), + string groupId = default(string), + bool hidden = default(bool), + TypeEnum type = default(TypeEnum) + ) { - this.Hidden = hidden; this.Type = type; this.FieldId = fieldId; @@ -89,7 +96,9 @@ public static SubFormFieldRuleAction Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldRuleAction"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldRuleAction" + ); } return obj; @@ -101,7 +110,6 @@ public static SubFormFieldRuleAction Init(string jsonData) /// `true` to hide the target field when rule is satisfied, otherwise `false`. [DataMember(Name = "hidden", IsRequired = true, EmitDefaultValue = true)] public bool Hidden { get; set; } - /// /// **field_id** or **group_id** is required, but not both. Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Cannot use with `group_id`. Trigger and action fields must belong to the same signer. @@ -109,7 +117,6 @@ public static SubFormFieldRuleAction Init(string jsonData) /// **field_id** or **group_id** is required, but not both. Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Cannot use with `group_id`. Trigger and action fields must belong to the same signer. [DataMember(Name = "field_id", EmitDefaultValue = true)] public string FieldId { get; set; } - /// /// **group_id** or **field_id** is required, but not both. Must reference the ID of an existing group defined within `form_field_groups`. Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. @@ -117,7 +124,6 @@ public static SubFormFieldRuleAction Init(string jsonData) /// **group_id** or **field_id** is required, but not both. Must reference the ID of an existing group defined within `form_field_groups`. Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. [DataMember(Name = "group_id", EmitDefaultValue = true)] public string GroupId { get; set; } - /// /// Returns the string presentation of the object @@ -141,7 +147,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -165,24 +174,15 @@ public bool Equals(SubFormFieldRuleAction input) { return false; } - return - ( - this.Hidden == input.Hidden || - this.Hidden.Equals(input.Hidden) - ) && - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ) && - ( - this.FieldId == input.FieldId || - (this.FieldId != null && - this.FieldId.Equals(input.FieldId)) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) + return (this.Hidden == input.Hidden || this.Hidden.Equals(input.Hidden)) + && (this.Type == input.Type || this.Type.Equals(input.Type)) + && ( + this.FieldId == input.FieldId + || (this.FieldId != null && this.FieldId.Equals(input.FieldId)) + ) + && ( + this.GroupId == input.GroupId + || (this.GroupId != null && this.GroupId.Equals(input.GroupId)) ); } @@ -214,7 +214,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -222,33 +224,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "hidden", - Property = "Hidden", - Type = "bool", - Value = Hidden, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "field_id", - Property = "FieldId", - Type = "string", - Value = FieldId, - }); - types.Add(new OpenApiType(){ - Name = "group_id", - Property = "GroupId", - Type = "string", - Value = GroupId, - }); + types.Add( + new OpenApiType() + { + Name = "hidden", + Property = "Hidden", + Type = "bool", + Value = Hidden, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_id", + Property = "FieldId", + Type = "string", + Value = FieldId, + } + ); + types.Add( + new OpenApiType() + { + Name = "group_id", + Property = "GroupId", + Type = "string", + Value = GroupId, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs index 5719dcb4f..a2ba2239b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,9 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldRuleTrigger")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldRuleTrigger : IEquatable, IValidatableObject + public partial class SubFormFieldRuleTrigger + : IEquatable, + IValidatableObject { /// /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value @@ -68,21 +70,22 @@ public enum OperatorEnum /// Enum Not for value: not /// [EnumMember(Value = "not")] - Not = 5 + Not = 5, } - /// /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value /// /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value [DataMember(Name = "operator", IsRequired = true, EmitDefaultValue = true)] public OperatorEnum Operator { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldRuleTrigger() { } + /// /// Initializes a new instance of the class. /// @@ -90,13 +93,19 @@ protected SubFormFieldRuleTrigger() { } /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value (required). /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1`. /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none`. - public SubFormFieldRuleTrigger(string id = default(string), OperatorEnum varOperator = default(OperatorEnum), string value = default(string), List values = default(List)) + public SubFormFieldRuleTrigger( + string id = default(string), + OperatorEnum varOperator = default(OperatorEnum), + string value = default(string), + List values = default(List) + ) { - // to ensure "id" is required (not null) if (id == null) { - throw new ArgumentNullException("id is a required property for SubFormFieldRuleTrigger and cannot be null"); + throw new ArgumentNullException( + "id is a required property for SubFormFieldRuleTrigger and cannot be null" + ); } this.Id = id; this.Operator = varOperator; @@ -114,7 +123,9 @@ public static SubFormFieldRuleTrigger Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldRuleTrigger"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldRuleTrigger" + ); } return obj; @@ -126,7 +137,6 @@ public static SubFormFieldRuleTrigger Init(string jsonData) /// Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Trigger and action fields and groups must belong to the same signer. [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } - /// /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1` @@ -134,7 +144,6 @@ public static SubFormFieldRuleTrigger Init(string jsonData) /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1` [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none` @@ -142,7 +151,6 @@ public static SubFormFieldRuleTrigger Init(string jsonData) /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none` [DataMember(Name = "values", EmitDefaultValue = true)] public List Values { get; set; } - /// /// Returns the string presentation of the object @@ -166,7 +174,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -190,26 +201,17 @@ public bool Equals(SubFormFieldRuleTrigger input) { return false; } - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Operator == input.Operator || - this.Operator.Equals(input.Operator) - ) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ) && - ( - this.Values == input.Values || - this.Values != null && - input.Values != null && - this.Values.SequenceEqual(input.Values) + return (this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id))) + && (this.Operator == input.Operator || this.Operator.Equals(input.Operator)) + && ( + this.Value == input.Value + || (this.Value != null && this.Value.Equals(input.Value)) + ) + && ( + this.Values == input.Values + || this.Values != null + && input.Values != null + && this.Values.SequenceEqual(input.Values) ); } @@ -244,7 +246,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -252,33 +256,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "id", - Property = "Id", - Type = "string", - Value = Id, - }); - types.Add(new OpenApiType(){ - Name = "operator", - Property = "Operator", - Type = "string", - Value = Operator, - }); - types.Add(new OpenApiType(){ - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - }); - types.Add(new OpenApiType(){ - Name = "values", - Property = "Values", - Type = "List", - Value = Values, - }); + types.Add( + new OpenApiType() + { + Name = "id", + Property = "Id", + Type = "string", + Value = Id, + } + ); + types.Add( + new OpenApiType() + { + Name = "operator", + Property = "Operator", + Type = "string", + Value = Operator, + } + ); + types.Add( + new OpenApiType() + { + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + } + ); + types.Add( + new OpenApiType() + { + Name = "values", + Property = "Values", + Type = "List", + Value = Values, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs index 2c4a31227..9bcdfc354 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; +using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -43,13 +43,16 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentBase : IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentBase + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentBase() { } + /// /// Initializes a new instance of the class. /// @@ -64,14 +67,27 @@ protected SubFormFieldsPerDocumentBase() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentBase(int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, string type = default(string), int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentBase( + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + string type = default(string), + int width = default(int), + int x = default(int), + int y = default(int) + ) { - this.DocumentIndex = documentIndex; // to ensure "apiId" is required (not null) if (apiId == null) { - throw new ArgumentNullException("apiId is a required property for SubFormFieldsPerDocumentBase and cannot be null"); + throw new ArgumentNullException( + "apiId is a required property for SubFormFieldsPerDocumentBase and cannot be null" + ); } this.ApiId = apiId; this.Height = height; @@ -79,13 +95,17 @@ protected SubFormFieldsPerDocumentBase() { } // to ensure "signer" is required (not null) if (signer == null) { - throw new ArgumentNullException("signer is a required property for SubFormFieldsPerDocumentBase and cannot be null"); + throw new ArgumentNullException( + "signer is a required property for SubFormFieldsPerDocumentBase and cannot be null" + ); } this.Signer = Convert.ToString(signer); // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentBase and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentBase and cannot be null" + ); } this.Type = type; this.Width = width; @@ -105,7 +125,9 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentBase"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentBase" + ); } return obj; @@ -117,7 +139,6 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// Represents the integer index of the `file` or `file_url` document the field should be attached to. [DataMember(Name = "document_index", IsRequired = true, EmitDefaultValue = true)] public int DocumentIndex { get; set; } - /// /// An identifier for the field that is unique across all documents in the request. @@ -125,7 +146,6 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// An identifier for the field that is unique across all documents in the request. [DataMember(Name = "api_id", IsRequired = true, EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// Size of the field in pixels. @@ -133,7 +153,6 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// Size of the field in pixels. [DataMember(Name = "height", IsRequired = true, EmitDefaultValue = true)] public int Height { get; set; } - /// /// Whether this field is required. @@ -141,14 +160,14 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// Whether this field is required. [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] public bool Required { get; set; } - /// /// Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. **NOTE:** To set the value of the field as the preparer you must set this to `me_now` **NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. /// /// Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. **NOTE:** To set the value of the field as the preparer you must set this to `me_now` **NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. [DataMember(Name = "signer", IsRequired = true, EmitDefaultValue = true)] - public object Signer { + public object Signer + { get => this._signer; set => this._signer = Convert.ToString(value); } @@ -160,7 +179,6 @@ public object Signer { /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Size of the field in pixels. @@ -168,7 +186,6 @@ public object Signer { /// Size of the field in pixels. [DataMember(Name = "width", IsRequired = true, EmitDefaultValue = true)] public int Width { get; set; } - /// /// Location coordinates of the field in pixels. @@ -176,7 +193,6 @@ public object Signer { /// Location coordinates of the field in pixels. [DataMember(Name = "x", IsRequired = true, EmitDefaultValue = true)] public int X { get; set; } - /// /// Location coordinates of the field in pixels. @@ -184,7 +200,6 @@ public object Signer { /// Location coordinates of the field in pixels. [DataMember(Name = "y", IsRequired = true, EmitDefaultValue = true)] public int Y { get; set; } - /// /// Display name for the field. @@ -192,7 +207,6 @@ public object Signer { /// Display name for the field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Page in the document where the field should be placed (requires documents be PDF files). - When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. @@ -200,7 +214,6 @@ public object Signer { /// Page in the document where the field should be placed (requires documents be PDF files). - When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. [DataMember(Name = "page", EmitDefaultValue = true)] public int? Page { get; set; } - /// /// Returns the string presentation of the object @@ -231,7 +244,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -255,56 +271,26 @@ public bool Equals(SubFormFieldsPerDocumentBase input) { return false; } - return - ( - this.DocumentIndex == input.DocumentIndex || - this.DocumentIndex.Equals(input.DocumentIndex) - ) && - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Height == input.Height || - this.Height.Equals(input.Height) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.Signer == input.Signer || - (this.Signer != null && - this.Signer.Equals(input.Signer)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Width == input.Width || - this.Width.Equals(input.Width) - ) && - ( - this.X == input.X || - this.X.Equals(input.X) - ) && - ( - this.Y == input.Y || - this.Y.Equals(input.Y) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Page == input.Page || - (this.Page != null && - this.Page.Equals(input.Page)) - ); + return ( + this.DocumentIndex == input.DocumentIndex + || this.DocumentIndex.Equals(input.DocumentIndex) + ) + && ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && (this.Height == input.Height || this.Height.Equals(input.Height)) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.Signer == input.Signer + || (this.Signer != null && this.Signer.Equals(input.Signer)) + ) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && (this.Width == input.Width || this.Width.Equals(input.Width)) + && (this.X == input.X || this.X.Equals(input.X)) + && (this.Y == input.Y || this.Y.Equals(input.Y)) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Page == input.Page || (this.Page != null && this.Page.Equals(input.Page))); } /// @@ -351,7 +337,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -369,75 +357,107 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "document_index", - Property = "DocumentIndex", - Type = "int", - Value = DocumentIndex, - }); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - }); - types.Add(new OpenApiType(){ - Name = "x", - Property = "X", - Type = "int", - Value = X, - }); - types.Add(new OpenApiType(){ - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "page", - Property = "Page", - Type = "int?", - Value = Page, - }); + types.Add( + new OpenApiType() + { + Name = "document_index", + Property = "DocumentIndex", + Type = "int", + Value = DocumentIndex, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + } + ); + types.Add( + new OpenApiType() + { + Name = "x", + Property = "X", + Type = "int", + Value = X, + } + ); + types.Add( + new OpenApiType() + { + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "page", + Property = "Page", + Type = "int?", + Value = Page, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs index 6bde5b7de..630c17372 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentCheckbox : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentCheckbox + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentCheckbox() { } + /// /// Initializes a new instance of the class. /// @@ -54,7 +59,21 @@ protected SubFormFieldsPerDocumentCheckbox() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentCheckbox(string type = @"checkbox", string group = default(string), bool isChecked = default(bool), int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentCheckbox( + string type = @"checkbox", + string group = default(string), + bool isChecked = default(bool), + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -66,11 +85,13 @@ protected SubFormFieldsPerDocumentCheckbox() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentCheckbox and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentCheckbox and cannot be null" + ); } this.Type = type; this.IsChecked = isChecked; @@ -87,7 +108,9 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentCheckbox"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentCheckbox" + ); } return obj; @@ -99,7 +122,6 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) /// A yes/no checkbox. Use the `SubFormFieldsPerDocumentCheckbox` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// `true` for checking the checkbox field by default, otherwise `false`. @@ -107,7 +129,6 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) /// `true` for checking the checkbox field by default, otherwise `false`. [DataMember(Name = "is_checked", IsRequired = true, EmitDefaultValue = true)] public bool IsChecked { get; set; } - /// /// String referencing group defined in `form_field_groups` parameter. @@ -115,7 +136,6 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) /// String referencing group defined in `form_field_groups` parameter. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } - /// /// Returns the string presentation of the object @@ -139,7 +159,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -163,20 +186,14 @@ public bool Equals(SubFormFieldsPerDocumentCheckbox input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.IsChecked == input.IsChecked || - this.IsChecked.Equals(input.IsChecked) - ) && base.Equals(input) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && (this.IsChecked == input.IsChecked || this.IsChecked.Equals(input.IsChecked)) + && base.Equals(input) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) ); } @@ -207,7 +224,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -229,27 +248,35 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "is_checked", - Property = "IsChecked", - Type = "bool", - Value = IsChecked, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_checked", + Property = "IsChecked", + Type = "bool", + Value = IsChecked, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs index 3e4b9e569..7c2a3b2a5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentCheckboxMerge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentCheckboxMerge : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentCheckboxMerge + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentCheckboxMerge() { } + /// /// Initializes a new instance of the class. /// @@ -52,7 +57,19 @@ protected SubFormFieldsPerDocumentCheckboxMerge() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentCheckboxMerge(string type = @"checkbox-merge", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentCheckboxMerge( + string type = @"checkbox-merge", + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -64,11 +81,13 @@ protected SubFormFieldsPerDocumentCheckboxMerge() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentCheckboxMerge and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentCheckboxMerge and cannot be null" + ); } this.Type = type; } @@ -79,11 +98,15 @@ protected SubFormFieldsPerDocumentCheckboxMerge() { } /// String of JSON data representing target object public static SubFormFieldsPerDocumentCheckboxMerge Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentCheckboxMerge"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentCheckboxMerge" + ); } return obj; @@ -95,7 +118,6 @@ public static SubFormFieldsPerDocumentCheckboxMerge Init(string jsonData) /// A checkbox field that has default value set using pre-filled data. Use the `SubFormFieldsPerDocumentCheckboxMerge` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -117,7 +139,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -141,12 +166,8 @@ public bool Equals(SubFormFieldsPerDocumentCheckboxMerge input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -171,7 +192,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -193,15 +216,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs index c317ee776..98cba1033 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,11 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentDateSigned")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentDateSigned : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentDateSigned + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Font family for the field. @@ -134,21 +138,22 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16 + NotoSanThaiMerged = 16, } - /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentDateSigned() { } + /// /// Initializes a new instance of the class. /// @@ -165,7 +170,21 @@ protected SubFormFieldsPerDocumentDateSigned() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentDateSigned(string type = @"date_signed", FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentDateSigned( + string type = @"date_signed", + FontFamilyEnum? fontFamily = default(FontFamilyEnum?), + int fontSize = 12, + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -177,11 +196,13 @@ protected SubFormFieldsPerDocumentDateSigned() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentDateSigned and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentDateSigned and cannot be null" + ); } this.Type = type; this.FontFamily = fontFamily; @@ -198,7 +219,9 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentDateSigned"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentDateSigned" + ); } return obj; @@ -210,7 +233,6 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) /// A date. Use the `SubFormFieldsPerDocumentDateSigned` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -218,7 +240,6 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object @@ -242,7 +263,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -266,20 +290,12 @@ public bool Equals(SubFormFieldsPerDocumentDateSigned input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.FontFamily == input.FontFamily || - this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && - ( - this.FontSize == input.FontSize || - this.FontSize.Equals(input.FontSize) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) + && base.Equals(input) + && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); } /// @@ -306,7 +322,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -328,27 +346,35 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); - types.Add(new OpenApiType(){ - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs index 088afa90e..8328ee6e9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,11 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentDropdown")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentDropdown : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentDropdown + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Font family for the field. @@ -134,21 +138,22 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16 + NotoSanThaiMerged = 16, } - /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentDropdown() { } + /// /// Initializes a new instance of the class. /// @@ -167,7 +172,23 @@ protected SubFormFieldsPerDocumentDropdown() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentDropdown(string type = @"dropdown", List options = default(List), string content = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentDropdown( + string type = @"dropdown", + List options = default(List), + string content = default(string), + FontFamilyEnum? fontFamily = default(FontFamilyEnum?), + int fontSize = 12, + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -179,17 +200,21 @@ protected SubFormFieldsPerDocumentDropdown() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentDropdown and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentDropdown and cannot be null" + ); } this.Type = type; // to ensure "options" is required (not null) if (options == null) { - throw new ArgumentNullException("options is a required property for SubFormFieldsPerDocumentDropdown and cannot be null"); + throw new ArgumentNullException( + "options is a required property for SubFormFieldsPerDocumentDropdown and cannot be null" + ); } this.Options = options; this.Content = content; @@ -207,7 +232,9 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentDropdown"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentDropdown" + ); } return obj; @@ -219,7 +246,6 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// An input field for dropdowns. Use the `SubFormFieldsPerDocumentDropdown` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Array of string values representing dropdown values. @@ -227,7 +253,6 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// Array of string values representing dropdown values. [DataMember(Name = "options", IsRequired = true, EmitDefaultValue = true)] public List Options { get; set; } - /// /// Selected value in `options` array. Value must exist in array. @@ -235,7 +260,6 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// Selected value in `options` array. Value must exist in array. [DataMember(Name = "content", EmitDefaultValue = true)] public string Content { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -243,7 +267,6 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object @@ -269,7 +292,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -293,31 +319,24 @@ public bool Equals(SubFormFieldsPerDocumentDropdown input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Options == input.Options || - this.Options != null && - input.Options != null && - this.Options.SequenceEqual(input.Options) - ) && base.Equals(input) && - ( - this.Content == input.Content || - (this.Content != null && - this.Content.Equals(input.Content)) - ) && base.Equals(input) && - ( - this.FontFamily == input.FontFamily || - this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && - ( - this.FontSize == input.FontSize || - this.FontSize.Equals(input.FontSize) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Options == input.Options + || this.Options != null + && input.Options != null + && this.Options.SequenceEqual(input.Options) + ) + && base.Equals(input) + && ( + this.Content == input.Content + || (this.Content != null && this.Content.Equals(input.Content)) + ) + && base.Equals(input) + && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) + && base.Equals(input) + && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); } /// @@ -352,7 +371,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -374,39 +395,53 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "options", - Property = "Options", - Type = "List", - Value = Options, - }); - types.Add(new OpenApiType(){ - Name = "content", - Property = "Content", - Type = "string", - Value = Content, - }); - types.Add(new OpenApiType(){ - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); - types.Add(new OpenApiType(){ - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "options", + Property = "Options", + Type = "List", + Value = Options, + } + ); + types.Add( + new OpenApiType() + { + Name = "content", + Property = "Content", + Type = "string", + Value = Content, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs index 84b4ad0d7..311174c1e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -126,7 +126,6 @@ public enum SubFormFieldsPerDocumentFontEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16 + NotoSanThaiMerged = 16, } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs index 57e7080ef..2508424e0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,11 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentHyperlink")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentHyperlink : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentHyperlink + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Font family for the field. @@ -134,21 +138,22 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16 + NotoSanThaiMerged = 16, } - /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentHyperlink() { } + /// /// Initializes a new instance of the class. /// @@ -167,7 +172,23 @@ protected SubFormFieldsPerDocumentHyperlink() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentHyperlink(string type = @"hyperlink", string content = default(string), string contentUrl = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentHyperlink( + string type = @"hyperlink", + string content = default(string), + string contentUrl = default(string), + FontFamilyEnum? fontFamily = default(FontFamilyEnum?), + int fontSize = 12, + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -179,23 +200,29 @@ protected SubFormFieldsPerDocumentHyperlink() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null" + ); } this.Type = type; // to ensure "content" is required (not null) if (content == null) { - throw new ArgumentNullException("content is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null"); + throw new ArgumentNullException( + "content is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null" + ); } this.Content = content; // to ensure "contentUrl" is required (not null) if (contentUrl == null) { - throw new ArgumentNullException("contentUrl is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null"); + throw new ArgumentNullException( + "contentUrl is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null" + ); } this.ContentUrl = contentUrl; this.FontFamily = fontFamily; @@ -212,7 +239,9 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentHyperlink"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentHyperlink" + ); } return obj; @@ -224,7 +253,6 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// A hyperlink field. Use the `SubFormFieldsPerDocumentHyperlink` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Link Text. @@ -232,7 +260,6 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// Link Text. [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] public string Content { get; set; } - /// /// Link URL. @@ -240,7 +267,6 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// Link URL. [DataMember(Name = "content_url", IsRequired = true, EmitDefaultValue = true)] public string ContentUrl { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -248,7 +274,6 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object @@ -274,7 +299,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -298,30 +326,22 @@ public bool Equals(SubFormFieldsPerDocumentHyperlink input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Content == input.Content || - (this.Content != null && - this.Content.Equals(input.Content)) - ) && base.Equals(input) && - ( - this.ContentUrl == input.ContentUrl || - (this.ContentUrl != null && - this.ContentUrl.Equals(input.ContentUrl)) - ) && base.Equals(input) && - ( - this.FontFamily == input.FontFamily || - this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && - ( - this.FontSize == input.FontSize || - this.FontSize.Equals(input.FontSize) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Content == input.Content + || (this.Content != null && this.Content.Equals(input.Content)) + ) + && base.Equals(input) + && ( + this.ContentUrl == input.ContentUrl + || (this.ContentUrl != null && this.ContentUrl.Equals(input.ContentUrl)) + ) + && base.Equals(input) + && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) + && base.Equals(input) + && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); } /// @@ -356,7 +376,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -378,39 +400,53 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "content", - Property = "Content", - Type = "string", - Value = Content, - }); - types.Add(new OpenApiType(){ - Name = "content_url", - Property = "ContentUrl", - Type = "string", - Value = ContentUrl, - }); - types.Add(new OpenApiType(){ - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); - types.Add(new OpenApiType(){ - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "content", + Property = "Content", + Type = "string", + Value = Content, + } + ); + types.Add( + new OpenApiType() + { + Name = "content_url", + Property = "ContentUrl", + Type = "string", + Value = ContentUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs index 6cb01dc29..5ef52e724 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentInitials")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentInitials : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentInitials + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentInitials() { } + /// /// Initializes a new instance of the class. /// @@ -52,7 +57,19 @@ protected SubFormFieldsPerDocumentInitials() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentInitials(string type = @"initials", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentInitials( + string type = @"initials", + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -64,11 +81,13 @@ protected SubFormFieldsPerDocumentInitials() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentInitials and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentInitials and cannot be null" + ); } this.Type = type; } @@ -83,7 +102,9 @@ public static SubFormFieldsPerDocumentInitials Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentInitials"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentInitials" + ); } return obj; @@ -95,7 +116,6 @@ public static SubFormFieldsPerDocumentInitials Init(string jsonData) /// An input field for initials. Use the `SubFormFieldsPerDocumentInitials` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -117,7 +137,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -141,12 +164,8 @@ public bool Equals(SubFormFieldsPerDocumentInitials input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -171,7 +190,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -193,15 +214,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs index 8388b0554..a38ca54bc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentRadio")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentRadio : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentRadio + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentRadio() { } + /// /// Initializes a new instance of the class. /// @@ -54,7 +59,21 @@ protected SubFormFieldsPerDocumentRadio() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentRadio(string type = @"radio", string group = default(string), bool isChecked = default(bool), int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentRadio( + string type = @"radio", + string group = default(string), + bool isChecked = default(bool), + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -66,17 +85,21 @@ protected SubFormFieldsPerDocumentRadio() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentRadio and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentRadio and cannot be null" + ); } this.Type = type; // to ensure "group" is required (not null) if (group == null) { - throw new ArgumentNullException("group is a required property for SubFormFieldsPerDocumentRadio and cannot be null"); + throw new ArgumentNullException( + "group is a required property for SubFormFieldsPerDocumentRadio and cannot be null" + ); } this.Group = group; this.IsChecked = isChecked; @@ -92,7 +115,9 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentRadio"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentRadio" + ); } return obj; @@ -104,7 +129,6 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) /// An input field for radios. Use the `SubFormFieldsPerDocumentRadio` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// String referencing group defined in `form_field_groups` parameter. @@ -112,7 +136,6 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) /// String referencing group defined in `form_field_groups` parameter. [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] public string Group { get; set; } - /// /// `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. @@ -120,7 +143,6 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) /// `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. [DataMember(Name = "is_checked", IsRequired = true, EmitDefaultValue = true)] public bool IsChecked { get; set; } - /// /// Returns the string presentation of the object @@ -144,7 +166,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -168,21 +193,15 @@ public bool Equals(SubFormFieldsPerDocumentRadio input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && base.Equals(input) && - ( - this.IsChecked == input.IsChecked || - this.IsChecked.Equals(input.IsChecked) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) + ) + && base.Equals(input) + && (this.IsChecked == input.IsChecked || this.IsChecked.Equals(input.IsChecked)); } /// @@ -212,7 +231,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -234,27 +255,35 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); - types.Add(new OpenApiType(){ - Name = "is_checked", - Property = "IsChecked", - Type = "bool", - Value = IsChecked, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_checked", + Property = "IsChecked", + Type = "bool", + Value = IsChecked, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs index 366776a6f..d2fa137ec 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentSignature")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentSignature : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentSignature + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentSignature() { } + /// /// Initializes a new instance of the class. /// @@ -52,7 +57,19 @@ protected SubFormFieldsPerDocumentSignature() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentSignature(string type = @"signature", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentSignature( + string type = @"signature", + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -64,11 +81,13 @@ protected SubFormFieldsPerDocumentSignature() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentSignature and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentSignature and cannot be null" + ); } this.Type = type; } @@ -83,7 +102,9 @@ public static SubFormFieldsPerDocumentSignature Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentSignature"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentSignature" + ); } return obj; @@ -95,7 +116,6 @@ public static SubFormFieldsPerDocumentSignature Init(string jsonData) /// A signature input field. Use the `SubFormFieldsPerDocumentSignature` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -117,7 +137,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -141,12 +164,8 @@ public bool Equals(SubFormFieldsPerDocumentSignature input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -171,7 +190,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -193,15 +214,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs index 1dafc9d1c..02cfd184e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,11 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentText : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentText + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. **NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. @@ -98,16 +102,16 @@ public enum ValidationTypeEnum /// Enum CustomRegex for value: custom_regex /// [EnumMember(Value = "custom_regex")] - CustomRegex = 10 + CustomRegex = 10, } - /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. **NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. **NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. [DataMember(Name = "validation_type", EmitDefaultValue = true)] public ValidationTypeEnum? ValidationType { get; set; } + /// /// Font family for the field. /// @@ -209,21 +213,22 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16 + NotoSanThaiMerged = 16, } - /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentText() { } + /// /// Initializes a new instance of the class. /// @@ -248,7 +253,29 @@ protected SubFormFieldsPerDocumentText() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentText(string type = @"text", string placeholder = default(string), string autoFillType = default(string), string linkId = default(string), bool masked = default(bool), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string validationCustomRegex = default(string), string validationCustomRegexFormatLabel = default(string), string content = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentText( + string type = @"text", + string placeholder = default(string), + string autoFillType = default(string), + string linkId = default(string), + bool masked = default(bool), + ValidationTypeEnum? validationType = default(ValidationTypeEnum?), + string validationCustomRegex = default(string), + string validationCustomRegexFormatLabel = default(string), + string content = default(string), + FontFamilyEnum? fontFamily = default(FontFamilyEnum?), + int fontSize = 12, + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -260,11 +287,13 @@ protected SubFormFieldsPerDocumentText() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentText and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentText and cannot be null" + ); } this.Type = type; this.Placeholder = placeholder; @@ -289,7 +318,9 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentText"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentText" + ); } return obj; @@ -301,7 +332,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// A text input field. Use the `SubFormFieldsPerDocumentText` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Placeholder value for text field. @@ -309,7 +339,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Placeholder value for text field. [DataMember(Name = "placeholder", EmitDefaultValue = true)] public string Placeholder { get; set; } - /// /// Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. @@ -317,7 +346,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. [DataMember(Name = "auto_fill_type", EmitDefaultValue = true)] public string AutoFillType { get; set; } - /// /// Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. @@ -325,7 +353,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. [DataMember(Name = "link_id", EmitDefaultValue = true)] public string LinkId { get; set; } - /// /// Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. @@ -333,21 +360,18 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. [DataMember(Name = "masked", EmitDefaultValue = true)] public bool Masked { get; set; } - /// /// Gets or Sets ValidationCustomRegex /// [DataMember(Name = "validation_custom_regex", EmitDefaultValue = true)] public string ValidationCustomRegex { get; set; } - /// /// Gets or Sets ValidationCustomRegexFormatLabel /// [DataMember(Name = "validation_custom_regex_format_label", EmitDefaultValue = true)] public string ValidationCustomRegexFormatLabel { get; set; } - /// /// Content of a `me_now` text field @@ -355,7 +379,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Content of a `me_now` text field [DataMember(Name = "content", EmitDefaultValue = true)] public string Content { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -363,7 +386,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object @@ -381,7 +403,9 @@ public override string ToString() sb.Append(" Masked: ").Append(Masked).Append("\n"); sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); sb.Append(" ValidationCustomRegex: ").Append(ValidationCustomRegex).Append("\n"); - sb.Append(" ValidationCustomRegexFormatLabel: ").Append(ValidationCustomRegexFormatLabel).Append("\n"); + sb.Append(" ValidationCustomRegexFormatLabel: ") + .Append(ValidationCustomRegexFormatLabel) + .Append("\n"); sb.Append(" Content: ").Append(Content).Append("\n"); sb.Append(" FontFamily: ").Append(FontFamily).Append("\n"); sb.Append(" FontSize: ").Append(FontSize).Append("\n"); @@ -395,7 +419,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -419,58 +446,57 @@ public bool Equals(SubFormFieldsPerDocumentText input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Placeholder == input.Placeholder || - (this.Placeholder != null && - this.Placeholder.Equals(input.Placeholder)) - ) && base.Equals(input) && - ( - this.AutoFillType == input.AutoFillType || - (this.AutoFillType != null && - this.AutoFillType.Equals(input.AutoFillType)) - ) && base.Equals(input) && - ( - this.LinkId == input.LinkId || - (this.LinkId != null && - this.LinkId.Equals(input.LinkId)) - ) && base.Equals(input) && - ( - this.Masked == input.Masked || - this.Masked.Equals(input.Masked) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - this.ValidationType.Equals(input.ValidationType) - ) && base.Equals(input) && - ( - this.ValidationCustomRegex == input.ValidationCustomRegex || - (this.ValidationCustomRegex != null && - this.ValidationCustomRegex.Equals(input.ValidationCustomRegex)) - ) && base.Equals(input) && - ( - this.ValidationCustomRegexFormatLabel == input.ValidationCustomRegexFormatLabel || - (this.ValidationCustomRegexFormatLabel != null && - this.ValidationCustomRegexFormatLabel.Equals(input.ValidationCustomRegexFormatLabel)) - ) && base.Equals(input) && - ( - this.Content == input.Content || - (this.Content != null && - this.Content.Equals(input.Content)) - ) && base.Equals(input) && - ( - this.FontFamily == input.FontFamily || - this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && - ( - this.FontSize == input.FontSize || - this.FontSize.Equals(input.FontSize) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.Placeholder == input.Placeholder + || (this.Placeholder != null && this.Placeholder.Equals(input.Placeholder)) + ) + && base.Equals(input) + && ( + this.AutoFillType == input.AutoFillType + || (this.AutoFillType != null && this.AutoFillType.Equals(input.AutoFillType)) + ) + && base.Equals(input) + && ( + this.LinkId == input.LinkId + || (this.LinkId != null && this.LinkId.Equals(input.LinkId)) + ) + && base.Equals(input) + && (this.Masked == input.Masked || this.Masked.Equals(input.Masked)) + && base.Equals(input) + && ( + this.ValidationType == input.ValidationType + || this.ValidationType.Equals(input.ValidationType) + ) + && base.Equals(input) + && ( + this.ValidationCustomRegex == input.ValidationCustomRegex + || ( + this.ValidationCustomRegex != null + && this.ValidationCustomRegex.Equals(input.ValidationCustomRegex) + ) + ) + && base.Equals(input) + && ( + this.ValidationCustomRegexFormatLabel == input.ValidationCustomRegexFormatLabel + || ( + this.ValidationCustomRegexFormatLabel != null + && this.ValidationCustomRegexFormatLabel.Equals( + input.ValidationCustomRegexFormatLabel + ) + ) + ) + && base.Equals(input) + && ( + this.Content == input.Content + || (this.Content != null && this.Content.Equals(input.Content)) + ) + && base.Equals(input) + && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) + && base.Equals(input) + && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); } /// @@ -506,7 +532,8 @@ public override int GetHashCode() } if (this.ValidationCustomRegexFormatLabel != null) { - hashCode = (hashCode * 59) + this.ValidationCustomRegexFormatLabel.GetHashCode(); + hashCode = + (hashCode * 59) + this.ValidationCustomRegexFormatLabel.GetHashCode(); } if (this.Content != null) { @@ -523,7 +550,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -545,75 +574,107 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "placeholder", - Property = "Placeholder", - Type = "string", - Value = Placeholder, - }); - types.Add(new OpenApiType(){ - Name = "auto_fill_type", - Property = "AutoFillType", - Type = "string", - Value = AutoFillType, - }); - types.Add(new OpenApiType(){ - Name = "link_id", - Property = "LinkId", - Type = "string", - Value = LinkId, - }); - types.Add(new OpenApiType(){ - Name = "masked", - Property = "Masked", - Type = "bool", - Value = Masked, - }); - types.Add(new OpenApiType(){ - Name = "validation_type", - Property = "ValidationType", - Type = "string", - Value = ValidationType, - }); - types.Add(new OpenApiType(){ - Name = "validation_custom_regex", - Property = "ValidationCustomRegex", - Type = "string", - Value = ValidationCustomRegex, - }); - types.Add(new OpenApiType(){ - Name = "validation_custom_regex_format_label", - Property = "ValidationCustomRegexFormatLabel", - Type = "string", - Value = ValidationCustomRegexFormatLabel, - }); - types.Add(new OpenApiType(){ - Name = "content", - Property = "Content", - Type = "string", - Value = Content, - }); - types.Add(new OpenApiType(){ - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); - types.Add(new OpenApiType(){ - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "placeholder", + Property = "Placeholder", + Type = "string", + Value = Placeholder, + } + ); + types.Add( + new OpenApiType() + { + Name = "auto_fill_type", + Property = "AutoFillType", + Type = "string", + Value = AutoFillType, + } + ); + types.Add( + new OpenApiType() + { + Name = "link_id", + Property = "LinkId", + Type = "string", + Value = LinkId, + } + ); + types.Add( + new OpenApiType() + { + Name = "masked", + Property = "Masked", + Type = "bool", + Value = Masked, + } + ); + types.Add( + new OpenApiType() + { + Name = "validation_type", + Property = "ValidationType", + Type = "string", + Value = ValidationType, + } + ); + types.Add( + new OpenApiType() + { + Name = "validation_custom_regex", + Property = "ValidationCustomRegex", + Type = "string", + Value = ValidationCustomRegex, + } + ); + types.Add( + new OpenApiType() + { + Name = "validation_custom_regex_format_label", + Property = "ValidationCustomRegexFormatLabel", + Type = "string", + Value = ValidationCustomRegexFormatLabel, + } + ); + types.Add( + new OpenApiType() + { + Name = "content", + Property = "Content", + Type = "string", + Value = Content, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs index 10010bae8..4d46a6790 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,11 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentTextMerge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentTextMerge : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class SubFormFieldsPerDocumentTextMerge + : SubFormFieldsPerDocumentBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Font family for the field. @@ -134,21 +138,22 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16 + NotoSanThaiMerged = 16, } - /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentTextMerge() { } + /// /// Initializes a new instance of the class. /// @@ -165,7 +170,21 @@ protected SubFormFieldsPerDocumentTextMerge() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentTextMerge(string type = @"text-merge", FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) + public SubFormFieldsPerDocumentTextMerge( + string type = @"text-merge", + FontFamilyEnum? fontFamily = default(FontFamilyEnum?), + int fontSize = 12, + int documentIndex = default(int), + string apiId = default(string), + int height = default(int), + string name = default(string), + int? page = default(int?), + bool required = default(bool), + Object signer = null, + int width = default(int), + int x = default(int), + int y = default(int) + ) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -177,11 +196,13 @@ protected SubFormFieldsPerDocumentTextMerge() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentTextMerge and cannot be null"); + throw new ArgumentNullException( + "type is a required property for SubFormFieldsPerDocumentTextMerge and cannot be null" + ); } this.Type = type; this.FontFamily = fontFamily; @@ -198,7 +219,9 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentTextMerge"); + throw new Exception( + "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentTextMerge" + ); } return obj; @@ -210,7 +233,6 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) /// A text field that has default text set using pre-filled data. Use the `SubFormFieldsPerDocumentTextMerge` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -218,7 +240,6 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object @@ -242,7 +263,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -266,20 +290,12 @@ public bool Equals(SubFormFieldsPerDocumentTextMerge input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.FontFamily == input.FontFamily || - this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && - ( - this.FontSize == input.FontSize || - this.FontSize.Equals(input.FontSize) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) + && base.Equals(input) + && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); } /// @@ -306,7 +322,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -328,27 +346,35 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); - types.Add(new OpenApiType(){ - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); + types.Add( + new OpenApiType() + { + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs index 4a45ad866..b0d188af0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -90,7 +90,6 @@ public enum SubFormFieldsPerDocumentTypeEnum /// Enum TextMerge for value: text-merge /// [EnumMember(Value = "text-merge")] - TextMerge = 10 + TextMerge = 10, } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs index c47d6ac3a..b79074f47 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -50,21 +50,22 @@ public enum TypeEnum /// Enum Checkbox for value: checkbox /// [EnumMember(Value = "checkbox")] - Checkbox = 2 + Checkbox = 2, } - /// /// The type of merge field. /// /// The type of merge field. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public TypeEnum Type { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubMergeField() { } + /// /// Initializes a new instance of the class. /// @@ -72,11 +73,12 @@ protected SubMergeField() { } /// The type of merge field. (required). public SubMergeField(string name = default(string), TypeEnum type = default(TypeEnum)) { - // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SubMergeField and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SubMergeField and cannot be null" + ); } this.Name = name; this.Type = type; @@ -104,7 +106,6 @@ public static SubMergeField Init(string jsonData) /// The name of the merge field. Must be unique. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object @@ -126,7 +127,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -150,16 +154,8 @@ public bool Equals(SubMergeField input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ); + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Type == input.Type || this.Type.Equals(input.Type)); } /// @@ -185,7 +181,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -193,21 +191,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs index 891963667..c5d57fa5a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -82,10 +82,10 @@ public enum ScopesEnum ApiAppAccess = 7, /// - /// Enum Empty for value: + /// Enum Empty for value: /// [EnumMember(Value = "")] - Empty = 8 + Empty = 8, } /// @@ -93,14 +93,17 @@ public enum ScopesEnum /// [JsonConstructorAttribute] protected SubOAuth() { } + /// /// Initializes a new instance of the class. /// /// The callback URL to be used for OAuth flows. (Required if `oauth[scopes]` is provided). /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided).. - public SubOAuth(string callbackUrl = default(string), List scopes = default(List)) + public SubOAuth( + string callbackUrl = default(string), + List scopes = default(List) + ) { - this.CallbackUrl = callbackUrl; this.Scopes = scopes; } @@ -127,7 +130,6 @@ public static SubOAuth Init(string jsonData) /// The callback URL to be used for OAuth flows. (Required if `oauth[scopes]` is provided) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). @@ -135,7 +137,6 @@ public static SubOAuth Init(string jsonData) /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). [DataMember(Name = "scopes", EmitDefaultValue = true)] public List Scopes { get; set; } - /// /// Returns the string presentation of the object @@ -157,7 +158,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -181,17 +185,15 @@ public bool Equals(SubOAuth input) { return false; } - return - ( - this.CallbackUrl == input.CallbackUrl || - (this.CallbackUrl != null && - this.CallbackUrl.Equals(input.CallbackUrl)) - ) && - ( - this.Scopes == input.Scopes || - this.Scopes != null && - input.Scopes != null && - this.Scopes.SequenceEqual(input.Scopes) + return ( + this.CallbackUrl == input.CallbackUrl + || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) + ) + && ( + this.Scopes == input.Scopes + || this.Scopes != null + && input.Scopes != null + && this.Scopes.SequenceEqual(input.Scopes) ); } @@ -221,7 +223,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -229,21 +233,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - }); - types.Add(new OpenApiType(){ - Name = "scopes", - Property = "Scopes", - Type = "List", - Value = Scopes, - }); + types.Add( + new OpenApiType() + { + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "scopes", + Property = "Scopes", + Type = "List", + Value = Scopes, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs index 8e8e3fa40..04fcf6346 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class SubOptions : IEquatable, IValidatableObject /// [JsonConstructorAttribute] protected SubOptions() { } + /// /// Initializes a new instance of the class. /// /// Determines if signers can use \"Insert Everywhere\" when signing a document. (default to false). public SubOptions(bool canInsertEverywhere = false) { - this.CanInsertEverywhere = canInsertEverywhere; } @@ -70,7 +70,6 @@ public static SubOptions Init(string jsonData) /// Determines if signers can use \"Insert Everywhere\" when signing a document. [DataMember(Name = "can_insert_everywhere", EmitDefaultValue = true)] public bool CanInsertEverywhere { get; set; } - /// /// Returns the string presentation of the object @@ -91,7 +90,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -115,11 +117,10 @@ public bool Equals(SubOptions input) { return false; } - return - ( - this.CanInsertEverywhere == input.CanInsertEverywhere || - this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) - ); + return ( + this.CanInsertEverywhere == input.CanInsertEverywhere + || this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) + ); } /// @@ -141,7 +142,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -149,15 +152,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "can_insert_everywhere", - Property = "CanInsertEverywhere", - Type = "bool", - Value = CanInsertEverywhere, - }); + types.Add( + new OpenApiType() + { + Name = "can_insert_everywhere", + Property = "CanInsertEverywhere", + Type = "bool", + Value = CanInsertEverywhere, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs index ef20bc635..74571df93 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,32 +31,42 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSignatureRequestGroupedSigners")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSignatureRequestGroupedSigners : IEquatable, IValidatableObject + public partial class SubSignatureRequestGroupedSigners + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubSignatureRequestGroupedSigners() { } + /// /// Initializes a new instance of the class. /// /// The name of the group. (required). /// The order the group is required to sign in. Use this instead of Signer-level `order`.. /// Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. (required). - public SubSignatureRequestGroupedSigners(string group = default(string), int? order = default(int?), List signers = default(List)) + public SubSignatureRequestGroupedSigners( + string group = default(string), + int? order = default(int?), + List signers = default(List) + ) { - // to ensure "group" is required (not null) if (group == null) { - throw new ArgumentNullException("group is a required property for SubSignatureRequestGroupedSigners and cannot be null"); + throw new ArgumentNullException( + "group is a required property for SubSignatureRequestGroupedSigners and cannot be null" + ); } this.Group = group; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException("signers is a required property for SubSignatureRequestGroupedSigners and cannot be null"); + throw new ArgumentNullException( + "signers is a required property for SubSignatureRequestGroupedSigners and cannot be null" + ); } this.Signers = signers; this.Order = order; @@ -72,7 +82,9 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubSignatureRequestGroupedSigners"); + throw new Exception( + "Unable to deserialize JSON to instance of SubSignatureRequestGroupedSigners" + ); } return obj; @@ -84,7 +96,6 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) /// The name of the group. [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] public string Group { get; set; } - /// /// Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. @@ -92,7 +103,6 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) /// Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } - /// /// The order the group is required to sign in. Use this instead of Signer-level `order`. @@ -100,7 +110,6 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) /// The order the group is required to sign in. Use this instead of Signer-level `order`. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// Returns the string presentation of the object @@ -123,7 +132,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -147,22 +159,19 @@ public bool Equals(SubSignatureRequestGroupedSigners input) { return false; } - return - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) + return ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.Order == input.Order + || (this.Order != null && this.Order.Equals(input.Order)) ); } @@ -196,7 +205,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -204,27 +215,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - }); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs index f82ed3d33..555b1b771 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,9 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSignatureRequestSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSignatureRequestSigner : IEquatable, IValidatableObject + public partial class SubSignatureRequestSigner + : IEquatable, + IValidatableObject { /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). @@ -50,21 +52,22 @@ public enum SmsPhoneNumberTypeEnum /// Enum Delivery for value: delivery /// [EnumMember(Value = "delivery")] - Delivery = 2 + Delivery = 2, } - /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). [DataMember(Name = "sms_phone_number_type", EmitDefaultValue = true)] public SmsPhoneNumberTypeEnum? SmsPhoneNumberType { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubSignatureRequestSigner() { } + /// /// Initializes a new instance of the class. /// @@ -74,19 +77,29 @@ protected SubSignatureRequestSigner() { } /// The 4- to 12-character access code that will secure this signer's signature page.. /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher.. /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email).. - public SubSignatureRequestSigner(string name = default(string), string emailAddress = default(string), int? order = default(int?), string pin = default(string), string smsPhoneNumber = default(string), SmsPhoneNumberTypeEnum? smsPhoneNumberType = default(SmsPhoneNumberTypeEnum?)) + public SubSignatureRequestSigner( + string name = default(string), + string emailAddress = default(string), + int? order = default(int?), + string pin = default(string), + string smsPhoneNumber = default(string), + SmsPhoneNumberTypeEnum? smsPhoneNumberType = default(SmsPhoneNumberTypeEnum?) + ) { - // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SubSignatureRequestSigner and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SubSignatureRequestSigner and cannot be null" + ); } this.Name = name; // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException("emailAddress is a required property for SubSignatureRequestSigner and cannot be null"); + throw new ArgumentNullException( + "emailAddress is a required property for SubSignatureRequestSigner and cannot be null" + ); } this.EmailAddress = emailAddress; this.Order = order; @@ -105,7 +118,9 @@ public static SubSignatureRequestSigner Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubSignatureRequestSigner"); + throw new Exception( + "Unable to deserialize JSON to instance of SubSignatureRequestSigner" + ); } return obj; @@ -117,7 +132,6 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The email address of the signer. @@ -125,7 +139,6 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The email address of the signer. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The order the signer is required to sign in. @@ -133,7 +146,6 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The order the signer is required to sign in. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// The 4- to 12-character access code that will secure this signer's signature page. @@ -141,7 +153,6 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The 4- to 12-character access code that will secure this signer's signature page. [DataMember(Name = "pin", EmitDefaultValue = true)] public string Pin { get; set; } - /// /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. @@ -149,7 +160,6 @@ public static SubSignatureRequestSigner Init(string jsonData) /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } - /// /// Returns the string presentation of the object @@ -175,7 +185,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -199,35 +212,26 @@ public bool Equals(SubSignatureRequestSigner input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) - ) && - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - this.SmsPhoneNumber == input.SmsPhoneNumber || - (this.SmsPhoneNumber != null && - this.SmsPhoneNumber.Equals(input.SmsPhoneNumber)) - ) && - ( - this.SmsPhoneNumberType == input.SmsPhoneNumberType || - this.SmsPhoneNumberType.Equals(input.SmsPhoneNumberType) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && ( + this.Order == input.Order + || (this.Order != null && this.Order.Equals(input.Order)) + ) + && (this.Pin == input.Pin || (this.Pin != null && this.Pin.Equals(input.Pin))) + && ( + this.SmsPhoneNumber == input.SmsPhoneNumber + || ( + this.SmsPhoneNumber != null + && this.SmsPhoneNumber.Equals(input.SmsPhoneNumber) + ) + ) + && ( + this.SmsPhoneNumberType == input.SmsPhoneNumberType + || this.SmsPhoneNumberType.Equals(input.SmsPhoneNumberType) ); } @@ -270,18 +274,26 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Pin (string) maxLength if (this.Pin != null && this.Pin.Length > 12) { - yield return new ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); + yield return new ValidationResult( + "Invalid value for Pin, length must be less than 12.", + new[] { "Pin" } + ); } // Pin (string) minLength if (this.Pin != null && this.Pin.Length < 4) { - yield return new ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); + yield return new ValidationResult( + "Invalid value for Pin, length must be greater than 4.", + new[] { "Pin" } + ); } yield break; @@ -290,45 +302,62 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - }); - types.Add(new OpenApiType(){ - Name = "pin", - Property = "Pin", - Type = "string", - Value = Pin, - }); - types.Add(new OpenApiType(){ - Name = "sms_phone_number", - Property = "SmsPhoneNumber", - Type = "string", - Value = SmsPhoneNumber, - }); - types.Add(new OpenApiType(){ - Name = "sms_phone_number_type", - Property = "SmsPhoneNumberType", - Type = "string", - Value = SmsPhoneNumberType, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + } + ); + types.Add( + new OpenApiType() + { + Name = "pin", + Property = "Pin", + Type = "string", + Value = Pin, + } + ); + types.Add( + new OpenApiType() + { + Name = "sms_phone_number", + Property = "SmsPhoneNumber", + Type = "string", + Value = SmsPhoneNumber, + } + ); + types.Add( + new OpenApiType() + { + Name = "sms_phone_number_type", + Property = "SmsPhoneNumberType", + Type = "string", + Value = SmsPhoneNumberType, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs index c6c7014e3..18ba5c9d0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,9 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSignatureRequestTemplateSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSignatureRequestTemplateSigner : IEquatable, IValidatableObject + public partial class SubSignatureRequestTemplateSigner + : IEquatable, + IValidatableObject { /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). @@ -50,21 +52,22 @@ public enum SmsPhoneNumberTypeEnum /// Enum Delivery for value: delivery /// [EnumMember(Value = "delivery")] - Delivery = 2 + Delivery = 2, } - /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). [DataMember(Name = "sms_phone_number_type", EmitDefaultValue = true)] public SmsPhoneNumberTypeEnum? SmsPhoneNumberType { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubSignatureRequestTemplateSigner() { } + /// /// Initializes a new instance of the class. /// @@ -74,25 +77,37 @@ protected SubSignatureRequestTemplateSigner() { } /// The 4- to 12-character access code that will secure this signer's signature page.. /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher.. /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email).. - public SubSignatureRequestTemplateSigner(string role = default(string), string name = default(string), string emailAddress = default(string), string pin = default(string), string smsPhoneNumber = default(string), SmsPhoneNumberTypeEnum? smsPhoneNumberType = default(SmsPhoneNumberTypeEnum?)) + public SubSignatureRequestTemplateSigner( + string role = default(string), + string name = default(string), + string emailAddress = default(string), + string pin = default(string), + string smsPhoneNumber = default(string), + SmsPhoneNumberTypeEnum? smsPhoneNumberType = default(SmsPhoneNumberTypeEnum?) + ) { - // to ensure "role" is required (not null) if (role == null) { - throw new ArgumentNullException("role is a required property for SubSignatureRequestTemplateSigner and cannot be null"); + throw new ArgumentNullException( + "role is a required property for SubSignatureRequestTemplateSigner and cannot be null" + ); } this.Role = role; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SubSignatureRequestTemplateSigner and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SubSignatureRequestTemplateSigner and cannot be null" + ); } this.Name = name; // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException("emailAddress is a required property for SubSignatureRequestTemplateSigner and cannot be null"); + throw new ArgumentNullException( + "emailAddress is a required property for SubSignatureRequestTemplateSigner and cannot be null" + ); } this.EmailAddress = emailAddress; this.Pin = pin; @@ -110,7 +125,9 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubSignatureRequestTemplateSigner"); + throw new Exception( + "Unable to deserialize JSON to instance of SubSignatureRequestTemplateSigner" + ); } return obj; @@ -122,7 +139,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// Must match an existing role in chosen Template(s). It's case-sensitive. [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } - /// /// The name of the signer. @@ -130,7 +146,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The email address of the signer. @@ -138,7 +153,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// The email address of the signer. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The 4- to 12-character access code that will secure this signer's signature page. @@ -146,7 +160,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// The 4- to 12-character access code that will secure this signer's signature page. [DataMember(Name = "pin", EmitDefaultValue = true)] public string Pin { get; set; } - /// /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. @@ -154,7 +167,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } - /// /// Returns the string presentation of the object @@ -180,7 +192,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -204,35 +219,23 @@ public bool Equals(SubSignatureRequestTemplateSigner input) { return false; } - return - ( - this.Role == input.Role || - (this.Role != null && - this.Role.Equals(input.Role)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - this.SmsPhoneNumber == input.SmsPhoneNumber || - (this.SmsPhoneNumber != null && - this.SmsPhoneNumber.Equals(input.SmsPhoneNumber)) - ) && - ( - this.SmsPhoneNumberType == input.SmsPhoneNumberType || - this.SmsPhoneNumberType.Equals(input.SmsPhoneNumberType) + return (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && (this.Pin == input.Pin || (this.Pin != null && this.Pin.Equals(input.Pin))) + && ( + this.SmsPhoneNumber == input.SmsPhoneNumber + || ( + this.SmsPhoneNumber != null + && this.SmsPhoneNumber.Equals(input.SmsPhoneNumber) + ) + ) + && ( + this.SmsPhoneNumberType == input.SmsPhoneNumberType + || this.SmsPhoneNumberType.Equals(input.SmsPhoneNumberType) ); } @@ -275,18 +278,26 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Pin (string) maxLength if (this.Pin != null && this.Pin.Length > 12) { - yield return new ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); + yield return new ValidationResult( + "Invalid value for Pin, length must be less than 12.", + new[] { "Pin" } + ); } // Pin (string) minLength if (this.Pin != null && this.Pin.Length < 4) { - yield return new ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); + yield return new ValidationResult( + "Invalid value for Pin, length must be greater than 4.", + new[] { "Pin" } + ); } yield break; @@ -295,45 +306,62 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "pin", - Property = "Pin", - Type = "string", - Value = Pin, - }); - types.Add(new OpenApiType(){ - Name = "sms_phone_number", - Property = "SmsPhoneNumber", - Type = "string", - Value = SmsPhoneNumber, - }); - types.Add(new OpenApiType(){ - Name = "sms_phone_number_type", - Property = "SmsPhoneNumberType", - Type = "string", - Value = SmsPhoneNumberType, - }); + types.Add( + new OpenApiType() + { + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "pin", + Property = "Pin", + Type = "string", + Value = Pin, + } + ); + types.Add( + new OpenApiType() + { + Name = "sms_phone_number", + Property = "SmsPhoneNumber", + Type = "string", + Value = SmsPhoneNumber, + } + ); + types.Add( + new OpenApiType() + { + Name = "sms_phone_number_type", + Property = "SmsPhoneNumberType", + Type = "string", + Value = SmsPhoneNumberType, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs index 81b37ad05..5ed1c128f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -62,21 +62,22 @@ public enum DefaultTypeEnum /// Enum Upload for value: upload /// [EnumMember(Value = "upload")] - Upload = 4 + Upload = 4, } - /// /// The default type shown (limited to the listed types) /// /// The default type shown (limited to the listed types) [DataMember(Name = "default_type", IsRequired = true, EmitDefaultValue = true)] public DefaultTypeEnum DefaultType { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubSigningOptions() { } + /// /// Initializes a new instance of the class. /// @@ -85,9 +86,14 @@ protected SubSigningOptions() { } /// Allows using a smartphone to email the signature (default to false). /// Allows typing the signature (default to false). /// Allows uploading the signature (default to false). - public SubSigningOptions(DefaultTypeEnum defaultType = default(DefaultTypeEnum), bool draw = false, bool phone = false, bool type = false, bool upload = false) + public SubSigningOptions( + DefaultTypeEnum defaultType = default(DefaultTypeEnum), + bool draw = false, + bool phone = false, + bool type = false, + bool upload = false + ) { - this.DefaultType = defaultType; this.Draw = draw; this.Phone = phone; @@ -117,7 +123,6 @@ public static SubSigningOptions Init(string jsonData) /// Allows drawing the signature [DataMember(Name = "draw", EmitDefaultValue = true)] public bool Draw { get; set; } - /// /// Allows using a smartphone to email the signature @@ -125,7 +130,6 @@ public static SubSigningOptions Init(string jsonData) /// Allows using a smartphone to email the signature [DataMember(Name = "phone", EmitDefaultValue = true)] public bool Phone { get; set; } - /// /// Allows typing the signature @@ -133,7 +137,6 @@ public static SubSigningOptions Init(string jsonData) /// Allows typing the signature [DataMember(Name = "type", EmitDefaultValue = true)] public bool Type { get; set; } - /// /// Allows uploading the signature @@ -141,7 +144,6 @@ public static SubSigningOptions Init(string jsonData) /// Allows uploading the signature [DataMember(Name = "upload", EmitDefaultValue = true)] public bool Upload { get; set; } - /// /// Returns the string presentation of the object @@ -166,7 +168,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -190,27 +195,14 @@ public bool Equals(SubSigningOptions input) { return false; } - return - ( - this.DefaultType == input.DefaultType || - this.DefaultType.Equals(input.DefaultType) - ) && - ( - this.Draw == input.Draw || - this.Draw.Equals(input.Draw) - ) && - ( - this.Phone == input.Phone || - this.Phone.Equals(input.Phone) - ) && - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ) && - ( - this.Upload == input.Upload || - this.Upload.Equals(input.Upload) - ); + return ( + this.DefaultType == input.DefaultType + || this.DefaultType.Equals(input.DefaultType) + ) + && (this.Draw == input.Draw || this.Draw.Equals(input.Draw)) + && (this.Phone == input.Phone || this.Phone.Equals(input.Phone)) + && (this.Type == input.Type || this.Type.Equals(input.Type)) + && (this.Upload == input.Upload || this.Upload.Equals(input.Upload)); } /// @@ -236,7 +228,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -244,39 +238,53 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "default_type", - Property = "DefaultType", - Type = "string", - Value = DefaultType, - }); - types.Add(new OpenApiType(){ - Name = "draw", - Property = "Draw", - Type = "bool", - Value = Draw, - }); - types.Add(new OpenApiType(){ - Name = "phone", - Property = "Phone", - Type = "bool", - Value = Phone, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "bool", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "upload", - Property = "Upload", - Type = "bool", - Value = Upload, - }); + types.Add( + new OpenApiType() + { + Name = "default_type", + Property = "DefaultType", + Type = "string", + Value = DefaultType, + } + ); + types.Add( + new OpenApiType() + { + Name = "draw", + Property = "Draw", + Type = "bool", + Value = Draw, + } + ); + types.Add( + new OpenApiType() + { + Name = "phone", + Property = "Phone", + Type = "bool", + Value = Phone, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "bool", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "upload", + Property = "Upload", + Type = "bool", + Value = Upload, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs index 4e662a311..37e554d1e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class SubTeamResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected SubTeamResponse() { } + /// /// Initializes a new instance of the class. /// @@ -45,7 +46,6 @@ protected SubTeamResponse() { } /// The name of a team. public SubTeamResponse(string teamId = default(string), string name = default(string)) { - this.TeamId = teamId; this.Name = name; } @@ -72,7 +72,6 @@ public static SubTeamResponse Init(string jsonData) /// The id of a team [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// The name of a team @@ -80,7 +79,6 @@ public static SubTeamResponse Init(string jsonData) /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +100,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,17 +127,11 @@ public bool Equals(SubTeamResponse input) { return false; } - return - ( - this.TeamId == input.TeamId || - (this.TeamId != null && - this.TeamId.Equals(input.TeamId)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); + return ( + this.TeamId == input.TeamId + || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); } /// @@ -165,7 +160,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +170,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); + types.Add( + new OpenApiType() + { + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs index a10e28c5f..27864d83d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class SubTemplateRole : IEquatable, IValidatable /// [JsonConstructorAttribute] protected SubTemplateRole() { } + /// /// Initializes a new instance of the class. /// @@ -45,7 +46,6 @@ protected SubTemplateRole() { } /// The order in which this signer role is required to sign.. public SubTemplateRole(string name = default(string), int? order = default(int?)) { - this.Name = name; this.Order = order; } @@ -72,7 +72,6 @@ public static SubTemplateRole Init(string jsonData) /// The role name of the signer that will be displayed when the template is used to create a signature request. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The order in which this signer role is required to sign. @@ -80,7 +79,6 @@ public static SubTemplateRole Init(string jsonData) /// The order in which this signer role is required to sign. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +100,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,16 +127,10 @@ public bool Equals(SubTemplateRole input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.Order == input.Order + || (this.Order != null && this.Order.Equals(input.Order)) ); } @@ -165,7 +160,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +170,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs index 8dd1243e4..867f19acc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,32 +31,42 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubUnclaimedDraftSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubUnclaimedDraftSigner : IEquatable, IValidatableObject + public partial class SubUnclaimedDraftSigner + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubUnclaimedDraftSigner() { } + /// /// Initializes a new instance of the class. /// /// The email address of the signer. (required). /// The name of the signer. (required). /// The order the signer is required to sign in.. - public SubUnclaimedDraftSigner(string emailAddress = default(string), string name = default(string), int? order = default(int?)) + public SubUnclaimedDraftSigner( + string emailAddress = default(string), + string name = default(string), + int? order = default(int?) + ) { - // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException("emailAddress is a required property for SubUnclaimedDraftSigner and cannot be null"); + throw new ArgumentNullException( + "emailAddress is a required property for SubUnclaimedDraftSigner and cannot be null" + ); } this.EmailAddress = emailAddress; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SubUnclaimedDraftSigner and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SubUnclaimedDraftSigner and cannot be null" + ); } this.Name = name; this.Order = order; @@ -72,7 +82,9 @@ public static SubUnclaimedDraftSigner Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubUnclaimedDraftSigner"); + throw new Exception( + "Unable to deserialize JSON to instance of SubUnclaimedDraftSigner" + ); } return obj; @@ -84,7 +96,6 @@ public static SubUnclaimedDraftSigner Init(string jsonData) /// The email address of the signer. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The name of the signer. @@ -92,7 +103,6 @@ public static SubUnclaimedDraftSigner Init(string jsonData) /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The order the signer is required to sign in. @@ -100,7 +110,6 @@ public static SubUnclaimedDraftSigner Init(string jsonData) /// The order the signer is required to sign in. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// Returns the string presentation of the object @@ -123,7 +132,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -147,21 +159,14 @@ public bool Equals(SubUnclaimedDraftSigner input) { return false; } - return - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Order == input.Order || - (this.Order != null && - this.Order.Equals(input.Order)) + return ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.Order == input.Order + || (this.Order != null && this.Order.Equals(input.Order)) ); } @@ -195,7 +200,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -203,27 +210,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - }); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs index 2d295102b..53da4ffae 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,38 +31,50 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubUnclaimedDraftTemplateSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubUnclaimedDraftTemplateSigner : IEquatable, IValidatableObject + public partial class SubUnclaimedDraftTemplateSigner + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubUnclaimedDraftTemplateSigner() { } + /// /// Initializes a new instance of the class. /// /// Must match an existing role in chosen Template(s). (required). /// The name of the signer filling the role of `role`. (required). /// The email address of the signer filling the role of `role`. (required). - public SubUnclaimedDraftTemplateSigner(string role = default(string), string name = default(string), string emailAddress = default(string)) + public SubUnclaimedDraftTemplateSigner( + string role = default(string), + string name = default(string), + string emailAddress = default(string) + ) { - // to ensure "role" is required (not null) if (role == null) { - throw new ArgumentNullException("role is a required property for SubUnclaimedDraftTemplateSigner and cannot be null"); + throw new ArgumentNullException( + "role is a required property for SubUnclaimedDraftTemplateSigner and cannot be null" + ); } this.Role = role; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for SubUnclaimedDraftTemplateSigner and cannot be null"); + throw new ArgumentNullException( + "name is a required property for SubUnclaimedDraftTemplateSigner and cannot be null" + ); } this.Name = name; // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException("emailAddress is a required property for SubUnclaimedDraftTemplateSigner and cannot be null"); + throw new ArgumentNullException( + "emailAddress is a required property for SubUnclaimedDraftTemplateSigner and cannot be null" + ); } this.EmailAddress = emailAddress; } @@ -77,7 +89,9 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubUnclaimedDraftTemplateSigner"); + throw new Exception( + "Unable to deserialize JSON to instance of SubUnclaimedDraftTemplateSigner" + ); } return obj; @@ -89,7 +103,6 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) /// Must match an existing role in chosen Template(s). [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } - /// /// The name of the signer filling the role of `role`. @@ -97,7 +110,6 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) /// The name of the signer filling the role of `role`. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The email address of the signer filling the role of `role`. @@ -105,7 +117,6 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) /// The email address of the signer filling the role of `role`. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object @@ -128,7 +139,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -152,21 +166,11 @@ public bool Equals(SubUnclaimedDraftTemplateSigner input) { return false; } - return - ( - this.Role == input.Role || - (this.Role != null && - this.Role.Equals(input.Role)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) + return (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -200,7 +204,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -208,27 +214,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); + types.Add( + new OpenApiType() + { + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs index 5a9571e5c..34d865cf2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,9 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubWhiteLabelingOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubWhiteLabelingOptions : IEquatable, IValidatableObject + public partial class SubWhiteLabelingOptions + : IEquatable, + IValidatableObject { /// /// Defines LegalVersion @@ -49,20 +51,21 @@ public enum LegalVersionEnum /// Enum Terms2 for value: terms2 /// [EnumMember(Value = "terms2")] - Terms2 = 2 + Terms2 = 2, } - /// /// Gets or Sets LegalVersion /// [DataMember(Name = "legal_version", EmitDefaultValue = true)] public LegalVersionEnum? LegalVersion { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubWhiteLabelingOptions() { } + /// /// Initializes a new instance of the class. /// @@ -81,9 +84,24 @@ protected SubWhiteLabelingOptions() { } /// textColor1 (default to "#808080"). /// textColor2 (default to "#FFFFFF"). /// Resets white labeling options to defaults. Only useful when updating an API App.. - public SubWhiteLabelingOptions(string headerBackgroundColor = @"#1A1A1A", LegalVersionEnum? legalVersion = LegalVersionEnum.Terms1, string linkColor = @"#00B3E6", string pageBackgroundColor = @"#F7F8F9", string primaryButtonColor = @"#00B3E6", string primaryButtonColorHover = @"#00B3E6", string primaryButtonTextColor = @"#FFFFFF", string primaryButtonTextColorHover = @"#FFFFFF", string secondaryButtonColor = @"#FFFFFF", string secondaryButtonColorHover = @"#FFFFFF", string secondaryButtonTextColor = @"#00B3E6", string secondaryButtonTextColorHover = @"#00B3E6", string textColor1 = @"#808080", string textColor2 = @"#FFFFFF", bool resetToDefault = default(bool)) + public SubWhiteLabelingOptions( + string headerBackgroundColor = @"#1A1A1A", + LegalVersionEnum? legalVersion = LegalVersionEnum.Terms1, + string linkColor = @"#00B3E6", + string pageBackgroundColor = @"#F7F8F9", + string primaryButtonColor = @"#00B3E6", + string primaryButtonColorHover = @"#00B3E6", + string primaryButtonTextColor = @"#FFFFFF", + string primaryButtonTextColorHover = @"#FFFFFF", + string secondaryButtonColor = @"#FFFFFF", + string secondaryButtonColorHover = @"#FFFFFF", + string secondaryButtonTextColor = @"#00B3E6", + string secondaryButtonTextColorHover = @"#00B3E6", + string textColor1 = @"#808080", + string textColor2 = @"#FFFFFF", + bool resetToDefault = default(bool) + ) { - // use default value if no "headerBackgroundColor" provided this.HeaderBackgroundColor = headerBackgroundColor ?? "#1A1A1A"; this.LegalVersion = legalVersion; @@ -124,7 +142,9 @@ public static SubWhiteLabelingOptions Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of SubWhiteLabelingOptions"); + throw new Exception( + "Unable to deserialize JSON to instance of SubWhiteLabelingOptions" + ); } return obj; @@ -135,91 +155,78 @@ public static SubWhiteLabelingOptions Init(string jsonData) /// [DataMember(Name = "header_background_color", EmitDefaultValue = true)] public string HeaderBackgroundColor { get; set; } - /// /// Gets or Sets LinkColor /// [DataMember(Name = "link_color", EmitDefaultValue = true)] public string LinkColor { get; set; } - /// /// Gets or Sets PageBackgroundColor /// [DataMember(Name = "page_background_color", EmitDefaultValue = true)] public string PageBackgroundColor { get; set; } - /// /// Gets or Sets PrimaryButtonColor /// [DataMember(Name = "primary_button_color", EmitDefaultValue = true)] public string PrimaryButtonColor { get; set; } - /// /// Gets or Sets PrimaryButtonColorHover /// [DataMember(Name = "primary_button_color_hover", EmitDefaultValue = true)] public string PrimaryButtonColorHover { get; set; } - /// /// Gets or Sets PrimaryButtonTextColor /// [DataMember(Name = "primary_button_text_color", EmitDefaultValue = true)] public string PrimaryButtonTextColor { get; set; } - /// /// Gets or Sets PrimaryButtonTextColorHover /// [DataMember(Name = "primary_button_text_color_hover", EmitDefaultValue = true)] public string PrimaryButtonTextColorHover { get; set; } - /// /// Gets or Sets SecondaryButtonColor /// [DataMember(Name = "secondary_button_color", EmitDefaultValue = true)] public string SecondaryButtonColor { get; set; } - /// /// Gets or Sets SecondaryButtonColorHover /// [DataMember(Name = "secondary_button_color_hover", EmitDefaultValue = true)] public string SecondaryButtonColorHover { get; set; } - /// /// Gets or Sets SecondaryButtonTextColor /// [DataMember(Name = "secondary_button_text_color", EmitDefaultValue = true)] public string SecondaryButtonTextColor { get; set; } - /// /// Gets or Sets SecondaryButtonTextColorHover /// [DataMember(Name = "secondary_button_text_color_hover", EmitDefaultValue = true)] public string SecondaryButtonTextColorHover { get; set; } - /// /// Gets or Sets TextColor1 /// [DataMember(Name = "text_color1", EmitDefaultValue = true)] public string TextColor1 { get; set; } - /// /// Gets or Sets TextColor2 /// [DataMember(Name = "text_color2", EmitDefaultValue = true)] public string TextColor2 { get; set; } - /// /// Resets white labeling options to defaults. Only useful when updating an API App. @@ -227,7 +234,6 @@ public static SubWhiteLabelingOptions Init(string jsonData) /// Resets white labeling options to defaults. Only useful when updating an API App. [DataMember(Name = "reset_to_default", EmitDefaultValue = true)] public bool ResetToDefault { get; set; } - /// /// Returns the string presentation of the object @@ -244,11 +250,17 @@ public override string ToString() sb.Append(" PrimaryButtonColor: ").Append(PrimaryButtonColor).Append("\n"); sb.Append(" PrimaryButtonColorHover: ").Append(PrimaryButtonColorHover).Append("\n"); sb.Append(" PrimaryButtonTextColor: ").Append(PrimaryButtonTextColor).Append("\n"); - sb.Append(" PrimaryButtonTextColorHover: ").Append(PrimaryButtonTextColorHover).Append("\n"); + sb.Append(" PrimaryButtonTextColorHover: ") + .Append(PrimaryButtonTextColorHover) + .Append("\n"); sb.Append(" SecondaryButtonColor: ").Append(SecondaryButtonColor).Append("\n"); - sb.Append(" SecondaryButtonColorHover: ").Append(SecondaryButtonColorHover).Append("\n"); + sb.Append(" SecondaryButtonColorHover: ") + .Append(SecondaryButtonColorHover) + .Append("\n"); sb.Append(" SecondaryButtonTextColor: ").Append(SecondaryButtonTextColor).Append("\n"); - sb.Append(" SecondaryButtonTextColorHover: ").Append(SecondaryButtonTextColorHover).Append("\n"); + sb.Append(" SecondaryButtonTextColorHover: ") + .Append(SecondaryButtonTextColorHover) + .Append("\n"); sb.Append(" TextColor1: ").Append(TextColor1).Append("\n"); sb.Append(" TextColor2: ").Append(TextColor2).Append("\n"); sb.Append(" ResetToDefault: ").Append(ResetToDefault).Append("\n"); @@ -262,7 +274,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -286,79 +301,99 @@ public bool Equals(SubWhiteLabelingOptions input) { return false; } - return - ( - this.HeaderBackgroundColor == input.HeaderBackgroundColor || - (this.HeaderBackgroundColor != null && - this.HeaderBackgroundColor.Equals(input.HeaderBackgroundColor)) - ) && - ( - this.LegalVersion == input.LegalVersion || - this.LegalVersion.Equals(input.LegalVersion) - ) && - ( - this.LinkColor == input.LinkColor || - (this.LinkColor != null && - this.LinkColor.Equals(input.LinkColor)) - ) && - ( - this.PageBackgroundColor == input.PageBackgroundColor || - (this.PageBackgroundColor != null && - this.PageBackgroundColor.Equals(input.PageBackgroundColor)) - ) && - ( - this.PrimaryButtonColor == input.PrimaryButtonColor || - (this.PrimaryButtonColor != null && - this.PrimaryButtonColor.Equals(input.PrimaryButtonColor)) - ) && - ( - this.PrimaryButtonColorHover == input.PrimaryButtonColorHover || - (this.PrimaryButtonColorHover != null && - this.PrimaryButtonColorHover.Equals(input.PrimaryButtonColorHover)) - ) && - ( - this.PrimaryButtonTextColor == input.PrimaryButtonTextColor || - (this.PrimaryButtonTextColor != null && - this.PrimaryButtonTextColor.Equals(input.PrimaryButtonTextColor)) - ) && - ( - this.PrimaryButtonTextColorHover == input.PrimaryButtonTextColorHover || - (this.PrimaryButtonTextColorHover != null && - this.PrimaryButtonTextColorHover.Equals(input.PrimaryButtonTextColorHover)) - ) && - ( - this.SecondaryButtonColor == input.SecondaryButtonColor || - (this.SecondaryButtonColor != null && - this.SecondaryButtonColor.Equals(input.SecondaryButtonColor)) - ) && - ( - this.SecondaryButtonColorHover == input.SecondaryButtonColorHover || - (this.SecondaryButtonColorHover != null && - this.SecondaryButtonColorHover.Equals(input.SecondaryButtonColorHover)) - ) && - ( - this.SecondaryButtonTextColor == input.SecondaryButtonTextColor || - (this.SecondaryButtonTextColor != null && - this.SecondaryButtonTextColor.Equals(input.SecondaryButtonTextColor)) - ) && - ( - this.SecondaryButtonTextColorHover == input.SecondaryButtonTextColorHover || - (this.SecondaryButtonTextColorHover != null && - this.SecondaryButtonTextColorHover.Equals(input.SecondaryButtonTextColorHover)) - ) && - ( - this.TextColor1 == input.TextColor1 || - (this.TextColor1 != null && - this.TextColor1.Equals(input.TextColor1)) - ) && - ( - this.TextColor2 == input.TextColor2 || - (this.TextColor2 != null && - this.TextColor2.Equals(input.TextColor2)) - ) && - ( - this.ResetToDefault == input.ResetToDefault || - this.ResetToDefault.Equals(input.ResetToDefault) + return ( + this.HeaderBackgroundColor == input.HeaderBackgroundColor + || ( + this.HeaderBackgroundColor != null + && this.HeaderBackgroundColor.Equals(input.HeaderBackgroundColor) + ) + ) + && ( + this.LegalVersion == input.LegalVersion + || this.LegalVersion.Equals(input.LegalVersion) + ) + && ( + this.LinkColor == input.LinkColor + || (this.LinkColor != null && this.LinkColor.Equals(input.LinkColor)) + ) + && ( + this.PageBackgroundColor == input.PageBackgroundColor + || ( + this.PageBackgroundColor != null + && this.PageBackgroundColor.Equals(input.PageBackgroundColor) + ) + ) + && ( + this.PrimaryButtonColor == input.PrimaryButtonColor + || ( + this.PrimaryButtonColor != null + && this.PrimaryButtonColor.Equals(input.PrimaryButtonColor) + ) + ) + && ( + this.PrimaryButtonColorHover == input.PrimaryButtonColorHover + || ( + this.PrimaryButtonColorHover != null + && this.PrimaryButtonColorHover.Equals(input.PrimaryButtonColorHover) + ) + ) + && ( + this.PrimaryButtonTextColor == input.PrimaryButtonTextColor + || ( + this.PrimaryButtonTextColor != null + && this.PrimaryButtonTextColor.Equals(input.PrimaryButtonTextColor) + ) + ) + && ( + this.PrimaryButtonTextColorHover == input.PrimaryButtonTextColorHover + || ( + this.PrimaryButtonTextColorHover != null + && this.PrimaryButtonTextColorHover.Equals( + input.PrimaryButtonTextColorHover + ) + ) + ) + && ( + this.SecondaryButtonColor == input.SecondaryButtonColor + || ( + this.SecondaryButtonColor != null + && this.SecondaryButtonColor.Equals(input.SecondaryButtonColor) + ) + ) + && ( + this.SecondaryButtonColorHover == input.SecondaryButtonColorHover + || ( + this.SecondaryButtonColorHover != null + && this.SecondaryButtonColorHover.Equals(input.SecondaryButtonColorHover) + ) + ) + && ( + this.SecondaryButtonTextColor == input.SecondaryButtonTextColor + || ( + this.SecondaryButtonTextColor != null + && this.SecondaryButtonTextColor.Equals(input.SecondaryButtonTextColor) + ) + ) + && ( + this.SecondaryButtonTextColorHover == input.SecondaryButtonTextColorHover + || ( + this.SecondaryButtonTextColorHover != null + && this.SecondaryButtonTextColorHover.Equals( + input.SecondaryButtonTextColorHover + ) + ) + ) + && ( + this.TextColor1 == input.TextColor1 + || (this.TextColor1 != null && this.TextColor1.Equals(input.TextColor1)) + ) + && ( + this.TextColor2 == input.TextColor2 + || (this.TextColor2 != null && this.TextColor2.Equals(input.TextColor2)) + ) + && ( + this.ResetToDefault == input.ResetToDefault + || this.ResetToDefault.Equals(input.ResetToDefault) ); } @@ -434,7 +469,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -442,99 +479,143 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "header_background_color", - Property = "HeaderBackgroundColor", - Type = "string", - Value = HeaderBackgroundColor, - }); - types.Add(new OpenApiType(){ - Name = "legal_version", - Property = "LegalVersion", - Type = "string", - Value = LegalVersion, - }); - types.Add(new OpenApiType(){ - Name = "link_color", - Property = "LinkColor", - Type = "string", - Value = LinkColor, - }); - types.Add(new OpenApiType(){ - Name = "page_background_color", - Property = "PageBackgroundColor", - Type = "string", - Value = PageBackgroundColor, - }); - types.Add(new OpenApiType(){ - Name = "primary_button_color", - Property = "PrimaryButtonColor", - Type = "string", - Value = PrimaryButtonColor, - }); - types.Add(new OpenApiType(){ - Name = "primary_button_color_hover", - Property = "PrimaryButtonColorHover", - Type = "string", - Value = PrimaryButtonColorHover, - }); - types.Add(new OpenApiType(){ - Name = "primary_button_text_color", - Property = "PrimaryButtonTextColor", - Type = "string", - Value = PrimaryButtonTextColor, - }); - types.Add(new OpenApiType(){ - Name = "primary_button_text_color_hover", - Property = "PrimaryButtonTextColorHover", - Type = "string", - Value = PrimaryButtonTextColorHover, - }); - types.Add(new OpenApiType(){ - Name = "secondary_button_color", - Property = "SecondaryButtonColor", - Type = "string", - Value = SecondaryButtonColor, - }); - types.Add(new OpenApiType(){ - Name = "secondary_button_color_hover", - Property = "SecondaryButtonColorHover", - Type = "string", - Value = SecondaryButtonColorHover, - }); - types.Add(new OpenApiType(){ - Name = "secondary_button_text_color", - Property = "SecondaryButtonTextColor", - Type = "string", - Value = SecondaryButtonTextColor, - }); - types.Add(new OpenApiType(){ - Name = "secondary_button_text_color_hover", - Property = "SecondaryButtonTextColorHover", - Type = "string", - Value = SecondaryButtonTextColorHover, - }); - types.Add(new OpenApiType(){ - Name = "text_color1", - Property = "TextColor1", - Type = "string", - Value = TextColor1, - }); - types.Add(new OpenApiType(){ - Name = "text_color2", - Property = "TextColor2", - Type = "string", - Value = TextColor2, - }); - types.Add(new OpenApiType(){ - Name = "reset_to_default", - Property = "ResetToDefault", - Type = "bool", - Value = ResetToDefault, - }); + types.Add( + new OpenApiType() + { + Name = "header_background_color", + Property = "HeaderBackgroundColor", + Type = "string", + Value = HeaderBackgroundColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "legal_version", + Property = "LegalVersion", + Type = "string", + Value = LegalVersion, + } + ); + types.Add( + new OpenApiType() + { + Name = "link_color", + Property = "LinkColor", + Type = "string", + Value = LinkColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "page_background_color", + Property = "PageBackgroundColor", + Type = "string", + Value = PageBackgroundColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "primary_button_color", + Property = "PrimaryButtonColor", + Type = "string", + Value = PrimaryButtonColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "primary_button_color_hover", + Property = "PrimaryButtonColorHover", + Type = "string", + Value = PrimaryButtonColorHover, + } + ); + types.Add( + new OpenApiType() + { + Name = "primary_button_text_color", + Property = "PrimaryButtonTextColor", + Type = "string", + Value = PrimaryButtonTextColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "primary_button_text_color_hover", + Property = "PrimaryButtonTextColorHover", + Type = "string", + Value = PrimaryButtonTextColorHover, + } + ); + types.Add( + new OpenApiType() + { + Name = "secondary_button_color", + Property = "SecondaryButtonColor", + Type = "string", + Value = SecondaryButtonColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "secondary_button_color_hover", + Property = "SecondaryButtonColorHover", + Type = "string", + Value = SecondaryButtonColorHover, + } + ); + types.Add( + new OpenApiType() + { + Name = "secondary_button_text_color", + Property = "SecondaryButtonTextColor", + Type = "string", + Value = SecondaryButtonTextColor, + } + ); + types.Add( + new OpenApiType() + { + Name = "secondary_button_text_color_hover", + Property = "SecondaryButtonTextColorHover", + Type = "string", + Value = SecondaryButtonTextColorHover, + } + ); + types.Add( + new OpenApiType() + { + Name = "text_color1", + Property = "TextColor1", + Type = "string", + Value = TextColor1, + } + ); + types.Add( + new OpenApiType() + { + Name = "text_color2", + Property = "TextColor2", + Type = "string", + Value = TextColor2, + } + ); + types.Add( + new OpenApiType() + { + Name = "reset_to_default", + Property = "ResetToDefault", + Type = "bool", + Value = ResetToDefault, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs index f9163653b..396f56501 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -62,30 +62,34 @@ public enum RoleEnum /// Enum Admin for value: Admin /// [EnumMember(Value = "Admin")] - Admin = 4 + Admin = 4, } - /// /// A role member will take in a new Team. **NOTE:** This parameter is used only if `team_id` is provided. /// /// A role member will take in a new Team. **NOTE:** This parameter is used only if `team_id` is provided. [DataMember(Name = "role", EmitDefaultValue = true)] public RoleEnum? Role { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TeamAddMemberRequest() { } + /// /// Initializes a new instance of the class. /// /// `account_id` or `email_address` is required. If both are provided, the account id prevails. Account id of the user to invite to your Team.. /// `account_id` or `email_address` is required, If both are provided, the account id prevails. Email address of the user to invite to your Team.. /// A role member will take in a new Team. **NOTE:** This parameter is used only if `team_id` is provided.. - public TeamAddMemberRequest(string accountId = default(string), string emailAddress = default(string), RoleEnum? role = default(RoleEnum?)) + public TeamAddMemberRequest( + string accountId = default(string), + string emailAddress = default(string), + RoleEnum? role = default(RoleEnum?) + ) { - this.AccountId = accountId; this.EmailAddress = emailAddress; this.Role = role; @@ -101,7 +105,9 @@ public static TeamAddMemberRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TeamAddMemberRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of TeamAddMemberRequest" + ); } return obj; @@ -113,7 +119,6 @@ public static TeamAddMemberRequest Init(string jsonData) /// `account_id` or `email_address` is required. If both are provided, the account id prevails. Account id of the user to invite to your Team. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// `account_id` or `email_address` is required, If both are provided, the account id prevails. Email address of the user to invite to your Team. @@ -121,7 +126,6 @@ public static TeamAddMemberRequest Init(string jsonData) /// `account_id` or `email_address` is required, If both are provided, the account id prevails. Email address of the user to invite to your Team. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object @@ -144,7 +148,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -168,21 +175,15 @@ public bool Equals(TeamAddMemberRequest input) { return false; } - return - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.Role == input.Role || - this.Role.Equals(input.Role) - ); + return ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && (this.Role == input.Role || this.Role.Equals(input.Role)); } /// @@ -212,7 +213,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -220,27 +223,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - }); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs index f576caa6b..c3da6f98d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class TeamCreateRequest : IEquatable, IValidat /// [JsonConstructorAttribute] protected TeamCreateRequest() { } + /// /// Initializes a new instance of the class. /// /// The name of your Team. (default to "Untitled Team"). public TeamCreateRequest(string name = @"Untitled Team") { - // use default value if no "name" provided this.Name = name ?? "Untitled Team"; } @@ -71,7 +71,6 @@ public static TeamCreateRequest Init(string jsonData) /// The name of your Team. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object @@ -92,7 +91,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -116,12 +118,7 @@ public bool Equals(TeamCreateRequest input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); } /// @@ -146,7 +143,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -154,15 +153,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs index 2e2e48d01..07e7bf4aa 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,14 +38,17 @@ public partial class TeamGetInfoResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected TeamGetInfoResponse() { } + /// /// Initializes a new instance of the class. /// /// team. /// A list of warnings.. - public TeamGetInfoResponse(TeamInfoResponse team = default(TeamInfoResponse), List warnings = default(List)) + public TeamGetInfoResponse( + TeamInfoResponse team = default(TeamInfoResponse), + List warnings = default(List) + ) { - this.Team = team; this.Warnings = warnings; } @@ -60,7 +63,9 @@ public static TeamGetInfoResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TeamGetInfoResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TeamGetInfoResponse" + ); } return obj; @@ -71,7 +76,6 @@ public static TeamGetInfoResponse Init(string jsonData) /// [DataMember(Name = "team", EmitDefaultValue = true)] public TeamInfoResponse Team { get; set; } - /// /// A list of warnings. @@ -79,7 +83,6 @@ public static TeamGetInfoResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +104,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +131,12 @@ public bool Equals(TeamGetInfoResponse input) { return false; } - return - ( - this.Team == input.Team || - (this.Team != null && - this.Team.Equals(input.Team)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return (this.Team == input.Team || (this.Team != null && this.Team.Equals(input.Team))) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +166,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +176,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "team", - Property = "Team", - Type = "TeamInfoResponse", - Value = Team, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "team", + Property = "Team", + Type = "TeamInfoResponse", + Value = Team, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs index e56f464ea..ef656c040 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,14 +38,17 @@ public partial class TeamGetResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected TeamGetResponse() { } + /// /// Initializes a new instance of the class. /// /// team. /// A list of warnings.. - public TeamGetResponse(TeamResponse team = default(TeamResponse), List warnings = default(List)) + public TeamGetResponse( + TeamResponse team = default(TeamResponse), + List warnings = default(List) + ) { - this.Team = team; this.Warnings = warnings; } @@ -71,7 +74,6 @@ public static TeamGetResponse Init(string jsonData) /// [DataMember(Name = "team", EmitDefaultValue = true)] public TeamResponse Team { get; set; } - /// /// A list of warnings. @@ -79,7 +81,6 @@ public static TeamGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +102,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +129,12 @@ public bool Equals(TeamGetResponse input) { return false; } - return - ( - this.Team == input.Team || - (this.Team != null && - this.Team.Equals(input.Team)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return (this.Team == input.Team || (this.Team != null && this.Team.Equals(input.Team))) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +164,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +174,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "team", - Property = "Team", - Type = "TeamResponse", - Value = Team, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "team", + Property = "Team", + Type = "TeamResponse", + Value = Team, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs index cdca341b4..261960814 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class TeamInfoResponse : IEquatable, IValidatab /// [JsonConstructorAttribute] protected TeamInfoResponse() { } + /// /// Initializes a new instance of the class. /// @@ -46,9 +47,14 @@ protected TeamInfoResponse() { } /// The name of a team. /// Number of members within a team. /// Number of sub teams within a team. - public TeamInfoResponse(string teamId = default(string), TeamParentResponse teamParent = default(TeamParentResponse), string name = default(string), int numMembers = default(int), int numSubTeams = default(int)) + public TeamInfoResponse( + string teamId = default(string), + TeamParentResponse teamParent = default(TeamParentResponse), + string name = default(string), + int numMembers = default(int), + int numSubTeams = default(int) + ) { - this.TeamId = teamId; this.TeamParent = teamParent; this.Name = name; @@ -78,14 +84,12 @@ public static TeamInfoResponse Init(string jsonData) /// The id of a team [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// Gets or Sets TeamParent /// [DataMember(Name = "team_parent", EmitDefaultValue = true)] public TeamParentResponse TeamParent { get; set; } - /// /// The name of a team @@ -93,7 +97,6 @@ public static TeamInfoResponse Init(string jsonData) /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Number of members within a team @@ -101,7 +104,6 @@ public static TeamInfoResponse Init(string jsonData) /// Number of members within a team [DataMember(Name = "num_members", EmitDefaultValue = true)] public int NumMembers { get; set; } - /// /// Number of sub teams within a team @@ -109,7 +111,6 @@ public static TeamInfoResponse Init(string jsonData) /// Number of sub teams within a team [DataMember(Name = "num_sub_teams", EmitDefaultValue = true)] public int NumSubTeams { get; set; } - /// /// Returns the string presentation of the object @@ -134,7 +135,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -158,29 +162,19 @@ public bool Equals(TeamInfoResponse input) { return false; } - return - ( - this.TeamId == input.TeamId || - (this.TeamId != null && - this.TeamId.Equals(input.TeamId)) - ) && - ( - this.TeamParent == input.TeamParent || - (this.TeamParent != null && - this.TeamParent.Equals(input.TeamParent)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.NumMembers == input.NumMembers || - this.NumMembers.Equals(input.NumMembers) - ) && - ( - this.NumSubTeams == input.NumSubTeams || - this.NumSubTeams.Equals(input.NumSubTeams) + return ( + this.TeamId == input.TeamId + || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) + ) + && ( + this.TeamParent == input.TeamParent + || (this.TeamParent != null && this.TeamParent.Equals(input.TeamParent)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.NumMembers == input.NumMembers || this.NumMembers.Equals(input.NumMembers)) + && ( + this.NumSubTeams == input.NumSubTeams + || this.NumSubTeams.Equals(input.NumSubTeams) ); } @@ -216,7 +210,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -224,39 +220,53 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - }); - types.Add(new OpenApiType(){ - Name = "team_parent", - Property = "TeamParent", - Type = "TeamParentResponse", - Value = TeamParent, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "num_members", - Property = "NumMembers", - Type = "int", - Value = NumMembers, - }); - types.Add(new OpenApiType(){ - Name = "num_sub_teams", - Property = "NumSubTeams", - Type = "int", - Value = NumSubTeams, - }); + types.Add( + new OpenApiType() + { + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + } + ); + types.Add( + new OpenApiType() + { + Name = "team_parent", + Property = "TeamParent", + Type = "TeamParentResponse", + Value = TeamParent, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "num_members", + Property = "NumMembers", + Type = "int", + Value = NumMembers, + } + ); + types.Add( + new OpenApiType() + { + Name = "num_sub_teams", + Property = "NumSubTeams", + Type = "int", + Value = NumSubTeams, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs index 18b6893d2..7c5b4c26f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class TeamInviteResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected TeamInviteResponse() { } + /// /// Initializes a new instance of the class. /// @@ -47,9 +48,15 @@ protected TeamInviteResponse() { } /// Timestamp when the invitation was sent.. /// Timestamp when the invitation was redeemed.. /// Timestamp when the invitation is expiring.. - public TeamInviteResponse(string emailAddress = default(string), string teamId = default(string), string role = default(string), int sentAt = default(int), int redeemedAt = default(int), int expiresAt = default(int)) + public TeamInviteResponse( + string emailAddress = default(string), + string teamId = default(string), + string role = default(string), + int sentAt = default(int), + int redeemedAt = default(int), + int expiresAt = default(int) + ) { - this.EmailAddress = emailAddress; this.TeamId = teamId; this.Role = role; @@ -80,7 +87,6 @@ public static TeamInviteResponse Init(string jsonData) /// Email address of the user invited to this team. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Id of the team. @@ -88,7 +94,6 @@ public static TeamInviteResponse Init(string jsonData) /// Id of the team. [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// Role of the user invited to this team. @@ -96,7 +101,6 @@ public static TeamInviteResponse Init(string jsonData) /// Role of the user invited to this team. [DataMember(Name = "role", EmitDefaultValue = true)] public string Role { get; set; } - /// /// Timestamp when the invitation was sent. @@ -104,7 +108,6 @@ public static TeamInviteResponse Init(string jsonData) /// Timestamp when the invitation was sent. [DataMember(Name = "sent_at", EmitDefaultValue = true)] public int SentAt { get; set; } - /// /// Timestamp when the invitation was redeemed. @@ -112,7 +115,6 @@ public static TeamInviteResponse Init(string jsonData) /// Timestamp when the invitation was redeemed. [DataMember(Name = "redeemed_at", EmitDefaultValue = true)] public int RedeemedAt { get; set; } - /// /// Timestamp when the invitation is expiring. @@ -120,7 +122,6 @@ public static TeamInviteResponse Init(string jsonData) /// Timestamp when the invitation is expiring. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Returns the string presentation of the object @@ -146,7 +147,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -170,34 +174,18 @@ public bool Equals(TeamInviteResponse input) { return false; } - return - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.TeamId == input.TeamId || - (this.TeamId != null && - this.TeamId.Equals(input.TeamId)) - ) && - ( - this.Role == input.Role || - (this.Role != null && - this.Role.Equals(input.Role)) - ) && - ( - this.SentAt == input.SentAt || - this.SentAt.Equals(input.SentAt) - ) && - ( - this.RedeemedAt == input.RedeemedAt || - this.RedeemedAt.Equals(input.RedeemedAt) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) - ); + return ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && ( + this.TeamId == input.TeamId + || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) + ) + && (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))) + && (this.SentAt == input.SentAt || this.SentAt.Equals(input.SentAt)) + && (this.RedeemedAt == input.RedeemedAt || this.RedeemedAt.Equals(input.RedeemedAt)) + && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)); } /// @@ -233,7 +221,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -241,45 +231,62 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - }); - types.Add(new OpenApiType(){ - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - }); - types.Add(new OpenApiType(){ - Name = "sent_at", - Property = "SentAt", - Type = "int", - Value = SentAt, - }); - types.Add(new OpenApiType(){ - Name = "redeemed_at", - Property = "RedeemedAt", - Type = "int", - Value = RedeemedAt, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + } + ); + types.Add( + new OpenApiType() + { + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + } + ); + types.Add( + new OpenApiType() + { + Name = "sent_at", + Property = "SentAt", + Type = "int", + Value = SentAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "redeemed_at", + Property = "RedeemedAt", + Type = "int", + Value = RedeemedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs index 2e2390233..267564931 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,14 +38,17 @@ public partial class TeamInvitesResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected TeamInvitesResponse() { } + /// /// Initializes a new instance of the class. /// /// Contains a list of team invites and their roles.. /// warnings. - public TeamInvitesResponse(List teamInvites = default(List), List warnings = default(List)) + public TeamInvitesResponse( + List teamInvites = default(List), + List warnings = default(List) + ) { - this.TeamInvites = teamInvites; this.Warnings = warnings; } @@ -60,7 +63,9 @@ public static TeamInvitesResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TeamInvitesResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TeamInvitesResponse" + ); } return obj; @@ -72,14 +77,12 @@ public static TeamInvitesResponse Init(string jsonData) /// Contains a list of team invites and their roles. [DataMember(Name = "team_invites", EmitDefaultValue = true)] public List TeamInvites { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +104,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,18 +131,17 @@ public bool Equals(TeamInvitesResponse input) { return false; } - return - ( - this.TeamInvites == input.TeamInvites || - this.TeamInvites != null && - input.TeamInvites != null && - this.TeamInvites.SequenceEqual(input.TeamInvites) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.TeamInvites == input.TeamInvites + || this.TeamInvites != null + && input.TeamInvites != null + && this.TeamInvites.SequenceEqual(input.TeamInvites) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -166,7 +171,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -174,21 +181,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "team_invites", - Property = "TeamInvites", - Type = "List", - Value = TeamInvites, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "team_invites", + Property = "TeamInvites", + Type = "List", + Value = TeamInvites, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs index a87f276d5..126a5a11b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,15 +38,19 @@ public partial class TeamMemberResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected TeamMemberResponse() { } + /// /// Initializes a new instance of the class. /// /// Account id of the team member.. /// Email address of the team member.. /// The specific role a member has on the team.. - public TeamMemberResponse(string accountId = default(string), string emailAddress = default(string), string role = default(string)) + public TeamMemberResponse( + string accountId = default(string), + string emailAddress = default(string), + string role = default(string) + ) { - this.AccountId = accountId; this.EmailAddress = emailAddress; this.Role = role; @@ -74,7 +78,6 @@ public static TeamMemberResponse Init(string jsonData) /// Account id of the team member. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// Email address of the team member. @@ -82,7 +85,6 @@ public static TeamMemberResponse Init(string jsonData) /// Email address of the team member. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The specific role a member has on the team. @@ -90,7 +92,6 @@ public static TeamMemberResponse Init(string jsonData) /// The specific role a member has on the team. [DataMember(Name = "role", EmitDefaultValue = true)] public string Role { get; set; } - /// /// Returns the string presentation of the object @@ -113,7 +114,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -137,22 +141,15 @@ public bool Equals(TeamMemberResponse input) { return false; } - return - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.Role == input.Role || - (this.Role != null && - this.Role.Equals(input.Role)) - ); + return ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))); } /// @@ -185,7 +182,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -193,27 +192,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - }); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs index 3732828d4..8eac9696e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,15 +38,19 @@ public partial class TeamMembersResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected TeamMembersResponse() { } + /// /// Initializes a new instance of the class. /// /// Contains a list of team members and their roles for a specific team.. /// listInfo. /// warnings. - public TeamMembersResponse(List teamMembers = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) + public TeamMembersResponse( + List teamMembers = default(List), + ListInfoResponse listInfo = default(ListInfoResponse), + List warnings = default(List) + ) { - this.TeamMembers = teamMembers; this.ListInfo = listInfo; this.Warnings = warnings; @@ -62,7 +66,9 @@ public static TeamMembersResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TeamMembersResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TeamMembersResponse" + ); } return obj; @@ -74,21 +80,18 @@ public static TeamMembersResponse Init(string jsonData) /// Contains a list of team members and their roles for a specific team. [DataMember(Name = "team_members", EmitDefaultValue = true)] public List TeamMembers { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -111,7 +114,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -135,23 +141,21 @@ public bool Equals(TeamMembersResponse input) { return false; } - return - ( - this.TeamMembers == input.TeamMembers || - this.TeamMembers != null && - input.TeamMembers != null && - this.TeamMembers.SequenceEqual(input.TeamMembers) - ) && - ( - this.ListInfo == input.ListInfo || - (this.ListInfo != null && - this.ListInfo.Equals(input.ListInfo)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.TeamMembers == input.TeamMembers + || this.TeamMembers != null + && input.TeamMembers != null + && this.TeamMembers.SequenceEqual(input.TeamMembers) + ) + && ( + this.ListInfo == input.ListInfo + || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -185,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -193,27 +199,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "team_members", - Property = "TeamMembers", - Type = "List", - Value = TeamMembers, - }); - types.Add(new OpenApiType(){ - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "team_members", + Property = "TeamMembers", + Type = "List", + Value = TeamMembers, + } + ); + types.Add( + new OpenApiType() + { + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs index 72f7a88f9..4d79e980f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class TeamParentResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected TeamParentResponse() { } + /// /// Initializes a new instance of the class. /// @@ -45,7 +46,6 @@ protected TeamParentResponse() { } /// The name of a team. public TeamParentResponse(string teamId = default(string), string name = default(string)) { - this.TeamId = teamId; this.Name = name; } @@ -72,7 +72,6 @@ public static TeamParentResponse Init(string jsonData) /// The id of a team [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// The name of a team @@ -80,7 +79,6 @@ public static TeamParentResponse Init(string jsonData) /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +100,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,17 +127,11 @@ public bool Equals(TeamParentResponse input) { return false; } - return - ( - this.TeamId == input.TeamId || - (this.TeamId != null && - this.TeamId.Equals(input.TeamId)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); + return ( + this.TeamId == input.TeamId + || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); } /// @@ -165,7 +160,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +170,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); + types.Add( + new OpenApiType() + { + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs index c8081147d..cc852341e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,9 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamRemoveMemberRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamRemoveMemberRequest : IEquatable, IValidatableObject + public partial class TeamRemoveMemberRequest + : IEquatable, + IValidatableObject { /// /// A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided. @@ -62,21 +64,22 @@ public enum NewRoleEnum /// Enum Admin for value: Admin /// [EnumMember(Value = "Admin")] - Admin = 4 + Admin = 4, } - /// /// A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided. /// /// A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided. [DataMember(Name = "new_role", EmitDefaultValue = true)] public NewRoleEnum? NewRole { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TeamRemoveMemberRequest() { } + /// /// Initializes a new instance of the class. /// @@ -85,9 +88,14 @@ protected TeamRemoveMemberRequest() { } /// The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans.. /// Id of the new Team.. /// A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided.. - public TeamRemoveMemberRequest(string accountId = default(string), string emailAddress = default(string), string newOwnerEmailAddress = default(string), string newTeamId = default(string), NewRoleEnum? newRole = default(NewRoleEnum?)) + public TeamRemoveMemberRequest( + string accountId = default(string), + string emailAddress = default(string), + string newOwnerEmailAddress = default(string), + string newTeamId = default(string), + NewRoleEnum? newRole = default(NewRoleEnum?) + ) { - this.AccountId = accountId; this.EmailAddress = emailAddress; this.NewOwnerEmailAddress = newOwnerEmailAddress; @@ -105,7 +113,9 @@ public static TeamRemoveMemberRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TeamRemoveMemberRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of TeamRemoveMemberRequest" + ); } return obj; @@ -117,7 +127,6 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Account id to remove from your Team. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Email address of the Account to remove from your Team. @@ -125,7 +134,6 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Email address of the Account to remove from your Team. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans. @@ -133,7 +141,6 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans. [DataMember(Name = "new_owner_email_address", EmitDefaultValue = true)] public string NewOwnerEmailAddress { get; set; } - /// /// Id of the new Team. @@ -141,7 +148,6 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// Id of the new Team. [DataMember(Name = "new_team_id", EmitDefaultValue = true)] public string NewTeamId { get; set; } - /// /// Returns the string presentation of the object @@ -166,7 +172,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -190,31 +199,26 @@ public bool Equals(TeamRemoveMemberRequest input) { return false; } - return - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.NewOwnerEmailAddress == input.NewOwnerEmailAddress || - (this.NewOwnerEmailAddress != null && - this.NewOwnerEmailAddress.Equals(input.NewOwnerEmailAddress)) - ) && - ( - this.NewTeamId == input.NewTeamId || - (this.NewTeamId != null && - this.NewTeamId.Equals(input.NewTeamId)) - ) && - ( - this.NewRole == input.NewRole || - this.NewRole.Equals(input.NewRole) - ); + return ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && ( + this.NewOwnerEmailAddress == input.NewOwnerEmailAddress + || ( + this.NewOwnerEmailAddress != null + && this.NewOwnerEmailAddress.Equals(input.NewOwnerEmailAddress) + ) + ) + && ( + this.NewTeamId == input.NewTeamId + || (this.NewTeamId != null && this.NewTeamId.Equals(input.NewTeamId)) + ) + && (this.NewRole == input.NewRole || this.NewRole.Equals(input.NewRole)); } /// @@ -252,7 +256,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -260,39 +266,53 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "new_owner_email_address", - Property = "NewOwnerEmailAddress", - Type = "string", - Value = NewOwnerEmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "new_team_id", - Property = "NewTeamId", - Type = "string", - Value = NewTeamId, - }); - types.Add(new OpenApiType(){ - Name = "new_role", - Property = "NewRole", - Type = "string", - Value = NewRole, - }); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "new_owner_email_address", + Property = "NewOwnerEmailAddress", + Type = "string", + Value = NewOwnerEmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "new_team_id", + Property = "NewTeamId", + Type = "string", + Value = NewTeamId, + } + ); + types.Add( + new OpenApiType() + { + Name = "new_role", + Property = "NewRole", + Type = "string", + Value = NewRole, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs index 104c5021a..cb997b2af 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class TeamResponse : IEquatable, IValidatableObject /// [JsonConstructorAttribute] protected TeamResponse() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +46,13 @@ protected TeamResponse() { } /// accounts. /// A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`.. /// A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account.. - public TeamResponse(string name = default(string), List accounts = default(List), List invitedAccounts = default(List), List invitedEmails = default(List)) + public TeamResponse( + string name = default(string), + List accounts = default(List), + List invitedAccounts = default(List), + List invitedEmails = default(List) + ) { - this.Name = name; this.Accounts = accounts; this.InvitedAccounts = invitedAccounts; @@ -76,14 +81,12 @@ public static TeamResponse Init(string jsonData) /// The name of your Team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Gets or Sets Accounts /// [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } - /// /// A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. @@ -91,7 +94,6 @@ public static TeamResponse Init(string jsonData) /// A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. [DataMember(Name = "invited_accounts", EmitDefaultValue = true)] public List InvitedAccounts { get; set; } - /// /// A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. @@ -99,7 +101,6 @@ public static TeamResponse Init(string jsonData) /// A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. [DataMember(Name = "invited_emails", EmitDefaultValue = true)] public List InvitedEmails { get; set; } - /// /// Returns the string presentation of the object @@ -123,7 +124,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -147,29 +151,24 @@ public bool Equals(TeamResponse input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Accounts == input.Accounts || - this.Accounts != null && - input.Accounts != null && - this.Accounts.SequenceEqual(input.Accounts) - ) && - ( - this.InvitedAccounts == input.InvitedAccounts || - this.InvitedAccounts != null && - input.InvitedAccounts != null && - this.InvitedAccounts.SequenceEqual(input.InvitedAccounts) - ) && - ( - this.InvitedEmails == input.InvitedEmails || - this.InvitedEmails != null && - input.InvitedEmails != null && - this.InvitedEmails.SequenceEqual(input.InvitedEmails) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.Accounts == input.Accounts + || this.Accounts != null + && input.Accounts != null + && this.Accounts.SequenceEqual(input.Accounts) + ) + && ( + this.InvitedAccounts == input.InvitedAccounts + || this.InvitedAccounts != null + && input.InvitedAccounts != null + && this.InvitedAccounts.SequenceEqual(input.InvitedAccounts) + ) + && ( + this.InvitedEmails == input.InvitedEmails + || this.InvitedEmails != null + && input.InvitedEmails != null + && this.InvitedEmails.SequenceEqual(input.InvitedEmails) ); } @@ -207,7 +206,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -215,33 +216,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "accounts", - Property = "Accounts", - Type = "List", - Value = Accounts, - }); - types.Add(new OpenApiType(){ - Name = "invited_accounts", - Property = "InvitedAccounts", - Type = "List", - Value = InvitedAccounts, - }); - types.Add(new OpenApiType(){ - Name = "invited_emails", - Property = "InvitedEmails", - Type = "List", - Value = InvitedEmails, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "accounts", + Property = "Accounts", + Type = "List", + Value = Accounts, + } + ); + types.Add( + new OpenApiType() + { + Name = "invited_accounts", + Property = "InvitedAccounts", + Type = "List", + Value = InvitedAccounts, + } + ); + types.Add( + new OpenApiType() + { + Name = "invited_emails", + Property = "InvitedEmails", + Type = "List", + Value = InvitedEmails, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs index d1a945bdc..a6177fc37 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,15 +38,19 @@ public partial class TeamSubTeamsResponse : IEquatable, IV /// [JsonConstructorAttribute] protected TeamSubTeamsResponse() { } + /// /// Initializes a new instance of the class. /// /// Contains a list with sub teams.. /// listInfo. /// warnings. - public TeamSubTeamsResponse(List subTeams = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) + public TeamSubTeamsResponse( + List subTeams = default(List), + ListInfoResponse listInfo = default(ListInfoResponse), + List warnings = default(List) + ) { - this.SubTeams = subTeams; this.ListInfo = listInfo; this.Warnings = warnings; @@ -62,7 +66,9 @@ public static TeamSubTeamsResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TeamSubTeamsResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TeamSubTeamsResponse" + ); } return obj; @@ -74,21 +80,18 @@ public static TeamSubTeamsResponse Init(string jsonData) /// Contains a list with sub teams. [DataMember(Name = "sub_teams", EmitDefaultValue = true)] public List SubTeams { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -111,7 +114,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -135,23 +141,21 @@ public bool Equals(TeamSubTeamsResponse input) { return false; } - return - ( - this.SubTeams == input.SubTeams || - this.SubTeams != null && - input.SubTeams != null && - this.SubTeams.SequenceEqual(input.SubTeams) - ) && - ( - this.ListInfo == input.ListInfo || - (this.ListInfo != null && - this.ListInfo.Equals(input.ListInfo)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.SubTeams == input.SubTeams + || this.SubTeams != null + && input.SubTeams != null + && this.SubTeams.SequenceEqual(input.SubTeams) + ) + && ( + this.ListInfo == input.ListInfo + || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -185,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -193,27 +199,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "sub_teams", - Property = "SubTeams", - Type = "List", - Value = SubTeams, - }); - types.Add(new OpenApiType(){ - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "sub_teams", + Property = "SubTeams", + Type = "List", + Value = SubTeams, + } + ); + types.Add( + new OpenApiType() + { + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs index 72441c90e..ff664d5b0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class TeamUpdateRequest : IEquatable, IValidat /// [JsonConstructorAttribute] protected TeamUpdateRequest() { } + /// /// Initializes a new instance of the class. /// /// The name of your Team.. public TeamUpdateRequest(string name = default(string)) { - this.Name = name; } @@ -70,7 +70,6 @@ public static TeamUpdateRequest Init(string jsonData) /// The name of your Team. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object @@ -91,7 +90,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -115,12 +117,7 @@ public bool Equals(TeamUpdateRequest input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); } /// @@ -145,7 +142,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -153,15 +152,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs index 30a0c91da..f4e266662 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,22 +31,28 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateAddUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateAddUserRequest : IEquatable, IValidatableObject + public partial class TemplateAddUserRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateAddUserRequest() { } + /// /// Initializes a new instance of the class. /// /// The id of the Account to give access to the Template. **NOTE:** The account id prevails if email address is also provided.. /// The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided.. /// If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. (default to false). - public TemplateAddUserRequest(string accountId = default(string), string emailAddress = default(string), bool skipNotification = false) + public TemplateAddUserRequest( + string accountId = default(string), + string emailAddress = default(string), + bool skipNotification = false + ) { - this.AccountId = accountId; this.EmailAddress = emailAddress; this.SkipNotification = skipNotification; @@ -62,7 +68,9 @@ public static TemplateAddUserRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateAddUserRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateAddUserRequest" + ); } return obj; @@ -74,7 +82,6 @@ public static TemplateAddUserRequest Init(string jsonData) /// The id of the Account to give access to the Template. **NOTE:** The account id prevails if email address is also provided. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided. @@ -82,7 +89,6 @@ public static TemplateAddUserRequest Init(string jsonData) /// The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. @@ -90,7 +96,6 @@ public static TemplateAddUserRequest Init(string jsonData) /// If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. [DataMember(Name = "skip_notification", EmitDefaultValue = true)] public bool SkipNotification { get; set; } - /// /// Returns the string presentation of the object @@ -113,7 +118,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -137,20 +145,17 @@ public bool Equals(TemplateAddUserRequest input) { return false; } - return - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.SkipNotification == input.SkipNotification || - this.SkipNotification.Equals(input.SkipNotification) + return ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && ( + this.SkipNotification == input.SkipNotification + || this.SkipNotification.Equals(input.SkipNotification) ); } @@ -181,7 +186,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -189,27 +196,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "skip_notification", - Property = "SkipNotification", - Type = "bool", - Value = SkipNotification, - }); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "skip_notification", + Property = "SkipNotification", + Type = "bool", + Value = SkipNotification, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs index 70bad4fa6..ad007bb2c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateEmbeddedDraftRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateEmbeddedDraftRequest : IEquatable, IValidatableObject + public partial class TemplateCreateEmbeddedDraftRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateEmbeddedDraftRequest() { } + /// /// Initializes a new instance of the class. /// @@ -66,13 +69,41 @@ protected TemplateCreateEmbeddedDraftRequest() { } /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). (default to false). - public TemplateCreateEmbeddedDraftRequest(List files = default(List), List fileUrls = default(List), bool allowCcs = true, bool allowReassign = false, List attachments = default(List), List ccRoles = default(List), string clientId = default(string), SubEditorOptions editorOptions = default(SubEditorOptions), SubFieldOptions fieldOptions = default(SubFieldOptions), bool forceSignerRoles = false, bool forceSubjectMessage = false, List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), List mergeFields = default(List), string message = default(string), Dictionary metadata = default(Dictionary), bool showPreview = false, bool showProgressStepper = true, List signerRoles = default(List), bool skipMeNow = false, string subject = default(string), bool testMode = false, string title = default(string), bool usePreexistingFields = false) + public TemplateCreateEmbeddedDraftRequest( + List files = default(List), + List fileUrls = default(List), + bool allowCcs = true, + bool allowReassign = false, + List attachments = default(List), + List ccRoles = default(List), + string clientId = default(string), + SubEditorOptions editorOptions = default(SubEditorOptions), + SubFieldOptions fieldOptions = default(SubFieldOptions), + bool forceSignerRoles = false, + bool forceSubjectMessage = false, + List formFieldGroups = default(List), + List formFieldRules = default(List), + List formFieldsPerDocument = + default(List), + List mergeFields = default(List), + string message = default(string), + Dictionary metadata = default(Dictionary), + bool showPreview = false, + bool showProgressStepper = true, + List signerRoles = default(List), + bool skipMeNow = false, + string subject = default(string), + bool testMode = false, + string title = default(string), + bool usePreexistingFields = false + ) { - // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for TemplateCreateEmbeddedDraftRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for TemplateCreateEmbeddedDraftRequest and cannot be null" + ); } this.ClientId = clientId; this.Files = files; @@ -111,7 +142,9 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftRequest" + ); } return obj; @@ -123,7 +156,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -131,7 +163,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -139,7 +170,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. @@ -147,7 +177,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -155,7 +184,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments @@ -163,7 +191,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The CC roles that must be assigned when using the template to send a signature request @@ -171,21 +198,18 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The CC roles that must be assigned when using the template to send a signature request [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Provide users the ability to review/edit the template signer roles. @@ -193,7 +217,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Provide users the ability to review/edit the template signer roles. [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } - /// /// Provide users the ability to review/edit the template subject and message. @@ -201,7 +224,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Provide users the ability to review/edit the template subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -209,7 +231,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -217,7 +238,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -225,7 +245,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. @@ -233,7 +252,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } - /// /// The default template email message. @@ -241,7 +259,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -249,7 +266,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. @@ -257,7 +273,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -265,7 +280,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -273,7 +287,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "signer_roles", EmitDefaultValue = true)] public List SignerRoles { get; set; } - /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. @@ -281,7 +294,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } - /// /// The template title (alias). @@ -289,7 +301,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The template title (alias). [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -297,7 +308,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. @@ -305,7 +315,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). @@ -313,7 +322,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } - /// /// Returns the string presentation of the object @@ -358,7 +366,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -382,132 +393,118 @@ public bool Equals(TemplateCreateEmbeddedDraftRequest input) { return false; } - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.AllowCcs == input.AllowCcs || - this.AllowCcs.Equals(input.AllowCcs) - ) && - ( - this.AllowReassign == input.AllowReassign || - this.AllowReassign.Equals(input.AllowReassign) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.CcRoles == input.CcRoles || - this.CcRoles != null && - input.CcRoles != null && - this.CcRoles.SequenceEqual(input.CcRoles) - ) && - ( - this.EditorOptions == input.EditorOptions || - (this.EditorOptions != null && - this.EditorOptions.Equals(input.EditorOptions)) - ) && - ( - this.FieldOptions == input.FieldOptions || - (this.FieldOptions != null && - this.FieldOptions.Equals(input.FieldOptions)) - ) && - ( - this.ForceSignerRoles == input.ForceSignerRoles || - this.ForceSignerRoles.Equals(input.ForceSignerRoles) - ) && - ( - this.ForceSubjectMessage == input.ForceSubjectMessage || - this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) - ) && - ( - this.FormFieldGroups == input.FormFieldGroups || - this.FormFieldGroups != null && - input.FormFieldGroups != null && - this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) && - ( - this.FormFieldRules == input.FormFieldRules || - this.FormFieldRules != null && - input.FormFieldRules != null && - this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) && - ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument || - this.FormFieldsPerDocument != null && - input.FormFieldsPerDocument != null && - this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) && - ( - this.MergeFields == input.MergeFields || - this.MergeFields != null && - input.MergeFields != null && - this.MergeFields.SequenceEqual(input.MergeFields) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.ShowPreview == input.ShowPreview || - this.ShowPreview.Equals(input.ShowPreview) - ) && - ( - this.ShowProgressStepper == input.ShowProgressStepper || - this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) && - ( - this.SignerRoles == input.SignerRoles || - this.SignerRoles != null && - input.SignerRoles != null && - this.SignerRoles.SequenceEqual(input.SignerRoles) - ) && - ( - this.SkipMeNow == input.SkipMeNow || - this.SkipMeNow.Equals(input.SkipMeNow) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.UsePreexistingFields == input.UsePreexistingFields || - this.UsePreexistingFields.Equals(input.UsePreexistingFields) + return ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && (this.AllowCcs == input.AllowCcs || this.AllowCcs.Equals(input.AllowCcs)) + && ( + this.AllowReassign == input.AllowReassign + || this.AllowReassign.Equals(input.AllowReassign) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.CcRoles == input.CcRoles + || this.CcRoles != null + && input.CcRoles != null + && this.CcRoles.SequenceEqual(input.CcRoles) + ) + && ( + this.EditorOptions == input.EditorOptions + || ( + this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) + ) + ) + && ( + this.FieldOptions == input.FieldOptions + || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) + ) + && ( + this.ForceSignerRoles == input.ForceSignerRoles + || this.ForceSignerRoles.Equals(input.ForceSignerRoles) + ) + && ( + this.ForceSubjectMessage == input.ForceSubjectMessage + || this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) + ) + && ( + this.FormFieldGroups == input.FormFieldGroups + || this.FormFieldGroups != null + && input.FormFieldGroups != null + && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) + && ( + this.FormFieldRules == input.FormFieldRules + || this.FormFieldRules != null + && input.FormFieldRules != null + && this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) + && ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument + || this.FormFieldsPerDocument != null + && input.FormFieldsPerDocument != null + && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) + && ( + this.MergeFields == input.MergeFields + || this.MergeFields != null + && input.MergeFields != null + && this.MergeFields.SequenceEqual(input.MergeFields) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.ShowPreview == input.ShowPreview + || this.ShowPreview.Equals(input.ShowPreview) + ) + && ( + this.ShowProgressStepper == input.ShowProgressStepper + || this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) + && ( + this.SignerRoles == input.SignerRoles + || this.SignerRoles != null + && input.SignerRoles != null + && this.SignerRoles.SequenceEqual(input.SignerRoles) + ) + && (this.SkipMeNow == input.SkipMeNow || this.SkipMeNow.Equals(input.SkipMeNow)) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.UsePreexistingFields == input.UsePreexistingFields + || this.UsePreexistingFields.Equals(input.UsePreexistingFields) ); } @@ -602,18 +599,26 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 200.", + new[] { "Subject" } + ); } yield break; @@ -622,159 +627,233 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "allow_ccs", - Property = "AllowCcs", - Type = "bool", - Value = AllowCcs, - }); - types.Add(new OpenApiType(){ - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "cc_roles", - Property = "CcRoles", - Type = "List", - Value = CcRoles, - }); - types.Add(new OpenApiType(){ - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - }); - types.Add(new OpenApiType(){ - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - }); - types.Add(new OpenApiType(){ - Name = "force_signer_roles", - Property = "ForceSignerRoles", - Type = "bool", - Value = ForceSignerRoles, - }); - types.Add(new OpenApiType(){ - Name = "force_subject_message", - Property = "ForceSubjectMessage", - Type = "bool", - Value = ForceSubjectMessage, - }); - types.Add(new OpenApiType(){ - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - }); - types.Add(new OpenApiType(){ - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - }); - types.Add(new OpenApiType(){ - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - }); - types.Add(new OpenApiType(){ - Name = "merge_fields", - Property = "MergeFields", - Type = "List", - Value = MergeFields, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "show_preview", - Property = "ShowPreview", - Type = "bool", - Value = ShowPreview, - }); - types.Add(new OpenApiType(){ - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - }); - types.Add(new OpenApiType(){ - Name = "signer_roles", - Property = "SignerRoles", - Type = "List", - Value = SignerRoles, - }); - types.Add(new OpenApiType(){ - Name = "skip_me_now", - Property = "SkipMeNow", - Type = "bool", - Value = SkipMeNow, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "use_preexisting_fields", - Property = "UsePreexistingFields", - Type = "bool", - Value = UsePreexistingFields, - }); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_ccs", + Property = "AllowCcs", + Type = "bool", + Value = AllowCcs, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_roles", + Property = "CcRoles", + Type = "List", + Value = CcRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "force_signer_roles", + Property = "ForceSignerRoles", + Type = "bool", + Value = ForceSignerRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "force_subject_message", + Property = "ForceSubjectMessage", + Type = "bool", + Value = ForceSubjectMessage, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + } + ); + types.Add( + new OpenApiType() + { + Name = "merge_fields", + Property = "MergeFields", + Type = "List", + Value = MergeFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_preview", + Property = "ShowPreview", + Type = "bool", + Value = ShowPreview, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_roles", + Property = "SignerRoles", + Type = "List", + Value = SignerRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "skip_me_now", + Property = "SkipMeNow", + Type = "bool", + Value = SkipMeNow, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_preexisting_fields", + Property = "UsePreexistingFields", + Type = "bool", + Value = UsePreexistingFields, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs index 0ed1bff0b..40453ee95 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,27 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateEmbeddedDraftResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateEmbeddedDraftResponse : IEquatable, IValidatableObject + public partial class TemplateCreateEmbeddedDraftResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateEmbeddedDraftResponse() { } + /// /// Initializes a new instance of the class. /// /// template. /// A list of warnings.. - public TemplateCreateEmbeddedDraftResponse(TemplateCreateEmbeddedDraftResponseTemplate template = default(TemplateCreateEmbeddedDraftResponseTemplate), List warnings = default(List)) + public TemplateCreateEmbeddedDraftResponse( + TemplateCreateEmbeddedDraftResponseTemplate template = + default(TemplateCreateEmbeddedDraftResponseTemplate), + List warnings = default(List) + ) { - this.Template = template; this.Warnings = warnings; } @@ -60,7 +66,9 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftResponse" + ); } return obj; @@ -71,7 +79,6 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateCreateEmbeddedDraftResponseTemplate Template { get; set; } - /// /// A list of warnings. @@ -79,7 +86,6 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +107,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +134,15 @@ public bool Equals(TemplateCreateEmbeddedDraftResponse input) { return false; } - return - ( - this.Template == input.Template || - (this.Template != null && - this.Template.Equals(input.Template)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Template == input.Template + || (this.Template != null && this.Template.Equals(input.Template)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +172,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +182,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template", - Property = "Template", - Type = "TemplateCreateEmbeddedDraftResponseTemplate", - Value = Template, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "template", + Property = "Template", + Type = "TemplateCreateEmbeddedDraftResponseTemplate", + Value = Template, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs index 5bc13da10..d7aeb5d97 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateEmbeddedDraftResponseTemplate")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateEmbeddedDraftResponseTemplate : IEquatable, IValidatableObject + public partial class TemplateCreateEmbeddedDraftResponseTemplate + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateEmbeddedDraftResponseTemplate() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +48,13 @@ protected TemplateCreateEmbeddedDraftResponseTemplate() { } /// Link to edit the template.. /// When the link expires.. /// A list of warnings.. - public TemplateCreateEmbeddedDraftResponseTemplate(string templateId = default(string), string editUrl = default(string), int expiresAt = default(int), List warnings = default(List)) + public TemplateCreateEmbeddedDraftResponseTemplate( + string templateId = default(string), + string editUrl = default(string), + int expiresAt = default(int), + List warnings = default(List) + ) { - this.TemplateId = templateId; this.EditUrl = editUrl; this.ExpiresAt = expiresAt; @@ -60,11 +67,15 @@ protected TemplateCreateEmbeddedDraftResponseTemplate() { } /// String of JSON data representing target object public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftResponseTemplate"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftResponseTemplate" + ); } return obj; @@ -76,7 +87,6 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// Link to edit the template. @@ -84,7 +94,6 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) /// Link to edit the template. [DataMember(Name = "edit_url", EmitDefaultValue = true)] public string EditUrl { get; set; } - /// /// When the link expires. @@ -92,7 +101,6 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// A list of warnings. @@ -101,7 +109,6 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] [Obsolete] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -125,7 +132,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -149,26 +159,20 @@ public bool Equals(TemplateCreateEmbeddedDraftResponseTemplate input) { return false; } - return - ( - this.TemplateId == input.TemplateId || - (this.TemplateId != null && - this.TemplateId.Equals(input.TemplateId)) - ) && - ( - this.EditUrl == input.EditUrl || - (this.EditUrl != null && - this.EditUrl.Equals(input.EditUrl)) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.TemplateId == input.TemplateId + || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) + ) + && ( + this.EditUrl == input.EditUrl + || (this.EditUrl != null && this.EditUrl.Equals(input.EditUrl)) + ) + && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -203,7 +207,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -211,33 +217,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - }); - types.Add(new OpenApiType(){ - Name = "edit_url", - Property = "EditUrl", - Type = "string", - Value = EditUrl, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + } + ); + types.Add( + new OpenApiType() + { + Name = "edit_url", + Property = "EditUrl", + Type = "string", + Value = EditUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs index 4048b5a35..abe2e2aac 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateRequest : IEquatable, IValidatableObject + public partial class TemplateCreateRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -59,19 +62,42 @@ protected TemplateCreateRequest() { } /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). (default to false). - public TemplateCreateRequest(List files = default(List), List fileUrls = default(List), bool allowReassign = false, List attachments = default(List), List ccRoles = default(List), string clientId = default(string), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), List mergeFields = default(List), string message = default(string), Dictionary metadata = default(Dictionary), List signerRoles = default(List), string subject = default(string), bool testMode = false, string title = default(string), bool usePreexistingFields = false) + public TemplateCreateRequest( + List files = default(List), + List fileUrls = default(List), + bool allowReassign = false, + List attachments = default(List), + List ccRoles = default(List), + string clientId = default(string), + SubFieldOptions fieldOptions = default(SubFieldOptions), + List formFieldGroups = default(List), + List formFieldRules = default(List), + List formFieldsPerDocument = + default(List), + List mergeFields = default(List), + string message = default(string), + Dictionary metadata = default(Dictionary), + List signerRoles = default(List), + string subject = default(string), + bool testMode = false, + string title = default(string), + bool usePreexistingFields = false + ) { - // to ensure "formFieldsPerDocument" is required (not null) if (formFieldsPerDocument == null) { - throw new ArgumentNullException("formFieldsPerDocument is a required property for TemplateCreateRequest and cannot be null"); + throw new ArgumentNullException( + "formFieldsPerDocument is a required property for TemplateCreateRequest and cannot be null" + ); } this.FormFieldsPerDocument = formFieldsPerDocument; // to ensure "signerRoles" is required (not null) if (signerRoles == null) { - throw new ArgumentNullException("signerRoles is a required property for TemplateCreateRequest and cannot be null"); + throw new ArgumentNullException( + "signerRoles is a required property for TemplateCreateRequest and cannot be null" + ); } this.SignerRoles = signerRoles; this.Files = files; @@ -102,7 +128,9 @@ public static TemplateCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateCreateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateCreateRequest" + ); } return obj; @@ -114,7 +142,6 @@ public static TemplateCreateRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", IsRequired = true, EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -122,7 +149,6 @@ public static TemplateCreateRequest Init(string jsonData) /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "signer_roles", IsRequired = true, EmitDefaultValue = true)] public List SignerRoles { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -130,7 +156,6 @@ public static TemplateCreateRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -138,7 +163,6 @@ public static TemplateCreateRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -146,7 +170,6 @@ public static TemplateCreateRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments @@ -154,7 +177,6 @@ public static TemplateCreateRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The CC roles that must be assigned when using the template to send a signature request @@ -162,7 +184,6 @@ public static TemplateCreateRequest Init(string jsonData) /// The CC roles that must be assigned when using the template to send a signature request [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } - /// /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. @@ -170,14 +191,12 @@ public static TemplateCreateRequest Init(string jsonData) /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -185,7 +204,6 @@ public static TemplateCreateRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -193,7 +211,6 @@ public static TemplateCreateRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. @@ -201,7 +218,6 @@ public static TemplateCreateRequest Init(string jsonData) /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } - /// /// The default template email message. @@ -209,7 +225,6 @@ public static TemplateCreateRequest Init(string jsonData) /// The default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -217,7 +232,6 @@ public static TemplateCreateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// The template title (alias). @@ -225,7 +239,6 @@ public static TemplateCreateRequest Init(string jsonData) /// The template title (alias). [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -233,7 +246,6 @@ public static TemplateCreateRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. @@ -241,7 +253,6 @@ public static TemplateCreateRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). @@ -249,7 +260,6 @@ public static TemplateCreateRequest Init(string jsonData) /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } - /// /// Returns the string presentation of the object @@ -287,7 +297,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -311,103 +324,94 @@ public bool Equals(TemplateCreateRequest input) { return false; } - return - ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument || - this.FormFieldsPerDocument != null && - input.FormFieldsPerDocument != null && - this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) && - ( - this.SignerRoles == input.SignerRoles || - this.SignerRoles != null && - input.SignerRoles != null && - this.SignerRoles.SequenceEqual(input.SignerRoles) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.AllowReassign == input.AllowReassign || - this.AllowReassign.Equals(input.AllowReassign) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.CcRoles == input.CcRoles || - this.CcRoles != null && - input.CcRoles != null && - this.CcRoles.SequenceEqual(input.CcRoles) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.FieldOptions == input.FieldOptions || - (this.FieldOptions != null && - this.FieldOptions.Equals(input.FieldOptions)) - ) && - ( - this.FormFieldGroups == input.FormFieldGroups || - this.FormFieldGroups != null && - input.FormFieldGroups != null && - this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) && - ( - this.FormFieldRules == input.FormFieldRules || - this.FormFieldRules != null && - input.FormFieldRules != null && - this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) && - ( - this.MergeFields == input.MergeFields || - this.MergeFields != null && - input.MergeFields != null && - this.MergeFields.SequenceEqual(input.MergeFields) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.UsePreexistingFields == input.UsePreexistingFields || - this.UsePreexistingFields.Equals(input.UsePreexistingFields) + return ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument + || this.FormFieldsPerDocument != null + && input.FormFieldsPerDocument != null + && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) + && ( + this.SignerRoles == input.SignerRoles + || this.SignerRoles != null + && input.SignerRoles != null + && this.SignerRoles.SequenceEqual(input.SignerRoles) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.AllowReassign == input.AllowReassign + || this.AllowReassign.Equals(input.AllowReassign) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.CcRoles == input.CcRoles + || this.CcRoles != null + && input.CcRoles != null + && this.CcRoles.SequenceEqual(input.CcRoles) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.FieldOptions == input.FieldOptions + || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) + ) + && ( + this.FormFieldGroups == input.FormFieldGroups + || this.FormFieldGroups != null + && input.FormFieldGroups != null + && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) + && ( + this.FormFieldRules == input.FormFieldRules + || this.FormFieldRules != null + && input.FormFieldRules != null + && this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) + && ( + this.MergeFields == input.MergeFields + || this.MergeFields != null + && input.MergeFields != null + && this.MergeFields.SequenceEqual(input.MergeFields) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.UsePreexistingFields == input.UsePreexistingFields + || this.UsePreexistingFields.Equals(input.UsePreexistingFields) ); } @@ -492,18 +496,26 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 200.", + new[] { "Subject" } + ); } yield break; @@ -512,117 +524,170 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - }); - types.Add(new OpenApiType(){ - Name = "signer_roles", - Property = "SignerRoles", - Type = "List", - Value = SignerRoles, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "cc_roles", - Property = "CcRoles", - Type = "List", - Value = CcRoles, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - }); - types.Add(new OpenApiType(){ - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - }); - types.Add(new OpenApiType(){ - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - }); - types.Add(new OpenApiType(){ - Name = "merge_fields", - Property = "MergeFields", - Type = "List", - Value = MergeFields, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "use_preexisting_fields", - Property = "UsePreexistingFields", - Type = "bool", - Value = UsePreexistingFields, - }); + types.Add( + new OpenApiType() + { + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_roles", + Property = "SignerRoles", + Type = "List", + Value = SignerRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_roles", + Property = "CcRoles", + Type = "List", + Value = CcRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + } + ); + types.Add( + new OpenApiType() + { + Name = "merge_fields", + Property = "MergeFields", + Type = "List", + Value = MergeFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_preexisting_fields", + Property = "UsePreexistingFields", + Type = "bool", + Value = UsePreexistingFields, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs index c8734bd57..7f859f58d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateResponse : IEquatable, IValidatableObject + public partial class TemplateCreateResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateResponse() { } + /// /// Initializes a new instance of the class. /// /// template. /// A list of warnings.. - public TemplateCreateResponse(TemplateCreateResponseTemplate template = default(TemplateCreateResponseTemplate), List warnings = default(List)) + public TemplateCreateResponse( + TemplateCreateResponseTemplate template = default(TemplateCreateResponseTemplate), + List warnings = default(List) + ) { - this.Template = template; this.Warnings = warnings; } @@ -60,7 +65,9 @@ public static TemplateCreateResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateCreateResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateCreateResponse" + ); } return obj; @@ -71,7 +78,6 @@ public static TemplateCreateResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateCreateResponseTemplate Template { get; set; } - /// /// A list of warnings. @@ -79,7 +85,6 @@ public static TemplateCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +106,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +133,15 @@ public bool Equals(TemplateCreateResponse input) { return false; } - return - ( - this.Template == input.Template || - (this.Template != null && - this.Template.Equals(input.Template)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Template == input.Template + || (this.Template != null && this.Template.Equals(input.Template)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +171,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +181,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template", - Property = "Template", - Type = "TemplateCreateResponseTemplate", - Value = Template, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "template", + Property = "Template", + Type = "TemplateCreateResponseTemplate", + Value = Template, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs index 04586c21a..afff92a5b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,20 +31,22 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateResponseTemplate")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateResponseTemplate : IEquatable, IValidatableObject + public partial class TemplateCreateResponseTemplate + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateResponseTemplate() { } + /// /// Initializes a new instance of the class. /// /// The id of the Template.. public TemplateCreateResponseTemplate(string templateId = default(string)) { - this.TemplateId = templateId; } @@ -58,7 +60,9 @@ public static TemplateCreateResponseTemplate Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateCreateResponseTemplate"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateCreateResponseTemplate" + ); } return obj; @@ -70,7 +74,6 @@ public static TemplateCreateResponseTemplate Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// Returns the string presentation of the object @@ -91,7 +94,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -115,12 +121,10 @@ public bool Equals(TemplateCreateResponseTemplate input) { return false; } - return - ( - this.TemplateId == input.TemplateId || - (this.TemplateId != null && - this.TemplateId.Equals(input.TemplateId)) - ); + return ( + this.TemplateId == input.TemplateId + || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) + ); } /// @@ -145,7 +149,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -153,15 +159,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - }); + types.Add( + new OpenApiType() + { + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs index 8601c721a..0fd9d5922 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class TemplateEditResponse : IEquatable, IV /// [JsonConstructorAttribute] protected TemplateEditResponse() { } + /// /// Initializes a new instance of the class. /// /// The id of the Template.. public TemplateEditResponse(string templateId = default(string)) { - this.TemplateId = templateId; } @@ -58,7 +58,9 @@ public static TemplateEditResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateEditResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateEditResponse" + ); } return obj; @@ -70,7 +72,6 @@ public static TemplateEditResponse Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// Returns the string presentation of the object @@ -91,7 +92,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -115,12 +119,10 @@ public bool Equals(TemplateEditResponse input) { return false; } - return - ( - this.TemplateId == input.TemplateId || - (this.TemplateId != null && - this.TemplateId.Equals(input.TemplateId)) - ); + return ( + this.TemplateId == input.TemplateId + || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) + ); } /// @@ -145,7 +147,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -153,15 +157,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - }); + types.Add( + new OpenApiType() + { + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs index 4f70c5fb6..7aeb17378 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,14 +38,17 @@ public partial class TemplateGetResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected TemplateGetResponse() { } + /// /// Initializes a new instance of the class. /// /// template. /// A list of warnings.. - public TemplateGetResponse(TemplateResponse template = default(TemplateResponse), List warnings = default(List)) + public TemplateGetResponse( + TemplateResponse template = default(TemplateResponse), + List warnings = default(List) + ) { - this.Template = template; this.Warnings = warnings; } @@ -60,7 +63,9 @@ public static TemplateGetResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateGetResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateGetResponse" + ); } return obj; @@ -71,7 +76,6 @@ public static TemplateGetResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateResponse Template { get; set; } - /// /// A list of warnings. @@ -79,7 +83,6 @@ public static TemplateGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +104,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +131,15 @@ public bool Equals(TemplateGetResponse input) { return false; } - return - ( - this.Template == input.Template || - (this.Template != null && - this.Template.Equals(input.Template)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Template == input.Template + || (this.Template != null && this.Template.Equals(input.Template)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +169,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +179,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template", - Property = "Template", - Type = "TemplateResponse", - Value = Template, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "template", + Property = "Template", + Type = "TemplateResponse", + Value = Template, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs index 0577af964..e3c80f806 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,15 +38,19 @@ public partial class TemplateListResponse : IEquatable, IV /// [JsonConstructorAttribute] protected TemplateListResponse() { } + /// /// Initializes a new instance of the class. /// /// List of templates that the API caller has access to.. /// listInfo. /// A list of warnings.. - public TemplateListResponse(List templates = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) + public TemplateListResponse( + List templates = default(List), + ListInfoResponse listInfo = default(ListInfoResponse), + List warnings = default(List) + ) { - this.Templates = templates; this.ListInfo = listInfo; this.Warnings = warnings; @@ -62,7 +66,9 @@ public static TemplateListResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateListResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateListResponse" + ); } return obj; @@ -74,14 +80,12 @@ public static TemplateListResponse Init(string jsonData) /// List of templates that the API caller has access to. [DataMember(Name = "templates", EmitDefaultValue = true)] public List Templates { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// A list of warnings. @@ -89,7 +93,6 @@ public static TemplateListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +115,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,23 +142,21 @@ public bool Equals(TemplateListResponse input) { return false; } - return - ( - this.Templates == input.Templates || - this.Templates != null && - input.Templates != null && - this.Templates.SequenceEqual(input.Templates) - ) && - ( - this.ListInfo == input.ListInfo || - (this.ListInfo != null && - this.ListInfo.Equals(input.ListInfo)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.Templates == input.Templates + || this.Templates != null + && input.Templates != null + && this.Templates.SequenceEqual(input.Templates) + ) + && ( + this.ListInfo == input.ListInfo + || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -186,7 +190,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -194,27 +200,35 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "templates", - Property = "Templates", - Type = "List", - Value = Templates, - }); - types.Add(new OpenApiType(){ - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "templates", + Property = "Templates", + Type = "List", + Value = Templates, + } + ); + types.Add( + new OpenApiType() + { + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs index f99e5822a..fad2bf676 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateRemoveUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateRemoveUserRequest : IEquatable, IValidatableObject + public partial class TemplateRemoveUserRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateRemoveUserRequest() { } + /// /// Initializes a new instance of the class. /// /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided.. /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided.. - public TemplateRemoveUserRequest(string accountId = default(string), string emailAddress = default(string)) + public TemplateRemoveUserRequest( + string accountId = default(string), + string emailAddress = default(string) + ) { - this.AccountId = accountId; this.EmailAddress = emailAddress; } @@ -60,7 +65,9 @@ public static TemplateRemoveUserRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateRemoveUserRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateRemoveUserRequest" + ); } return obj; @@ -72,7 +79,6 @@ public static TemplateRemoveUserRequest Init(string jsonData) /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. @@ -80,7 +86,6 @@ public static TemplateRemoveUserRequest Init(string jsonData) /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +107,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,16 +134,13 @@ public bool Equals(TemplateRemoveUserRequest input) { return false; } - return - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) + return ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -165,7 +170,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +180,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs index 5ae571ae7..d9c62212c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,6 +38,7 @@ public partial class TemplateResponse : IEquatable, IValidatab /// [JsonConstructorAttribute] protected TemplateResponse() { } + /// /// Initializes a new instance of the class. /// @@ -56,9 +57,27 @@ protected TemplateResponse() { } /// Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead.. /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead.. /// An array of the Accounts that can use this Template.. - public TemplateResponse(string templateId = default(string), string title = default(string), string message = default(string), int updatedAt = default(int), bool? isEmbedded = default(bool?), bool? isCreator = default(bool?), bool? canEdit = default(bool?), bool? isLocked = default(bool?), Object metadata = default(Object), List signerRoles = default(List), List ccRoles = default(List), List documents = default(List), List customFields = default(List), List namedFormFields = default(List), List accounts = default(List)) + public TemplateResponse( + string templateId = default(string), + string title = default(string), + string message = default(string), + int updatedAt = default(int), + bool? isEmbedded = default(bool?), + bool? isCreator = default(bool?), + bool? canEdit = default(bool?), + bool? isLocked = default(bool?), + Object metadata = default(Object), + List signerRoles = + default(List), + List ccRoles = default(List), + List documents = default(List), + List customFields = + default(List), + List namedFormFields = + default(List), + List accounts = default(List) + ) { - this.TemplateId = templateId; this.Title = title; this.Message = message; @@ -98,7 +117,6 @@ public static TemplateResponse Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. @@ -106,7 +124,6 @@ public static TemplateResponse Init(string jsonData) /// The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. @@ -114,7 +131,6 @@ public static TemplateResponse Init(string jsonData) /// The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Time the template was last updated. @@ -122,7 +138,6 @@ public static TemplateResponse Init(string jsonData) /// Time the template was last updated. [DataMember(Name = "updated_at", EmitDefaultValue = true)] public int UpdatedAt { get; set; } - /// /// `true` if this template was created using an embedded flow, `false` if it was created on our website. @@ -130,7 +145,6 @@ public static TemplateResponse Init(string jsonData) /// `true` if this template was created using an embedded flow, `false` if it was created on our website. [DataMember(Name = "is_embedded", EmitDefaultValue = true)] public bool? IsEmbedded { get; set; } - /// /// `true` if you are the owner of this template, `false` if it's been shared with you by a team member. @@ -138,7 +152,6 @@ public static TemplateResponse Init(string jsonData) /// `true` if you are the owner of this template, `false` if it's been shared with you by a team member. [DataMember(Name = "is_creator", EmitDefaultValue = true)] public bool? IsCreator { get; set; } - /// /// Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). @@ -146,7 +159,6 @@ public static TemplateResponse Init(string jsonData) /// Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). [DataMember(Name = "can_edit", EmitDefaultValue = true)] public bool? CanEdit { get; set; } - /// /// Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. @@ -154,7 +166,6 @@ public static TemplateResponse Init(string jsonData) /// Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool? IsLocked { get; set; } - /// /// The metadata attached to the template. @@ -162,7 +173,6 @@ public static TemplateResponse Init(string jsonData) /// The metadata attached to the template. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } - /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -170,7 +180,6 @@ public static TemplateResponse Init(string jsonData) /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "signer_roles", EmitDefaultValue = true)] public List SignerRoles { get; set; } - /// /// An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. @@ -178,7 +187,6 @@ public static TemplateResponse Init(string jsonData) /// An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } - /// /// An array describing each document associated with this Template. Includes form field data for each document. @@ -186,7 +194,6 @@ public static TemplateResponse Init(string jsonData) /// An array describing each document associated with this Template. Includes form field data for each document. [DataMember(Name = "documents", EmitDefaultValue = true)] public List Documents { get; set; } - /// /// Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. @@ -195,7 +202,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] [Obsolete] public List CustomFields { get; set; } - /// /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. @@ -204,7 +210,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "named_form_fields", EmitDefaultValue = true)] [Obsolete] public List NamedFormFields { get; set; } - /// /// An array of the Accounts that can use this Template. @@ -212,7 +217,6 @@ public static TemplateResponse Init(string jsonData) /// An array of the Accounts that can use this Template. [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } - /// /// Returns the string presentation of the object @@ -247,7 +251,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -271,86 +278,74 @@ public bool Equals(TemplateResponse input) { return false; } - return - ( - this.TemplateId == input.TemplateId || - (this.TemplateId != null && - this.TemplateId.Equals(input.TemplateId)) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.UpdatedAt == input.UpdatedAt || - this.UpdatedAt.Equals(input.UpdatedAt) - ) && - ( - this.IsEmbedded == input.IsEmbedded || - (this.IsEmbedded != null && - this.IsEmbedded.Equals(input.IsEmbedded)) - ) && - ( - this.IsCreator == input.IsCreator || - (this.IsCreator != null && - this.IsCreator.Equals(input.IsCreator)) - ) && - ( - this.CanEdit == input.CanEdit || - (this.CanEdit != null && - this.CanEdit.Equals(input.CanEdit)) - ) && - ( - this.IsLocked == input.IsLocked || - (this.IsLocked != null && - this.IsLocked.Equals(input.IsLocked)) - ) && - ( - this.Metadata == input.Metadata || - (this.Metadata != null && - this.Metadata.Equals(input.Metadata)) - ) && - ( - this.SignerRoles == input.SignerRoles || - this.SignerRoles != null && - input.SignerRoles != null && - this.SignerRoles.SequenceEqual(input.SignerRoles) - ) && - ( - this.CcRoles == input.CcRoles || - this.CcRoles != null && - input.CcRoles != null && - this.CcRoles.SequenceEqual(input.CcRoles) - ) && - ( - this.Documents == input.Documents || - this.Documents != null && - input.Documents != null && - this.Documents.SequenceEqual(input.Documents) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.NamedFormFields == input.NamedFormFields || - this.NamedFormFields != null && - input.NamedFormFields != null && - this.NamedFormFields.SequenceEqual(input.NamedFormFields) - ) && - ( - this.Accounts == input.Accounts || - this.Accounts != null && - input.Accounts != null && - this.Accounts.SequenceEqual(input.Accounts) + return ( + this.TemplateId == input.TemplateId + || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) + ) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && (this.UpdatedAt == input.UpdatedAt || this.UpdatedAt.Equals(input.UpdatedAt)) + && ( + this.IsEmbedded == input.IsEmbedded + || (this.IsEmbedded != null && this.IsEmbedded.Equals(input.IsEmbedded)) + ) + && ( + this.IsCreator == input.IsCreator + || (this.IsCreator != null && this.IsCreator.Equals(input.IsCreator)) + ) + && ( + this.CanEdit == input.CanEdit + || (this.CanEdit != null && this.CanEdit.Equals(input.CanEdit)) + ) + && ( + this.IsLocked == input.IsLocked + || (this.IsLocked != null && this.IsLocked.Equals(input.IsLocked)) + ) + && ( + this.Metadata == input.Metadata + || (this.Metadata != null && this.Metadata.Equals(input.Metadata)) + ) + && ( + this.SignerRoles == input.SignerRoles + || this.SignerRoles != null + && input.SignerRoles != null + && this.SignerRoles.SequenceEqual(input.SignerRoles) + ) + && ( + this.CcRoles == input.CcRoles + || this.CcRoles != null + && input.CcRoles != null + && this.CcRoles.SequenceEqual(input.CcRoles) + ) + && ( + this.Documents == input.Documents + || this.Documents != null + && input.Documents != null + && this.Documents.SequenceEqual(input.Documents) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.NamedFormFields == input.NamedFormFields + || this.NamedFormFields != null + && input.NamedFormFields != null + && this.NamedFormFields.SequenceEqual(input.NamedFormFields) + ) + && ( + this.Accounts == input.Accounts + || this.Accounts != null + && input.Accounts != null + && this.Accounts.SequenceEqual(input.Accounts) ); } @@ -429,7 +424,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -437,99 +434,143 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "updated_at", - Property = "UpdatedAt", - Type = "int", - Value = UpdatedAt, - }); - types.Add(new OpenApiType(){ - Name = "is_embedded", - Property = "IsEmbedded", - Type = "bool?", - Value = IsEmbedded, - }); - types.Add(new OpenApiType(){ - Name = "is_creator", - Property = "IsCreator", - Type = "bool?", - Value = IsCreator, - }); - types.Add(new OpenApiType(){ - Name = "can_edit", - Property = "CanEdit", - Type = "bool?", - Value = CanEdit, - }); - types.Add(new OpenApiType(){ - Name = "is_locked", - Property = "IsLocked", - Type = "bool?", - Value = IsLocked, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Object", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "signer_roles", - Property = "SignerRoles", - Type = "List", - Value = SignerRoles, - }); - types.Add(new OpenApiType(){ - Name = "cc_roles", - Property = "CcRoles", - Type = "List", - Value = CcRoles, - }); - types.Add(new OpenApiType(){ - Name = "documents", - Property = "Documents", - Type = "List", - Value = Documents, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "named_form_fields", - Property = "NamedFormFields", - Type = "List", - Value = NamedFormFields, - }); - types.Add(new OpenApiType(){ - Name = "accounts", - Property = "Accounts", - Type = "List", - Value = Accounts, - }); + types.Add( + new OpenApiType() + { + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "updated_at", + Property = "UpdatedAt", + Type = "int", + Value = UpdatedAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_embedded", + Property = "IsEmbedded", + Type = "bool?", + Value = IsEmbedded, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_creator", + Property = "IsCreator", + Type = "bool?", + Value = IsCreator, + } + ); + types.Add( + new OpenApiType() + { + Name = "can_edit", + Property = "CanEdit", + Type = "bool?", + Value = CanEdit, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_locked", + Property = "IsLocked", + Type = "bool?", + Value = IsLocked, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Object", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer_roles", + Property = "SignerRoles", + Type = "List", + Value = SignerRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_roles", + Property = "CcRoles", + Type = "List", + Value = CcRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "documents", + Property = "Documents", + Type = "List", + Value = Documents, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "named_form_fields", + Property = "NamedFormFields", + Type = "List", + Value = NamedFormFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "accounts", + Property = "Accounts", + Type = "List", + Value = Accounts, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs index c4c8f5e68..6a2adfaf0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseAccount")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseAccount : IEquatable, IValidatableObject + public partial class TemplateResponseAccount + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseAccount() { } + /// /// Initializes a new instance of the class. /// @@ -47,9 +50,15 @@ protected TemplateResponseAccount() { } /// Returns `true` if the user has a paid Dropbox Sign account.. /// Returns `true` if the user has a paid HelloFax account.. /// quotas. - public TemplateResponseAccount(string accountId = default(string), string emailAddress = default(string), bool isLocked = default(bool), bool isPaidHs = default(bool), bool isPaidHf = default(bool), TemplateResponseAccountQuota quotas = default(TemplateResponseAccountQuota)) + public TemplateResponseAccount( + string accountId = default(string), + string emailAddress = default(string), + bool isLocked = default(bool), + bool isPaidHs = default(bool), + bool isPaidHf = default(bool), + TemplateResponseAccountQuota quotas = default(TemplateResponseAccountQuota) + ) { - this.AccountId = accountId; this.EmailAddress = emailAddress; this.IsLocked = isLocked; @@ -68,7 +77,9 @@ public static TemplateResponseAccount Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseAccount"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseAccount" + ); } return obj; @@ -80,7 +91,6 @@ public static TemplateResponseAccount Init(string jsonData) /// The id of the Account. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The email address associated with the Account. @@ -88,7 +98,6 @@ public static TemplateResponseAccount Init(string jsonData) /// The email address associated with the Account. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns `true` if the user has been locked out of their account by a team admin. @@ -96,7 +105,6 @@ public static TemplateResponseAccount Init(string jsonData) /// Returns `true` if the user has been locked out of their account by a team admin. [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool IsLocked { get; set; } - /// /// Returns `true` if the user has a paid Dropbox Sign account. @@ -104,7 +112,6 @@ public static TemplateResponseAccount Init(string jsonData) /// Returns `true` if the user has a paid Dropbox Sign account. [DataMember(Name = "is_paid_hs", EmitDefaultValue = true)] public bool IsPaidHs { get; set; } - /// /// Returns `true` if the user has a paid HelloFax account. @@ -112,14 +119,12 @@ public static TemplateResponseAccount Init(string jsonData) /// Returns `true` if the user has a paid HelloFax account. [DataMember(Name = "is_paid_hf", EmitDefaultValue = true)] public bool IsPaidHf { get; set; } - /// /// Gets or Sets Quotas /// [DataMember(Name = "quotas", EmitDefaultValue = true)] public TemplateResponseAccountQuota Quotas { get; set; } - /// /// Returns the string presentation of the object @@ -145,7 +150,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -169,33 +177,20 @@ public bool Equals(TemplateResponseAccount input) { return false; } - return - ( - this.AccountId == input.AccountId || - (this.AccountId != null && - this.AccountId.Equals(input.AccountId)) - ) && - ( - this.EmailAddress == input.EmailAddress || - (this.EmailAddress != null && - this.EmailAddress.Equals(input.EmailAddress)) - ) && - ( - this.IsLocked == input.IsLocked || - this.IsLocked.Equals(input.IsLocked) - ) && - ( - this.IsPaidHs == input.IsPaidHs || - this.IsPaidHs.Equals(input.IsPaidHs) - ) && - ( - this.IsPaidHf == input.IsPaidHf || - this.IsPaidHf.Equals(input.IsPaidHf) - ) && - ( - this.Quotas == input.Quotas || - (this.Quotas != null && - this.Quotas.Equals(input.Quotas)) + return ( + this.AccountId == input.AccountId + || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + ) + && ( + this.EmailAddress == input.EmailAddress + || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + ) + && (this.IsLocked == input.IsLocked || this.IsLocked.Equals(input.IsLocked)) + && (this.IsPaidHs == input.IsPaidHs || this.IsPaidHs.Equals(input.IsPaidHs)) + && (this.IsPaidHf == input.IsPaidHf || this.IsPaidHf.Equals(input.IsPaidHf)) + && ( + this.Quotas == input.Quotas + || (this.Quotas != null && this.Quotas.Equals(input.Quotas)) ); } @@ -232,7 +227,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -240,45 +237,62 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - }); - types.Add(new OpenApiType(){ - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "is_locked", - Property = "IsLocked", - Type = "bool", - Value = IsLocked, - }); - types.Add(new OpenApiType(){ - Name = "is_paid_hs", - Property = "IsPaidHs", - Type = "bool", - Value = IsPaidHs, - }); - types.Add(new OpenApiType(){ - Name = "is_paid_hf", - Property = "IsPaidHf", - Type = "bool", - Value = IsPaidHf, - }); - types.Add(new OpenApiType(){ - Name = "quotas", - Property = "Quotas", - Type = "TemplateResponseAccountQuota", - Value = Quotas, - }); + types.Add( + new OpenApiType() + { + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + } + ); + types.Add( + new OpenApiType() + { + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_locked", + Property = "IsLocked", + Type = "bool", + Value = IsLocked, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_paid_hs", + Property = "IsPaidHs", + Type = "bool", + Value = IsPaidHs, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_paid_hf", + Property = "IsPaidHf", + Type = "bool", + Value = IsPaidHf, + } + ); + types.Add( + new OpenApiType() + { + Name = "quotas", + Property = "Quotas", + Type = "TemplateResponseAccountQuota", + Value = Quotas, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs index 5fedca660..eb0e59ccc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseAccountQuota")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseAccountQuota : IEquatable, IValidatableObject + public partial class TemplateResponseAccountQuota + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseAccountQuota() { } + /// /// Initializes a new instance of the class. /// @@ -45,9 +48,13 @@ protected TemplateResponseAccountQuota() { } /// API signature requests remaining.. /// Signature requests remaining.. /// SMS verifications remaining.. - public TemplateResponseAccountQuota(int templatesLeft = default(int), int apiSignatureRequestsLeft = default(int), int documentsLeft = default(int), int smsVerificationsLeft = default(int)) + public TemplateResponseAccountQuota( + int templatesLeft = default(int), + int apiSignatureRequestsLeft = default(int), + int documentsLeft = default(int), + int smsVerificationsLeft = default(int) + ) { - this.TemplatesLeft = templatesLeft; this.ApiSignatureRequestsLeft = apiSignatureRequestsLeft; this.DocumentsLeft = documentsLeft; @@ -64,7 +71,9 @@ public static TemplateResponseAccountQuota Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseAccountQuota"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseAccountQuota" + ); } return obj; @@ -76,7 +85,6 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// API templates remaining. [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int TemplatesLeft { get; set; } - /// /// API signature requests remaining. @@ -84,7 +92,6 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// API signature requests remaining. [DataMember(Name = "api_signature_requests_left", EmitDefaultValue = true)] public int ApiSignatureRequestsLeft { get; set; } - /// /// Signature requests remaining. @@ -92,7 +99,6 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// Signature requests remaining. [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int DocumentsLeft { get; set; } - /// /// SMS verifications remaining. @@ -100,7 +106,6 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// SMS verifications remaining. [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int SmsVerificationsLeft { get; set; } - /// /// Returns the string presentation of the object @@ -124,7 +129,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -148,22 +156,21 @@ public bool Equals(TemplateResponseAccountQuota input) { return false; } - return - ( - this.TemplatesLeft == input.TemplatesLeft || - this.TemplatesLeft.Equals(input.TemplatesLeft) - ) && - ( - this.ApiSignatureRequestsLeft == input.ApiSignatureRequestsLeft || - this.ApiSignatureRequestsLeft.Equals(input.ApiSignatureRequestsLeft) - ) && - ( - this.DocumentsLeft == input.DocumentsLeft || - this.DocumentsLeft.Equals(input.DocumentsLeft) - ) && - ( - this.SmsVerificationsLeft == input.SmsVerificationsLeft || - this.SmsVerificationsLeft.Equals(input.SmsVerificationsLeft) + return ( + this.TemplatesLeft == input.TemplatesLeft + || this.TemplatesLeft.Equals(input.TemplatesLeft) + ) + && ( + this.ApiSignatureRequestsLeft == input.ApiSignatureRequestsLeft + || this.ApiSignatureRequestsLeft.Equals(input.ApiSignatureRequestsLeft) + ) + && ( + this.DocumentsLeft == input.DocumentsLeft + || this.DocumentsLeft.Equals(input.DocumentsLeft) + ) + && ( + this.SmsVerificationsLeft == input.SmsVerificationsLeft + || this.SmsVerificationsLeft.Equals(input.SmsVerificationsLeft) ); } @@ -189,7 +196,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -197,33 +206,44 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "templates_left", - Property = "TemplatesLeft", - Type = "int", - Value = TemplatesLeft, - }); - types.Add(new OpenApiType(){ - Name = "api_signature_requests_left", - Property = "ApiSignatureRequestsLeft", - Type = "int", - Value = ApiSignatureRequestsLeft, - }); - types.Add(new OpenApiType(){ - Name = "documents_left", - Property = "DocumentsLeft", - Type = "int", - Value = DocumentsLeft, - }); - types.Add(new OpenApiType(){ - Name = "sms_verifications_left", - Property = "SmsVerificationsLeft", - Type = "int", - Value = SmsVerificationsLeft, - }); + types.Add( + new OpenApiType() + { + Name = "templates_left", + Property = "TemplatesLeft", + Type = "int", + Value = TemplatesLeft, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_signature_requests_left", + Property = "ApiSignatureRequestsLeft", + Type = "int", + Value = ApiSignatureRequestsLeft, + } + ); + types.Add( + new OpenApiType() + { + Name = "documents_left", + Property = "DocumentsLeft", + Type = "int", + Value = DocumentsLeft, + } + ); + types.Add( + new OpenApiType() + { + Name = "sms_verifications_left", + Property = "SmsVerificationsLeft", + Type = "int", + Value = SmsVerificationsLeft, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs index 325f4ee65..8e3c2cbb4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,20 +31,22 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseCCRole")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseCCRole : IEquatable, IValidatableObject + public partial class TemplateResponseCCRole + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseCCRole() { } + /// /// Initializes a new instance of the class. /// /// The name of the Role.. public TemplateResponseCCRole(string name = default(string)) { - this.Name = name; } @@ -58,7 +60,9 @@ public static TemplateResponseCCRole Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseCCRole"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseCCRole" + ); } return obj; @@ -70,7 +74,6 @@ public static TemplateResponseCCRole Init(string jsonData) /// The name of the Role. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object @@ -91,7 +94,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -115,12 +121,7 @@ public bool Equals(TemplateResponseCCRole input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); } /// @@ -145,7 +146,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -153,15 +156,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs index 288a9ff33..dd1deec0b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,10 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseCustomField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseCustomField : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseCustomField + : IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. @@ -50,22 +53,22 @@ public enum TypeEnum /// Enum Checkbox for value: checkbox /// [EnumMember(Value = "checkbox")] - Checkbox = 2 - + Checkbox = 2, } - /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. [DataMember(Name = "type", EmitDefaultValue = true)] public TypeEnum? Type { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseCustomField() { } + /// /// Initializes a new instance of the class. /// @@ -82,9 +85,23 @@ protected TemplateResponseCustomField() { } /// Whether this form field is multiline text.. /// Original font size used in this form field's text.. /// Font family used in this form field's text.. - public TemplateResponseCustomField(string name = default(string), TypeEnum? type = default(TypeEnum?), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string apiId = default(string), string group = default(string), TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool? isMultiline = default(bool?), int? originalFontSize = default(int?), string fontFamily = default(string)) + public TemplateResponseCustomField( + string name = default(string), + TypeEnum? type = default(TypeEnum?), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string apiId = default(string), + string group = default(string), + TemplateResponseFieldAvgTextLength avgTextLength = + default(TemplateResponseFieldAvgTextLength), + bool? isMultiline = default(bool?), + int? originalFontSize = default(int?), + string fontFamily = default(string) + ) { - this.Name = name; this.Type = type; this.X = x; @@ -110,7 +127,9 @@ public static TemplateResponseCustomField Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseCustomField"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseCustomField" + ); } return obj; @@ -230,7 +249,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -254,65 +276,41 @@ public bool Equals(TemplateResponseCustomField input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ) && - ( - this.X == input.X || - this.X.Equals(input.X) - ) && - ( - this.Y == input.Y || - this.Y.Equals(input.Y) - ) && - ( - this.Width == input.Width || - this.Width.Equals(input.Width) - ) && - ( - this.Height == input.Height || - this.Height.Equals(input.Height) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.AvgTextLength == input.AvgTextLength || - (this.AvgTextLength != null && - this.AvgTextLength.Equals(input.AvgTextLength)) - ) && - ( - this.IsMultiline == input.IsMultiline || - (this.IsMultiline != null && - this.IsMultiline.Equals(input.IsMultiline)) - ) && - ( - this.OriginalFontSize == input.OriginalFontSize || - (this.OriginalFontSize != null && - this.OriginalFontSize.Equals(input.OriginalFontSize)) - ) && - ( - this.FontFamily == input.FontFamily || - (this.FontFamily != null && - this.FontFamily.Equals(input.FontFamily)) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Type == input.Type || this.Type.Equals(input.Type)) + && (this.X == input.X || this.X.Equals(input.X)) + && (this.Y == input.Y || this.Y.Equals(input.Y)) + && (this.Width == input.Width || this.Width.Equals(input.Width)) + && (this.Height == input.Height || this.Height.Equals(input.Height)) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) + ) + && ( + this.AvgTextLength == input.AvgTextLength + || ( + this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) + ) + ) + && ( + this.IsMultiline == input.IsMultiline + || (this.IsMultiline != null && this.IsMultiline.Equals(input.IsMultiline)) + ) + && ( + this.OriginalFontSize == input.OriginalFontSize + || ( + this.OriginalFontSize != null + && this.OriginalFontSize.Equals(input.OriginalFontSize) + ) + ) + && ( + this.FontFamily == input.FontFamily + || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) ); } @@ -366,84 +364,123 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "x", - Property = "X", - Type = "int", - Value = X, - }); - types.Add(new OpenApiType(){ - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - }); - types.Add(new OpenApiType(){ - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - }); - types.Add(new OpenApiType(){ - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); - types.Add(new OpenApiType(){ - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - }); - types.Add(new OpenApiType(){ - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool?", - Value = IsMultiline, - }); - types.Add(new OpenApiType(){ - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int?", - Value = OriginalFontSize, - }); - types.Add(new OpenApiType(){ - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "x", + Property = "X", + Type = "int", + Value = X, + } + ); + types.Add( + new OpenApiType() + { + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + } + ); + types.Add( + new OpenApiType() + { + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + } + ); + types.Add( + new OpenApiType() + { + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); + types.Add( + new OpenApiType() + { + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + } + ); + types.Add( + new OpenApiType() + { + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool?", + Value = IsMultiline, + } + ); + types.Add( + new OpenApiType() + { + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int?", + Value = OriginalFontSize, + } + ); + types.Add( + new OpenApiType() + { + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); return types; } @@ -453,10 +490,11 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs index 2617cb50a..184d9011f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocument")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocument : IEquatable, IValidatableObject + public partial class TemplateResponseDocument + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocument() { } + /// /// Initializes a new instance of the class. /// @@ -47,9 +50,19 @@ protected TemplateResponseDocument() { } /// An array of Form Field objects containing the name and type of each named field.. /// An array of Form Field objects containing the name and type of each named field.. /// An array describing static overlay fields. **NOTE:** Only available for certain subscriptions.. - public TemplateResponseDocument(string name = default(string), int index = default(int), List fieldGroups = default(List), List formFields = default(List), List customFields = default(List), List staticFields = default(List)) + public TemplateResponseDocument( + string name = default(string), + int index = default(int), + List fieldGroups = + default(List), + List formFields = + default(List), + List customFields = + default(List), + List staticFields = + default(List) + ) { - this.Name = name; this.Index = index; this.FieldGroups = fieldGroups; @@ -68,7 +81,9 @@ public static TemplateResponseDocument Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocument"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocument" + ); } return obj; @@ -80,7 +95,6 @@ public static TemplateResponseDocument Init(string jsonData) /// Name of the associated file. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Document ordering, the lowest index is displayed first and the highest last (0-based indexing). @@ -88,7 +102,6 @@ public static TemplateResponseDocument Init(string jsonData) /// Document ordering, the lowest index is displayed first and the highest last (0-based indexing). [DataMember(Name = "index", EmitDefaultValue = true)] public int Index { get; set; } - /// /// An array of Form Field Group objects. @@ -96,7 +109,6 @@ public static TemplateResponseDocument Init(string jsonData) /// An array of Form Field Group objects. [DataMember(Name = "field_groups", EmitDefaultValue = true)] public List FieldGroups { get; set; } - /// /// An array of Form Field objects containing the name and type of each named field. @@ -104,7 +116,6 @@ public static TemplateResponseDocument Init(string jsonData) /// An array of Form Field objects containing the name and type of each named field. [DataMember(Name = "form_fields", EmitDefaultValue = true)] public List FormFields { get; set; } - /// /// An array of Form Field objects containing the name and type of each named field. @@ -112,7 +123,6 @@ public static TemplateResponseDocument Init(string jsonData) /// An array of Form Field objects containing the name and type of each named field. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. @@ -120,7 +130,6 @@ public static TemplateResponseDocument Init(string jsonData) /// An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. [DataMember(Name = "static_fields", EmitDefaultValue = true)] public List StaticFields { get; set; } - /// /// Returns the string presentation of the object @@ -146,7 +155,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -170,39 +182,31 @@ public bool Equals(TemplateResponseDocument input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Index == input.Index || - this.Index.Equals(input.Index) - ) && - ( - this.FieldGroups == input.FieldGroups || - this.FieldGroups != null && - input.FieldGroups != null && - this.FieldGroups.SequenceEqual(input.FieldGroups) - ) && - ( - this.FormFields == input.FormFields || - this.FormFields != null && - input.FormFields != null && - this.FormFields.SequenceEqual(input.FormFields) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.StaticFields == input.StaticFields || - this.StaticFields != null && - input.StaticFields != null && - this.StaticFields.SequenceEqual(input.StaticFields) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Index == input.Index || this.Index.Equals(input.Index)) + && ( + this.FieldGroups == input.FieldGroups + || this.FieldGroups != null + && input.FieldGroups != null + && this.FieldGroups.SequenceEqual(input.FieldGroups) + ) + && ( + this.FormFields == input.FormFields + || this.FormFields != null + && input.FormFields != null + && this.FormFields.SequenceEqual(input.FormFields) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.StaticFields == input.StaticFields + || this.StaticFields != null + && input.StaticFields != null + && this.StaticFields.SequenceEqual(input.StaticFields) ); } @@ -245,7 +249,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -253,45 +259,62 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "index", - Property = "Index", - Type = "int", - Value = Index, - }); - types.Add(new OpenApiType(){ - Name = "field_groups", - Property = "FieldGroups", - Type = "List", - Value = FieldGroups, - }); - types.Add(new OpenApiType(){ - Name = "form_fields", - Property = "FormFields", - Type = "List", - Value = FormFields, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "static_fields", - Property = "StaticFields", - Type = "List", - Value = StaticFields, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "index", + Property = "Index", + Type = "int", + Value = Index, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_groups", + Property = "FieldGroups", + Type = "List", + Value = FieldGroups, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_fields", + Property = "FormFields", + Type = "List", + Value = FormFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "static_fields", + Property = "StaticFields", + Type = "List", + Value = StaticFields, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs index 617f255b6..e07312785 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,10 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentCustomField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentCustomField : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentCustomField + : IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. @@ -50,22 +53,22 @@ public enum TypeEnum /// Enum Checkbox for value: checkbox /// [EnumMember(Value = "checkbox")] - Checkbox = 2 - + Checkbox = 2, } - /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. [DataMember(Name = "type", EmitDefaultValue = true)] public TypeEnum? Type { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentCustomField() { } + /// /// Initializes a new instance of the class. /// @@ -85,9 +88,26 @@ protected TemplateResponseDocumentCustomField() { } /// Font family used in this form field's text.. /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead.. /// reusableFormId. - public TemplateResponseDocumentCustomField(string name = default(string), TypeEnum? type = default(TypeEnum?), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string apiId = default(string), string group = default(string), TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool? isMultiline = default(bool?), int? originalFontSize = default(int?), string fontFamily = default(string), Object namedFormFields = default(Object), string reusableFormId = default(string)) + public TemplateResponseDocumentCustomField( + string name = default(string), + TypeEnum? type = default(TypeEnum?), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string apiId = default(string), + string group = default(string), + TemplateResponseFieldAvgTextLength avgTextLength = + default(TemplateResponseFieldAvgTextLength), + bool? isMultiline = default(bool?), + int? originalFontSize = default(int?), + string fontFamily = default(string), + Object namedFormFields = default(Object), + string reusableFormId = default(string) + ) { - this.Name = name; this.Type = type; this.Signer = signer; @@ -116,7 +136,9 @@ public static TemplateResponseDocumentCustomField Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentCustomField"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentCustomField" + ); } return obj; @@ -261,7 +283,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -285,80 +310,59 @@ public bool Equals(TemplateResponseDocumentCustomField input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ) && - ( - this.Signer == input.Signer || - (this.Signer != null && - this.Signer.Equals(input.Signer)) - ) && - ( - this.X == input.X || - this.X.Equals(input.X) - ) && - ( - this.Y == input.Y || - this.Y.Equals(input.Y) - ) && - ( - this.Width == input.Width || - this.Width.Equals(input.Width) - ) && - ( - this.Height == input.Height || - this.Height.Equals(input.Height) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.AvgTextLength == input.AvgTextLength || - (this.AvgTextLength != null && - this.AvgTextLength.Equals(input.AvgTextLength)) - ) && - ( - this.IsMultiline == input.IsMultiline || - (this.IsMultiline != null && - this.IsMultiline.Equals(input.IsMultiline)) - ) && - ( - this.OriginalFontSize == input.OriginalFontSize || - (this.OriginalFontSize != null && - this.OriginalFontSize.Equals(input.OriginalFontSize)) - ) && - ( - this.FontFamily == input.FontFamily || - (this.FontFamily != null && - this.FontFamily.Equals(input.FontFamily)) - ) && - ( - this.NamedFormFields == input.NamedFormFields || - (this.NamedFormFields != null && - this.NamedFormFields.Equals(input.NamedFormFields)) - ) && - ( - this.ReusableFormId == input.ReusableFormId || - (this.ReusableFormId != null && - this.ReusableFormId.Equals(input.ReusableFormId)) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Type == input.Type || this.Type.Equals(input.Type)) + && ( + this.Signer == input.Signer + || (this.Signer != null && this.Signer.Equals(input.Signer)) + ) + && (this.X == input.X || this.X.Equals(input.X)) + && (this.Y == input.Y || this.Y.Equals(input.Y)) + && (this.Width == input.Width || this.Width.Equals(input.Width)) + && (this.Height == input.Height || this.Height.Equals(input.Height)) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) + ) + && ( + this.AvgTextLength == input.AvgTextLength + || ( + this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) + ) + ) + && ( + this.IsMultiline == input.IsMultiline + || (this.IsMultiline != null && this.IsMultiline.Equals(input.IsMultiline)) + ) + && ( + this.OriginalFontSize == input.OriginalFontSize + || ( + this.OriginalFontSize != null + && this.OriginalFontSize.Equals(input.OriginalFontSize) + ) + ) + && ( + this.FontFamily == input.FontFamily + || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) + ) + && ( + this.NamedFormFields == input.NamedFormFields + || ( + this.NamedFormFields != null + && this.NamedFormFields.Equals(input.NamedFormFields) + ) + ) + && ( + this.ReusableFormId == input.ReusableFormId + || ( + this.ReusableFormId != null + && this.ReusableFormId.Equals(input.ReusableFormId) + ) ); } @@ -424,102 +428,150 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - }); - types.Add(new OpenApiType(){ - Name = "x", - Property = "X", - Type = "int", - Value = X, - }); - types.Add(new OpenApiType(){ - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - }); - types.Add(new OpenApiType(){ - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - }); - types.Add(new OpenApiType(){ - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); - types.Add(new OpenApiType(){ - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - }); - types.Add(new OpenApiType(){ - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool?", - Value = IsMultiline, - }); - types.Add(new OpenApiType(){ - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int?", - Value = OriginalFontSize, - }); - types.Add(new OpenApiType(){ - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); - types.Add(new OpenApiType(){ - Name = "named_form_fields", - Property = "NamedFormFields", - Type = "Object", - Value = NamedFormFields, - }); - types.Add(new OpenApiType(){ - Name = "reusable_form_id", - Property = "ReusableFormId", - Type = "string", - Value = ReusableFormId, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + } + ); + types.Add( + new OpenApiType() + { + Name = "x", + Property = "X", + Type = "int", + Value = X, + } + ); + types.Add( + new OpenApiType() + { + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + } + ); + types.Add( + new OpenApiType() + { + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + } + ); + types.Add( + new OpenApiType() + { + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); + types.Add( + new OpenApiType() + { + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + } + ); + types.Add( + new OpenApiType() + { + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool?", + Value = IsMultiline, + } + ); + types.Add( + new OpenApiType() + { + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int?", + Value = OriginalFontSize, + } + ); + types.Add( + new OpenApiType() + { + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); + types.Add( + new OpenApiType() + { + Name = "named_form_fields", + Property = "NamedFormFields", + Type = "Object", + Value = NamedFormFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "reusable_form_id", + Property = "ReusableFormId", + Type = "string", + Value = ReusableFormId, + } + ); return types; } @@ -529,10 +581,11 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs index 7527da3d4..a1e9d77a1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; +using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -35,13 +35,16 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentCustomFieldBase : IEquatable, IValidatableObject + public partial class TemplateResponseDocumentCustomFieldBase + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentCustomFieldBase() { } + /// /// Initializes a new instance of the class. /// @@ -55,13 +58,25 @@ protected TemplateResponseDocumentCustomFieldBase() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentCustomFieldBase(string apiId = default(string), string name = default(string), string type = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentCustomFieldBase( + string apiId = default(string), + string name = default(string), + string type = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { - // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentCustomFieldBase and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentCustomFieldBase and cannot be null" + ); } this.Type = type; this.ApiId = apiId; @@ -81,11 +96,15 @@ protected TemplateResponseDocumentCustomFieldBase() { } /// String of JSON data representing target object public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldBase"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldBase" + ); } return obj; @@ -96,7 +115,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// The unique ID for this field. @@ -104,7 +122,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The name of the Custom Field. @@ -112,7 +129,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The name of the Custom Field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). @@ -120,7 +136,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } - /// /// The horizontal offset in pixels for this form field. @@ -128,7 +143,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The horizontal offset in pixels for this form field. [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } - /// /// The vertical offset in pixels for this form field. @@ -136,7 +150,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The vertical offset in pixels for this form field. [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } - /// /// The width in pixels of this form field. @@ -144,7 +157,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The width in pixels of this form field. [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } - /// /// The height in pixels of this form field. @@ -152,7 +164,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The height in pixels of this form field. [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } - /// /// Boolean showing whether or not this field is required. @@ -160,7 +171,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// Boolean showing whether or not this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The name of the group this field is in. If this field is not a group, this defaults to `null`. @@ -168,7 +178,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The name of the group this field is in. If this field is not a group, this defaults to `null`. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } - /// /// Returns the string presentation of the object @@ -198,7 +207,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -222,51 +234,24 @@ public bool Equals(TemplateResponseDocumentCustomFieldBase input) { return false; } - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Signer == input.Signer || - (this.Signer != null && - this.Signer.Equals(input.Signer)) - ) && - ( - this.X == input.X || - this.X.Equals(input.X) - ) && - ( - this.Y == input.Y || - this.Y.Equals(input.Y) - ) && - ( - this.Width == input.Width || - this.Width.Equals(input.Width) - ) && - ( - this.Height == input.Height || - this.Height.Equals(input.Height) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) + return (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.Signer == input.Signer + || (this.Signer != null && this.Signer.Equals(input.Signer)) + ) + && (this.X == input.X || this.X.Equals(input.X)) + && (this.Y == input.Y || this.Y.Equals(input.Y)) + && (this.Width == input.Width || this.Width.Equals(input.Width)) + && (this.Height == input.Height || this.Height.Equals(input.Height)) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) ); } @@ -313,7 +298,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -331,69 +318,98 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - }); - types.Add(new OpenApiType(){ - Name = "x", - Property = "X", - Type = "int", - Value = X, - }); - types.Add(new OpenApiType(){ - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - }); - types.Add(new OpenApiType(){ - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - }); - types.Add(new OpenApiType(){ - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + } + ); + types.Add( + new OpenApiType() + { + Name = "x", + Property = "X", + Type = "int", + Value = X, + } + ); + types.Add( + new OpenApiType() + { + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + } + ); + types.Add( + new OpenApiType() + { + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + } + ); + types.Add( + new OpenApiType() + { + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs index c0a789487..012f2a885 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentCustomFieldCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentCustomFieldCheckbox : TemplateResponseDocumentCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentCustomFieldCheckbox + : TemplateResponseDocumentCustomFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentCustomFieldCheckbox() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentCustomFieldCheckbox() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentCustomFieldCheckbox(string type = @"checkbox", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentCustomFieldCheckbox( + string type = @"checkbox", + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentCustomFieldCheckbox() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentCustomFieldCheckbox and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentCustomFieldCheckbox and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentCustomFieldCheckbox() { } /// String of JSON data representing target object public static TemplateResponseDocumentCustomFieldCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldCheckbox"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldCheckbox" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentCustomFieldCheckbox Init(string jsonData) /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. * Text uses `TemplateResponseDocumentCustomFieldText` * Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentCustomFieldCheckbox input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs index 131bd7309..68218bae9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentCustomFieldText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentCustomFieldText : TemplateResponseDocumentCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentCustomFieldText + : TemplateResponseDocumentCustomFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentCustomFieldText() { } + /// /// Initializes a new instance of the class. /// @@ -55,7 +60,23 @@ protected TemplateResponseDocumentCustomFieldText() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentCustomFieldText(string type = @"text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentCustomFieldText( + string type = @"text", + TemplateResponseFieldAvgTextLength avgTextLength = + default(TemplateResponseFieldAvgTextLength), + bool isMultiline = default(bool), + int originalFontSize = default(int), + string fontFamily = default(string), + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -66,11 +87,13 @@ protected TemplateResponseDocumentCustomFieldText() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentCustomFieldText and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentCustomFieldText and cannot be null" + ); } this.Type = type; this.AvgTextLength = avgTextLength; @@ -85,11 +108,15 @@ protected TemplateResponseDocumentCustomFieldText() { } /// String of JSON data representing target object public static TemplateResponseDocumentCustomFieldText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldText"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldText" + ); } return obj; @@ -101,14 +128,12 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. * Text uses `TemplateResponseDocumentCustomFieldText` * Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } - /// /// Whether this form field is multiline text. @@ -116,7 +141,6 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// Whether this form field is multiline text. [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } - /// /// Original font size used in this form field's text. @@ -124,7 +148,6 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// Original font size used in this form field's text. [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } - /// /// Font family used in this form field's text. @@ -132,7 +155,6 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// Font family used in this form field's text. [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } - /// /// Returns the string presentation of the object @@ -158,7 +180,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -182,29 +207,29 @@ public bool Equals(TemplateResponseDocumentCustomFieldText input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.AvgTextLength == input.AvgTextLength || - (this.AvgTextLength != null && - this.AvgTextLength.Equals(input.AvgTextLength)) - ) && base.Equals(input) && - ( - this.IsMultiline == input.IsMultiline || - this.IsMultiline.Equals(input.IsMultiline) - ) && base.Equals(input) && - ( - this.OriginalFontSize == input.OriginalFontSize || - this.OriginalFontSize.Equals(input.OriginalFontSize) - ) && base.Equals(input) && - ( - this.FontFamily == input.FontFamily || - (this.FontFamily != null && - this.FontFamily.Equals(input.FontFamily)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.AvgTextLength == input.AvgTextLength + || ( + this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) + ) + ) + && base.Equals(input) + && ( + this.IsMultiline == input.IsMultiline + || this.IsMultiline.Equals(input.IsMultiline) + ) + && base.Equals(input) + && ( + this.OriginalFontSize == input.OriginalFontSize + || this.OriginalFontSize.Equals(input.OriginalFontSize) + ) + && base.Equals(input) + && ( + this.FontFamily == input.FontFamily + || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) ); } @@ -240,7 +265,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -262,39 +289,53 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - }); - types.Add(new OpenApiType(){ - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool", - Value = IsMultiline, - }); - types.Add(new OpenApiType(){ - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int", - Value = OriginalFontSize, - }); - types.Add(new OpenApiType(){ - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + } + ); + types.Add( + new OpenApiType() + { + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool", + Value = IsMultiline, + } + ); + types.Add( + new OpenApiType() + { + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int", + Value = OriginalFontSize, + } + ); + types.Add( + new OpenApiType() + { + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs index 14fddf98f..a3f95af0e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,27 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFieldGroup")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFieldGroup : IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFieldGroup + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFieldGroup() { } + /// /// Initializes a new instance of the class. /// /// The name of the form field group.. /// rule. - public TemplateResponseDocumentFieldGroup(string name = default(string), TemplateResponseDocumentFieldGroupRule rule = default(TemplateResponseDocumentFieldGroupRule)) + public TemplateResponseDocumentFieldGroup( + string name = default(string), + TemplateResponseDocumentFieldGroupRule rule = + default(TemplateResponseDocumentFieldGroupRule) + ) { - this.Name = name; this.Rule = rule; } @@ -60,7 +66,9 @@ public static TemplateResponseDocumentFieldGroup Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFieldGroup"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFieldGroup" + ); } return obj; @@ -72,14 +80,12 @@ public static TemplateResponseDocumentFieldGroup Init(string jsonData) /// The name of the form field group. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Gets or Sets Rule /// [DataMember(Name = "rule", EmitDefaultValue = true)] public TemplateResponseDocumentFieldGroupRule Rule { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +107,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +134,8 @@ public bool Equals(TemplateResponseDocumentFieldGroup input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Rule == input.Rule || - (this.Rule != null && - this.Rule.Equals(input.Rule)) - ); + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Rule == input.Rule || (this.Rule != null && this.Rule.Equals(input.Rule))); } /// @@ -164,7 +164,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -172,21 +174,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "rule", - Property = "Rule", - Type = "TemplateResponseDocumentFieldGroupRule", - Value = Rule, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "rule", + Property = "Rule", + Type = "TemplateResponseDocumentFieldGroupRule", + Value = Rule, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs index 75e15429b..d69eae9a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFieldGroupRule")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFieldGroupRule : IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFieldGroupRule + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFieldGroupRule() { } + /// /// Initializes a new instance of the class. /// /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group.. /// Name of the group. - public TemplateResponseDocumentFieldGroupRule(string requirement = default(string), string groupLabel = default(string)) + public TemplateResponseDocumentFieldGroupRule( + string requirement = default(string), + string groupLabel = default(string) + ) { - this.Requirement = requirement; this.GroupLabel = groupLabel; } @@ -56,11 +61,15 @@ protected TemplateResponseDocumentFieldGroupRule() { } /// String of JSON data representing target object public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFieldGroupRule"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFieldGroupRule" + ); } return obj; @@ -72,7 +81,6 @@ public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. [DataMember(Name = "requirement", EmitDefaultValue = true)] public string Requirement { get; set; } - /// /// Name of the group @@ -80,7 +88,6 @@ public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) /// Name of the group [DataMember(Name = "groupLabel", EmitDefaultValue = true)] public string GroupLabel { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +109,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,16 +136,13 @@ public bool Equals(TemplateResponseDocumentFieldGroupRule input) { return false; } - return - ( - this.Requirement == input.Requirement || - (this.Requirement != null && - this.Requirement.Equals(input.Requirement)) - ) && - ( - this.GroupLabel == input.GroupLabel || - (this.GroupLabel != null && - this.GroupLabel.Equals(input.GroupLabel)) + return ( + this.Requirement == input.Requirement + || (this.Requirement != null && this.Requirement.Equals(input.Requirement)) + ) + && ( + this.GroupLabel == input.GroupLabel + || (this.GroupLabel != null && this.GroupLabel.Equals(input.GroupLabel)) ); } @@ -165,7 +172,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +182,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "requirement", - Property = "Requirement", - Type = "string", - Value = Requirement, - }); - types.Add(new OpenApiType(){ - Name = "groupLabel", - Property = "GroupLabel", - Type = "string", - Value = GroupLabel, - }); + types.Add( + new OpenApiType() + { + Name = "requirement", + Property = "Requirement", + Type = "string", + Value = Requirement, + } + ); + types.Add( + new OpenApiType() + { + Name = "groupLabel", + Property = "GroupLabel", + Type = "string", + Value = GroupLabel, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs index 07b7e04a3..eade6838f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,10 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormField : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormField + : IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// The type of this form field. See [field types](/api/reference/constants/#field-types). @@ -98,22 +101,22 @@ public enum TypeEnum /// Enum TextMerge for value: text-merge /// [EnumMember(Value = "text-merge")] - TextMerge = 10 - + TextMerge = 10, } - /// /// The type of this form field. See [field types](/api/reference/constants/#field-types). /// /// The type of this form field. See [field types](/api/reference/constants/#field-types). [DataMember(Name = "type", EmitDefaultValue = true)] public TypeEnum? Type { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormField() { } + /// /// Initializes a new instance of the class. /// @@ -131,9 +134,24 @@ protected TemplateResponseDocumentFormField() { } /// Whether this form field is multiline text.. /// Original font size used in this form field's text.. /// Font family used in this form field's text.. - public TemplateResponseDocumentFormField(string apiId = default(string), string name = default(string), TypeEnum? type = default(TypeEnum?), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string), TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool? isMultiline = default(bool?), int? originalFontSize = default(int?), string fontFamily = default(string)) + public TemplateResponseDocumentFormField( + string apiId = default(string), + string name = default(string), + TypeEnum? type = default(TypeEnum?), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string), + TemplateResponseFieldAvgTextLength avgTextLength = + default(TemplateResponseFieldAvgTextLength), + bool? isMultiline = default(bool?), + int? originalFontSize = default(int?), + string fontFamily = default(string) + ) { - this.ApiId = apiId; this.Name = name; this.Type = type; @@ -160,7 +178,9 @@ public static TemplateResponseDocumentFormField Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormField"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormField" + ); } return obj; @@ -288,7 +308,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -312,70 +335,45 @@ public bool Equals(TemplateResponseDocumentFormField input) { return false; } - return - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ) && - ( - this.Signer == input.Signer || - (this.Signer != null && - this.Signer.Equals(input.Signer)) - ) && - ( - this.X == input.X || - this.X.Equals(input.X) - ) && - ( - this.Y == input.Y || - this.Y.Equals(input.Y) - ) && - ( - this.Width == input.Width || - this.Width.Equals(input.Width) - ) && - ( - this.Height == input.Height || - this.Height.Equals(input.Height) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.AvgTextLength == input.AvgTextLength || - (this.AvgTextLength != null && - this.AvgTextLength.Equals(input.AvgTextLength)) - ) && - ( - this.IsMultiline == input.IsMultiline || - (this.IsMultiline != null && - this.IsMultiline.Equals(input.IsMultiline)) - ) && - ( - this.OriginalFontSize == input.OriginalFontSize || - (this.OriginalFontSize != null && - this.OriginalFontSize.Equals(input.OriginalFontSize)) - ) && - ( - this.FontFamily == input.FontFamily || - (this.FontFamily != null && - this.FontFamily.Equals(input.FontFamily)) + return ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Type == input.Type || this.Type.Equals(input.Type)) + && ( + this.Signer == input.Signer + || (this.Signer != null && this.Signer.Equals(input.Signer)) + ) + && (this.X == input.X || this.X.Equals(input.X)) + && (this.Y == input.Y || this.Y.Equals(input.Y)) + && (this.Width == input.Width || this.Width.Equals(input.Width)) + && (this.Height == input.Height || this.Height.Equals(input.Height)) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) + ) + && ( + this.AvgTextLength == input.AvgTextLength + || ( + this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) + ) + ) + && ( + this.IsMultiline == input.IsMultiline + || (this.IsMultiline != null && this.IsMultiline.Equals(input.IsMultiline)) + ) + && ( + this.OriginalFontSize == input.OriginalFontSize + || ( + this.OriginalFontSize != null + && this.OriginalFontSize.Equals(input.OriginalFontSize) + ) + ) + && ( + this.FontFamily == input.FontFamily + || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) ); } @@ -433,90 +431,132 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - }); - types.Add(new OpenApiType(){ - Name = "x", - Property = "X", - Type = "int", - Value = X, - }); - types.Add(new OpenApiType(){ - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - }); - types.Add(new OpenApiType(){ - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - }); - types.Add(new OpenApiType(){ - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); - types.Add(new OpenApiType(){ - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - }); - types.Add(new OpenApiType(){ - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool?", - Value = IsMultiline, - }); - types.Add(new OpenApiType(){ - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int?", - Value = OriginalFontSize, - }); - types.Add(new OpenApiType(){ - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + } + ); + types.Add( + new OpenApiType() + { + Name = "x", + Property = "X", + Type = "int", + Value = X, + } + ); + types.Add( + new OpenApiType() + { + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + } + ); + types.Add( + new OpenApiType() + { + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + } + ); + types.Add( + new OpenApiType() + { + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); + types.Add( + new OpenApiType() + { + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + } + ); + types.Add( + new OpenApiType() + { + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool?", + Value = IsMultiline, + } + ); + types.Add( + new OpenApiType() + { + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int?", + Value = OriginalFontSize, + } + ); + types.Add( + new OpenApiType() + { + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); return types; } @@ -526,10 +566,11 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs index f5104a607..08d56af4e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; +using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -41,13 +41,16 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldBase : IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldBase + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldBase() { } + /// /// Initializes a new instance of the class. /// @@ -61,13 +64,25 @@ protected TemplateResponseDocumentFormFieldBase() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldBase(string apiId = default(string), string name = default(string), string type = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldBase( + string apiId = default(string), + string name = default(string), + string type = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { - // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldBase and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentFormFieldBase and cannot be null" + ); } this.Type = type; this.ApiId = apiId; @@ -87,11 +102,15 @@ protected TemplateResponseDocumentFormFieldBase() { } /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldBase Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldBase"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldBase" + ); } return obj; @@ -102,7 +121,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// A unique id for the form field. @@ -110,7 +128,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// A unique id for the form field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The name of the form field. @@ -118,7 +135,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The name of the form field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The signer of the Form Field. @@ -126,7 +142,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The signer of the Form Field. [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } - /// /// The horizontal offset in pixels for this form field. @@ -134,7 +149,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The horizontal offset in pixels for this form field. [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } - /// /// The vertical offset in pixels for this form field. @@ -142,7 +156,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The vertical offset in pixels for this form field. [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } - /// /// The width in pixels of this form field. @@ -150,7 +163,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The width in pixels of this form field. [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } - /// /// The height in pixels of this form field. @@ -158,7 +170,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The height in pixels of this form field. [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } - /// /// Boolean showing whether or not this field is required. @@ -166,7 +177,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// Boolean showing whether or not this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. @@ -174,7 +184,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } - /// /// Returns the string presentation of the object @@ -204,7 +213,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -228,51 +240,24 @@ public bool Equals(TemplateResponseDocumentFormFieldBase input) { return false; } - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Signer == input.Signer || - (this.Signer != null && - this.Signer.Equals(input.Signer)) - ) && - ( - this.X == input.X || - this.X.Equals(input.X) - ) && - ( - this.Y == input.Y || - this.Y.Equals(input.Y) - ) && - ( - this.Width == input.Width || - this.Width.Equals(input.Width) - ) && - ( - this.Height == input.Height || - this.Height.Equals(input.Height) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) + return (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.Signer == input.Signer + || (this.Signer != null && this.Signer.Equals(input.Signer)) + ) + && (this.X == input.X || this.X.Equals(input.X)) + && (this.Y == input.Y || this.Y.Equals(input.Y)) + && (this.Width == input.Width || this.Width.Equals(input.Width)) + && (this.Height == input.Height || this.Height.Equals(input.Height)) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) ); } @@ -319,7 +304,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -337,69 +324,98 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - }); - types.Add(new OpenApiType(){ - Name = "x", - Property = "X", - Type = "int", - Value = X, - }); - types.Add(new OpenApiType(){ - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - }); - types.Add(new OpenApiType(){ - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - }); - types.Add(new OpenApiType(){ - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + } + ); + types.Add( + new OpenApiType() + { + Name = "x", + Property = "X", + Type = "int", + Value = X, + } + ); + types.Add( + new OpenApiType() + { + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + } + ); + types.Add( + new OpenApiType() + { + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + } + ); + types.Add( + new OpenApiType() + { + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs index cd0c77f4d..edff96508 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldCheckbox : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldCheckbox + : TemplateResponseDocumentFormFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldCheckbox() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentFormFieldCheckbox() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldCheckbox(string type = @"checkbox", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldCheckbox( + string type = @"checkbox", + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentFormFieldCheckbox() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldCheckbox and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentFormFieldCheckbox and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentFormFieldCheckbox() { } /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldCheckbox"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldCheckbox" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentFormFieldCheckbox Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentFormFieldCheckbox input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs index f71e255af..40681a76c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldDateSigned")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldDateSigned : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldDateSigned + : TemplateResponseDocumentFormFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldDateSigned() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentFormFieldDateSigned() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldDateSigned(string type = @"date_signed", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldDateSigned( + string type = @"date_signed", + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentFormFieldDateSigned() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldDateSigned and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentFormFieldDateSigned and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentFormFieldDateSigned() { } /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldDateSigned Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldDateSigned"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldDateSigned" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentFormFieldDateSigned Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentFormFieldDateSigned input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs index f264253a3..b5e5d8e87 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldDropdown")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldDropdown : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldDropdown + : TemplateResponseDocumentFormFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldDropdown() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentFormFieldDropdown() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldDropdown(string type = @"dropdown", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldDropdown( + string type = @"dropdown", + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentFormFieldDropdown() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldDropdown and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentFormFieldDropdown and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentFormFieldDropdown() { } /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldDropdown Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldDropdown"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldDropdown" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentFormFieldDropdown Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentFormFieldDropdown input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs index a7d3ab4f4..c6173cc40 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldHyperlink")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldHyperlink : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldHyperlink + : TemplateResponseDocumentFormFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldHyperlink() { } + /// /// Initializes a new instance of the class. /// @@ -55,7 +60,23 @@ protected TemplateResponseDocumentFormFieldHyperlink() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldHyperlink(string type = @"hyperlink", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldHyperlink( + string type = @"hyperlink", + TemplateResponseFieldAvgTextLength avgTextLength = + default(TemplateResponseFieldAvgTextLength), + bool isMultiline = default(bool), + int originalFontSize = default(int), + string fontFamily = default(string), + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -66,11 +87,13 @@ protected TemplateResponseDocumentFormFieldHyperlink() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldHyperlink and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentFormFieldHyperlink and cannot be null" + ); } this.Type = type; this.AvgTextLength = avgTextLength; @@ -85,11 +108,15 @@ protected TemplateResponseDocumentFormFieldHyperlink() { } /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldHyperlink"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldHyperlink" + ); } return obj; @@ -101,14 +128,12 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } - /// /// Whether this form field is multiline text. @@ -116,7 +141,6 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// Whether this form field is multiline text. [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } - /// /// Original font size used in this form field's text. @@ -124,7 +148,6 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// Original font size used in this form field's text. [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } - /// /// Font family used in this form field's text. @@ -132,7 +155,6 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// Font family used in this form field's text. [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } - /// /// Returns the string presentation of the object @@ -158,7 +180,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -182,29 +207,29 @@ public bool Equals(TemplateResponseDocumentFormFieldHyperlink input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.AvgTextLength == input.AvgTextLength || - (this.AvgTextLength != null && - this.AvgTextLength.Equals(input.AvgTextLength)) - ) && base.Equals(input) && - ( - this.IsMultiline == input.IsMultiline || - this.IsMultiline.Equals(input.IsMultiline) - ) && base.Equals(input) && - ( - this.OriginalFontSize == input.OriginalFontSize || - this.OriginalFontSize.Equals(input.OriginalFontSize) - ) && base.Equals(input) && - ( - this.FontFamily == input.FontFamily || - (this.FontFamily != null && - this.FontFamily.Equals(input.FontFamily)) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.AvgTextLength == input.AvgTextLength + || ( + this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) + ) + ) + && base.Equals(input) + && ( + this.IsMultiline == input.IsMultiline + || this.IsMultiline.Equals(input.IsMultiline) + ) + && base.Equals(input) + && ( + this.OriginalFontSize == input.OriginalFontSize + || this.OriginalFontSize.Equals(input.OriginalFontSize) + ) + && base.Equals(input) + && ( + this.FontFamily == input.FontFamily + || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) ); } @@ -240,7 +265,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -262,39 +289,53 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - }); - types.Add(new OpenApiType(){ - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool", - Value = IsMultiline, - }); - types.Add(new OpenApiType(){ - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int", - Value = OriginalFontSize, - }); - types.Add(new OpenApiType(){ - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + } + ); + types.Add( + new OpenApiType() + { + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool", + Value = IsMultiline, + } + ); + types.Add( + new OpenApiType() + { + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int", + Value = OriginalFontSize, + } + ); + types.Add( + new OpenApiType() + { + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs index f7f2e4726..68bf2c823 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldInitials")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldInitials : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldInitials + : TemplateResponseDocumentFormFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldInitials() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentFormFieldInitials() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldInitials(string type = @"initials", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldInitials( + string type = @"initials", + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentFormFieldInitials() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldInitials and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentFormFieldInitials and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentFormFieldInitials() { } /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldInitials Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldInitials"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldInitials" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentFormFieldInitials Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentFormFieldInitials input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs index ec514c828..4bfa38285 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldRadio")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldRadio : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldRadio + : TemplateResponseDocumentFormFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldRadio() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentFormFieldRadio() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. (required). - public TemplateResponseDocumentFormFieldRadio(string type = @"radio", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldRadio( + string type = @"radio", + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentFormFieldRadio() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldRadio and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentFormFieldRadio and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentFormFieldRadio() { } /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldRadio Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldRadio"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldRadio" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentFormFieldRadio Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentFormFieldRadio input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs index 8e317385f..6c71ffbc1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldSignature")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldSignature : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldSignature + : TemplateResponseDocumentFormFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldSignature() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentFormFieldSignature() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldSignature(string type = @"signature", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldSignature( + string type = @"signature", + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentFormFieldSignature() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldSignature and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentFormFieldSignature and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentFormFieldSignature() { } /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldSignature Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldSignature"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldSignature" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentFormFieldSignature Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentFormFieldSignature input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs index 60a2c2f7e..125eaff00 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,11 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldText : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentFormFieldText + : TemplateResponseDocumentFormFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. @@ -98,21 +102,22 @@ public enum ValidationTypeEnum /// Enum CustomRegex for value: custom_regex /// [EnumMember(Value = "custom_regex")] - CustomRegex = 10 + CustomRegex = 10, } - /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. [DataMember(Name = "validation_type", EmitDefaultValue = true)] public ValidationTypeEnum? ValidationType { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldText() { } + /// /// Initializes a new instance of the class. /// @@ -131,7 +136,24 @@ protected TemplateResponseDocumentFormFieldText() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldText(string type = @"text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentFormFieldText( + string type = @"text", + TemplateResponseFieldAvgTextLength avgTextLength = + default(TemplateResponseFieldAvgTextLength), + bool isMultiline = default(bool), + int originalFontSize = default(int), + string fontFamily = default(string), + ValidationTypeEnum? validationType = default(ValidationTypeEnum?), + string apiId = default(string), + string name = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -142,11 +164,13 @@ protected TemplateResponseDocumentFormFieldText() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldText and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentFormFieldText and cannot be null" + ); } this.Type = type; this.AvgTextLength = avgTextLength; @@ -162,11 +186,15 @@ protected TemplateResponseDocumentFormFieldText() { } /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldText"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldText" + ); } return obj; @@ -178,14 +206,12 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } - /// /// Whether this form field is multiline text. @@ -193,7 +219,6 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// Whether this form field is multiline text. [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } - /// /// Original font size used in this form field's text. @@ -201,7 +226,6 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// Original font size used in this form field's text. [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } - /// /// Font family used in this form field's text. @@ -209,7 +233,6 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// Font family used in this form field's text. [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } - /// /// Returns the string presentation of the object @@ -236,7 +259,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -260,33 +286,34 @@ public bool Equals(TemplateResponseDocumentFormFieldText input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.AvgTextLength == input.AvgTextLength || - (this.AvgTextLength != null && - this.AvgTextLength.Equals(input.AvgTextLength)) - ) && base.Equals(input) && - ( - this.IsMultiline == input.IsMultiline || - this.IsMultiline.Equals(input.IsMultiline) - ) && base.Equals(input) && - ( - this.OriginalFontSize == input.OriginalFontSize || - this.OriginalFontSize.Equals(input.OriginalFontSize) - ) && base.Equals(input) && - ( - this.FontFamily == input.FontFamily || - (this.FontFamily != null && - this.FontFamily.Equals(input.FontFamily)) - ) && base.Equals(input) && - ( - this.ValidationType == input.ValidationType || - this.ValidationType.Equals(input.ValidationType) + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && base.Equals(input) + && ( + this.AvgTextLength == input.AvgTextLength + || ( + this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) + ) + ) + && base.Equals(input) + && ( + this.IsMultiline == input.IsMultiline + || this.IsMultiline.Equals(input.IsMultiline) + ) + && base.Equals(input) + && ( + this.OriginalFontSize == input.OriginalFontSize + || this.OriginalFontSize.Equals(input.OriginalFontSize) + ) + && base.Equals(input) + && ( + this.FontFamily == input.FontFamily + || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) + ) + && base.Equals(input) + && ( + this.ValidationType == input.ValidationType + || this.ValidationType.Equals(input.ValidationType) ); } @@ -323,7 +350,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -345,45 +374,62 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - }); - types.Add(new OpenApiType(){ - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool", - Value = IsMultiline, - }); - types.Add(new OpenApiType(){ - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int", - Value = OriginalFontSize, - }); - types.Add(new OpenApiType(){ - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); - types.Add(new OpenApiType(){ - Name = "validation_type", - Property = "ValidationType", - Type = "string", - Value = ValidationType, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + } + ); + types.Add( + new OpenApiType() + { + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool", + Value = IsMultiline, + } + ); + types.Add( + new OpenApiType() + { + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int", + Value = OriginalFontSize, + } + ); + types.Add( + new OpenApiType() + { + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); + types.Add( + new OpenApiType() + { + Name = "validation_type", + Property = "ValidationType", + Type = "string", + Value = ValidationType, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs index 3ba2c5927..edc3ea446 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,17 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticField : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticField + : IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticField() { } + /// /// Initializes a new instance of the class. /// @@ -51,9 +55,19 @@ protected TemplateResponseDocumentStaticField() { } /// Boolean showing whether or not this field is required.. /// A unique id for the static field.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticField(string name = default(string), string type = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string apiId = default(string), string group = default(string)) + public TemplateResponseDocumentStaticField( + string name = default(string), + string type = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string apiId = default(string), + string group = default(string) + ) { - this.Name = name; this.Type = type; this.Signer = signer; @@ -76,7 +90,9 @@ public static TemplateResponseDocumentStaticField Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticField"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticField" + ); } return obj; @@ -180,7 +196,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -204,51 +223,24 @@ public bool Equals(TemplateResponseDocumentStaticField input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Signer == input.Signer || - (this.Signer != null && - this.Signer.Equals(input.Signer)) - ) && - ( - this.X == input.X || - this.X.Equals(input.X) - ) && - ( - this.Y == input.Y || - this.Y.Equals(input.Y) - ) && - ( - this.Width == input.Width || - this.Width.Equals(input.Width) - ) && - ( - this.Height == input.Height || - this.Height.Equals(input.Height) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && ( + this.Signer == input.Signer + || (this.Signer != null && this.Signer.Equals(input.Signer)) + ) + && (this.X == input.X || this.X.Equals(input.X)) + && (this.Y == input.Y || this.Y.Equals(input.Y)) + && (this.Width == input.Width || this.Width.Equals(input.Width)) + && (this.Height == input.Height || this.Height.Equals(input.Height)) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) ); } @@ -293,66 +285,96 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - }); - types.Add(new OpenApiType(){ - Name = "x", - Property = "X", - Type = "int", - Value = X, - }); - types.Add(new OpenApiType(){ - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - }); - types.Add(new OpenApiType(){ - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - }); - types.Add(new OpenApiType(){ - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + } + ); + types.Add( + new OpenApiType() + { + Name = "x", + Property = "X", + Type = "int", + Value = X, + } + ); + types.Add( + new OpenApiType() + { + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + } + ); + types.Add( + new OpenApiType() + { + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + } + ); + types.Add( + new OpenApiType() + { + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); return types; } @@ -362,10 +384,11 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs index a1a69e715..ef8e6c82f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; +using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using JsonSubTypes; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -33,7 +33,10 @@ namespace Dropbox.Sign.Model [DataContract(Name = "TemplateResponseDocumentStaticFieldBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] + [JsonSubtypes.KnownSubType( + typeof(TemplateResponseDocumentStaticFieldDateSigned), + "date_signed" + )] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] @@ -41,13 +44,16 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldBase : IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldBase + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldBase() { } + /// /// Initializes a new instance of the class. /// @@ -61,13 +67,25 @@ protected TemplateResponseDocumentStaticFieldBase() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldBase(string apiId = default(string), string name = default(string), string type = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldBase( + string apiId = default(string), + string name = default(string), + string type = default(string), + string signer = @"me_now", + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { - // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldBase and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentStaticFieldBase and cannot be null" + ); } this.Type = type; this.ApiId = apiId; @@ -88,11 +106,15 @@ protected TemplateResponseDocumentStaticFieldBase() { } /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldBase"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldBase" + ); } return obj; @@ -103,7 +125,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// A unique id for the static field. @@ -111,7 +132,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// A unique id for the static field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The name of the static field. @@ -119,7 +139,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The name of the static field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The signer of the Static Field. @@ -127,7 +146,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The signer of the Static Field. [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } - /// /// The horizontal offset in pixels for this static field. @@ -135,7 +153,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The horizontal offset in pixels for this static field. [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } - /// /// The vertical offset in pixels for this static field. @@ -143,7 +160,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The vertical offset in pixels for this static field. [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } - /// /// The width in pixels of this static field. @@ -151,7 +167,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The width in pixels of this static field. [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } - /// /// The height in pixels of this static field. @@ -159,7 +174,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The height in pixels of this static field. [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } - /// /// Boolean showing whether or not this field is required. @@ -167,7 +181,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// Boolean showing whether or not this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The name of the group this field is in. If this field is not a group, this defaults to `null`. @@ -175,7 +188,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The name of the group this field is in. If this field is not a group, this defaults to `null`. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } - /// /// Returns the string presentation of the object @@ -205,7 +217,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -229,51 +244,24 @@ public bool Equals(TemplateResponseDocumentStaticFieldBase input) { return false; } - return - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Signer == input.Signer || - (this.Signer != null && - this.Signer.Equals(input.Signer)) - ) && - ( - this.X == input.X || - this.X.Equals(input.X) - ) && - ( - this.Y == input.Y || - this.Y.Equals(input.Y) - ) && - ( - this.Width == input.Width || - this.Width.Equals(input.Width) - ) && - ( - this.Height == input.Height || - this.Height.Equals(input.Height) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) + return (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && ( + this.Signer == input.Signer + || (this.Signer != null && this.Signer.Equals(input.Signer)) + ) + && (this.X == input.X || this.X.Equals(input.X)) + && (this.Y == input.Y || this.Y.Equals(input.Y)) + && (this.Width == input.Width || this.Width.Equals(input.Width)) + && (this.Height == input.Height || this.Height.Equals(input.Height)) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) ); } @@ -320,7 +308,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -338,69 +328,98 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - }); - types.Add(new OpenApiType(){ - Name = "x", - Property = "X", - Type = "int", - Value = X, - }); - types.Add(new OpenApiType(){ - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - }); - types.Add(new OpenApiType(){ - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - }); - types.Add(new OpenApiType(){ - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + } + ); + types.Add( + new OpenApiType() + { + Name = "x", + Property = "X", + Type = "int", + Value = X, + } + ); + types.Add( + new OpenApiType() + { + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + } + ); + types.Add( + new OpenApiType() + { + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + } + ); + types.Add( + new OpenApiType() + { + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs index 05cc2e671..887bbe46c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldCheckbox : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldCheckbox + : TemplateResponseDocumentStaticFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldCheckbox() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentStaticFieldCheckbox() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldCheckbox(string type = @"checkbox", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldCheckbox( + string type = @"checkbox", + string apiId = default(string), + string name = default(string), + string signer = @"me_now", + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentStaticFieldCheckbox() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldCheckbox and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentStaticFieldCheckbox and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentStaticFieldCheckbox() { } /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldCheckbox"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldCheckbox" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentStaticFieldCheckbox Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentStaticFieldCheckbox input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs index fbab7d413..005b71a39 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldDateSigned")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldDateSigned : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldDateSigned + : TemplateResponseDocumentStaticFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldDateSigned() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentStaticFieldDateSigned() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldDateSigned(string type = @"date_signed", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldDateSigned( + string type = @"date_signed", + string apiId = default(string), + string name = default(string), + string signer = @"me_now", + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentStaticFieldDateSigned() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldDateSigned and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentStaticFieldDateSigned and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentStaticFieldDateSigned() { } /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldDateSigned Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldDateSigned"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldDateSigned" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentStaticFieldDateSigned Init(string jsonData /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentStaticFieldDateSigned input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs index cc88f41a3..70144c9cf 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldDropdown")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldDropdown : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldDropdown + : TemplateResponseDocumentStaticFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldDropdown() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentStaticFieldDropdown() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldDropdown(string type = @"dropdown", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldDropdown( + string type = @"dropdown", + string apiId = default(string), + string name = default(string), + string signer = @"me_now", + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentStaticFieldDropdown() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldDropdown and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentStaticFieldDropdown and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentStaticFieldDropdown() { } /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldDropdown Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldDropdown"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldDropdown" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentStaticFieldDropdown Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentStaticFieldDropdown input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs index ed07a9557..8ae2c7103 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldHyperlink")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldHyperlink : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldHyperlink + : TemplateResponseDocumentStaticFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldHyperlink() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentStaticFieldHyperlink() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldHyperlink(string type = @"hyperlink", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldHyperlink( + string type = @"hyperlink", + string apiId = default(string), + string name = default(string), + string signer = @"me_now", + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentStaticFieldHyperlink() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldHyperlink and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentStaticFieldHyperlink and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentStaticFieldHyperlink() { } /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldHyperlink Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldHyperlink"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldHyperlink" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentStaticFieldHyperlink Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentStaticFieldHyperlink input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs index d487f0696..56f6d18fc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldInitials")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldInitials : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldInitials + : TemplateResponseDocumentStaticFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldInitials() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentStaticFieldInitials() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldInitials(string type = @"initials", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldInitials( + string type = @"initials", + string apiId = default(string), + string name = default(string), + string signer = @"me_now", + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentStaticFieldInitials() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldInitials and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentStaticFieldInitials and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentStaticFieldInitials() { } /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldInitials Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldInitials"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldInitials" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentStaticFieldInitials Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentStaticFieldInitials input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs index 6176430d0..fe3260078 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldRadio")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldRadio : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldRadio + : TemplateResponseDocumentStaticFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldRadio() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentStaticFieldRadio() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldRadio(string type = @"radio", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldRadio( + string type = @"radio", + string apiId = default(string), + string name = default(string), + string signer = @"me_now", + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentStaticFieldRadio() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldRadio and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentStaticFieldRadio and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentStaticFieldRadio() { } /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldRadio Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldRadio"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldRadio" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentStaticFieldRadio Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentStaticFieldRadio input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs index c48408c0f..32d9db7b7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldSignature")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldSignature : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldSignature + : TemplateResponseDocumentStaticFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldSignature() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentStaticFieldSignature() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldSignature(string type = @"signature", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldSignature( + string type = @"signature", + string apiId = default(string), + string name = default(string), + string signer = @"me_now", + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentStaticFieldSignature() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldSignature and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentStaticFieldSignature and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentStaticFieldSignature() { } /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldSignature Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldSignature"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldSignature" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentStaticFieldSignature Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentStaticFieldSignature input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs index b5a382a67..1677ffd88 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,18 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldText : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseDocumentStaticFieldText + : TemplateResponseDocumentStaticFieldBase, + IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldText() { } + /// /// Initializes a new instance of the class. /// @@ -51,7 +56,18 @@ protected TemplateResponseDocumentStaticFieldText() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldText(string type = @"text", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) + public TemplateResponseDocumentStaticFieldText( + string type = @"text", + string apiId = default(string), + string name = default(string), + string signer = @"me_now", + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string group = default(string) + ) { this.ApiId = apiId; this.Name = name; @@ -62,11 +78,13 @@ protected TemplateResponseDocumentStaticFieldText() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldText and cannot be null"); + throw new ArgumentNullException( + "type is a required property for TemplateResponseDocumentStaticFieldText and cannot be null" + ); } this.Type = type; } @@ -77,11 +95,15 @@ protected TemplateResponseDocumentStaticFieldText() { } /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldText"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldText" + ); } return obj; @@ -93,7 +115,6 @@ public static TemplateResponseDocumentStaticFieldText Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object @@ -115,7 +136,10 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -139,12 +163,8 @@ public bool Equals(TemplateResponseDocumentStaticFieldText input) { return false; } - return base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); + return base.Equals(input) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); } /// @@ -169,7 +189,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { return this.BaseValidate(validationContext); } @@ -191,15 +213,17 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs index 48d527e71..59768ba2c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseFieldAvgTextLength")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseFieldAvgTextLength : IEquatable, IValidatableObject + public partial class TemplateResponseFieldAvgTextLength + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseFieldAvgTextLength() { } + /// /// Initializes a new instance of the class. /// /// Number of lines.. /// Number of characters per line.. - public TemplateResponseFieldAvgTextLength(int numLines = default(int), int numCharsPerLine = default(int)) + public TemplateResponseFieldAvgTextLength( + int numLines = default(int), + int numCharsPerLine = default(int) + ) { - this.NumLines = numLines; this.NumCharsPerLine = numCharsPerLine; } @@ -60,7 +65,9 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseFieldAvgTextLength"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseFieldAvgTextLength" + ); } return obj; @@ -72,7 +79,6 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) /// Number of lines. [DataMember(Name = "num_lines", EmitDefaultValue = true)] public int NumLines { get; set; } - /// /// Number of characters per line. @@ -80,7 +86,6 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) /// Number of characters per line. [DataMember(Name = "num_chars_per_line", EmitDefaultValue = true)] public int NumCharsPerLine { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +107,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,14 +134,10 @@ public bool Equals(TemplateResponseFieldAvgTextLength input) { return false; } - return - ( - this.NumLines == input.NumLines || - this.NumLines.Equals(input.NumLines) - ) && - ( - this.NumCharsPerLine == input.NumCharsPerLine || - this.NumCharsPerLine.Equals(input.NumCharsPerLine) + return (this.NumLines == input.NumLines || this.NumLines.Equals(input.NumLines)) + && ( + this.NumCharsPerLine == input.NumCharsPerLine + || this.NumCharsPerLine.Equals(input.NumCharsPerLine) ); } @@ -157,7 +161,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -165,21 +171,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "num_lines", - Property = "NumLines", - Type = "int", - Value = NumLines, - }); - types.Add(new OpenApiType(){ - Name = "num_chars_per_line", - Property = "NumCharsPerLine", - Type = "int", - Value = NumCharsPerLine, - }); + types.Add( + new OpenApiType() + { + Name = "num_lines", + Property = "NumLines", + Type = "int", + Value = NumLines, + } + ); + types.Add( + new OpenApiType() + { + Name = "num_chars_per_line", + Property = "NumCharsPerLine", + Type = "int", + Value = NumCharsPerLine, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs index e596f1e2b..5e199c6bb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,17 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseNamedFormField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseNamedFormField : IOpenApiTyped, IEquatable, IValidatableObject + public partial class TemplateResponseNamedFormField + : IOpenApiTyped, + IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseNamedFormField() { } + /// /// Initializes a new instance of the class. /// @@ -55,9 +59,24 @@ protected TemplateResponseNamedFormField() { } /// Whether this form field is multiline text.. /// Original font size used in this form field's text.. /// Font family used in this form field's text.. - public TemplateResponseNamedFormField(string name = default(string), string type = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string apiId = default(string), string group = default(string), TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool? isMultiline = default(bool?), int? originalFontSize = default(int?), string fontFamily = default(string)) + public TemplateResponseNamedFormField( + string name = default(string), + string type = default(string), + string signer = default(string), + int x = default(int), + int y = default(int), + int width = default(int), + int height = default(int), + bool required = default(bool), + string apiId = default(string), + string group = default(string), + TemplateResponseFieldAvgTextLength avgTextLength = + default(TemplateResponseFieldAvgTextLength), + bool? isMultiline = default(bool?), + int? originalFontSize = default(int?), + string fontFamily = default(string) + ) { - this.Name = name; this.Type = type; this.Signer = signer; @@ -84,7 +103,9 @@ public static TemplateResponseNamedFormField Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseNamedFormField"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseNamedFormField" + ); } return obj; @@ -219,7 +240,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -243,71 +267,45 @@ public bool Equals(TemplateResponseNamedFormField input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && - ( - this.Signer == input.Signer || - (this.Signer != null && - this.Signer.Equals(input.Signer)) - ) && - ( - this.X == input.X || - this.X.Equals(input.X) - ) && - ( - this.Y == input.Y || - this.Y.Equals(input.Y) - ) && - ( - this.Width == input.Width || - this.Width.Equals(input.Width) - ) && - ( - this.Height == input.Height || - this.Height.Equals(input.Height) - ) && - ( - this.Required == input.Required || - this.Required.Equals(input.Required) - ) && - ( - this.ApiId == input.ApiId || - (this.ApiId != null && - this.ApiId.Equals(input.ApiId)) - ) && - ( - this.Group == input.Group || - (this.Group != null && - this.Group.Equals(input.Group)) - ) && - ( - this.AvgTextLength == input.AvgTextLength || - (this.AvgTextLength != null && - this.AvgTextLength.Equals(input.AvgTextLength)) - ) && - ( - this.IsMultiline == input.IsMultiline || - (this.IsMultiline != null && - this.IsMultiline.Equals(input.IsMultiline)) - ) && - ( - this.OriginalFontSize == input.OriginalFontSize || - (this.OriginalFontSize != null && - this.OriginalFontSize.Equals(input.OriginalFontSize)) - ) && - ( - this.FontFamily == input.FontFamily || - (this.FontFamily != null && - this.FontFamily.Equals(input.FontFamily)) + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) + && ( + this.Signer == input.Signer + || (this.Signer != null && this.Signer.Equals(input.Signer)) + ) + && (this.X == input.X || this.X.Equals(input.X)) + && (this.Y == input.Y || this.Y.Equals(input.Y)) + && (this.Width == input.Width || this.Width.Equals(input.Width)) + && (this.Height == input.Height || this.Height.Equals(input.Height)) + && (this.Required == input.Required || this.Required.Equals(input.Required)) + && ( + this.ApiId == input.ApiId + || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) + ) + && ( + this.Group == input.Group + || (this.Group != null && this.Group.Equals(input.Group)) + ) + && ( + this.AvgTextLength == input.AvgTextLength + || ( + this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) + ) + ) + && ( + this.IsMultiline == input.IsMultiline + || (this.IsMultiline != null && this.IsMultiline.Equals(input.IsMultiline)) + ) + && ( + this.OriginalFontSize == input.OriginalFontSize + || ( + this.OriginalFontSize != null + && this.OriginalFontSize.Equals(input.OriginalFontSize) + ) + ) + && ( + this.FontFamily == input.FontFamily + || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) ); } @@ -368,90 +366,132 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - }); - types.Add(new OpenApiType(){ - Name = "x", - Property = "X", - Type = "int", - Value = X, - }); - types.Add(new OpenApiType(){ - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - }); - types.Add(new OpenApiType(){ - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - }); - types.Add(new OpenApiType(){ - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - }); - types.Add(new OpenApiType(){ - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - }); - types.Add(new OpenApiType(){ - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - }); - types.Add(new OpenApiType(){ - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - }); - types.Add(new OpenApiType(){ - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - }); - types.Add(new OpenApiType(){ - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool?", - Value = IsMultiline, - }); - types.Add(new OpenApiType(){ - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int?", - Value = OriginalFontSize, - }); - types.Add(new OpenApiType(){ - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + } + ); + types.Add( + new OpenApiType() + { + Name = "x", + Property = "X", + Type = "int", + Value = X, + } + ); + types.Add( + new OpenApiType() + { + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + } + ); + types.Add( + new OpenApiType() + { + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + } + ); + types.Add( + new OpenApiType() + { + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + } + ); + types.Add( + new OpenApiType() + { + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + } + ); + types.Add( + new OpenApiType() + { + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + } + ); + types.Add( + new OpenApiType() + { + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + } + ); + types.Add( + new OpenApiType() + { + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + } + ); + types.Add( + new OpenApiType() + { + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool?", + Value = IsMultiline, + } + ); + types.Add( + new OpenApiType() + { + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int?", + Value = OriginalFontSize, + } + ); + types.Add( + new OpenApiType() + { + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + } + ); return types; } @@ -461,10 +501,11 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) + public IEnumerable Validate( + ValidationContext validationContext + ) { yield break; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs index 9b893d6a3..6376d875a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseSignerRole")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseSignerRole : IEquatable, IValidatableObject + public partial class TemplateResponseSignerRole + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseSignerRole() { } + /// /// Initializes a new instance of the class. /// @@ -45,7 +48,6 @@ protected TemplateResponseSignerRole() { } /// If signer order is assigned this is the 0-based index for this role.. public TemplateResponseSignerRole(string name = default(string), int order = default(int)) { - this.Name = name; this.Order = order; } @@ -60,7 +62,9 @@ public static TemplateResponseSignerRole Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateResponseSignerRole"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateResponseSignerRole" + ); } return obj; @@ -72,7 +76,6 @@ public static TemplateResponseSignerRole Init(string jsonData) /// The name of the Role. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// If signer order is assigned this is the 0-based index for this role. @@ -80,7 +83,6 @@ public static TemplateResponseSignerRole Init(string jsonData) /// If signer order is assigned this is the 0-based index for this role. [DataMember(Name = "order", EmitDefaultValue = true)] public int Order { get; set; } - /// /// Returns the string presentation of the object @@ -102,7 +104,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -126,16 +131,8 @@ public bool Equals(TemplateResponseSignerRole input) { return false; } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.Order == input.Order || - this.Order.Equals(input.Order) - ); + return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) + && (this.Order == input.Order || this.Order.Equals(input.Order)); } /// @@ -161,7 +158,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -169,21 +168,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - }); - types.Add(new OpenApiType(){ - Name = "order", - Property = "Order", - Type = "int", - Value = Order, - }); + types.Add( + new OpenApiType() + { + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + } + ); + types.Add( + new OpenApiType() + { + Name = "order", + Property = "Order", + Type = "int", + Value = Order, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs index 8d23d43a1..ab1923255 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateUpdateFilesRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateUpdateFilesRequest : IEquatable, IValidatableObject + public partial class TemplateUpdateFilesRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateUpdateFilesRequest() { } + /// /// Initializes a new instance of the class. /// @@ -47,9 +50,15 @@ protected TemplateUpdateFilesRequest() { } /// The new default template email message.. /// The new default template email subject.. /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. (default to false). - public TemplateUpdateFilesRequest(string clientId = default(string), List files = default(List), List fileUrls = default(List), string message = default(string), string subject = default(string), bool testMode = false) + public TemplateUpdateFilesRequest( + string clientId = default(string), + List files = default(List), + List fileUrls = default(List), + string message = default(string), + string subject = default(string), + bool testMode = false + ) { - this.ClientId = clientId; this.Files = files; this.FileUrls = fileUrls; @@ -68,7 +77,9 @@ public static TemplateUpdateFilesRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateUpdateFilesRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateUpdateFilesRequest" + ); } return obj; @@ -80,7 +91,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Client id of the app you're using to update this template. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -88,7 +98,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -96,7 +105,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// The new default template email message. @@ -104,7 +112,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// The new default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// The new default template email subject. @@ -112,7 +119,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// The new default template email subject. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -120,7 +126,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Returns the string presentation of the object @@ -146,7 +151,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -170,38 +178,31 @@ public bool Equals(TemplateUpdateFilesRequest input) { return false; } - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ); + return ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)); } /// @@ -243,18 +244,26 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 100) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 100.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 100.", + new[] { "Subject" } + ); } yield break; @@ -263,45 +272,62 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs index e5fa70551..7a02cef08 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,20 +31,25 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateUpdateFilesResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateUpdateFilesResponse : IEquatable, IValidatableObject + public partial class TemplateUpdateFilesResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateUpdateFilesResponse() { } + /// /// Initializes a new instance of the class. /// /// template. - public TemplateUpdateFilesResponse(TemplateUpdateFilesResponseTemplate template = default(TemplateUpdateFilesResponseTemplate)) + public TemplateUpdateFilesResponse( + TemplateUpdateFilesResponseTemplate template = + default(TemplateUpdateFilesResponseTemplate) + ) { - this.Template = template; } @@ -58,7 +63,9 @@ public static TemplateUpdateFilesResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateUpdateFilesResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateUpdateFilesResponse" + ); } return obj; @@ -69,7 +76,6 @@ public static TemplateUpdateFilesResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateUpdateFilesResponseTemplate Template { get; set; } - /// /// Returns the string presentation of the object @@ -90,7 +96,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -114,12 +123,10 @@ public bool Equals(TemplateUpdateFilesResponse input) { return false; } - return - ( - this.Template == input.Template || - (this.Template != null && - this.Template.Equals(input.Template)) - ); + return ( + this.Template == input.Template + || (this.Template != null && this.Template.Equals(input.Template)) + ); } /// @@ -144,7 +151,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -152,15 +161,17 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template", - Property = "Template", - Type = "TemplateUpdateFilesResponseTemplate", - Value = Template, - }); + types.Add( + new OpenApiType() + { + Name = "template", + Property = "Template", + Type = "TemplateUpdateFilesResponseTemplate", + Value = Template, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs index f04a63472..ac447e2f8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateUpdateFilesResponseTemplate")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateUpdateFilesResponseTemplate : IEquatable, IValidatableObject + public partial class TemplateUpdateFilesResponseTemplate + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateUpdateFilesResponseTemplate() { } + /// /// Initializes a new instance of the class. /// /// The id of the Template.. /// A list of warnings.. - public TemplateUpdateFilesResponseTemplate(string templateId = default(string), List warnings = default(List)) + public TemplateUpdateFilesResponseTemplate( + string templateId = default(string), + List warnings = default(List) + ) { - this.TemplateId = templateId; this.Warnings = warnings; } @@ -60,7 +65,9 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of TemplateUpdateFilesResponseTemplate"); + throw new Exception( + "Unable to deserialize JSON to instance of TemplateUpdateFilesResponseTemplate" + ); } return obj; @@ -72,7 +79,6 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// A list of warnings. @@ -81,7 +87,6 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] [Obsolete] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -103,7 +108,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -127,17 +135,15 @@ public bool Equals(TemplateUpdateFilesResponseTemplate input) { return false; } - return - ( - this.TemplateId == input.TemplateId || - (this.TemplateId != null && - this.TemplateId.Equals(input.TemplateId)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.TemplateId == input.TemplateId + || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -167,7 +173,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -175,21 +183,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs index 850ea5f1f..6842da160 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,9 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateEmbeddedRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateEmbeddedRequest : IEquatable, IValidatableObject + public partial class UnclaimedDraftCreateEmbeddedRequest + : IEquatable, + IValidatableObject { /// /// The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. @@ -50,21 +52,22 @@ public enum TypeEnum /// Enum RequestSignature for value: request_signature /// [EnumMember(Value = "request_signature")] - RequestSignature = 2 + RequestSignature = 2, } - /// /// The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. /// /// The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. [DataMember(Name = "type", EmitDefaultValue = true)] public TypeEnum? Type { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftCreateEmbeddedRequest() { } + /// /// Initializes a new instance of the class. /// @@ -104,19 +107,60 @@ protected UnclaimedDraftCreateEmbeddedRequest() { } /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. (default to false). /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response.. - public UnclaimedDraftCreateEmbeddedRequest(List files = default(List), List fileUrls = default(List), bool allowCcs = true, bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubEditorOptions editorOptions = default(SubEditorOptions), SubFieldOptions fieldOptions = default(SubFieldOptions), bool forceSignerPage = false, bool forceSubjectMessage = false, List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, bool holdRequest = false, bool isForEmbeddedSigning = false, string message = default(string), Dictionary metadata = default(Dictionary), string requesterEmailAddress = default(string), string requestingRedirectUrl = default(string), bool showPreview = default(bool), bool showProgressStepper = true, List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), bool skipMeNow = false, string subject = default(string), bool testMode = false, TypeEnum? type = TypeEnum.RequestSignature, bool usePreexistingFields = false, bool useTextTags = false, bool populateAutoFillFields = false, int? expiresAt = default(int?)) + public UnclaimedDraftCreateEmbeddedRequest( + List files = default(List), + List fileUrls = default(List), + bool allowCcs = true, + bool allowDecline = false, + bool allowReassign = false, + List attachments = default(List), + List ccEmailAddresses = default(List), + string clientId = default(string), + List customFields = default(List), + SubEditorOptions editorOptions = default(SubEditorOptions), + SubFieldOptions fieldOptions = default(SubFieldOptions), + bool forceSignerPage = false, + bool forceSubjectMessage = false, + List formFieldGroups = default(List), + List formFieldRules = default(List), + List formFieldsPerDocument = + default(List), + bool hideTextTags = false, + bool holdRequest = false, + bool isForEmbeddedSigning = false, + string message = default(string), + Dictionary metadata = default(Dictionary), + string requesterEmailAddress = default(string), + string requestingRedirectUrl = default(string), + bool showPreview = default(bool), + bool showProgressStepper = true, + List signers = default(List), + SubSigningOptions signingOptions = default(SubSigningOptions), + string signingRedirectUrl = default(string), + bool skipMeNow = false, + string subject = default(string), + bool testMode = false, + TypeEnum? type = TypeEnum.RequestSignature, + bool usePreexistingFields = false, + bool useTextTags = false, + bool populateAutoFillFields = false, + int? expiresAt = default(int?) + ) { - // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for UnclaimedDraftCreateEmbeddedRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for UnclaimedDraftCreateEmbeddedRequest and cannot be null" + ); } this.ClientId = clientId; // to ensure "requesterEmailAddress" is required (not null) if (requesterEmailAddress == null) { - throw new ArgumentNullException("requesterEmailAddress is a required property for UnclaimedDraftCreateEmbeddedRequest and cannot be null"); + throw new ArgumentNullException( + "requesterEmailAddress is a required property for UnclaimedDraftCreateEmbeddedRequest and cannot be null" + ); } this.RequesterEmailAddress = requesterEmailAddress; this.Files = files; @@ -165,7 +209,9 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftCreateEmbeddedRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of UnclaimedDraftCreateEmbeddedRequest" + ); } return obj; @@ -177,7 +223,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. @@ -185,7 +230,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. [DataMember(Name = "requester_email_address", IsRequired = true, EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -193,7 +237,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -201,7 +244,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. @@ -209,7 +251,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -217,7 +258,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -225,7 +265,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments @@ -233,7 +272,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The email addresses that should be CCed. @@ -241,7 +279,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -249,21 +286,18 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Provide users the ability to review/edit the signers. @@ -271,7 +305,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Provide users the ability to review/edit the signers. [DataMember(Name = "force_signer_page", EmitDefaultValue = true)] public bool ForceSignerPage { get; set; } - /// /// Provide users the ability to review/edit the subject and message. @@ -279,7 +312,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Provide users the ability to review/edit the subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -287,7 +319,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -295,7 +326,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -303,7 +333,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. @@ -311,7 +340,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } - /// /// The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. @@ -319,7 +347,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. [DataMember(Name = "hold_request", EmitDefaultValue = true)] public bool HoldRequest { get; set; } - /// /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. @@ -327,7 +354,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } - /// /// The custom message in the email that will be sent to the signers. @@ -335,7 +361,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -343,7 +368,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// The URL you want signers redirected to after they successfully request a signature. @@ -351,7 +375,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully request a signature. [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } - /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. @@ -359,7 +382,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -367,7 +389,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// Add Signers to your Unclaimed Draft Signature Request. @@ -375,14 +396,12 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Add Signers to your Unclaimed Draft Signature Request. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. @@ -390,7 +409,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. @@ -398,7 +416,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } - /// /// The subject in the email that will be sent to the signers. @@ -406,7 +423,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -414,7 +430,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -422,7 +437,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } - /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -430,7 +444,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } - /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -438,7 +451,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } - /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. @@ -446,7 +458,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object @@ -502,7 +513,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -526,180 +540,171 @@ public bool Equals(UnclaimedDraftCreateEmbeddedRequest input) { return false; } - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.RequesterEmailAddress == input.RequesterEmailAddress || - (this.RequesterEmailAddress != null && - this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.AllowCcs == input.AllowCcs || - this.AllowCcs.Equals(input.AllowCcs) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.AllowReassign == input.AllowReassign || - this.AllowReassign.Equals(input.AllowReassign) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.CcEmailAddresses == input.CcEmailAddresses || - this.CcEmailAddresses != null && - input.CcEmailAddresses != null && - this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.EditorOptions == input.EditorOptions || - (this.EditorOptions != null && - this.EditorOptions.Equals(input.EditorOptions)) - ) && - ( - this.FieldOptions == input.FieldOptions || - (this.FieldOptions != null && - this.FieldOptions.Equals(input.FieldOptions)) - ) && - ( - this.ForceSignerPage == input.ForceSignerPage || - this.ForceSignerPage.Equals(input.ForceSignerPage) - ) && - ( - this.ForceSubjectMessage == input.ForceSubjectMessage || - this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) - ) && - ( - this.FormFieldGroups == input.FormFieldGroups || - this.FormFieldGroups != null && - input.FormFieldGroups != null && - this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) && - ( - this.FormFieldRules == input.FormFieldRules || - this.FormFieldRules != null && - input.FormFieldRules != null && - this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) && - ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument || - this.FormFieldsPerDocument != null && - input.FormFieldsPerDocument != null && - this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) && - ( - this.HideTextTags == input.HideTextTags || - this.HideTextTags.Equals(input.HideTextTags) - ) && - ( - this.HoldRequest == input.HoldRequest || - this.HoldRequest.Equals(input.HoldRequest) - ) && - ( - this.IsForEmbeddedSigning == input.IsForEmbeddedSigning || - this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.RequestingRedirectUrl == input.RequestingRedirectUrl || - (this.RequestingRedirectUrl != null && - this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl)) - ) && - ( - this.ShowPreview == input.ShowPreview || - this.ShowPreview.Equals(input.ShowPreview) - ) && - ( - this.ShowProgressStepper == input.ShowProgressStepper || - this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.SkipMeNow == input.SkipMeNow || - this.SkipMeNow.Equals(input.SkipMeNow) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ) && - ( - this.UsePreexistingFields == input.UsePreexistingFields || - this.UsePreexistingFields.Equals(input.UsePreexistingFields) - ) && - ( - this.UseTextTags == input.UseTextTags || - this.UseTextTags.Equals(input.UseTextTags) - ) && - ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields || - this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - (this.ExpiresAt != null && - this.ExpiresAt.Equals(input.ExpiresAt)) + return ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.RequesterEmailAddress == input.RequesterEmailAddress + || ( + this.RequesterEmailAddress != null + && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) + ) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && (this.AllowCcs == input.AllowCcs || this.AllowCcs.Equals(input.AllowCcs)) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.AllowReassign == input.AllowReassign + || this.AllowReassign.Equals(input.AllowReassign) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.CcEmailAddresses == input.CcEmailAddresses + || this.CcEmailAddresses != null + && input.CcEmailAddresses != null + && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.EditorOptions == input.EditorOptions + || ( + this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) + ) + ) + && ( + this.FieldOptions == input.FieldOptions + || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) + ) + && ( + this.ForceSignerPage == input.ForceSignerPage + || this.ForceSignerPage.Equals(input.ForceSignerPage) + ) + && ( + this.ForceSubjectMessage == input.ForceSubjectMessage + || this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) + ) + && ( + this.FormFieldGroups == input.FormFieldGroups + || this.FormFieldGroups != null + && input.FormFieldGroups != null + && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) + && ( + this.FormFieldRules == input.FormFieldRules + || this.FormFieldRules != null + && input.FormFieldRules != null + && this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) + && ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument + || this.FormFieldsPerDocument != null + && input.FormFieldsPerDocument != null + && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) + && ( + this.HideTextTags == input.HideTextTags + || this.HideTextTags.Equals(input.HideTextTags) + ) + && ( + this.HoldRequest == input.HoldRequest + || this.HoldRequest.Equals(input.HoldRequest) + ) + && ( + this.IsForEmbeddedSigning == input.IsForEmbeddedSigning + || this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.RequestingRedirectUrl == input.RequestingRedirectUrl + || ( + this.RequestingRedirectUrl != null + && this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl) + ) + ) + && ( + this.ShowPreview == input.ShowPreview + || this.ShowPreview.Equals(input.ShowPreview) + ) + && ( + this.ShowProgressStepper == input.ShowProgressStepper + || this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && (this.SkipMeNow == input.SkipMeNow || this.SkipMeNow.Equals(input.SkipMeNow)) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && (this.Type == input.Type || this.Type.Equals(input.Type)) + && ( + this.UsePreexistingFields == input.UsePreexistingFields + || this.UsePreexistingFields.Equals(input.UsePreexistingFields) + ) + && ( + this.UseTextTags == input.UseTextTags + || this.UseTextTags.Equals(input.UseTextTags) + ) + && ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields + || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + ) + && ( + this.ExpiresAt == input.ExpiresAt + || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -817,18 +822,26 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 200.", + new[] { "Subject" } + ); } yield break; @@ -837,225 +850,332 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "allow_ccs", - Property = "AllowCcs", - Type = "bool", - Value = AllowCcs, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - }); - types.Add(new OpenApiType(){ - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - }); - types.Add(new OpenApiType(){ - Name = "force_signer_page", - Property = "ForceSignerPage", - Type = "bool", - Value = ForceSignerPage, - }); - types.Add(new OpenApiType(){ - Name = "force_subject_message", - Property = "ForceSubjectMessage", - Type = "bool", - Value = ForceSubjectMessage, - }); - types.Add(new OpenApiType(){ - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - }); - types.Add(new OpenApiType(){ - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - }); - types.Add(new OpenApiType(){ - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - }); - types.Add(new OpenApiType(){ - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - }); - types.Add(new OpenApiType(){ - Name = "hold_request", - Property = "HoldRequest", - Type = "bool", - Value = HoldRequest, - }); - types.Add(new OpenApiType(){ - Name = "is_for_embedded_signing", - Property = "IsForEmbeddedSigning", - Type = "bool", - Value = IsForEmbeddedSigning, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "requesting_redirect_url", - Property = "RequestingRedirectUrl", - Type = "string", - Value = RequestingRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "show_preview", - Property = "ShowPreview", - Type = "bool", - Value = ShowPreview, - }); - types.Add(new OpenApiType(){ - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "skip_me_now", - Property = "SkipMeNow", - Type = "bool", - Value = SkipMeNow, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "use_preexisting_fields", - Property = "UsePreexistingFields", - Type = "bool", - Value = UsePreexistingFields, - }); - types.Add(new OpenApiType(){ - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - }); - types.Add(new OpenApiType(){ - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_ccs", + Property = "AllowCcs", + Type = "bool", + Value = AllowCcs, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "force_signer_page", + Property = "ForceSignerPage", + Type = "bool", + Value = ForceSignerPage, + } + ); + types.Add( + new OpenApiType() + { + Name = "force_subject_message", + Property = "ForceSubjectMessage", + Type = "bool", + Value = ForceSubjectMessage, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + } + ); + types.Add( + new OpenApiType() + { + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "hold_request", + Property = "HoldRequest", + Type = "bool", + Value = HoldRequest, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_for_embedded_signing", + Property = "IsForEmbeddedSigning", + Type = "bool", + Value = IsForEmbeddedSigning, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "requesting_redirect_url", + Property = "RequestingRedirectUrl", + Type = "string", + Value = RequestingRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_preview", + Property = "ShowPreview", + Type = "bool", + Value = ShowPreview, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "skip_me_now", + Property = "SkipMeNow", + Type = "bool", + Value = SkipMeNow, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_preexisting_fields", + Property = "UsePreexistingFields", + Type = "bool", + Value = UsePreexistingFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs index 52e3f3bb2..9e1a947ac 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateEmbeddedWithTemplateRequest : IEquatable, IValidatableObject + public partial class UnclaimedDraftCreateEmbeddedWithTemplateRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftCreateEmbeddedWithTemplateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -71,25 +74,62 @@ protected UnclaimedDraftCreateEmbeddedWithTemplateRequest() { } /// The title you want to assign to the SignatureRequest.. /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. (default to false). - public UnclaimedDraftCreateEmbeddedWithTemplateRequest(bool allowDecline = false, bool allowReassign = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), SubEditorOptions editorOptions = default(SubEditorOptions), SubFieldOptions fieldOptions = default(SubFieldOptions), List files = default(List), List fileUrls = default(List), bool forceSignerRoles = false, bool forceSubjectMessage = false, bool holdRequest = false, bool isForEmbeddedSigning = false, string message = default(string), Dictionary metadata = default(Dictionary), bool previewOnly = false, string requesterEmailAddress = default(string), string requestingRedirectUrl = default(string), bool showPreview = false, bool showProgressStepper = true, List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), bool skipMeNow = false, string subject = default(string), List templateIds = default(List), bool testMode = false, string title = default(string), bool populateAutoFillFields = false, bool allowCcs = false) + public UnclaimedDraftCreateEmbeddedWithTemplateRequest( + bool allowDecline = false, + bool allowReassign = false, + List ccs = default(List), + string clientId = default(string), + List customFields = default(List), + SubEditorOptions editorOptions = default(SubEditorOptions), + SubFieldOptions fieldOptions = default(SubFieldOptions), + List files = default(List), + List fileUrls = default(List), + bool forceSignerRoles = false, + bool forceSubjectMessage = false, + bool holdRequest = false, + bool isForEmbeddedSigning = false, + string message = default(string), + Dictionary metadata = default(Dictionary), + bool previewOnly = false, + string requesterEmailAddress = default(string), + string requestingRedirectUrl = default(string), + bool showPreview = false, + bool showProgressStepper = true, + List signers = + default(List), + SubSigningOptions signingOptions = default(SubSigningOptions), + string signingRedirectUrl = default(string), + bool skipMeNow = false, + string subject = default(string), + List templateIds = default(List), + bool testMode = false, + string title = default(string), + bool populateAutoFillFields = false, + bool allowCcs = false + ) { - // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null" + ); } this.ClientId = clientId; // to ensure "requesterEmailAddress" is required (not null) if (requesterEmailAddress == null) { - throw new ArgumentNullException("requesterEmailAddress is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "requesterEmailAddress is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null" + ); } this.RequesterEmailAddress = requesterEmailAddress; // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException("templateIds is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null"); + throw new ArgumentNullException( + "templateIds is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null" + ); } this.TemplateIds = templateIds; this.AllowDecline = allowDecline; @@ -127,11 +167,16 @@ protected UnclaimedDraftCreateEmbeddedWithTemplateRequest() { } /// String of JSON data representing target object public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject(jsonData); + var obj = + JsonConvert.DeserializeObject( + jsonData + ); if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftCreateEmbeddedWithTemplateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of UnclaimedDraftCreateEmbeddedWithTemplateRequest" + ); } return obj; @@ -143,7 +188,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// The email address of the user that should be designated as the requester of this draft. @@ -151,7 +195,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The email address of the user that should be designated as the requester of this draft. [DataMember(Name = "requester_email_address", IsRequired = true, EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. @@ -159,7 +202,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -167,7 +209,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -175,7 +216,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -183,7 +223,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. @@ -191,21 +230,18 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// An array defining values and options for custom fields. Required when a custom field exists in the Template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. @@ -213,7 +249,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. @@ -221,7 +256,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Provide users the ability to review/edit the template signer roles. @@ -229,7 +263,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Provide users the ability to review/edit the template signer roles. [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } - /// /// Provide users the ability to review/edit the template subject and message. @@ -237,7 +270,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Provide users the ability to review/edit the template subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } - /// /// The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. @@ -245,7 +277,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. [DataMember(Name = "hold_request", EmitDefaultValue = true)] public bool HoldRequest { get; set; } - /// /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. @@ -253,7 +284,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } - /// /// The custom message in the email that will be sent to the signers. @@ -261,7 +291,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -269,7 +298,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). - `preview_only=true`: Allows requesters to enable the preview only experience. - `preview_only=false`: Allows requesters to disable the preview only experience. **NOTE:** This parameter overwrites `show_preview=1` (if set). @@ -277,7 +305,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). - `preview_only=true`: Allows requesters to enable the preview only experience. - `preview_only=false`: Allows requesters to disable the preview only experience. **NOTE:** This parameter overwrites `show_preview=1` (if set). [DataMember(Name = "preview_only", EmitDefaultValue = true)] public bool PreviewOnly { get; set; } - /// /// The URL you want signers redirected to after they successfully request a signature. @@ -285,7 +312,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The URL you want signers redirected to after they successfully request a signature. [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } - /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. @@ -293,7 +319,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -301,7 +326,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// Add Signers to your Templated-based Signature Request. @@ -309,14 +333,12 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Add Signers to your Templated-based Signature Request. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. @@ -324,7 +346,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. @@ -332,7 +353,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } - /// /// The subject in the email that will be sent to the signers. @@ -340,7 +360,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -348,7 +367,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. @@ -356,7 +374,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -364,7 +381,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } - /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. @@ -372,7 +388,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } - /// /// Returns the string presentation of the object @@ -422,7 +437,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -446,151 +464,143 @@ public bool Equals(UnclaimedDraftCreateEmbeddedWithTemplateRequest input) { return false; } - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.RequesterEmailAddress == input.RequesterEmailAddress || - (this.RequesterEmailAddress != null && - this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) - ) && - ( - this.TemplateIds == input.TemplateIds || - this.TemplateIds != null && - input.TemplateIds != null && - this.TemplateIds.SequenceEqual(input.TemplateIds) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.AllowReassign == input.AllowReassign || - this.AllowReassign.Equals(input.AllowReassign) - ) && - ( - this.Ccs == input.Ccs || - this.Ccs != null && - input.Ccs != null && - this.Ccs.SequenceEqual(input.Ccs) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.EditorOptions == input.EditorOptions || - (this.EditorOptions != null && - this.EditorOptions.Equals(input.EditorOptions)) - ) && - ( - this.FieldOptions == input.FieldOptions || - (this.FieldOptions != null && - this.FieldOptions.Equals(input.FieldOptions)) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.ForceSignerRoles == input.ForceSignerRoles || - this.ForceSignerRoles.Equals(input.ForceSignerRoles) - ) && - ( - this.ForceSubjectMessage == input.ForceSubjectMessage || - this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) - ) && - ( - this.HoldRequest == input.HoldRequest || - this.HoldRequest.Equals(input.HoldRequest) - ) && - ( - this.IsForEmbeddedSigning == input.IsForEmbeddedSigning || - this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.PreviewOnly == input.PreviewOnly || - this.PreviewOnly.Equals(input.PreviewOnly) - ) && - ( - this.RequestingRedirectUrl == input.RequestingRedirectUrl || - (this.RequestingRedirectUrl != null && - this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl)) - ) && - ( - this.ShowPreview == input.ShowPreview || - this.ShowPreview.Equals(input.ShowPreview) - ) && - ( - this.ShowProgressStepper == input.ShowProgressStepper || - this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.SkipMeNow == input.SkipMeNow || - this.SkipMeNow.Equals(input.SkipMeNow) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields || - this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) - ) && - ( - this.AllowCcs == input.AllowCcs || - this.AllowCcs.Equals(input.AllowCcs) - ); + return ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.RequesterEmailAddress == input.RequesterEmailAddress + || ( + this.RequesterEmailAddress != null + && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) + ) + ) + && ( + this.TemplateIds == input.TemplateIds + || this.TemplateIds != null + && input.TemplateIds != null + && this.TemplateIds.SequenceEqual(input.TemplateIds) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.AllowReassign == input.AllowReassign + || this.AllowReassign.Equals(input.AllowReassign) + ) + && ( + this.Ccs == input.Ccs + || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.EditorOptions == input.EditorOptions + || ( + this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) + ) + ) + && ( + this.FieldOptions == input.FieldOptions + || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) + ) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.ForceSignerRoles == input.ForceSignerRoles + || this.ForceSignerRoles.Equals(input.ForceSignerRoles) + ) + && ( + this.ForceSubjectMessage == input.ForceSubjectMessage + || this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) + ) + && ( + this.HoldRequest == input.HoldRequest + || this.HoldRequest.Equals(input.HoldRequest) + ) + && ( + this.IsForEmbeddedSigning == input.IsForEmbeddedSigning + || this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.PreviewOnly == input.PreviewOnly + || this.PreviewOnly.Equals(input.PreviewOnly) + ) + && ( + this.RequestingRedirectUrl == input.RequestingRedirectUrl + || ( + this.RequestingRedirectUrl != null + && this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl) + ) + ) + && ( + this.ShowPreview == input.ShowPreview + || this.ShowPreview.Equals(input.ShowPreview) + ) + && ( + this.ShowProgressStepper == input.ShowProgressStepper + || this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && (this.SkipMeNow == input.SkipMeNow || this.SkipMeNow.Equals(input.SkipMeNow)) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.Title == input.Title + || (this.Title != null && this.Title.Equals(input.Title)) + ) + && ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields + || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + ) + && (this.AllowCcs == input.AllowCcs || this.AllowCcs.Equals(input.AllowCcs)); } /// @@ -692,24 +702,35 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 255.", + new[] { "Subject" } + ); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); + yield return new ValidationResult( + "Invalid value for Title, length must be less than 255.", + new[] { "Title" } + ); } yield break; @@ -718,189 +739,278 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - }); - types.Add(new OpenApiType(){ - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - }); - types.Add(new OpenApiType(){ - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "force_signer_roles", - Property = "ForceSignerRoles", - Type = "bool", - Value = ForceSignerRoles, - }); - types.Add(new OpenApiType(){ - Name = "force_subject_message", - Property = "ForceSubjectMessage", - Type = "bool", - Value = ForceSubjectMessage, - }); - types.Add(new OpenApiType(){ - Name = "hold_request", - Property = "HoldRequest", - Type = "bool", - Value = HoldRequest, - }); - types.Add(new OpenApiType(){ - Name = "is_for_embedded_signing", - Property = "IsForEmbeddedSigning", - Type = "bool", - Value = IsForEmbeddedSigning, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "preview_only", - Property = "PreviewOnly", - Type = "bool", - Value = PreviewOnly, - }); - types.Add(new OpenApiType(){ - Name = "requesting_redirect_url", - Property = "RequestingRedirectUrl", - Type = "string", - Value = RequestingRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "show_preview", - Property = "ShowPreview", - Type = "bool", - Value = ShowPreview, - }); - types.Add(new OpenApiType(){ - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "skip_me_now", - Property = "SkipMeNow", - Type = "bool", - Value = SkipMeNow, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - }); - types.Add(new OpenApiType(){ - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - }); - types.Add(new OpenApiType(){ - Name = "allow_ccs", - Property = "AllowCcs", - Type = "bool", - Value = AllowCcs, - }); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + } + ); + types.Add( + new OpenApiType() + { + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "force_signer_roles", + Property = "ForceSignerRoles", + Type = "bool", + Value = ForceSignerRoles, + } + ); + types.Add( + new OpenApiType() + { + Name = "force_subject_message", + Property = "ForceSubjectMessage", + Type = "bool", + Value = ForceSubjectMessage, + } + ); + types.Add( + new OpenApiType() + { + Name = "hold_request", + Property = "HoldRequest", + Type = "bool", + Value = HoldRequest, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_for_embedded_signing", + Property = "IsForEmbeddedSigning", + Type = "bool", + Value = IsForEmbeddedSigning, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "preview_only", + Property = "PreviewOnly", + Type = "bool", + Value = PreviewOnly, + } + ); + types.Add( + new OpenApiType() + { + Name = "requesting_redirect_url", + Property = "RequestingRedirectUrl", + Type = "string", + Value = RequestingRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_preview", + Property = "ShowPreview", + Type = "bool", + Value = ShowPreview, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "skip_me_now", + Property = "SkipMeNow", + Type = "bool", + Value = SkipMeNow, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + } + ); + types.Add( + new OpenApiType() + { + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_ccs", + Property = "AllowCcs", + Type = "bool", + Value = AllowCcs, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs index 3c87d3c56..c39d42492 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,7 +31,9 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateRequest : IEquatable, IValidatableObject + public partial class UnclaimedDraftCreateRequest + : IEquatable, + IValidatableObject { /// /// The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. @@ -50,21 +52,22 @@ public enum TypeEnum /// Enum RequestSignature for value: request_signature /// [EnumMember(Value = "request_signature")] - RequestSignature = 2 + RequestSignature = 2, } - /// /// The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. /// /// The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public TypeEnum Type { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftCreateRequest() { } + /// /// Initializes a new instance of the class. /// @@ -92,9 +95,34 @@ protected UnclaimedDraftCreateRequest() { } /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. (default to false). /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response.. - public UnclaimedDraftCreateRequest(List files = default(List), List fileUrls = default(List), bool allowDecline = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, string message = default(string), Dictionary metadata = default(Dictionary), bool showProgressStepper = true, List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, TypeEnum type = default(TypeEnum), bool usePreexistingFields = false, bool useTextTags = false, int? expiresAt = default(int?)) + public UnclaimedDraftCreateRequest( + List files = default(List), + List fileUrls = default(List), + bool allowDecline = false, + List attachments = default(List), + List ccEmailAddresses = default(List), + string clientId = default(string), + List customFields = default(List), + SubFieldOptions fieldOptions = default(SubFieldOptions), + List formFieldGroups = default(List), + List formFieldRules = default(List), + List formFieldsPerDocument = + default(List), + bool hideTextTags = false, + string message = default(string), + Dictionary metadata = default(Dictionary), + bool showProgressStepper = true, + List signers = default(List), + SubSigningOptions signingOptions = default(SubSigningOptions), + string signingRedirectUrl = default(string), + string subject = default(string), + bool testMode = false, + TypeEnum type = default(TypeEnum), + bool usePreexistingFields = false, + bool useTextTags = false, + int? expiresAt = default(int?) + ) { - this.Type = type; this.Files = files; this.FileUrls = fileUrls; @@ -131,7 +159,9 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftCreateRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of UnclaimedDraftCreateRequest" + ); } return obj; @@ -143,7 +173,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -151,7 +180,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -159,7 +187,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// A list describing the attachments @@ -167,7 +194,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The email addresses that should be CCed. @@ -175,7 +201,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. @@ -183,7 +208,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -191,14 +215,12 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -206,7 +228,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -214,7 +235,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -222,7 +242,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. @@ -230,7 +249,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } - /// /// The custom message in the email that will be sent to the signers. @@ -238,7 +256,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -246,7 +263,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -254,7 +270,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// Add Signers to your Unclaimed Draft Signature Request. @@ -262,14 +277,12 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Add Signers to your Unclaimed Draft Signature Request. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. @@ -277,7 +290,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. @@ -285,7 +297,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -293,7 +304,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -301,7 +311,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } - /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -309,7 +318,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } - /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. @@ -317,7 +325,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object @@ -361,7 +368,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -385,129 +395,121 @@ public bool Equals(UnclaimedDraftCreateRequest input) { return false; } - return - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ) && - ( - this.Files == input.Files || - this.Files != null && - input.Files != null && - this.Files.SequenceEqual(input.Files) - ) && - ( - this.FileUrls == input.FileUrls || - this.FileUrls != null && - input.FileUrls != null && - this.FileUrls.SequenceEqual(input.FileUrls) - ) && - ( - this.AllowDecline == input.AllowDecline || - this.AllowDecline.Equals(input.AllowDecline) - ) && - ( - this.Attachments == input.Attachments || - this.Attachments != null && - input.Attachments != null && - this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.CcEmailAddresses == input.CcEmailAddresses || - this.CcEmailAddresses != null && - input.CcEmailAddresses != null && - this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) && - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.CustomFields == input.CustomFields || - this.CustomFields != null && - input.CustomFields != null && - this.CustomFields.SequenceEqual(input.CustomFields) - ) && - ( - this.FieldOptions == input.FieldOptions || - (this.FieldOptions != null && - this.FieldOptions.Equals(input.FieldOptions)) - ) && - ( - this.FormFieldGroups == input.FormFieldGroups || - this.FormFieldGroups != null && - input.FormFieldGroups != null && - this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) && - ( - this.FormFieldRules == input.FormFieldRules || - this.FormFieldRules != null && - input.FormFieldRules != null && - this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) && - ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument || - this.FormFieldsPerDocument != null && - input.FormFieldsPerDocument != null && - this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) && - ( - this.HideTextTags == input.HideTextTags || - this.HideTextTags.Equals(input.HideTextTags) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - input.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ) && - ( - this.ShowProgressStepper == input.ShowProgressStepper || - this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) && - ( - this.Signers == input.Signers || - this.Signers != null && - input.Signers != null && - this.Signers.SequenceEqual(input.Signers) - ) && - ( - this.SigningOptions == input.SigningOptions || - (this.SigningOptions != null && - this.SigningOptions.Equals(input.SigningOptions)) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ) && - ( - this.UsePreexistingFields == input.UsePreexistingFields || - this.UsePreexistingFields.Equals(input.UsePreexistingFields) - ) && - ( - this.UseTextTags == input.UseTextTags || - this.UseTextTags.Equals(input.UseTextTags) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - (this.ExpiresAt != null && - this.ExpiresAt.Equals(input.ExpiresAt)) + return (this.Type == input.Type || this.Type.Equals(input.Type)) + && ( + this.Files == input.Files + || this.Files != null + && input.Files != null + && this.Files.SequenceEqual(input.Files) + ) + && ( + this.FileUrls == input.FileUrls + || this.FileUrls != null + && input.FileUrls != null + && this.FileUrls.SequenceEqual(input.FileUrls) + ) + && ( + this.AllowDecline == input.AllowDecline + || this.AllowDecline.Equals(input.AllowDecline) + ) + && ( + this.Attachments == input.Attachments + || this.Attachments != null + && input.Attachments != null + && this.Attachments.SequenceEqual(input.Attachments) + ) + && ( + this.CcEmailAddresses == input.CcEmailAddresses + || this.CcEmailAddresses != null + && input.CcEmailAddresses != null + && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) + && ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.CustomFields == input.CustomFields + || this.CustomFields != null + && input.CustomFields != null + && this.CustomFields.SequenceEqual(input.CustomFields) + ) + && ( + this.FieldOptions == input.FieldOptions + || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) + ) + && ( + this.FormFieldGroups == input.FormFieldGroups + || this.FormFieldGroups != null + && input.FormFieldGroups != null + && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) + && ( + this.FormFieldRules == input.FormFieldRules + || this.FormFieldRules != null + && input.FormFieldRules != null + && this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) + && ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument + || this.FormFieldsPerDocument != null + && input.FormFieldsPerDocument != null + && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) + && ( + this.HideTextTags == input.HideTextTags + || this.HideTextTags.Equals(input.HideTextTags) + ) + && ( + this.Message == input.Message + || (this.Message != null && this.Message.Equals(input.Message)) + ) + && ( + this.Metadata == input.Metadata + || this.Metadata != null + && input.Metadata != null + && this.Metadata.SequenceEqual(input.Metadata) + ) + && ( + this.ShowProgressStepper == input.ShowProgressStepper + || this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) + && ( + this.Signers == input.Signers + || this.Signers != null + && input.Signers != null + && this.Signers.SequenceEqual(input.Signers) + ) + && ( + this.SigningOptions == input.SigningOptions + || ( + this.SigningOptions != null + && this.SigningOptions.Equals(input.SigningOptions) + ) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.Subject == input.Subject + || (this.Subject != null && this.Subject.Equals(input.Subject)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) + && ( + this.UsePreexistingFields == input.UsePreexistingFields + || this.UsePreexistingFields.Equals(input.UsePreexistingFields) + ) + && ( + this.UseTextTags == input.UseTextTags + || this.UseTextTags.Equals(input.UseTextTags) + ) + && ( + this.ExpiresAt == input.ExpiresAt + || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -604,18 +606,26 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); + yield return new ValidationResult( + "Invalid value for Message, length must be less than 5000.", + new[] { "Message" } + ); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); + yield return new ValidationResult( + "Invalid value for Subject, length must be less than 200.", + new[] { "Subject" } + ); } yield break; @@ -624,153 +634,224 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - }); - types.Add(new OpenApiType(){ - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - }); - types.Add(new OpenApiType(){ - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - }); - types.Add(new OpenApiType(){ - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - }); - types.Add(new OpenApiType(){ - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - }); - types.Add(new OpenApiType(){ - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - }); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - }); - types.Add(new OpenApiType(){ - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - }); - types.Add(new OpenApiType(){ - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - }); - types.Add(new OpenApiType(){ - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - }); - types.Add(new OpenApiType(){ - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - }); - types.Add(new OpenApiType(){ - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - }); - types.Add(new OpenApiType(){ - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType(){ - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - }); - types.Add(new OpenApiType(){ - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - }); - types.Add(new OpenApiType(){ - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - }); - types.Add(new OpenApiType(){ - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); - types.Add(new OpenApiType(){ - Name = "use_preexisting_fields", - Property = "UsePreexistingFields", - Type = "bool", - Value = UsePreexistingFields, - }); - types.Add(new OpenApiType(){ - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - }); + types.Add( + new OpenApiType() + { + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + } + ); + types.Add( + new OpenApiType() + { + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + } + ); + types.Add( + new OpenApiType() + { + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + } + ); + types.Add( + new OpenApiType() + { + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + } + ); + types.Add( + new OpenApiType() + { + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + } + ); + types.Add( + new OpenApiType() + { + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + } + ); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + } + ); + types.Add( + new OpenApiType() + { + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + } + ); + types.Add( + new OpenApiType() + { + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + } + ); + types.Add( + new OpenApiType() + { + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + } + ); + types.Add( + new OpenApiType() + { + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_preexisting_fields", + Property = "UsePreexistingFields", + Type = "bool", + Value = UsePreexistingFields, + } + ); + types.Add( + new OpenApiType() + { + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs index 4b598103d..3c7937e7b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,21 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateResponse : IEquatable, IValidatableObject + public partial class UnclaimedDraftCreateResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftCreateResponse() { } + /// /// Initializes a new instance of the class. /// /// unclaimedDraft. /// A list of warnings.. - public UnclaimedDraftCreateResponse(UnclaimedDraftResponse unclaimedDraft = default(UnclaimedDraftResponse), List warnings = default(List)) + public UnclaimedDraftCreateResponse( + UnclaimedDraftResponse unclaimedDraft = default(UnclaimedDraftResponse), + List warnings = default(List) + ) { - this.UnclaimedDraft = unclaimedDraft; this.Warnings = warnings; } @@ -60,7 +65,9 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftCreateResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of UnclaimedDraftCreateResponse" + ); } return obj; @@ -71,7 +78,6 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) /// [DataMember(Name = "unclaimed_draft", EmitDefaultValue = true)] public UnclaimedDraftResponse UnclaimedDraft { get; set; } - /// /// A list of warnings. @@ -79,7 +85,6 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object @@ -101,7 +106,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -125,17 +133,18 @@ public bool Equals(UnclaimedDraftCreateResponse input) { return false; } - return - ( - this.UnclaimedDraft == input.UnclaimedDraft || - (this.UnclaimedDraft != null && - this.UnclaimedDraft.Equals(input.UnclaimedDraft)) - ) && - ( - this.Warnings == input.Warnings || - this.Warnings != null && - input.Warnings != null && - this.Warnings.SequenceEqual(input.Warnings) + return ( + this.UnclaimedDraft == input.UnclaimedDraft + || ( + this.UnclaimedDraft != null + && this.UnclaimedDraft.Equals(input.UnclaimedDraft) + ) + ) + && ( + this.Warnings == input.Warnings + || this.Warnings != null + && input.Warnings != null + && this.Warnings.SequenceEqual(input.Warnings) ); } @@ -165,7 +174,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -173,21 +184,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "unclaimed_draft", - Property = "UnclaimedDraft", - Type = "UnclaimedDraftResponse", - Value = UnclaimedDraft, - }); - types.Add(new OpenApiType(){ - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - }); + types.Add( + new OpenApiType() + { + Name = "unclaimed_draft", + Property = "UnclaimedDraft", + Type = "UnclaimedDraftResponse", + Value = UnclaimedDraft, + } + ); + types.Add( + new OpenApiType() + { + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs index 1dc04b47a..a6fa861be 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftEditAndResendRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftEditAndResendRequest : IEquatable, IValidatableObject + public partial class UnclaimedDraftEditAndResendRequest + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftEditAndResendRequest() { } + /// /// Initializes a new instance of the class. /// @@ -49,13 +52,23 @@ protected UnclaimedDraftEditAndResendRequest() { } /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. (default to true). /// The URL you want signers redirected to after they successfully sign.. /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. (default to false). - public UnclaimedDraftEditAndResendRequest(string clientId = default(string), SubEditorOptions editorOptions = default(SubEditorOptions), bool isForEmbeddedSigning = default(bool), string requesterEmailAddress = default(string), string requestingRedirectUrl = default(string), bool showProgressStepper = true, string signingRedirectUrl = default(string), bool testMode = false) + public UnclaimedDraftEditAndResendRequest( + string clientId = default(string), + SubEditorOptions editorOptions = default(SubEditorOptions), + bool isForEmbeddedSigning = default(bool), + string requesterEmailAddress = default(string), + string requestingRedirectUrl = default(string), + bool showProgressStepper = true, + string signingRedirectUrl = default(string), + bool testMode = false + ) { - // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException("clientId is a required property for UnclaimedDraftEditAndResendRequest and cannot be null"); + throw new ArgumentNullException( + "clientId is a required property for UnclaimedDraftEditAndResendRequest and cannot be null" + ); } this.ClientId = clientId; this.EditorOptions = editorOptions; @@ -77,7 +90,9 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftEditAndResendRequest"); + throw new Exception( + "Unable to deserialize JSON to instance of UnclaimedDraftEditAndResendRequest" + ); } return obj; @@ -89,14 +104,12 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// The request created from this draft will also be signable in embedded mode if set to `true`. @@ -104,7 +117,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The request created from this draft will also be signable in embedded mode if set to `true`. [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } - /// /// The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. @@ -112,7 +124,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// The URL you want signers redirected to after they successfully request a signature. @@ -120,7 +131,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully request a signature. [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -128,7 +138,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. @@ -136,7 +145,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -144,7 +152,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Returns the string presentation of the object @@ -172,7 +179,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -196,44 +206,46 @@ public bool Equals(UnclaimedDraftEditAndResendRequest input) { return false; } - return - ( - this.ClientId == input.ClientId || - (this.ClientId != null && - this.ClientId.Equals(input.ClientId)) - ) && - ( - this.EditorOptions == input.EditorOptions || - (this.EditorOptions != null && - this.EditorOptions.Equals(input.EditorOptions)) - ) && - ( - this.IsForEmbeddedSigning == input.IsForEmbeddedSigning || - this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) - ) && - ( - this.RequesterEmailAddress == input.RequesterEmailAddress || - (this.RequesterEmailAddress != null && - this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) - ) && - ( - this.RequestingRedirectUrl == input.RequestingRedirectUrl || - (this.RequestingRedirectUrl != null && - this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl)) - ) && - ( - this.ShowProgressStepper == input.ShowProgressStepper || - this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ); + return ( + this.ClientId == input.ClientId + || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) + ) + && ( + this.EditorOptions == input.EditorOptions + || ( + this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) + ) + ) + && ( + this.IsForEmbeddedSigning == input.IsForEmbeddedSigning + || this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) + ) + && ( + this.RequesterEmailAddress == input.RequesterEmailAddress + || ( + this.RequesterEmailAddress != null + && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) + ) + ) + && ( + this.RequestingRedirectUrl == input.RequestingRedirectUrl + || ( + this.RequestingRedirectUrl != null + && this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl) + ) + ) + && ( + this.ShowProgressStepper == input.ShowProgressStepper + || this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)); } /// @@ -277,7 +289,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -285,57 +299,80 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - }); - types.Add(new OpenApiType(){ - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - }); - types.Add(new OpenApiType(){ - Name = "is_for_embedded_signing", - Property = "IsForEmbeddedSigning", - Type = "bool", - Value = IsForEmbeddedSigning, - }); - types.Add(new OpenApiType(){ - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - }); - types.Add(new OpenApiType(){ - Name = "requesting_redirect_url", - Property = "RequestingRedirectUrl", - Type = "string", - Value = RequestingRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); + types.Add( + new OpenApiType() + { + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + } + ); + types.Add( + new OpenApiType() + { + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + } + ); + types.Add( + new OpenApiType() + { + Name = "is_for_embedded_signing", + Property = "IsForEmbeddedSigning", + Type = "bool", + Value = IsForEmbeddedSigning, + } + ); + types.Add( + new OpenApiType() + { + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + } + ); + types.Add( + new OpenApiType() + { + Name = "requesting_redirect_url", + Property = "RequestingRedirectUrl", + Type = "string", + Value = RequestingRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs index 8d7597ae8..89bee93f0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,13 +31,16 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftResponse : IEquatable, IValidatableObject + public partial class UnclaimedDraftResponse + : IEquatable, + IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftResponse() { } + /// /// Initializes a new instance of the class. /// @@ -47,9 +50,15 @@ protected UnclaimedDraftResponse() { } /// The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.).. /// When the link expires.. /// Whether this is a test draft. Signature requests made from test drafts have no legal value.. - public UnclaimedDraftResponse(string signatureRequestId = default(string), string claimUrl = default(string), string signingRedirectUrl = default(string), string requestingRedirectUrl = default(string), int? expiresAt = default(int?), bool testMode = default(bool)) + public UnclaimedDraftResponse( + string signatureRequestId = default(string), + string claimUrl = default(string), + string signingRedirectUrl = default(string), + string requestingRedirectUrl = default(string), + int? expiresAt = default(int?), + bool testMode = default(bool) + ) { - this.SignatureRequestId = signatureRequestId; this.ClaimUrl = claimUrl; this.SigningRedirectUrl = signingRedirectUrl; @@ -68,7 +77,9 @@ public static UnclaimedDraftResponse Init(string jsonData) if (obj == null) { - throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftResponse"); + throw new Exception( + "Unable to deserialize JSON to instance of UnclaimedDraftResponse" + ); } return obj; @@ -80,7 +91,6 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The ID of the signature request that is represented by this UnclaimedDraft. [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } - /// /// The URL to be used to claim this UnclaimedDraft. @@ -88,7 +98,6 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The URL to be used to claim this UnclaimedDraft. [DataMember(Name = "claim_url", EmitDefaultValue = true)] public string ClaimUrl { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. @@ -96,7 +105,6 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). @@ -104,7 +112,6 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } - /// /// When the link expires. @@ -112,7 +119,6 @@ public static UnclaimedDraftResponse Init(string jsonData) /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Whether this is a test draft. Signature requests made from test drafts have no legal value. @@ -120,7 +126,6 @@ public static UnclaimedDraftResponse Init(string jsonData) /// Whether this is a test draft. Signature requests made from test drafts have no legal value. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Returns the string presentation of the object @@ -146,7 +151,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -170,36 +178,36 @@ public bool Equals(UnclaimedDraftResponse input) { return false; } - return - ( - this.SignatureRequestId == input.SignatureRequestId || - (this.SignatureRequestId != null && - this.SignatureRequestId.Equals(input.SignatureRequestId)) - ) && - ( - this.ClaimUrl == input.ClaimUrl || - (this.ClaimUrl != null && - this.ClaimUrl.Equals(input.ClaimUrl)) - ) && - ( - this.SigningRedirectUrl == input.SigningRedirectUrl || - (this.SigningRedirectUrl != null && - this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) - ) && - ( - this.RequestingRedirectUrl == input.RequestingRedirectUrl || - (this.RequestingRedirectUrl != null && - this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl)) - ) && - ( - this.ExpiresAt == input.ExpiresAt || - (this.ExpiresAt != null && - this.ExpiresAt.Equals(input.ExpiresAt)) - ) && - ( - this.TestMode == input.TestMode || - this.TestMode.Equals(input.TestMode) - ); + return ( + this.SignatureRequestId == input.SignatureRequestId + || ( + this.SignatureRequestId != null + && this.SignatureRequestId.Equals(input.SignatureRequestId) + ) + ) + && ( + this.ClaimUrl == input.ClaimUrl + || (this.ClaimUrl != null && this.ClaimUrl.Equals(input.ClaimUrl)) + ) + && ( + this.SigningRedirectUrl == input.SigningRedirectUrl + || ( + this.SigningRedirectUrl != null + && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) + ) + ) + && ( + this.RequestingRedirectUrl == input.RequestingRedirectUrl + || ( + this.RequestingRedirectUrl != null + && this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl) + ) + ) + && ( + this.ExpiresAt == input.ExpiresAt + || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) + ) + && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)); } /// @@ -241,7 +249,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -249,45 +259,62 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "signature_request_id", - Property = "SignatureRequestId", - Type = "string", - Value = SignatureRequestId, - }); - types.Add(new OpenApiType(){ - Name = "claim_url", - Property = "ClaimUrl", - Type = "string", - Value = ClaimUrl, - }); - types.Add(new OpenApiType(){ - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "requesting_redirect_url", - Property = "RequestingRedirectUrl", - Type = "string", - Value = RequestingRedirectUrl, - }); - types.Add(new OpenApiType(){ - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - }); - types.Add(new OpenApiType(){ - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - }); + types.Add( + new OpenApiType() + { + Name = "signature_request_id", + Property = "SignatureRequestId", + Type = "string", + Value = SignatureRequestId, + } + ); + types.Add( + new OpenApiType() + { + Name = "claim_url", + Property = "ClaimUrl", + Type = "string", + Value = ClaimUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "requesting_redirect_url", + Property = "RequestingRedirectUrl", + Type = "string", + Value = RequestingRedirectUrl, + } + ); + types.Add( + new OpenApiType() + { + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + } + ); + types.Add( + new OpenApiType() + { + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + } + ); return types; } } - } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs index b3ddd9a32..438ab0bb6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.IO; +using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,24 +38,31 @@ public partial class WarningResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected WarningResponse() { } + /// /// Initializes a new instance of the class. /// /// Warning message (required). /// Warning name (required). - public WarningResponse(string warningMsg = default(string), string warningName = default(string)) + public WarningResponse( + string warningMsg = default(string), + string warningName = default(string) + ) { - // to ensure "warningMsg" is required (not null) if (warningMsg == null) { - throw new ArgumentNullException("warningMsg is a required property for WarningResponse and cannot be null"); + throw new ArgumentNullException( + "warningMsg is a required property for WarningResponse and cannot be null" + ); } this.WarningMsg = warningMsg; // to ensure "warningName" is required (not null) if (warningName == null) { - throw new ArgumentNullException("warningName is a required property for WarningResponse and cannot be null"); + throw new ArgumentNullException( + "warningName is a required property for WarningResponse and cannot be null" + ); } this.WarningName = warningName; } @@ -82,7 +89,6 @@ public static WarningResponse Init(string jsonData) /// Warning message [DataMember(Name = "warning_msg", IsRequired = true, EmitDefaultValue = true)] public string WarningMsg { get; set; } - /// /// Warning name @@ -90,7 +96,6 @@ public static WarningResponse Init(string jsonData) /// Warning name [DataMember(Name = "warning_name", IsRequired = true, EmitDefaultValue = true)] public string WarningName { get; set; } - /// /// Returns the string presentation of the object @@ -112,7 +117,10 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject( + this, + Newtonsoft.Json.Formatting.Indented + ); } /// @@ -136,16 +144,13 @@ public bool Equals(WarningResponse input) { return false; } - return - ( - this.WarningMsg == input.WarningMsg || - (this.WarningMsg != null && - this.WarningMsg.Equals(input.WarningMsg)) - ) && - ( - this.WarningName == input.WarningName || - (this.WarningName != null && - this.WarningName.Equals(input.WarningName)) + return ( + this.WarningMsg == input.WarningMsg + || (this.WarningMsg != null && this.WarningMsg.Equals(input.WarningMsg)) + ) + && ( + this.WarningName == input.WarningName + || (this.WarningName != null && this.WarningName.Equals(input.WarningName)) ); } @@ -175,7 +180,9 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext + ) { yield break; } @@ -183,21 +190,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ - Name = "warning_msg", - Property = "WarningMsg", - Type = "string", - Value = WarningMsg, - }); - types.Add(new OpenApiType(){ - Name = "warning_name", - Property = "WarningName", - Type = "string", - Value = WarningName, - }); + types.Add( + new OpenApiType() + { + Name = "warning_msg", + Property = "WarningMsg", + Type = "string", + Value = WarningMsg, + } + ); + types.Add( + new OpenApiType() + { + Name = "warning_name", + Property = "WarningName", + Type = "string", + Value = WarningName, + } + ); return types; } } - } From 7b62ecd473e004230b5e2c16e31c7664e6766dc6 Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Tue, 27 Aug 2024 17:26:09 -0500 Subject: [PATCH 05/10] Update docs --- sdks/dotnet/README.md | 5 +- sdks/dotnet/docs/AccountApi.md | 16 ++++- sdks/dotnet/docs/ApiAppApi.md | 26 ++++--- sdks/dotnet/docs/EmbeddedApi.md | 2 +- sdks/dotnet/docs/FaxLineApi.md | 5 +- sdks/dotnet/docs/ReportApi.md | 3 +- sdks/dotnet/docs/SignatureRequestApi.md | 92 +++++++++++++------------ sdks/dotnet/docs/TeamApi.md | 12 +++- sdks/dotnet/docs/TemplateApi.md | 60 ++++++++++------ sdks/dotnet/docs/UnclaimedDraftApi.md | 31 ++++----- 10 files changed, 150 insertions(+), 102 deletions(-) diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index 05121cdbe..b66a0a2b2 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/README.md @@ -82,6 +82,7 @@ c.Proxy = webProxy; ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -99,7 +100,9 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountCreateRequest(emailAddress: "newuser@dropboxsign.com"); + var data = new AccountCreateRequest( + emailAddress: "newuser@dropboxsign.com" + ); try { diff --git a/sdks/dotnet/docs/AccountApi.md b/sdks/dotnet/docs/AccountApi.md index cc6eb6c03..897f4d2ab 100644 --- a/sdks/dotnet/docs/AccountApi.md +++ b/sdks/dotnet/docs/AccountApi.md @@ -20,6 +20,7 @@ Creates a new Dropbox Sign Account that is associated with the specified `email_ ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -37,7 +38,9 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountCreateRequest(emailAddress: "newuser@dropboxsign.com"); + var data = new AccountCreateRequest( + emailAddress: "newuser@dropboxsign.com" + ); try { @@ -114,6 +117,7 @@ Returns the properties and settings of your Account. ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -207,6 +211,7 @@ Updates the properties and settings of your Account. Currently only allows for u ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -224,7 +229,9 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountUpdateRequest(callbackUrl: "https://www.example.com/callback"); + var data = new AccountUpdateRequest( + callbackUrl: "https://www.example.com/callback" + ); try { @@ -301,6 +308,7 @@ Verifies whether an Dropbox Sign Account exists for the given email address. ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -318,7 +326,9 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountVerifyRequest(emailAddress: "some_user@dropboxsign.com"); + var data = new AccountVerifyRequest( + emailAddress: "some_user@dropboxsign.com" + ); try { diff --git a/sdks/dotnet/docs/ApiAppApi.md b/sdks/dotnet/docs/ApiAppApi.md index 7b6dbad8f..e587a69d8 100644 --- a/sdks/dotnet/docs/ApiAppApi.md +++ b/sdks/dotnet/docs/ApiAppApi.md @@ -42,10 +42,9 @@ public class Example var oauth = new SubOAuth( callbackUrl: "https://example.com/oauth", - scopes: new List() - { + scopes: new List() { SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature, + SubOAuth.ScopesEnum.RequestSignature } ); @@ -54,11 +53,14 @@ public class Example primaryButtonTextColor: "#ffffff" ); - var customLogoFile = new FileStream("CustomLogoFile.png", FileMode.Open); + var customLogoFile = new FileStream( + "CustomLogoFile.png", + FileMode.Open + ); var data = new ApiAppCreateRequest( name: "My Production App", - domains: new List() { "example.com" }, + domains: new List(){"example.com"}, oauth: oauth, whiteLabelingOptions: whiteLabelingOptions, customLogoFile: customLogoFile @@ -231,6 +233,7 @@ Returns an object with information about an API App. ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -325,6 +328,7 @@ Returns a list of API Apps that are accessible by you. If you are on a team with ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -442,10 +446,9 @@ public class Example var oauth = new SubOAuth( callbackUrl: "https://example.com/oauth", - scopes: new List() - { + scopes: new List() { SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature, + SubOAuth.ScopesEnum.RequestSignature } ); @@ -454,11 +457,14 @@ public class Example primaryButtonTextColor: "#ffffff" ); - var customLogoFile = new FileStream("CustomLogoFile.png", FileMode.Open); + var customLogoFile = new FileStream( + "CustomLogoFile.png", + FileMode.Open + ); var data = new ApiAppUpdateRequest( name: "My Production App", - domains: new List() { "example.com" }, + domains: new List(){"example.com"}, oauth: oauth, whiteLabelingOptions: whiteLabelingOptions, customLogoFile: customLogoFile diff --git a/sdks/dotnet/docs/EmbeddedApi.md b/sdks/dotnet/docs/EmbeddedApi.md index 221bf92dd..39c38b4c2 100644 --- a/sdks/dotnet/docs/EmbeddedApi.md +++ b/sdks/dotnet/docs/EmbeddedApi.md @@ -38,7 +38,7 @@ public class Example var embeddedApi = new EmbeddedApi(config); var data = new EmbeddedEditUrlRequest( - ccRoles: new List() { "" }, + ccRoles: new List(){""}, mergeFields: new List() ); diff --git a/sdks/dotnet/docs/FaxLineApi.md b/sdks/dotnet/docs/FaxLineApi.md index 142c46657..4fd57baf5 100644 --- a/sdks/dotnet/docs/FaxLineApi.md +++ b/sdks/dotnet/docs/FaxLineApi.md @@ -226,7 +226,10 @@ public class Example var faxLineApi = new FaxLineApi(config); - var data = new FaxLineCreateRequest(areaCode: 209, country: "US"); + var data = new FaxLineCreateRequest( + areaCode: 209, + country: "US" + ); try { diff --git a/sdks/dotnet/docs/ReportApi.md b/sdks/dotnet/docs/ReportApi.md index d0cdf1f1e..9ea98796f 100644 --- a/sdks/dotnet/docs/ReportApi.md +++ b/sdks/dotnet/docs/ReportApi.md @@ -39,8 +39,7 @@ public class Example var data = new ReportCreateRequest( startDate: "09/01/2020", endDate: "09/01/2020", - reportType: new List() - { + reportType: new List() { ReportCreateRequest.ReportTypeEnum.UserActivity, ReportCreateRequest.ReportTypeEnum.DocumentStatus, } diff --git a/sdks/dotnet/docs/SignatureRequestApi.md b/sdks/dotnet/docs/SignatureRequestApi.md index 5ae02dc11..c411d0c01 100644 --- a/sdks/dotnet/docs/SignatureRequestApi.md +++ b/sdks/dotnet/docs/SignatureRequestApi.md @@ -64,8 +64,8 @@ public class Example ); var signerList1 = new SubBulkSignerList( - signers: new List() { signerList1Signer }, - customFields: new List() { signerList1CustomFields } + signers: new List(){signerList1Signer}, + customFields: new List(){signerList1CustomFields} ); var signerList2Signer = new SubSignatureRequestTemplateSigner( @@ -81,19 +81,22 @@ public class Example ); var signerList2 = new SubBulkSignerList( - signers: new List() { signerList2Signer }, - customFields: new List() { signerList2CustomFields } + signers: new List(){signerList2Signer}, + customFields: new List(){signerList2CustomFields} ); - var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@email.com" + ); var data = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest( clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signerList: new List() { signerList1, signerList2 }, - ccs: new List() { cc1 }, + signerList: new List(){signerList1, signerList2}, + ccs: new List(){cc1}, testMode: true ); @@ -204,8 +207,8 @@ public class Example ); var signerList1 = new SubBulkSignerList( - signers: new List() { signerList1Signer }, - customFields: new List() { signerList1CustomFields } + signers: new List(){signerList1Signer}, + customFields: new List(){signerList1CustomFields} ); var signerList2Signer = new SubSignatureRequestTemplateSigner( @@ -221,18 +224,21 @@ public class Example ); var signerList2 = new SubBulkSignerList( - signers: new List() { signerList2Signer }, - customFields: new List() { signerList2CustomFields } + signers: new List(){signerList2Signer}, + customFields: new List(){signerList2CustomFields} ); - var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@email.com" + ); var data = new SignatureRequestBulkSendWithTemplateRequest( - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signerList: new List() { signerList1, signerList2 }, - ccs: new List() { cc1 }, + signerList: new List(){signerList1, signerList2}, + ccs: new List(){cc1}, testMode: true ); @@ -442,14 +448,13 @@ public class Example defaultType: SubSigningOptions.DefaultTypeEnum.Draw ); - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new SignatureRequestCreateEmbeddedRequest( @@ -457,12 +462,8 @@ public class Example title: "NDA with Acme Co.", subject: "The NDA we talked about", message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List() { signer1, signer2 }, - ccEmailAddresses: new List() - { - "lawyer1@dropboxsign.com", - "lawyer2@dropboxsign.com", - }, + signers: new List(){signer1, signer2}, + ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, files: files, signingOptions: signingOptions, testMode: true @@ -561,7 +562,10 @@ public class Example var signatureRequestApi = new SignatureRequestApi(config); - var signer1 = new SubSignatureRequestTemplateSigner(role: "Client", name: "George"); + var signer1 = new SubSignatureRequestTemplateSigner( + role: "Client", + name: "George" + ); var subSigningOptions = new SubSigningOptions( draw: true, @@ -573,10 +577,10 @@ public class Example var data = new SignatureRequestCreateEmbeddedWithTemplateRequest( clientId: "ec64a202072370a737edf4a0eb7f4437", - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signers: new List() { signer1 }, + signers: new List(){signer1}, signingOptions: subSigningOptions, testMode: true ); @@ -1253,7 +1257,9 @@ public class Example var signatureRequestApi = new SignatureRequestApi(config); - var data = new SignatureRequestRemindRequest(emailAddress: "john@example.com"); + var data = new SignatureRequestRemindRequest( + emailAddress: "john@example.com" + ); var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; @@ -1470,29 +1476,24 @@ public class Example var metadata = new Dictionary() { ["custom_id"] = 1234, - ["custom_text"] = "NDA #9", + ["custom_text"] = "NDA #9" }; - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new SignatureRequestSendRequest( title: "NDA with Acme Co.", subject: "The NDA we talked about", message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List() { signer1, signer2 }, - ccEmailAddresses: new List() - { - "lawyer1@dropboxsign.com", - "lawyer2@dropboxsign.com", - }, + signers: new List(){signer1, signer2}, + ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, files: files, metadata: metadata, signingOptions: signingOptions, @@ -1599,7 +1600,10 @@ public class Example name: "George" ); - var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@emaple.com"); + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@emaple.com" + ); var customField1 = new SubCustomField( name: "Cost", @@ -1617,12 +1621,12 @@ public class Example ); var data = new SignatureRequestSendWithTemplateRequest( - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signers: new List() { signer1 }, - ccs: new List() { cc1 }, - customFields: new List() { customField1 }, + signers: new List(){signer1}, + ccs: new List(){cc1}, + customFields: new List(){customField1}, signingOptions: signingOptions, testMode: true ); diff --git a/sdks/dotnet/docs/TeamApi.md b/sdks/dotnet/docs/TeamApi.md index 08c65cc1e..64d8dd554 100644 --- a/sdks/dotnet/docs/TeamApi.md +++ b/sdks/dotnet/docs/TeamApi.md @@ -44,7 +44,9 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamAddMemberRequest(emailAddress: "george@example.com"); + var data = new TeamAddMemberRequest( + emailAddress: "george@example.com" + ); try { @@ -140,7 +142,9 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamCreateRequest(name: "New Team Name"); + var data = new TeamCreateRequest( + name: "New Team Name" + ); try { @@ -886,7 +890,9 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamUpdateRequest(name: "New Team Name"); + var data = new TeamUpdateRequest( + name: "New Team Name" + ); try { diff --git a/sdks/dotnet/docs/TemplateApi.md b/sdks/dotnet/docs/TemplateApi.md index bb7c693cd..2f6cf986c 100644 --- a/sdks/dotnet/docs/TemplateApi.md +++ b/sdks/dotnet/docs/TemplateApi.md @@ -47,7 +47,9 @@ public class Example var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - var data = new TemplateAddUserRequest(emailAddress: "george@dropboxsign.com"); + var data = new TemplateAddUserRequest( + emailAddress: "george@dropboxsign.com" + ); try { @@ -144,11 +146,20 @@ public class Example var templateApi = new TemplateApi(config); - var role1 = new SubTemplateRole(name: "Client", order: 0); + var role1 = new SubTemplateRole( + name: "Client", + order: 0 + ); - var role2 = new SubTemplateRole(name: "Witness", order: 1); + var role2 = new SubTemplateRole( + name: "Witness", + order: 1 + ); - var mergeField1 = new SubMergeField(name: "Full Name", type: SubMergeField.TypeEnum.Text); + var mergeField1 = new SubMergeField( + name: "Full Name", + type: SubMergeField.TypeEnum.Text + ); var mergeField2 = new SubMergeField( name: "Is Registered?", @@ -159,14 +170,13 @@ public class Example dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY ); - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new TemplateCreateRequest( @@ -175,9 +185,9 @@ public class Example title: "Test Template", subject: "Please sign this document", message: "For your approval", - signerRoles: new List() { role1, role2 }, - ccRoles: new List() { "Manager" }, - mergeFields: new List() { mergeField1, mergeField2 }, + signerRoles: new List(){role1, role2}, + ccRoles: new List(){"Manager"}, + mergeFields: new List(){mergeField1, mergeField2}, fieldOptions: subFieldOptions, testMode: true ); @@ -276,11 +286,20 @@ public class Example var templateApi = new TemplateApi(config); - var role1 = new SubTemplateRole(name: "Client", order: 0); + var role1 = new SubTemplateRole( + name: "Client", + order: 0 + ); - var role2 = new SubTemplateRole(name: "Witness", order: 1); + var role2 = new SubTemplateRole( + name: "Witness", + order: 1 + ); - var mergeField1 = new SubMergeField(name: "Full Name", type: SubMergeField.TypeEnum.Text); + var mergeField1 = new SubMergeField( + name: "Full Name", + type: SubMergeField.TypeEnum.Text + ); var mergeField2 = new SubMergeField( name: "Is Registered?", @@ -291,14 +310,13 @@ public class Example dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY ); - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new TemplateCreateEmbeddedDraftRequest( @@ -307,9 +325,9 @@ public class Example title: "Test Template", subject: "Please sign this document", message: "For your approval", - signerRoles: new List() { role1, role2 }, - ccRoles: new List() { "Manager" }, - mergeFields: new List() { mergeField1, mergeField2 }, + signerRoles: new List(){role1, role2}, + ccRoles: new List(){"Manager"}, + mergeFields: new List(){mergeField1, mergeField2}, fieldOptions: subFieldOptions, testMode: true ); @@ -982,7 +1000,9 @@ public class Example var templateApi = new TemplateApi(config); - var data = new TemplateRemoveUserRequest(emailAddress: "george@dropboxsign.com"); + var data = new TemplateRemoveUserRequest( + emailAddress: "george@dropboxsign.com" + ); var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; diff --git a/sdks/dotnet/docs/UnclaimedDraftApi.md b/sdks/dotnet/docs/UnclaimedDraftApi.md index 891d3980b..7d5a0e145 100644 --- a/sdks/dotnet/docs/UnclaimedDraftApi.md +++ b/sdks/dotnet/docs/UnclaimedDraftApi.md @@ -66,29 +66,24 @@ public class Example var metadata = new Dictionary() { ["custom_id"] = 1234, - ["custom_text"] = "NDA #9", + ["custom_text"] = "NDA #9" }; - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new UnclaimedDraftCreateRequest( subject: "The NDA we talked about", type: UnclaimedDraftCreateRequest.TypeEnum.RequestSignature, message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List() { signer1, signer2 }, - ccEmailAddresses: new List() - { - "lawyer1@dropboxsign.com", - "lawyer2@dropboxsign.com", - }, + signers: new List(){signer1, signer2}, + ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, files: files, metadata: metadata, signingOptions: subSigningOptions, @@ -190,14 +185,13 @@ public class Example var unclaimedDraftApi = new UnclaimedDraftApi(config); - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new UnclaimedDraftCreateEmbeddedRequest( @@ -306,14 +300,17 @@ public class Example emailAddress: "george@example.com" ); - var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@email.com" + ); var data = new UnclaimedDraftCreateEmbeddedWithTemplateRequest( clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, requesterEmailAddress: "jack@dropboxsign.com", - signers: new List() { signer }, - ccs: new List() { cc1 }, + signers: new List(){signer}, + ccs: new List(){cc1}, testMode: true ); From e64e307c4810f30b9bd216876d3e3f7eb0cbbddd Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Wed, 28 Aug 2024 09:10:36 -0500 Subject: [PATCH 06/10] Revert "Update docs" This reverts commit 7b62ecd473e004230b5e2c16e31c7664e6766dc6. --- sdks/dotnet/README.md | 5 +- sdks/dotnet/docs/AccountApi.md | 16 +---- sdks/dotnet/docs/ApiAppApi.md | 26 +++---- sdks/dotnet/docs/EmbeddedApi.md | 2 +- sdks/dotnet/docs/FaxLineApi.md | 5 +- sdks/dotnet/docs/ReportApi.md | 3 +- sdks/dotnet/docs/SignatureRequestApi.md | 92 ++++++++++++------------- sdks/dotnet/docs/TeamApi.md | 12 +--- sdks/dotnet/docs/TemplateApi.md | 60 ++++++---------- sdks/dotnet/docs/UnclaimedDraftApi.md | 31 +++++---- 10 files changed, 102 insertions(+), 150 deletions(-) diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index b66a0a2b2..05121cdbe 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/README.md @@ -82,7 +82,6 @@ c.Proxy = webProxy; ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -100,9 +99,7 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountCreateRequest( - emailAddress: "newuser@dropboxsign.com" - ); + var data = new AccountCreateRequest(emailAddress: "newuser@dropboxsign.com"); try { diff --git a/sdks/dotnet/docs/AccountApi.md b/sdks/dotnet/docs/AccountApi.md index 897f4d2ab..cc6eb6c03 100644 --- a/sdks/dotnet/docs/AccountApi.md +++ b/sdks/dotnet/docs/AccountApi.md @@ -20,7 +20,6 @@ Creates a new Dropbox Sign Account that is associated with the specified `email_ ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -38,9 +37,7 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountCreateRequest( - emailAddress: "newuser@dropboxsign.com" - ); + var data = new AccountCreateRequest(emailAddress: "newuser@dropboxsign.com"); try { @@ -117,7 +114,6 @@ Returns the properties and settings of your Account. ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -211,7 +207,6 @@ Updates the properties and settings of your Account. Currently only allows for u ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -229,9 +224,7 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountUpdateRequest( - callbackUrl: "https://www.example.com/callback" - ); + var data = new AccountUpdateRequest(callbackUrl: "https://www.example.com/callback"); try { @@ -308,7 +301,6 @@ Verifies whether an Dropbox Sign Account exists for the given email address. ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -326,9 +318,7 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountVerifyRequest( - emailAddress: "some_user@dropboxsign.com" - ); + var data = new AccountVerifyRequest(emailAddress: "some_user@dropboxsign.com"); try { diff --git a/sdks/dotnet/docs/ApiAppApi.md b/sdks/dotnet/docs/ApiAppApi.md index e587a69d8..7b6dbad8f 100644 --- a/sdks/dotnet/docs/ApiAppApi.md +++ b/sdks/dotnet/docs/ApiAppApi.md @@ -42,9 +42,10 @@ public class Example var oauth = new SubOAuth( callbackUrl: "https://example.com/oauth", - scopes: new List() { + scopes: new List() + { SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature + SubOAuth.ScopesEnum.RequestSignature, } ); @@ -53,14 +54,11 @@ public class Example primaryButtonTextColor: "#ffffff" ); - var customLogoFile = new FileStream( - "CustomLogoFile.png", - FileMode.Open - ); + var customLogoFile = new FileStream("CustomLogoFile.png", FileMode.Open); var data = new ApiAppCreateRequest( name: "My Production App", - domains: new List(){"example.com"}, + domains: new List() { "example.com" }, oauth: oauth, whiteLabelingOptions: whiteLabelingOptions, customLogoFile: customLogoFile @@ -233,7 +231,6 @@ Returns an object with information about an API App. ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -328,7 +325,6 @@ Returns a list of API Apps that are accessible by you. If you are on a team with ### Example ```csharp using System; - using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -446,9 +442,10 @@ public class Example var oauth = new SubOAuth( callbackUrl: "https://example.com/oauth", - scopes: new List() { + scopes: new List() + { SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature + SubOAuth.ScopesEnum.RequestSignature, } ); @@ -457,14 +454,11 @@ public class Example primaryButtonTextColor: "#ffffff" ); - var customLogoFile = new FileStream( - "CustomLogoFile.png", - FileMode.Open - ); + var customLogoFile = new FileStream("CustomLogoFile.png", FileMode.Open); var data = new ApiAppUpdateRequest( name: "My Production App", - domains: new List(){"example.com"}, + domains: new List() { "example.com" }, oauth: oauth, whiteLabelingOptions: whiteLabelingOptions, customLogoFile: customLogoFile diff --git a/sdks/dotnet/docs/EmbeddedApi.md b/sdks/dotnet/docs/EmbeddedApi.md index 39c38b4c2..221bf92dd 100644 --- a/sdks/dotnet/docs/EmbeddedApi.md +++ b/sdks/dotnet/docs/EmbeddedApi.md @@ -38,7 +38,7 @@ public class Example var embeddedApi = new EmbeddedApi(config); var data = new EmbeddedEditUrlRequest( - ccRoles: new List(){""}, + ccRoles: new List() { "" }, mergeFields: new List() ); diff --git a/sdks/dotnet/docs/FaxLineApi.md b/sdks/dotnet/docs/FaxLineApi.md index 4fd57baf5..142c46657 100644 --- a/sdks/dotnet/docs/FaxLineApi.md +++ b/sdks/dotnet/docs/FaxLineApi.md @@ -226,10 +226,7 @@ public class Example var faxLineApi = new FaxLineApi(config); - var data = new FaxLineCreateRequest( - areaCode: 209, - country: "US" - ); + var data = new FaxLineCreateRequest(areaCode: 209, country: "US"); try { diff --git a/sdks/dotnet/docs/ReportApi.md b/sdks/dotnet/docs/ReportApi.md index 9ea98796f..d0cdf1f1e 100644 --- a/sdks/dotnet/docs/ReportApi.md +++ b/sdks/dotnet/docs/ReportApi.md @@ -39,7 +39,8 @@ public class Example var data = new ReportCreateRequest( startDate: "09/01/2020", endDate: "09/01/2020", - reportType: new List() { + reportType: new List() + { ReportCreateRequest.ReportTypeEnum.UserActivity, ReportCreateRequest.ReportTypeEnum.DocumentStatus, } diff --git a/sdks/dotnet/docs/SignatureRequestApi.md b/sdks/dotnet/docs/SignatureRequestApi.md index c411d0c01..5ae02dc11 100644 --- a/sdks/dotnet/docs/SignatureRequestApi.md +++ b/sdks/dotnet/docs/SignatureRequestApi.md @@ -64,8 +64,8 @@ public class Example ); var signerList1 = new SubBulkSignerList( - signers: new List(){signerList1Signer}, - customFields: new List(){signerList1CustomFields} + signers: new List() { signerList1Signer }, + customFields: new List() { signerList1CustomFields } ); var signerList2Signer = new SubSignatureRequestTemplateSigner( @@ -81,22 +81,19 @@ public class Example ); var signerList2 = new SubBulkSignerList( - signers: new List(){signerList2Signer}, - customFields: new List(){signerList2CustomFields} + signers: new List() { signerList2Signer }, + customFields: new List() { signerList2CustomFields } ); - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@email.com" - ); + var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); var data = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest( clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signerList: new List(){signerList1, signerList2}, - ccs: new List(){cc1}, + signerList: new List() { signerList1, signerList2 }, + ccs: new List() { cc1 }, testMode: true ); @@ -207,8 +204,8 @@ public class Example ); var signerList1 = new SubBulkSignerList( - signers: new List(){signerList1Signer}, - customFields: new List(){signerList1CustomFields} + signers: new List() { signerList1Signer }, + customFields: new List() { signerList1CustomFields } ); var signerList2Signer = new SubSignatureRequestTemplateSigner( @@ -224,21 +221,18 @@ public class Example ); var signerList2 = new SubBulkSignerList( - signers: new List(){signerList2Signer}, - customFields: new List(){signerList2CustomFields} + signers: new List() { signerList2Signer }, + customFields: new List() { signerList2CustomFields } ); - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@email.com" - ); + var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); var data = new SignatureRequestBulkSendWithTemplateRequest( - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signerList: new List(){signerList1, signerList2}, - ccs: new List(){cc1}, + signerList: new List() { signerList1, signerList2 }, + ccs: new List() { cc1 }, testMode: true ); @@ -448,13 +442,14 @@ public class Example defaultType: SubSigningOptions.DefaultTypeEnum.Draw ); - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new SignatureRequestCreateEmbeddedRequest( @@ -462,8 +457,12 @@ public class Example title: "NDA with Acme Co.", subject: "The NDA we talked about", message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List(){signer1, signer2}, - ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, + signers: new List() { signer1, signer2 }, + ccEmailAddresses: new List() + { + "lawyer1@dropboxsign.com", + "lawyer2@dropboxsign.com", + }, files: files, signingOptions: signingOptions, testMode: true @@ -562,10 +561,7 @@ public class Example var signatureRequestApi = new SignatureRequestApi(config); - var signer1 = new SubSignatureRequestTemplateSigner( - role: "Client", - name: "George" - ); + var signer1 = new SubSignatureRequestTemplateSigner(role: "Client", name: "George"); var subSigningOptions = new SubSigningOptions( draw: true, @@ -577,10 +573,10 @@ public class Example var data = new SignatureRequestCreateEmbeddedWithTemplateRequest( clientId: "ec64a202072370a737edf4a0eb7f4437", - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signers: new List(){signer1}, + signers: new List() { signer1 }, signingOptions: subSigningOptions, testMode: true ); @@ -1257,9 +1253,7 @@ public class Example var signatureRequestApi = new SignatureRequestApi(config); - var data = new SignatureRequestRemindRequest( - emailAddress: "john@example.com" - ); + var data = new SignatureRequestRemindRequest(emailAddress: "john@example.com"); var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; @@ -1476,24 +1470,29 @@ public class Example var metadata = new Dictionary() { ["custom_id"] = 1234, - ["custom_text"] = "NDA #9" + ["custom_text"] = "NDA #9", }; - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new SignatureRequestSendRequest( title: "NDA with Acme Co.", subject: "The NDA we talked about", message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List(){signer1, signer2}, - ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, + signers: new List() { signer1, signer2 }, + ccEmailAddresses: new List() + { + "lawyer1@dropboxsign.com", + "lawyer2@dropboxsign.com", + }, files: files, metadata: metadata, signingOptions: signingOptions, @@ -1600,10 +1599,7 @@ public class Example name: "George" ); - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@emaple.com" - ); + var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@emaple.com"); var customField1 = new SubCustomField( name: "Cost", @@ -1621,12 +1617,12 @@ public class Example ); var data = new SignatureRequestSendWithTemplateRequest( - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signers: new List(){signer1}, - ccs: new List(){cc1}, - customFields: new List(){customField1}, + signers: new List() { signer1 }, + ccs: new List() { cc1 }, + customFields: new List() { customField1 }, signingOptions: signingOptions, testMode: true ); diff --git a/sdks/dotnet/docs/TeamApi.md b/sdks/dotnet/docs/TeamApi.md index 64d8dd554..08c65cc1e 100644 --- a/sdks/dotnet/docs/TeamApi.md +++ b/sdks/dotnet/docs/TeamApi.md @@ -44,9 +44,7 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamAddMemberRequest( - emailAddress: "george@example.com" - ); + var data = new TeamAddMemberRequest(emailAddress: "george@example.com"); try { @@ -142,9 +140,7 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamCreateRequest( - name: "New Team Name" - ); + var data = new TeamCreateRequest(name: "New Team Name"); try { @@ -890,9 +886,7 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamUpdateRequest( - name: "New Team Name" - ); + var data = new TeamUpdateRequest(name: "New Team Name"); try { diff --git a/sdks/dotnet/docs/TemplateApi.md b/sdks/dotnet/docs/TemplateApi.md index 2f6cf986c..bb7c693cd 100644 --- a/sdks/dotnet/docs/TemplateApi.md +++ b/sdks/dotnet/docs/TemplateApi.md @@ -47,9 +47,7 @@ public class Example var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - var data = new TemplateAddUserRequest( - emailAddress: "george@dropboxsign.com" - ); + var data = new TemplateAddUserRequest(emailAddress: "george@dropboxsign.com"); try { @@ -146,20 +144,11 @@ public class Example var templateApi = new TemplateApi(config); - var role1 = new SubTemplateRole( - name: "Client", - order: 0 - ); + var role1 = new SubTemplateRole(name: "Client", order: 0); - var role2 = new SubTemplateRole( - name: "Witness", - order: 1 - ); + var role2 = new SubTemplateRole(name: "Witness", order: 1); - var mergeField1 = new SubMergeField( - name: "Full Name", - type: SubMergeField.TypeEnum.Text - ); + var mergeField1 = new SubMergeField(name: "Full Name", type: SubMergeField.TypeEnum.Text); var mergeField2 = new SubMergeField( name: "Is Registered?", @@ -170,13 +159,14 @@ public class Example dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY ); - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new TemplateCreateRequest( @@ -185,9 +175,9 @@ public class Example title: "Test Template", subject: "Please sign this document", message: "For your approval", - signerRoles: new List(){role1, role2}, - ccRoles: new List(){"Manager"}, - mergeFields: new List(){mergeField1, mergeField2}, + signerRoles: new List() { role1, role2 }, + ccRoles: new List() { "Manager" }, + mergeFields: new List() { mergeField1, mergeField2 }, fieldOptions: subFieldOptions, testMode: true ); @@ -286,20 +276,11 @@ public class Example var templateApi = new TemplateApi(config); - var role1 = new SubTemplateRole( - name: "Client", - order: 0 - ); + var role1 = new SubTemplateRole(name: "Client", order: 0); - var role2 = new SubTemplateRole( - name: "Witness", - order: 1 - ); + var role2 = new SubTemplateRole(name: "Witness", order: 1); - var mergeField1 = new SubMergeField( - name: "Full Name", - type: SubMergeField.TypeEnum.Text - ); + var mergeField1 = new SubMergeField(name: "Full Name", type: SubMergeField.TypeEnum.Text); var mergeField2 = new SubMergeField( name: "Is Registered?", @@ -310,13 +291,14 @@ public class Example dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY ); - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new TemplateCreateEmbeddedDraftRequest( @@ -325,9 +307,9 @@ public class Example title: "Test Template", subject: "Please sign this document", message: "For your approval", - signerRoles: new List(){role1, role2}, - ccRoles: new List(){"Manager"}, - mergeFields: new List(){mergeField1, mergeField2}, + signerRoles: new List() { role1, role2 }, + ccRoles: new List() { "Manager" }, + mergeFields: new List() { mergeField1, mergeField2 }, fieldOptions: subFieldOptions, testMode: true ); @@ -1000,9 +982,7 @@ public class Example var templateApi = new TemplateApi(config); - var data = new TemplateRemoveUserRequest( - emailAddress: "george@dropboxsign.com" - ); + var data = new TemplateRemoveUserRequest(emailAddress: "george@dropboxsign.com"); var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; diff --git a/sdks/dotnet/docs/UnclaimedDraftApi.md b/sdks/dotnet/docs/UnclaimedDraftApi.md index 7d5a0e145..891d3980b 100644 --- a/sdks/dotnet/docs/UnclaimedDraftApi.md +++ b/sdks/dotnet/docs/UnclaimedDraftApi.md @@ -66,24 +66,29 @@ public class Example var metadata = new Dictionary() { ["custom_id"] = 1234, - ["custom_text"] = "NDA #9" + ["custom_text"] = "NDA #9", }; - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new UnclaimedDraftCreateRequest( subject: "The NDA we talked about", type: UnclaimedDraftCreateRequest.TypeEnum.RequestSignature, message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List(){signer1, signer2}, - ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, + signers: new List() { signer1, signer2 }, + ccEmailAddresses: new List() + { + "lawyer1@dropboxsign.com", + "lawyer2@dropboxsign.com", + }, files: files, metadata: metadata, signingOptions: subSigningOptions, @@ -185,13 +190,14 @@ public class Example var unclaimedDraftApi = new UnclaimedDraftApi(config); - var files = new List { + var files = new List + { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ) + ), }; var data = new UnclaimedDraftCreateEmbeddedRequest( @@ -300,17 +306,14 @@ public class Example emailAddress: "george@example.com" ); - var cc1 = new SubCC( - role: "Accounting", - emailAddress: "accouting@email.com" - ); + var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); var data = new UnclaimedDraftCreateEmbeddedWithTemplateRequest( clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, + templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, requesterEmailAddress: "jack@dropboxsign.com", - signers: new List(){signer}, - ccs: new List(){cc1}, + signers: new List() { signer }, + ccs: new List() { cc1 }, testMode: true ); From 8b30f677f3300dbde3abf535a6ee1493cf71c607 Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Wed, 28 Aug 2024 09:10:43 -0500 Subject: [PATCH 07/10] Revert "Run CSharpier" This reverts commit 6cade9729502bf63f164cb5031728eb69895459f. --- sdks/dotnet/README.md | 5 +- sdks/dotnet/bin/dotnet | 2 +- sdks/dotnet/docs/AccountApi.md | 16 +- sdks/dotnet/docs/ApiAppApi.md | 26 +- sdks/dotnet/docs/EmbeddedApi.md | 2 +- sdks/dotnet/docs/FaxLineApi.md | 5 +- sdks/dotnet/docs/ReportApi.md | 3 +- sdks/dotnet/docs/SignatureRequestApi.md | 92 +- sdks/dotnet/docs/TeamApi.md | 12 +- sdks/dotnet/docs/TemplateApi.md | 60 +- sdks/dotnet/docs/UnclaimedDraftApi.md | 31 +- sdks/dotnet/run-build | 3 +- .../Dropbox.Sign.Test/Api/AccountApiTests.cs | 14 +- .../Dropbox.Sign.Test/Api/ApiAppApiTests.cs | 7 +- .../Api/BulkSendJobApiTests.cs | 3 +- .../Dropbox.Sign.Test/Api/EmbeddedApiTests.cs | 3 +- .../Dropbox.Sign.Test/Api/OAuthApiTests.cs | 3 +- .../Dropbox.Sign.Test/Api/ReportApiTests.cs | 3 +- .../Api/SignatureRequestApiTests.cs | 103 +- .../src/Dropbox.Sign.Test/Api/TeamApiTests.cs | 9 +- .../Dropbox.Sign.Test/Api/TemplateApiTests.cs | 33 +- .../Api/UnclaimedDraftApiTests.cs | 31 +- .../EventCallbackHelperTests.cs | 27 +- .../Dropbox.Sign.Test/MockRestClientHelper.cs | 107 +- .../Model/SubFormFieldsPerDocumentTests.cs | 8 +- .../src/Dropbox.Sign.Test/TestHelper.cs | 17 +- .../dotnet/src/Dropbox.Sign/Api/AccountApi.cs | 683 +--- sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs | 871 ++--- .../src/Dropbox.Sign/Api/BulkSendJobApi.cs | 429 +-- .../src/Dropbox.Sign/Api/EmbeddedApi.cs | 385 +-- .../dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs | 1098 ++---- sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs | 264 +- sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs | 173 +- .../Dropbox.Sign/Api/SignatureRequestApi.cs | 2989 ++++------------- sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs | 1680 +++------ .../src/Dropbox.Sign/Api/TemplateApi.cs | 2060 +++--------- .../src/Dropbox.Sign/Api/UnclaimedDraftApi.cs | 746 +--- .../src/Dropbox.Sign/Client/ApiClient.cs | 334 +- .../src/Dropbox.Sign/Client/ApiException.cs | 12 +- .../src/Dropbox.Sign/Client/ApiResponse.cs | 22 +- .../src/Dropbox.Sign/Client/ClientUtils.cs | 82 +- .../src/Dropbox.Sign/Client/Configuration.cs | 174 +- .../Client/GlobalConfiguration.cs | 14 +- .../src/Dropbox.Sign/Client/HttpMethod.cs | 8 +- .../Client/IAsynchronousClient.cs | 56 +- .../Client/IReadableConfiguration.cs | 5 +- .../Dropbox.Sign/Client/ISynchronousClient.cs | 42 +- .../src/Dropbox.Sign/Client/Multimap.cs | 3 +- .../src/Dropbox.Sign/EventCallbackHelper.cs | 6 +- .../Model/AbstractOpenAPISchema.cs | 44 +- .../Model/AccountCreateRequest.cs | 130 +- .../Model/AccountCreateResponse.cs | 107 +- .../Dropbox.Sign/Model/AccountGetResponse.cs | 73 +- .../src/Dropbox.Sign/Model/AccountResponse.cs | 292 +- .../Model/AccountResponseQuotas.cs | 198 +- .../Model/AccountResponseUsage.cs | 46 +- .../Model/AccountUpdateRequest.cs | 100 +- .../Model/AccountVerifyRequest.cs | 50 +- .../Model/AccountVerifyResponse.cs | 81 +- .../Model/AccountVerifyResponseAccount.cs | 50 +- .../Dropbox.Sign/Model/ApiAppCreateRequest.cs | 218 +- .../Dropbox.Sign/Model/ApiAppGetResponse.cs | 73 +- .../Dropbox.Sign/Model/ApiAppListResponse.cs | 102 +- .../src/Dropbox.Sign/Model/ApiAppResponse.cs | 274 +- .../Dropbox.Sign/Model/ApiAppResponseOAuth.cs | 128 +- .../Model/ApiAppResponseOptions.cs | 49 +- .../Model/ApiAppResponseOwnerAccount.cs | 78 +- .../ApiAppResponseWhiteLabelingOptions.cs | 436 +-- .../Dropbox.Sign/Model/ApiAppUpdateRequest.cs | 210 +- .../Model/BulkSendJobGetResponse.cs | 137 +- ...BulkSendJobGetResponseSignatureRequests.cs | 695 ++-- .../Model/BulkSendJobListResponse.cs | 110 +- .../Dropbox.Sign/Model/BulkSendJobResponse.cs | 118 +- .../Model/BulkSendJobSendResponse.cs | 81 +- .../Model/EmbeddedEditUrlRequest.cs | 286 +- .../Model/EmbeddedEditUrlResponse.cs | 81 +- .../Model/EmbeddedEditUrlResponseEmbedded.cs | 75 +- .../Model/EmbeddedSignUrlResponse.cs | 81 +- .../Model/EmbeddedSignUrlResponseEmbedded.cs | 75 +- .../src/Dropbox.Sign/Model/ErrorResponse.cs | 45 +- .../Dropbox.Sign/Model/ErrorResponseError.cs | 104 +- .../Model/EventCallbackRequest.cs | 133 +- .../Model/EventCallbackRequestEvent.cs | 140 +- .../EventCallbackRequestEventMetadata.cs | 139 +- sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs | 121 +- .../Model/FaxLineAddUserRequest.cs | 108 +- .../Model/FaxLineAreaCodeGetCountryEnum.cs | 7 +- .../Model/FaxLineAreaCodeGetProvinceEnum.cs | 7 +- .../Model/FaxLineAreaCodeGetResponse.cs | 53 +- .../Model/FaxLineAreaCodeGetStateEnum.cs | 7 +- .../Model/FaxLineCreateRequest.cs | 118 +- .../Model/FaxLineDeleteRequest.cs | 50 +- .../Dropbox.Sign/Model/FaxLineListResponse.cs | 103 +- .../Model/FaxLineRemoveUserRequest.cs | 108 +- .../src/Dropbox.Sign/Model/FaxLineResponse.cs | 70 +- .../Model/FaxLineResponseFaxLine.cs | 125 +- .../src/Dropbox.Sign/Model/FileResponse.cs | 62 +- .../Dropbox.Sign/Model/FileResponseDataUri.cs | 46 +- .../Dropbox.Sign/Model/ListInfoResponse.cs | 112 +- .../Model/OAuthTokenGenerateRequest.cs | 173 +- .../Model/OAuthTokenRefreshRequest.cs | 86 +- .../Dropbox.Sign/Model/OAuthTokenResponse.cs | 144 +- .../Dropbox.Sign/Model/ReportCreateRequest.cs | 117 +- .../Model/ReportCreateResponse.cs | 77 +- .../src/Dropbox.Sign/Model/ReportResponse.cs | 127 +- ...stBulkCreateEmbeddedWithTemplateRequest.cs | 403 +-- ...atureRequestBulkSendWithTemplateRequest.cs | 398 +-- .../SignatureRequestCreateEmbeddedRequest.cs | 702 ++-- ...equestCreateEmbeddedWithTemplateRequest.cs | 465 ++- .../SignatureRequestEditEmbeddedRequest.cs | 675 ++-- ...eRequestEditEmbeddedWithTemplateRequest.cs | 451 +-- .../Model/SignatureRequestEditRequest.cs | 720 ++-- ...SignatureRequestEditWithTemplateRequest.cs | 495 ++- .../Model/SignatureRequestGetResponse.cs | 84 +- .../Model/SignatureRequestListResponse.cs | 111 +- .../Model/SignatureRequestRemindRequest.cs | 81 +- .../Model/SignatureRequestResponse.cs | 691 ++-- .../SignatureRequestResponseAttachment.cs | 184 +- ...SignatureRequestResponseCustomFieldBase.cs | 160 +- ...atureRequestResponseCustomFieldCheckbox.cs | 90 +- ...SignatureRequestResponseCustomFieldText.cs | 92 +- ...atureRequestResponseCustomFieldTypeEnum.cs | 7 +- .../Model/SignatureRequestResponseDataBase.cs | 155 +- .../SignatureRequestResponseDataTypeEnum.cs | 7 +- ...gnatureRequestResponseDataValueCheckbox.cs | 86 +- ...reRequestResponseDataValueCheckboxMerge.cs | 88 +- ...atureRequestResponseDataValueDateSigned.cs | 88 +- ...gnatureRequestResponseDataValueDropdown.cs | 88 +- ...gnatureRequestResponseDataValueInitials.cs | 88 +- .../SignatureRequestResponseDataValueRadio.cs | 86 +- ...natureRequestResponseDataValueSignature.cs | 88 +- .../SignatureRequestResponseDataValueText.cs | 88 +- ...natureRequestResponseDataValueTextMerge.cs | 88 +- .../SignatureRequestResponseSignatures.cs | 539 ++- .../Model/SignatureRequestSendRequest.cs | 745 ++-- ...SignatureRequestSendWithTemplateRequest.cs | 511 ++- .../Model/SignatureRequestUpdateRequest.cs | 131 +- .../src/Dropbox.Sign/Model/SubAttachment.cs | 120 +- .../Dropbox.Sign/Model/SubBulkSignerList.cs | 78 +- .../Model/SubBulkSignerListCustomField.cs | 83 +- sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs | 70 +- .../src/Dropbox.Sign/Model/SubCustomField.cs | 119 +- .../Dropbox.Sign/Model/SubEditorOptions.cs | 63 +- .../src/Dropbox.Sign/Model/SubFieldOptions.cs | 43 +- .../Dropbox.Sign/Model/SubFormFieldGroup.cs | 108 +- .../Dropbox.Sign/Model/SubFormFieldRule.cs | 144 +- .../Model/SubFormFieldRuleAction.cs | 125 +- .../Model/SubFormFieldRuleTrigger.cs | 133 +- .../Model/SubFormFieldsPerDocumentBase.cs | 300 +- .../Model/SubFormFieldsPerDocumentCheckbox.cs | 117 +- .../SubFormFieldsPerDocumentCheckboxMerge.cs | 73 +- .../SubFormFieldsPerDocumentDateSigned.cs | 118 +- .../Model/SubFormFieldsPerDocumentDropdown.cs | 179 +- .../Model/SubFormFieldsPerDocumentFontEnum.cs | 7 +- .../SubFormFieldsPerDocumentHyperlink.cs | 180 +- .../Model/SubFormFieldsPerDocumentInitials.cs | 69 +- .../Model/SubFormFieldsPerDocumentRadio.cs | 123 +- .../SubFormFieldsPerDocumentSignature.cs | 69 +- .../Model/SubFormFieldsPerDocumentText.cs | 347 +- .../SubFormFieldsPerDocumentTextMerge.cs | 118 +- .../Model/SubFormFieldsPerDocumentTypeEnum.cs | 7 +- .../src/Dropbox.Sign/Model/SubMergeField.cs | 67 +- .../dotnet/src/Dropbox.Sign/Model/SubOAuth.cs | 77 +- .../src/Dropbox.Sign/Model/SubOptions.cs | 41 +- .../SubSignatureRequestGroupedSigners.cs | 115 +- .../Model/SubSignatureRequestSigner.cs | 199 +- .../SubSignatureRequestTemplateSigner.cs | 200 +- .../Dropbox.Sign/Model/SubSigningOptions.cs | 136 +- .../src/Dropbox.Sign/Model/SubTeamResponse.cs | 64 +- .../src/Dropbox.Sign/Model/SubTemplateRole.cs | 62 +- .../Model/SubUnclaimedDraftSigner.cs | 109 +- .../Model/SubUnclaimedDraftTemplateSigner.cs | 110 +- .../Model/SubWhiteLabelingOptions.cs | 463 ++- .../Model/TeamAddMemberRequest.cs | 101 +- .../Dropbox.Sign/Model/TeamCreateRequest.cs | 39 +- .../Dropbox.Sign/Model/TeamGetInfoResponse.cs | 74 +- .../src/Dropbox.Sign/Model/TeamGetResponse.cs | 70 +- .../Dropbox.Sign/Model/TeamInfoResponse.cs | 140 +- .../Dropbox.Sign/Model/TeamInviteResponse.cs | 161 +- .../Dropbox.Sign/Model/TeamInvitesResponse.cs | 80 +- .../Dropbox.Sign/Model/TeamMemberResponse.cs | 95 +- .../Dropbox.Sign/Model/TeamMembersResponse.cs | 106 +- .../Dropbox.Sign/Model/TeamParentResponse.cs | 64 +- .../Model/TeamRemoveMemberRequest.cs | 160 +- .../src/Dropbox.Sign/Model/TeamResponse.cs | 128 +- .../Model/TeamSubTeamsResponse.cs | 106 +- .../Dropbox.Sign/Model/TeamUpdateRequest.cs | 39 +- .../Model/TemplateAddUserRequest.cs | 103 +- .../TemplateCreateEmbeddedDraftRequest.cs | 705 ++-- .../TemplateCreateEmbeddedDraftResponse.cs | 82 +- ...lateCreateEmbeddedDraftResponseTemplate.cs | 133 +- .../Model/TemplateCreateRequest.cs | 537 ++- .../Model/TemplateCreateResponse.cs | 81 +- .../Model/TemplateCreateResponseTemplate.cs | 50 +- .../Model/TemplateEditResponse.cs | 46 +- .../Dropbox.Sign/Model/TemplateGetResponse.cs | 77 +- .../Model/TemplateListResponse.cs | 106 +- .../Model/TemplateRemoveUserRequest.cs | 78 +- .../Dropbox.Sign/Model/TemplateResponse.cs | 425 ++- .../Model/TemplateResponseAccount.cs | 170 +- .../Model/TemplateResponseAccountQuota.cs | 126 +- .../Model/TemplateResponseCCRole.cs | 47 +- .../Model/TemplateResponseCustomField.cs | 336 +- .../Model/TemplateResponseDocument.cs | 191 +- .../TemplateResponseDocumentCustomField.cs | 417 +-- ...TemplateResponseDocumentCustomFieldBase.cs | 270 +- ...lateResponseDocumentCustomFieldCheckbox.cs | 72 +- ...TemplateResponseDocumentCustomFieldText.cs | 179 +- .../TemplateResponseDocumentFieldGroup.cs | 75 +- .../TemplateResponseDocumentFieldGroupRule.cs | 82 +- .../TemplateResponseDocumentFormField.cs | 361 +- .../TemplateResponseDocumentFormFieldBase.cs | 270 +- ...mplateResponseDocumentFormFieldCheckbox.cs | 72 +- ...lateResponseDocumentFormFieldDateSigned.cs | 72 +- ...mplateResponseDocumentFormFieldDropdown.cs | 72 +- ...plateResponseDocumentFormFieldHyperlink.cs | 179 +- ...mplateResponseDocumentFormFieldInitials.cs | 72 +- .../TemplateResponseDocumentFormFieldRadio.cs | 72 +- ...plateResponseDocumentFormFieldSignature.cs | 72 +- .../TemplateResponseDocumentFormFieldText.cs | 208 +- .../TemplateResponseDocumentStaticField.cs | 251 +- ...TemplateResponseDocumentStaticFieldBase.cs | 275 +- ...lateResponseDocumentStaticFieldCheckbox.cs | 72 +- ...teResponseDocumentStaticFieldDateSigned.cs | 72 +- ...lateResponseDocumentStaticFieldDropdown.cs | 72 +- ...ateResponseDocumentStaticFieldHyperlink.cs | 72 +- ...lateResponseDocumentStaticFieldInitials.cs | 72 +- ...emplateResponseDocumentStaticFieldRadio.cs | 72 +- ...ateResponseDocumentStaticFieldSignature.cs | 72 +- ...TemplateResponseDocumentStaticFieldText.cs | 72 +- .../TemplateResponseFieldAvgTextLength.cs | 73 +- .../Model/TemplateResponseNamedFormField.cs | 357 +- .../Model/TemplateResponseSignerRole.cs | 68 +- .../Model/TemplateUpdateFilesRequest.cs | 196 +- .../Model/TemplateUpdateFilesResponse.cs | 55 +- .../TemplateUpdateFilesResponseTemplate.cs | 81 +- .../UnclaimedDraftCreateEmbeddedRequest.cs | 1000 +++--- ...dDraftCreateEmbeddedWithTemplateRequest.cs | 852 ++--- .../Model/UnclaimedDraftCreateRequest.cs | 687 ++-- .../Model/UnclaimedDraftCreateResponse.cs | 84 +- .../UnclaimedDraftEditAndResendRequest.cs | 245 +- .../Model/UnclaimedDraftResponse.cs | 189 +- .../src/Dropbox.Sign/Model/WarningResponse.cs | 78 +- 243 files changed, 16993 insertions(+), 28017 deletions(-) diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index 05121cdbe..b66a0a2b2 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/README.md @@ -82,6 +82,7 @@ c.Proxy = webProxy; ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -99,7 +100,9 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountCreateRequest(emailAddress: "newuser@dropboxsign.com"); + var data = new AccountCreateRequest( + emailAddress: "newuser@dropboxsign.com" + ); try { diff --git a/sdks/dotnet/bin/dotnet b/sdks/dotnet/bin/dotnet index d7fd51182..f1b73acd7 100755 --- a/sdks/dotnet/bin/dotnet +++ b/sdks/dotnet/bin/dotnet @@ -12,4 +12,4 @@ docker run --rm \ -v "${ROOT_DIR}:${WORKING_DIR}" \ -w "${WORKING_DIR}" \ -u root:root \ - mcr.microsoft.com/dotnet/sdk:6.0 bash -c "$@" + mcr.microsoft.com/dotnet/sdk:6.0 "$@" diff --git a/sdks/dotnet/docs/AccountApi.md b/sdks/dotnet/docs/AccountApi.md index cc6eb6c03..897f4d2ab 100644 --- a/sdks/dotnet/docs/AccountApi.md +++ b/sdks/dotnet/docs/AccountApi.md @@ -20,6 +20,7 @@ Creates a new Dropbox Sign Account that is associated with the specified `email_ ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -37,7 +38,9 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountCreateRequest(emailAddress: "newuser@dropboxsign.com"); + var data = new AccountCreateRequest( + emailAddress: "newuser@dropboxsign.com" + ); try { @@ -114,6 +117,7 @@ Returns the properties and settings of your Account. ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -207,6 +211,7 @@ Updates the properties and settings of your Account. Currently only allows for u ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -224,7 +229,9 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountUpdateRequest(callbackUrl: "https://www.example.com/callback"); + var data = new AccountUpdateRequest( + callbackUrl: "https://www.example.com/callback" + ); try { @@ -301,6 +308,7 @@ Verifies whether an Dropbox Sign Account exists for the given email address. ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -318,7 +326,9 @@ public class Example var accountApi = new AccountApi(config); - var data = new AccountVerifyRequest(emailAddress: "some_user@dropboxsign.com"); + var data = new AccountVerifyRequest( + emailAddress: "some_user@dropboxsign.com" + ); try { diff --git a/sdks/dotnet/docs/ApiAppApi.md b/sdks/dotnet/docs/ApiAppApi.md index 7b6dbad8f..e587a69d8 100644 --- a/sdks/dotnet/docs/ApiAppApi.md +++ b/sdks/dotnet/docs/ApiAppApi.md @@ -42,10 +42,9 @@ public class Example var oauth = new SubOAuth( callbackUrl: "https://example.com/oauth", - scopes: new List() - { + scopes: new List() { SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature, + SubOAuth.ScopesEnum.RequestSignature } ); @@ -54,11 +53,14 @@ public class Example primaryButtonTextColor: "#ffffff" ); - var customLogoFile = new FileStream("CustomLogoFile.png", FileMode.Open); + var customLogoFile = new FileStream( + "CustomLogoFile.png", + FileMode.Open + ); var data = new ApiAppCreateRequest( name: "My Production App", - domains: new List() { "example.com" }, + domains: new List(){"example.com"}, oauth: oauth, whiteLabelingOptions: whiteLabelingOptions, customLogoFile: customLogoFile @@ -231,6 +233,7 @@ Returns an object with information about an API App. ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -325,6 +328,7 @@ Returns a list of API Apps that are accessible by you. If you are on a team with ### Example ```csharp using System; + using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; @@ -442,10 +446,9 @@ public class Example var oauth = new SubOAuth( callbackUrl: "https://example.com/oauth", - scopes: new List() - { + scopes: new List() { SubOAuth.ScopesEnum.BasicAccountInfo, - SubOAuth.ScopesEnum.RequestSignature, + SubOAuth.ScopesEnum.RequestSignature } ); @@ -454,11 +457,14 @@ public class Example primaryButtonTextColor: "#ffffff" ); - var customLogoFile = new FileStream("CustomLogoFile.png", FileMode.Open); + var customLogoFile = new FileStream( + "CustomLogoFile.png", + FileMode.Open + ); var data = new ApiAppUpdateRequest( name: "My Production App", - domains: new List() { "example.com" }, + domains: new List(){"example.com"}, oauth: oauth, whiteLabelingOptions: whiteLabelingOptions, customLogoFile: customLogoFile diff --git a/sdks/dotnet/docs/EmbeddedApi.md b/sdks/dotnet/docs/EmbeddedApi.md index 221bf92dd..39c38b4c2 100644 --- a/sdks/dotnet/docs/EmbeddedApi.md +++ b/sdks/dotnet/docs/EmbeddedApi.md @@ -38,7 +38,7 @@ public class Example var embeddedApi = new EmbeddedApi(config); var data = new EmbeddedEditUrlRequest( - ccRoles: new List() { "" }, + ccRoles: new List(){""}, mergeFields: new List() ); diff --git a/sdks/dotnet/docs/FaxLineApi.md b/sdks/dotnet/docs/FaxLineApi.md index 142c46657..4fd57baf5 100644 --- a/sdks/dotnet/docs/FaxLineApi.md +++ b/sdks/dotnet/docs/FaxLineApi.md @@ -226,7 +226,10 @@ public class Example var faxLineApi = new FaxLineApi(config); - var data = new FaxLineCreateRequest(areaCode: 209, country: "US"); + var data = new FaxLineCreateRequest( + areaCode: 209, + country: "US" + ); try { diff --git a/sdks/dotnet/docs/ReportApi.md b/sdks/dotnet/docs/ReportApi.md index d0cdf1f1e..9ea98796f 100644 --- a/sdks/dotnet/docs/ReportApi.md +++ b/sdks/dotnet/docs/ReportApi.md @@ -39,8 +39,7 @@ public class Example var data = new ReportCreateRequest( startDate: "09/01/2020", endDate: "09/01/2020", - reportType: new List() - { + reportType: new List() { ReportCreateRequest.ReportTypeEnum.UserActivity, ReportCreateRequest.ReportTypeEnum.DocumentStatus, } diff --git a/sdks/dotnet/docs/SignatureRequestApi.md b/sdks/dotnet/docs/SignatureRequestApi.md index 5ae02dc11..c411d0c01 100644 --- a/sdks/dotnet/docs/SignatureRequestApi.md +++ b/sdks/dotnet/docs/SignatureRequestApi.md @@ -64,8 +64,8 @@ public class Example ); var signerList1 = new SubBulkSignerList( - signers: new List() { signerList1Signer }, - customFields: new List() { signerList1CustomFields } + signers: new List(){signerList1Signer}, + customFields: new List(){signerList1CustomFields} ); var signerList2Signer = new SubSignatureRequestTemplateSigner( @@ -81,19 +81,22 @@ public class Example ); var signerList2 = new SubBulkSignerList( - signers: new List() { signerList2Signer }, - customFields: new List() { signerList2CustomFields } + signers: new List(){signerList2Signer}, + customFields: new List(){signerList2CustomFields} ); - var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@email.com" + ); var data = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest( clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signerList: new List() { signerList1, signerList2 }, - ccs: new List() { cc1 }, + signerList: new List(){signerList1, signerList2}, + ccs: new List(){cc1}, testMode: true ); @@ -204,8 +207,8 @@ public class Example ); var signerList1 = new SubBulkSignerList( - signers: new List() { signerList1Signer }, - customFields: new List() { signerList1CustomFields } + signers: new List(){signerList1Signer}, + customFields: new List(){signerList1CustomFields} ); var signerList2Signer = new SubSignatureRequestTemplateSigner( @@ -221,18 +224,21 @@ public class Example ); var signerList2 = new SubBulkSignerList( - signers: new List() { signerList2Signer }, - customFields: new List() { signerList2CustomFields } + signers: new List(){signerList2Signer}, + customFields: new List(){signerList2CustomFields} ); - var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@email.com" + ); var data = new SignatureRequestBulkSendWithTemplateRequest( - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signerList: new List() { signerList1, signerList2 }, - ccs: new List() { cc1 }, + signerList: new List(){signerList1, signerList2}, + ccs: new List(){cc1}, testMode: true ); @@ -442,14 +448,13 @@ public class Example defaultType: SubSigningOptions.DefaultTypeEnum.Draw ); - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new SignatureRequestCreateEmbeddedRequest( @@ -457,12 +462,8 @@ public class Example title: "NDA with Acme Co.", subject: "The NDA we talked about", message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List() { signer1, signer2 }, - ccEmailAddresses: new List() - { - "lawyer1@dropboxsign.com", - "lawyer2@dropboxsign.com", - }, + signers: new List(){signer1, signer2}, + ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, files: files, signingOptions: signingOptions, testMode: true @@ -561,7 +562,10 @@ public class Example var signatureRequestApi = new SignatureRequestApi(config); - var signer1 = new SubSignatureRequestTemplateSigner(role: "Client", name: "George"); + var signer1 = new SubSignatureRequestTemplateSigner( + role: "Client", + name: "George" + ); var subSigningOptions = new SubSigningOptions( draw: true, @@ -573,10 +577,10 @@ public class Example var data = new SignatureRequestCreateEmbeddedWithTemplateRequest( clientId: "ec64a202072370a737edf4a0eb7f4437", - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signers: new List() { signer1 }, + signers: new List(){signer1}, signingOptions: subSigningOptions, testMode: true ); @@ -1253,7 +1257,9 @@ public class Example var signatureRequestApi = new SignatureRequestApi(config); - var data = new SignatureRequestRemindRequest(emailAddress: "john@example.com"); + var data = new SignatureRequestRemindRequest( + emailAddress: "john@example.com" + ); var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; @@ -1470,29 +1476,24 @@ public class Example var metadata = new Dictionary() { ["custom_id"] = 1234, - ["custom_text"] = "NDA #9", + ["custom_text"] = "NDA #9" }; - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new SignatureRequestSendRequest( title: "NDA with Acme Co.", subject: "The NDA we talked about", message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List() { signer1, signer2 }, - ccEmailAddresses: new List() - { - "lawyer1@dropboxsign.com", - "lawyer2@dropboxsign.com", - }, + signers: new List(){signer1, signer2}, + ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, files: files, metadata: metadata, signingOptions: signingOptions, @@ -1599,7 +1600,10 @@ public class Example name: "George" ); - var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@emaple.com"); + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@emaple.com" + ); var customField1 = new SubCustomField( name: "Cost", @@ -1617,12 +1621,12 @@ public class Example ); var data = new SignatureRequestSendWithTemplateRequest( - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, subject: "Purchase Order", message: "Glad we could come to an agreement.", - signers: new List() { signer1 }, - ccs: new List() { cc1 }, - customFields: new List() { customField1 }, + signers: new List(){signer1}, + ccs: new List(){cc1}, + customFields: new List(){customField1}, signingOptions: signingOptions, testMode: true ); diff --git a/sdks/dotnet/docs/TeamApi.md b/sdks/dotnet/docs/TeamApi.md index 08c65cc1e..64d8dd554 100644 --- a/sdks/dotnet/docs/TeamApi.md +++ b/sdks/dotnet/docs/TeamApi.md @@ -44,7 +44,9 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamAddMemberRequest(emailAddress: "george@example.com"); + var data = new TeamAddMemberRequest( + emailAddress: "george@example.com" + ); try { @@ -140,7 +142,9 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamCreateRequest(name: "New Team Name"); + var data = new TeamCreateRequest( + name: "New Team Name" + ); try { @@ -886,7 +890,9 @@ public class Example var teamApi = new TeamApi(config); - var data = new TeamUpdateRequest(name: "New Team Name"); + var data = new TeamUpdateRequest( + name: "New Team Name" + ); try { diff --git a/sdks/dotnet/docs/TemplateApi.md b/sdks/dotnet/docs/TemplateApi.md index bb7c693cd..2f6cf986c 100644 --- a/sdks/dotnet/docs/TemplateApi.md +++ b/sdks/dotnet/docs/TemplateApi.md @@ -47,7 +47,9 @@ public class Example var templateId = "f57db65d3f933b5316d398057a36176831451a35"; - var data = new TemplateAddUserRequest(emailAddress: "george@dropboxsign.com"); + var data = new TemplateAddUserRequest( + emailAddress: "george@dropboxsign.com" + ); try { @@ -144,11 +146,20 @@ public class Example var templateApi = new TemplateApi(config); - var role1 = new SubTemplateRole(name: "Client", order: 0); + var role1 = new SubTemplateRole( + name: "Client", + order: 0 + ); - var role2 = new SubTemplateRole(name: "Witness", order: 1); + var role2 = new SubTemplateRole( + name: "Witness", + order: 1 + ); - var mergeField1 = new SubMergeField(name: "Full Name", type: SubMergeField.TypeEnum.Text); + var mergeField1 = new SubMergeField( + name: "Full Name", + type: SubMergeField.TypeEnum.Text + ); var mergeField2 = new SubMergeField( name: "Is Registered?", @@ -159,14 +170,13 @@ public class Example dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY ); - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new TemplateCreateRequest( @@ -175,9 +185,9 @@ public class Example title: "Test Template", subject: "Please sign this document", message: "For your approval", - signerRoles: new List() { role1, role2 }, - ccRoles: new List() { "Manager" }, - mergeFields: new List() { mergeField1, mergeField2 }, + signerRoles: new List(){role1, role2}, + ccRoles: new List(){"Manager"}, + mergeFields: new List(){mergeField1, mergeField2}, fieldOptions: subFieldOptions, testMode: true ); @@ -276,11 +286,20 @@ public class Example var templateApi = new TemplateApi(config); - var role1 = new SubTemplateRole(name: "Client", order: 0); + var role1 = new SubTemplateRole( + name: "Client", + order: 0 + ); - var role2 = new SubTemplateRole(name: "Witness", order: 1); + var role2 = new SubTemplateRole( + name: "Witness", + order: 1 + ); - var mergeField1 = new SubMergeField(name: "Full Name", type: SubMergeField.TypeEnum.Text); + var mergeField1 = new SubMergeField( + name: "Full Name", + type: SubMergeField.TypeEnum.Text + ); var mergeField2 = new SubMergeField( name: "Is Registered?", @@ -291,14 +310,13 @@ public class Example dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY ); - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new TemplateCreateEmbeddedDraftRequest( @@ -307,9 +325,9 @@ public class Example title: "Test Template", subject: "Please sign this document", message: "For your approval", - signerRoles: new List() { role1, role2 }, - ccRoles: new List() { "Manager" }, - mergeFields: new List() { mergeField1, mergeField2 }, + signerRoles: new List(){role1, role2}, + ccRoles: new List(){"Manager"}, + mergeFields: new List(){mergeField1, mergeField2}, fieldOptions: subFieldOptions, testMode: true ); @@ -982,7 +1000,9 @@ public class Example var templateApi = new TemplateApi(config); - var data = new TemplateRemoveUserRequest(emailAddress: "george@dropboxsign.com"); + var data = new TemplateRemoveUserRequest( + emailAddress: "george@dropboxsign.com" + ); var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; diff --git a/sdks/dotnet/docs/UnclaimedDraftApi.md b/sdks/dotnet/docs/UnclaimedDraftApi.md index 891d3980b..7d5a0e145 100644 --- a/sdks/dotnet/docs/UnclaimedDraftApi.md +++ b/sdks/dotnet/docs/UnclaimedDraftApi.md @@ -66,29 +66,24 @@ public class Example var metadata = new Dictionary() { ["custom_id"] = 1234, - ["custom_text"] = "NDA #9", + ["custom_text"] = "NDA #9" }; - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new UnclaimedDraftCreateRequest( subject: "The NDA we talked about", type: UnclaimedDraftCreateRequest.TypeEnum.RequestSignature, message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - signers: new List() { signer1, signer2 }, - ccEmailAddresses: new List() - { - "lawyer1@dropboxsign.com", - "lawyer2@dropboxsign.com", - }, + signers: new List(){signer1, signer2}, + ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"}, files: files, metadata: metadata, signingOptions: subSigningOptions, @@ -190,14 +185,13 @@ public class Example var unclaimedDraftApi = new UnclaimedDraftApi(config); - var files = new List - { + var files = new List { new FileStream( "./example_signature_request.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var data = new UnclaimedDraftCreateEmbeddedRequest( @@ -306,14 +300,17 @@ public class Example emailAddress: "george@example.com" ); - var cc1 = new SubCC(role: "Accounting", emailAddress: "accouting@email.com"); + var cc1 = new SubCC( + role: "Accounting", + emailAddress: "accouting@email.com" + ); var data = new UnclaimedDraftCreateEmbeddedWithTemplateRequest( clientId: "1a659d9ad95bccd307ecad78d72192f8", - templateIds: new List() { "c26b8a16784a872da37ea946b9ddec7c1e11dff6" }, + templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"}, requesterEmailAddress: "jack@dropboxsign.com", - signers: new List() { signer }, - ccs: new List() { cc1 }, + signers: new List(){signer}, + ccs: new List(){cc1}, testMode: true ); diff --git a/sdks/dotnet/run-build b/sdks/dotnet/run-build index 7e467542b..6820163af 100755 --- a/sdks/dotnet/run-build +++ b/sdks/dotnet/run-build @@ -45,8 +45,7 @@ if [[ -z "$GITHUB_ACTIONS" ]]; then fi printf "Running tests ...\n" -bash "${DIR}/bin/dotnet" "dotnet test src/Dropbox.Sign.Test/" -bash "${DIR}/bin/dotnet" "dotnet tool install csharpier --global && /root/.dotnet/tools/dotnet-csharpier src/" +bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/ printf "Success!\n" diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/AccountApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/AccountApiTests.cs index bdc61e8e0..d7eeae577 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/AccountApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/AccountApiTests.cs @@ -1,8 +1,9 @@ using System.Net; -using Dropbox.Sign.Api; +using Xunit; + using Dropbox.Sign.Client; +using Dropbox.Sign.Api; using Dropbox.Sign.Model; -using Xunit; namespace Dropbox.Sign.Test.Api { @@ -16,12 +17,11 @@ public void HttpCodeRangeTest() var obj = AccountVerifyRequest.Init(requestData.ToString()); - var api = MockRestClientHelper.CreateApi( - errorData, - HttpStatusCode.BadRequest - ); + var api = MockRestClientHelper.CreateApi(errorData, HttpStatusCode.BadRequest); - var ex = Assert.Throws(() => api.AccountVerify(obj)); + var ex = Assert.Throws(() => + api.AccountVerify(obj) + ); TestHelper.AssertJsonSame(errorData.ToString(), ex.ErrorContent.ToJson()); } diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs index 1fab8c71d..a20533479 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ApiAppApiTests.cs @@ -1,9 +1,10 @@ using System.Collections.Generic; using System.IO; using System.Net; +using Xunit; + using Dropbox.Sign.Api; using Dropbox.Sign.Model; -using Xunit; namespace Dropbox.Sign.Test.Api { @@ -43,7 +44,9 @@ public void ApiAppGetTest() } [Fact(Skip = "DELETE /api_app/{client_id} skipped")] - public void ApiAppDeleteTest() { } + public void ApiAppDeleteTest() + { + } [Fact] public void ApiAppListTest() diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/BulkSendJobApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/BulkSendJobApiTests.cs index e7c69a5f3..6f32fba5f 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/BulkSendJobApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/BulkSendJobApiTests.cs @@ -1,6 +1,7 @@ +using Xunit; + using Dropbox.Sign.Api; using Dropbox.Sign.Model; -using Xunit; namespace Dropbox.Sign.Test.Api { diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/EmbeddedApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/EmbeddedApiTests.cs index 3a2f27511..15980c305 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/EmbeddedApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/EmbeddedApiTests.cs @@ -1,6 +1,7 @@ +using Xunit; + using Dropbox.Sign.Api; using Dropbox.Sign.Model; -using Xunit; namespace Dropbox.Sign.Test.Api { diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/OAuthApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/OAuthApiTests.cs index 34daf65bf..76e6d18ba 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/OAuthApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/OAuthApiTests.cs @@ -1,6 +1,7 @@ +using Xunit; + using Dropbox.Sign.Api; using Dropbox.Sign.Model; -using Xunit; namespace Dropbox.Sign.Test.Api { diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ReportApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ReportApiTests.cs index 3c3a9e98c..6d78f525b 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/ReportApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/ReportApiTests.cs @@ -1,6 +1,7 @@ +using Xunit; + using Dropbox.Sign.Api; using Dropbox.Sign.Model; -using Xunit; namespace Dropbox.Sign.Test.Api { diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs index 454e35ff8..6829e9317 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; using System.IO; +using Xunit; + using Dropbox.Sign.Api; using Dropbox.Sign.Model; -using Xunit; namespace Dropbox.Sign.Test.Api { @@ -11,9 +12,7 @@ public class SignatureRequestApiTests [Fact] public void SignatureRequestBulkCreateEmbeddedWithTemplateTest() { - var requestData = TestHelper.GetJsonContents( - nameof(SignatureRequestBulkCreateEmbeddedWithTemplateRequest) - ); + var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestBulkCreateEmbeddedWithTemplateRequest)); var responseData = TestHelper.GetJsonContents(nameof(BulkSendJobSendResponse)); var obj = SignatureRequestBulkCreateEmbeddedWithTemplateRequest.Init( @@ -35,12 +34,12 @@ public void SignatureRequestBulkCreateEmbeddedWithTemplateTest() [Fact] public void SignatureRequestBulkSendWithTemplateTest() { - var requestData = TestHelper.GetJsonContents( - nameof(SignatureRequestBulkSendWithTemplateRequest) - ); + var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestBulkSendWithTemplateRequest)); var responseData = TestHelper.GetJsonContents(nameof(BulkSendJobSendResponse)); - var obj = SignatureRequestBulkSendWithTemplateRequest.Init(requestData.ToString()); + var obj = SignatureRequestBulkSendWithTemplateRequest.Init( + requestData.ToString() + ); obj.SignerFile = new FileStream( TestHelper.RootPath + "/bulk-send-sample.csv", FileMode.Open, @@ -54,26 +53,27 @@ public void SignatureRequestBulkSendWithTemplateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip = "POST /signature_request/cancel/{signature_request_id} skipped")] - public void SignatureRequestCancelTest() { } + [Fact(Skip="POST /signature_request/cancel/{signature_request_id} skipped")] + public void SignatureRequestCancelTest() + { + } [Fact] public void SignatureRequestCreateEmbeddedTest() { - var requestData = TestHelper.GetJsonContents( - nameof(SignatureRequestCreateEmbeddedRequest) - ); + var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestCreateEmbeddedRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestCreateEmbeddedRequest.Init(requestData.ToString()); - obj.Files = new List - { + var obj = SignatureRequestCreateEmbeddedRequest.Init( + requestData.ToString() + ); + obj.Files = new List { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var api = MockRestClientHelper.CreateApi(responseData); @@ -85,22 +85,19 @@ public void SignatureRequestCreateEmbeddedTest() [Fact] public void SignatureRequestCreateEmbeddedWithTemplateTest() { - var requestData = TestHelper.GetJsonContents( - nameof(SignatureRequestCreateEmbeddedWithTemplateRequest) - ); + var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestCreateEmbeddedWithTemplateRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); var obj = SignatureRequestCreateEmbeddedWithTemplateRequest.Init( requestData.ToString() ); - obj.Files = new List - { + obj.Files = new List { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var api = MockRestClientHelper.CreateApi(responseData); @@ -109,8 +106,10 @@ public void SignatureRequestCreateEmbeddedWithTemplateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip = "GET /signature_request/files/{signature_request_id} skipped")] - public void SignatureRequestFilesTest() { } + [Fact(Skip="GET /signature_request/files/{signature_request_id} skipped")] + public void SignatureRequestFilesTest() + { + } [Fact] public void SignatureRequestGetTest() @@ -159,7 +158,9 @@ public void SignatureRequestRemindTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestRemindRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestRemindRequest.Init(requestData.ToString()); + var obj = SignatureRequestRemindRequest.Init( + requestData.ToString() + ); var api = MockRestClientHelper.CreateApi(responseData); var response = api.SignatureRequestRemind(signatureRequestId, obj); @@ -167,8 +168,10 @@ public void SignatureRequestRemindTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip = "POST /signature_request/remove/{signature_request_id} skipped")] - public void SignatureRequestRemoveTest() { } + [Fact(Skip="POST /signature_request/remove/{signature_request_id} skipped")] + public void SignatureRequestRemoveTest() + { + } [Fact] public void SignatureRequestSendTest() @@ -176,15 +179,16 @@ public void SignatureRequestSendTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestSendRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestSendRequest.Init(requestData.ToString()); - obj.Files = new List - { + var obj = SignatureRequestSendRequest.Init( + requestData.ToString() + ); + obj.Files = new List { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var api = MockRestClientHelper.CreateApi(responseData); @@ -196,12 +200,12 @@ public void SignatureRequestSendTest() [Fact] public void SignatureRequestSendWithTemplateTest() { - var requestData = TestHelper.GetJsonContents( - nameof(SignatureRequestSendWithTemplateRequest) - ); + var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestSendWithTemplateRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestSendWithTemplateRequest.Init(requestData.ToString()); + var obj = SignatureRequestSendWithTemplateRequest.Init( + requestData.ToString() + ); var api = MockRestClientHelper.CreateApi(responseData); var response = api.SignatureRequestSendWithTemplate(obj); @@ -217,7 +221,9 @@ public void SignatureRequestUpdateTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestUpdateRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestUpdateRequest.Init(requestData.ToString()); + var obj = SignatureRequestUpdateRequest.Init( + requestData.ToString() + ); var api = MockRestClientHelper.CreateApi(responseData); var response = api.SignatureRequestUpdate(signatureRequestId, obj); @@ -231,23 +237,21 @@ public void FileForcesMultipartFormDataTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestSendRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestSendRequest.Init(requestData.ToString()); - obj.Files = new List - { + var obj = SignatureRequestSendRequest.Init( + requestData.ToString() + ); + obj.Files = new List { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var responseObj = SignatureRequestGetResponse.Init(responseData.ToString()); - var api = MockRestClientHelper.CreateApiExpectMultiFormRequest< - SignatureRequestGetResponse, - SignatureRequestApi - >(responseObj); + var api = MockRestClientHelper.CreateApiExpectMultiFormRequest(responseObj); var response = api.SignatureRequestSend(obj); TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); @@ -259,14 +263,13 @@ public void NoFileForcesJsonTest() var requestData = TestHelper.GetJsonContents(nameof(SignatureRequestSendRequest)); var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); - var obj = SignatureRequestSendRequest.Init(requestData.ToString()); + var obj = SignatureRequestSendRequest.Init( + requestData.ToString() + ); var responseObj = SignatureRequestGetResponse.Init(responseData.ToString()); - var api = MockRestClientHelper.CreateApiExpectJsonRequest< - SignatureRequestGetResponse, - SignatureRequestApi - >(responseObj); + var api = MockRestClientHelper.CreateApiExpectJsonRequest(responseObj); var response = api.SignatureRequestSend(obj); TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/TeamApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/TeamApiTests.cs index f8dd986fa..9c9e0c17c 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/TeamApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/TeamApiTests.cs @@ -1,6 +1,7 @@ +using Xunit; + using Dropbox.Sign.Api; using Dropbox.Sign.Model; -using Xunit; namespace Dropbox.Sign.Test.Api { @@ -34,8 +35,10 @@ public void TeamCreateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip = "DELETE /team/destroy skipped")] - public void TeamDeleteTest() { } + [Fact(Skip="DELETE /team/destroy skipped")] + public void TeamDeleteTest() + { + } [Fact] public void TeamGetTest() diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs index 91faa6086..da28e3855 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; using System.IO; +using Xunit; + using Dropbox.Sign.Api; using Dropbox.Sign.Model; -using Xunit; namespace Dropbox.Sign.Test.Api { @@ -27,22 +28,17 @@ public void TemplateAddUserTest() [Fact] public void TemplateCreateEmbeddedDraftTest() { - var requestData = TestHelper.GetJsonContents( - nameof(TemplateCreateEmbeddedDraftRequest) - ); - var responseData = TestHelper.GetJsonContents( - nameof(TemplateCreateEmbeddedDraftResponse) - ); + var requestData = TestHelper.GetJsonContents(nameof(TemplateCreateEmbeddedDraftRequest)); + var responseData = TestHelper.GetJsonContents(nameof(TemplateCreateEmbeddedDraftResponse)); var obj = TemplateCreateEmbeddedDraftRequest.Init(requestData.ToString()); - obj.Files = new List - { + obj.Files = new List { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var api = MockRestClientHelper.CreateApi(responseData); @@ -51,11 +47,15 @@ public void TemplateCreateEmbeddedDraftTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip = "POST /template/delete/{template_id} skipped")] - public void TemplateDeleteTest() { } + [Fact(Skip="POST /template/delete/{template_id} skipped")] + public void TemplateDeleteTest() + { + } - [Fact(Skip = "GET /template/files/{signature_request_id} skipped")] - public void TemplateFilesTest() { } + [Fact(Skip="GET /template/files/{signature_request_id} skipped")] + public void TemplateFilesTest() + { + } [Fact] public void TemplateGetTest() @@ -108,14 +108,13 @@ public void TemplateUpdateFilesTest() var responseData = TestHelper.GetJsonContents(nameof(TemplateUpdateFilesResponse)); var obj = TemplateUpdateFilesRequest.Init(requestData.ToString()); - obj.Files = new List - { + obj.Files = new List { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var api = MockRestClientHelper.CreateApi(responseData); diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Api/UnclaimedDraftApiTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Api/UnclaimedDraftApiTests.cs index c56e29575..74163e0b8 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Api/UnclaimedDraftApiTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Api/UnclaimedDraftApiTests.cs @@ -1,10 +1,11 @@ using System.Collections.Generic; using System.IO; -using Dropbox.Sign.Api; -using Dropbox.Sign.Model; using Newtonsoft.Json.Linq; using Xunit; +using Dropbox.Sign.Api; +using Dropbox.Sign.Model; + namespace Dropbox.Sign.Test.Api { public class UnclaimedDraftApiTests @@ -26,20 +27,17 @@ public void UnclaimedDraftCreateTest() [Fact] public void UnclaimedDraftCreateEmbeddedTest() { - var requestData = TestHelper.GetJsonContents( - nameof(UnclaimedDraftCreateEmbeddedRequest) - ); + var requestData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateEmbeddedRequest)); var responseData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateResponse)); var obj = UnclaimedDraftCreateEmbeddedRequest.Init(requestData.ToString()); - obj.Files = new List - { + obj.Files = new List { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var api = MockRestClientHelper.CreateApi(responseData); @@ -52,20 +50,19 @@ public void UnclaimedDraftCreateEmbeddedTest() [Fact] public void UnclaimedDraftCreateEmbeddedWithTemplateTest() { - var requestData = TestHelper.GetJsonContents( - nameof(UnclaimedDraftCreateEmbeddedWithTemplateRequest) - ); + var requestData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateEmbeddedWithTemplateRequest)); var responseData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateResponse)); - var obj = UnclaimedDraftCreateEmbeddedWithTemplateRequest.Init(requestData.ToString()); - obj.Files = new List - { + var obj = UnclaimedDraftCreateEmbeddedWithTemplateRequest.Init( + requestData.ToString() + ); + obj.Files = new List { new FileStream( TestHelper.RootPath + "/pdf-sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read - ), + ) }; var api = MockRestClientHelper.CreateApi(responseData); @@ -80,9 +77,7 @@ public void UnclaimedDraftEditAndResendTest() { var signatureRequestId = "2f9781e1a83jdja934d808c153c2e1d3df6f8f2f"; - var requestData = TestHelper.GetJsonContents( - nameof(UnclaimedDraftEditAndResendRequest) - ); + var requestData = TestHelper.GetJsonContents(nameof(UnclaimedDraftEditAndResendRequest)); var responseData = TestHelper.GetJsonContents(nameof(UnclaimedDraftCreateResponse)); var obj = UnclaimedDraftEditAndResendRequest.Init(requestData.ToString()); diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs index a2732bcef..5a213a694 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs @@ -1,14 +1,13 @@ using System; using System.Collections.Generic; -using Dropbox.Sign.Model; using Xunit; +using Dropbox.Sign.Model; namespace Dropbox.Sign.Test { public class EventCallbackHelperTests { - private const string ApiKey = - "324e3b0840f065eb51f3fd63231d0d33daa35d4ed10d27718839e81737065782"; + private const string ApiKey = "324e3b0840f065eb51f3fd63231d0d33daa35d4ed10d27718839e81737065782"; [Fact] public void IsValidTest() @@ -27,10 +26,7 @@ public void IsValidTest() foreach (var key in account_keys) { - var requestData = TestHelper.GetJsonContents( - "EventCallbackHelper_AccountCallbacks", - key - ); + var requestData = TestHelper.GetJsonContents("EventCallbackHelper_AccountCallbacks", key); var callbackEvent = EventCallbackRequest.Init(requestData.ToString()); Assert.True(EventCallbackHelper.IsValid(ApiKey, callbackEvent)); @@ -40,21 +36,24 @@ public void IsValidTest() EventCallbackHelper.GetCallbackType(callbackEvent) ); } - - var app_keys = new List { "base", "account", "signature_request", "template" }; + + var app_keys = new List + { + "base", + "account", + "signature_request", + "template", + }; foreach (var key in app_keys) { - var requestData = TestHelper.GetJsonContents( - "EventCallbackHelper_AppCallbacks", - key - ); + var requestData = TestHelper.GetJsonContents("EventCallbackHelper_AppCallbacks", key); var callbackEvent = EventCallbackRequest.Init(requestData.ToString()); Assert.True(EventCallbackHelper.IsValid(ApiKey, callbackEvent)); Assert.False(EventCallbackHelper.IsValid(Reverse(ApiKey), callbackEvent)); Assert.Equal( - EventCallbackHelper.EVENT_TYPE_APP_CALLBACK, + EventCallbackHelper.EVENT_TYPE_APP_CALLBACK, EventCallbackHelper.GetCallbackType(callbackEvent) ); } diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs b/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs index c40ee99d7..5e9ed0285 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/MockRestClientHelper.cs @@ -7,10 +7,10 @@ using System.Text.RegularExpressions; using Dropbox.Sign.Client; using Dropbox.Sign.Model; +using RestSharp; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; -using RestSharp; using RestSharp.Serializers; using RichardSzalay.MockHttp; using FileIO = System.IO.File; @@ -19,67 +19,54 @@ namespace Dropbox.Sign.Test { public class MockRestClientHelper { - public static T CreateApi( - JObject data, + public static T CreateApi(JObject data, HttpStatusCode statusCode = HttpStatusCode.Accepted, - string contentType = "application/json" - ) + string contentType = "application/json") { var mockHttp = new MockHttpMessageHandler(); - mockHttp - .Expect("https://api.hellosign.com/*") + mockHttp.Expect("https://api.hellosign.com/*") .Respond(statusCode, contentType, JsonConvert.SerializeObject(data)); return CreateApiInternal(mockHttp); } - public static T CreateApiExpectMultiFormRequest( - S data, + public static T CreateApiExpectMultiFormRequest(S data, HttpStatusCode statusCode = HttpStatusCode.Accepted, - string contentType = "application/json" - ) + string contentType = "application/json") { var mockHttp = new MockHttpMessageHandler(); - mockHttp - .Expect("https://api.hellosign.com/*") + mockHttp.Expect("https://api.hellosign.com/*") .With(request => request.Content.GetType() == typeof(MultipartFormDataContent)) .Respond(statusCode, contentType, JsonConvert.SerializeObject(data)); return CreateApiInternal(mockHttp); } - public static T CreateApiExpectJsonRequest( - S data, + public static T CreateApiExpectJsonRequest(S data, HttpStatusCode statusCode = HttpStatusCode.Accepted, - string contentType = "application/json" - ) + string contentType = "application/json") { var mockHttp = new MockHttpMessageHandler(); - mockHttp - .Expect("https://api.hellosign.com/*") + mockHttp.Expect("https://api.hellosign.com/*") .With(request => request.Content.GetType() == typeof(StringContent)) .Respond(statusCode, contentType, JsonConvert.SerializeObject(data)); return CreateApiInternal(mockHttp); } - public static T CreateApiExpectContentContains( - S data, + public static T CreateApiExpectContentContains(S data, HttpStatusCode statusCode = HttpStatusCode.Accepted, - string contentType = "application/json", - params string[] values - ) + string contentType = "application/json", params string[] values) { var mockHttp = new MockHttpMessageHandler(); - mockHttp - .Expect("https://api.hellosign.com/*") + mockHttp.Expect("https://api.hellosign.com/*") .With(request => { var stream = request.Content.ReadAsStream(); - var streamReader = new StreamReader(stream); + var streamReader = new StreamReader( stream ); var content = streamReader.ReadToEnd(); return values.All(value => content.Contains(value)); }) @@ -93,38 +80,36 @@ private static T CreateApiInternal(MockHttpMessageHandler handler) var options = new RestClientOptions { ConfigureMessageHandler = _ => handler, - BaseUrl = new Uri("https://api.hellosign.com"), + BaseUrl = new Uri("https://api.hellosign.com") }; - var mockRestClient = new RestClient( - options, - configureSerialization: serializerConfig => - serializerConfig.UseSerializer( - () => new CustomJsonCodec(SerializerSettings, GlobalConfiguration.Instance) - ) + var mockRestClient = new RestClient(options, + configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, GlobalConfiguration.Instance)) ); - + Configuration config = new Configuration(); config.Username = "YOUR_API_KEY"; var client = new ApiClient(config.BasePath, mockRestClient); return (T)Activator.CreateInstance(typeof(T), client, client, config); } - + /// /// Specifies the settings on a object. /// These settings can be adjusted to accommodate custom serialization rules. /// - private static JsonSerializerSettings SerializerSettings { get; set; } = - new JsonSerializerSettings + private static JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - ContractResolver = new DefaultContractResolver + NamingStrategy = new CamelCaseNamingStrategy { - NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, - }, - }; + OverrideSpecifiedNames = false + } + } + }; } - + // see ApiClient::CustomJsonCodec internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer { @@ -135,8 +120,11 @@ internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, ContractResolver = new DefaultContractResolver { - NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, - }, + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } }; public CustomJsonCodec(IReadableConfiguration configuration) @@ -144,10 +132,7 @@ public CustomJsonCodec(IReadableConfiguration configuration) _configuration = configuration; } - public CustomJsonCodec( - JsonSerializerSettings serializerSettings, - IReadableConfiguration configuration - ) + public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) { _serializerSettings = serializerSettings; _configuration = configuration; @@ -201,19 +186,13 @@ internal object Deserialize(RestResponse response, Type type) var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath) ? Path.GetTempPath() : _configuration.TempFolderPath; - var regex = new Regex( - @"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$" - ); + var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); foreach (var header in response.Headers) { var match = regex.Match(header.ToString()); if (match.Success) { - string fileName = - filePath - + ClientUtils.SanitizeFilename( - match.Groups[1].Value.Replace("\"", "").Replace("'", "") - ); + string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); FileIO.WriteAllBytes(fileName, bytes); return new FileStream(fileName, FileMode.Open); } @@ -249,13 +228,9 @@ internal object Deserialize(RestResponse response, Type type) public string[] AcceptedContentTypes => ContentType.JsonAccept; - public SupportsContentType SupportsContentType => - contentType => - contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) - || contentType.Value.EndsWith( - "javascript", - StringComparison.InvariantCultureIgnoreCase - ); + public SupportsContentType SupportsContentType => contentType => + contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || + contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); public ContentType ContentType { get; set; } = ContentType.Json; diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs index bbbe26ad5..7b6bd8d4d 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Dropbox.Sign.Model; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Xunit; +using Dropbox.Sign.Model; namespace Dropbox.Sign.Test.Model { @@ -89,12 +89,10 @@ public static IEnumerable Data() { using (var r = TestHelper.ReadFileFromResource("SubFormFieldsPerDocument")) { - var payload = JsonConvert.DeserializeObject>( - r.ReadToEnd() - ); + var payload = JsonConvert.DeserializeObject>(r.ReadToEnd()); Assert.NotNull(payload); - return new List { new object[] { payload } }; + return new List {new object[] {payload}}; } } } diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/TestHelper.cs b/sdks/dotnet/src/Dropbox.Sign.Test/TestHelper.cs index 859edeae3..98c3ccb69 100644 --- a/sdks/dotnet/src/Dropbox.Sign.Test/TestHelper.cs +++ b/sdks/dotnet/src/Dropbox.Sign.Test/TestHelper.cs @@ -1,8 +1,8 @@ using System; using System.IO; +using Newtonsoft.Json; using Dropbox.Sign.Model; using JsonDiffPatchDotNet; -using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Xunit; @@ -14,7 +14,9 @@ public class TestHelper public static StreamReader ReadFileFromResource(string fileName) { - return new StreamReader(RootPath + $"/{fileName}.json"); + return new StreamReader( + RootPath + $"/{fileName}.json" + ); } public static FileStream GetFile(string fileName) @@ -27,8 +29,10 @@ public static FileStream GetFile(string fileName) ); } - public static T SerializeFromFile(string fileName, string key = "default") - where T : IOpenApiTyped + public static T SerializeFromFile( + string fileName, + string key = "default" + ) where T : IOpenApiTyped { T instance = (T)Activator.CreateInstance(typeof(T), true); @@ -68,7 +72,10 @@ public static void AssertJsonSame(string left, string right) var result = patch.ToString(); - Assert.True(result == "", result); + Assert.True( + result == "", + result + ); } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs index 9f6513c69..35d8c46f6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -36,10 +37,7 @@ public interface IAccountApiSync : IApiAccessor /// /// Index associated with the operation. /// AccountCreateResponse - AccountCreateResponse AccountCreate( - AccountCreateRequest accountCreateRequest, - int operationIndex = 0 - ); + AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, int operationIndex = 0); /// /// Create Account @@ -51,11 +49,7 @@ AccountCreateResponse AccountCreate( /// /// Index associated with the operation. /// ApiResponse of AccountCreateResponse - ApiResponse AccountCreateWithHttpInfo( - AccountCreateRequest accountCreateRequest, - int operationIndex = 0 - ); - + ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, int operationIndex = 0); /// /// Get Account /// @@ -67,11 +61,7 @@ ApiResponse AccountCreateWithHttpInfo( /// `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) /// Index associated with the operation. /// AccountGetResponse - AccountGetResponse AccountGet( - string? accountId = default(string?), - string? emailAddress = default(string?), - int operationIndex = 0 - ); + AccountGetResponse AccountGet(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0); /// /// Get Account @@ -84,12 +74,7 @@ AccountGetResponse AccountGet( /// `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) /// Index associated with the operation. /// ApiResponse of AccountGetResponse - ApiResponse AccountGetWithHttpInfo( - string? accountId = default(string?), - string? emailAddress = default(string?), - int operationIndex = 0 - ); - + ApiResponse AccountGetWithHttpInfo(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0); /// /// Update Account /// @@ -100,10 +85,7 @@ ApiResponse AccountGetWithHttpInfo( /// /// Index associated with the operation. /// AccountGetResponse - AccountGetResponse AccountUpdate( - AccountUpdateRequest accountUpdateRequest, - int operationIndex = 0 - ); + AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0); /// /// Update Account @@ -115,11 +97,7 @@ AccountGetResponse AccountUpdate( /// /// Index associated with the operation. /// ApiResponse of AccountGetResponse - ApiResponse AccountUpdateWithHttpInfo( - AccountUpdateRequest accountUpdateRequest, - int operationIndex = 0 - ); - + ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0); /// /// Verify Account /// @@ -130,10 +108,7 @@ ApiResponse AccountUpdateWithHttpInfo( /// /// Index associated with the operation. /// AccountVerifyResponse - AccountVerifyResponse AccountVerify( - AccountVerifyRequest accountVerifyRequest, - int operationIndex = 0 - ); + AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0); /// /// Verify Account @@ -145,10 +120,7 @@ AccountVerifyResponse AccountVerify( /// /// Index associated with the operation. /// ApiResponse of AccountVerifyResponse - ApiResponse AccountVerifyWithHttpInfo( - AccountVerifyRequest accountVerifyRequest, - int operationIndex = 0 - ); + ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -169,12 +141,7 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - System.Threading.Tasks.Task AccountCreateAsync( - AccountCreateRequest accountCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Account @@ -187,15 +154,7 @@ System.Threading.Tasks.Task AccountCreateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - System.Threading.Tasks.Task< - ApiResponse - > AccountCreateWithHttpInfoAsync( - AccountCreateRequest accountCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Account /// @@ -208,13 +167,7 @@ System.Threading.Tasks.Task AccountCreateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - System.Threading.Tasks.Task AccountGetAsync( - string? accountId = default(string?), - string? emailAddress = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task AccountGetAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Account @@ -228,14 +181,7 @@ System.Threading.Tasks.Task AccountGetAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync( - string? accountId = default(string?), - string? emailAddress = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update Account /// @@ -247,12 +193,7 @@ System.Threading.Tasks.Task> AccountGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - System.Threading.Tasks.Task AccountUpdateAsync( - AccountUpdateRequest accountUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update Account @@ -265,13 +206,7 @@ System.Threading.Tasks.Task AccountUpdateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync( - AccountUpdateRequest accountUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Verify Account /// @@ -283,12 +218,7 @@ System.Threading.Tasks.Task> AccountUpdateWithHt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - System.Threading.Tasks.Task AccountVerifyAsync( - AccountVerifyRequest accountVerifyRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Verify Account @@ -301,21 +231,17 @@ System.Threading.Tasks.Task AccountVerifyAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - System.Threading.Tasks.Task< - ApiResponse - > AccountVerifyWithHttpInfoAsync( - AccountVerifyRequest accountVerifyRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IAccountApi : IAccountApiSync, IAccountApiAsync { } + public interface IAccountApi : IAccountApiSync, IAccountApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -328,8 +254,9 @@ public partial class AccountApi : IAccountApi /// Initializes a new instance of the class. /// /// - public AccountApi() - : this((string)null) { } + public AccountApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -342,9 +269,7 @@ public AccountApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -356,17 +281,14 @@ public AccountApi(string basePath) /// public AccountApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -377,18 +299,11 @@ public AccountApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public AccountApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public AccountApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -430,9 +345,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -446,13 +359,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// AccountCreateResponse - public AccountCreateResponse AccountCreate( - AccountCreateRequest accountCreateRequest, - int operationIndex = 0 - ) + public AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - AccountCreateWithHttpInfo(accountCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountCreateWithHttpInfo(accountCreateRequest); return localVarResponse.Data; } @@ -463,22 +372,15 @@ public AccountCreateResponse AccountCreate( /// /// Index associated with the operation. /// ApiResponse of AccountCreateResponse - public Dropbox.Sign.Client.ApiResponse AccountCreateWithHttpInfo( - AccountCreateRequest accountCreateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, int operationIndex = 0) { // verify the required parameter 'accountCreateRequest' is set if (accountCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'accountCreateRequest' when calling AccountApi->AccountCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountCreateRequest' when calling AccountApi->AccountCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountCreateRequest.GetOpenApiTypes(); @@ -494,7 +396,9 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -507,44 +411,25 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/account/create", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/account/create", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("AccountCreate", localVarResponse); @@ -565,20 +450,9 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - public async System.Threading.Tasks.Task AccountCreateAsync( - AccountCreateRequest accountCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await AccountCreateWithHttpInfoAsync( - accountCreateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountCreateWithHttpInfoAsync(accountCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -590,24 +464,16 @@ await AccountCreateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync( - AccountCreateRequest accountCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'accountCreateRequest' is set if (accountCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'accountCreateRequest' when calling AccountApi->AccountCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountCreateRequest' when calling AccountApi->AccountCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountCreateRequest.GetOpenApiTypes(); @@ -623,7 +489,9 @@ await AccountCreateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -636,47 +504,25 @@ await AccountCreateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/account/create", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/account/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -698,14 +544,9 @@ await AccountCreateWithHttpInfoAsync( /// `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) /// Index associated with the operation. /// AccountGetResponse - public AccountGetResponse AccountGet( - string? accountId = default(string?), - string? emailAddress = default(string?), - int operationIndex = 0 - ) + public AccountGetResponse AccountGet(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - AccountGetWithHttpInfo(accountId, emailAddress); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountGetWithHttpInfo(accountId, emailAddress); return localVarResponse.Data; } @@ -717,22 +558,18 @@ public AccountGetResponse AccountGet( /// `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) /// Index associated with the operation. /// ApiResponse of AccountGetResponse - public Dropbox.Sign.Client.ApiResponse AccountGetWithHttpInfo( - string? accountId = default(string?), - string? emailAddress = default(string?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse AccountGetWithHttpInfo(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -747,19 +584,11 @@ public Dropbox.Sign.Client.ApiResponse AccountGetWithHttpInf if (accountId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); } if (emailAddress != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "email_address", - emailAddress - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); } localVarRequestOptions.Operation = "AccountApi.AccountGet"; @@ -767,39 +596,19 @@ public Dropbox.Sign.Client.ApiResponse AccountGetWithHttpInf // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/account", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/account", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("AccountGet", localVarResponse); @@ -821,22 +630,9 @@ public Dropbox.Sign.Client.ApiResponse AccountGetWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - public async System.Threading.Tasks.Task AccountGetAsync( - string? accountId = default(string?), - string? emailAddress = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task AccountGetAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await AccountGetWithHttpInfoAsync( - accountId, - emailAddress, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountGetWithHttpInfoAsync(accountId, emailAddress, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -849,24 +645,19 @@ await AccountGetWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - public async System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync( - string? accountId = default(string?), - string? emailAddress = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -881,19 +672,11 @@ await AccountGetWithHttpInfoAsync( if (accountId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); } if (emailAddress != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "email_address", - emailAddress - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); } localVarRequestOptions.Operation = "AccountApi.AccountGet"; @@ -901,42 +684,19 @@ await AccountGetWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/account", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/account", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -957,13 +717,9 @@ await AccountGetWithHttpInfoAsync( /// /// Index associated with the operation. /// AccountGetResponse - public AccountGetResponse AccountUpdate( - AccountUpdateRequest accountUpdateRequest, - int operationIndex = 0 - ) + public AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - AccountUpdateWithHttpInfo(accountUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountUpdateWithHttpInfo(accountUpdateRequest); return localVarResponse.Data; } @@ -974,22 +730,15 @@ public AccountGetResponse AccountUpdate( /// /// Index associated with the operation. /// ApiResponse of AccountGetResponse - public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttpInfo( - AccountUpdateRequest accountUpdateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0) { // verify the required parameter 'accountUpdateRequest' is set if (accountUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'accountUpdateRequest' when calling AccountApi->AccountUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountUpdateRequest' when calling AccountApi->AccountUpdate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountUpdateRequest.GetOpenApiTypes(); @@ -1005,7 +754,9 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1018,44 +769,25 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Put( - "/account", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Put("/account", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("AccountUpdate", localVarResponse); @@ -1076,20 +808,9 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - public async System.Threading.Tasks.Task AccountUpdateAsync( - AccountUpdateRequest accountUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await AccountUpdateWithHttpInfoAsync( - accountUpdateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountUpdateWithHttpInfoAsync(accountUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1101,24 +822,16 @@ await AccountUpdateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync( - AccountUpdateRequest accountUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'accountUpdateRequest' is set if (accountUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'accountUpdateRequest' when calling AccountApi->AccountUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountUpdateRequest' when calling AccountApi->AccountUpdate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountUpdateRequest.GetOpenApiTypes(); @@ -1134,7 +847,9 @@ await AccountUpdateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1147,47 +862,25 @@ await AccountUpdateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PutAsync( - "/account", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/account", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1208,13 +901,9 @@ await AccountUpdateWithHttpInfoAsync( /// /// Index associated with the operation. /// AccountVerifyResponse - public AccountVerifyResponse AccountVerify( - AccountVerifyRequest accountVerifyRequest, - int operationIndex = 0 - ) + public AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - AccountVerifyWithHttpInfo(accountVerifyRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountVerifyWithHttpInfo(accountVerifyRequest); return localVarResponse.Data; } @@ -1225,22 +914,15 @@ public AccountVerifyResponse AccountVerify( /// /// Index associated with the operation. /// ApiResponse of AccountVerifyResponse - public Dropbox.Sign.Client.ApiResponse AccountVerifyWithHttpInfo( - AccountVerifyRequest accountVerifyRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0) { // verify the required parameter 'accountVerifyRequest' is set if (accountVerifyRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'accountVerifyRequest' when calling AccountApi->AccountVerify" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountVerifyRequest' when calling AccountApi->AccountVerify"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountVerifyRequest.GetOpenApiTypes(); @@ -1256,7 +938,9 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1269,44 +953,25 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/account/verify", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/account/verify", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("AccountVerify", localVarResponse); @@ -1327,20 +992,9 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - public async System.Threading.Tasks.Task AccountVerifyAsync( - AccountVerifyRequest accountVerifyRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await AccountVerifyWithHttpInfoAsync( - accountVerifyRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountVerifyWithHttpInfoAsync(accountVerifyRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1352,24 +1006,16 @@ await AccountVerifyWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync( - AccountVerifyRequest accountVerifyRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'accountVerifyRequest' is set if (accountVerifyRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'accountVerifyRequest' when calling AccountApi->AccountVerify" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'accountVerifyRequest' when calling AccountApi->AccountVerify"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = accountVerifyRequest.GetOpenApiTypes(); @@ -1385,7 +1031,9 @@ await AccountVerifyWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1398,47 +1046,25 @@ await AccountVerifyWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/account/verify", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/account/verify", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1451,5 +1077,6 @@ await AccountVerifyWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs index f48372d96..8e5245e0f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -36,10 +37,7 @@ public interface IApiAppApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiAppGetResponse - ApiAppGetResponse ApiAppCreate( - ApiAppCreateRequest apiAppCreateRequest, - int operationIndex = 0 - ); + ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0); /// /// Create API App @@ -51,11 +49,7 @@ ApiAppGetResponse ApiAppCreate( /// /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppCreateWithHttpInfo( - ApiAppCreateRequest apiAppCreateRequest, - int operationIndex = 0 - ); - + ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0); /// /// Delete API App /// @@ -79,7 +73,6 @@ ApiResponse ApiAppCreateWithHttpInfo( /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse ApiAppDeleteWithHttpInfo(string clientId, int operationIndex = 0); - /// /// Get API App /// @@ -102,11 +95,7 @@ ApiResponse ApiAppCreateWithHttpInfo( /// The client id of the API App to retrieve. /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppGetWithHttpInfo( - string clientId, - int operationIndex = 0 - ); - + ApiResponse ApiAppGetWithHttpInfo(string clientId, int operationIndex = 0); /// /// List API Apps /// @@ -118,11 +107,7 @@ ApiResponse ApiAppGetWithHttpInfo( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiAppListResponse - ApiAppListResponse ApiAppList( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); + ApiAppListResponse ApiAppList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); /// /// List API Apps @@ -135,12 +120,7 @@ ApiAppListResponse ApiAppList( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of ApiAppListResponse - ApiResponse ApiAppListWithHttpInfo( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); - + ApiResponse ApiAppListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); /// /// Update API App /// @@ -152,11 +132,7 @@ ApiResponse ApiAppListWithHttpInfo( /// /// Index associated with the operation. /// ApiAppGetResponse - ApiAppGetResponse ApiAppUpdate( - string clientId, - ApiAppUpdateRequest apiAppUpdateRequest, - int operationIndex = 0 - ); + ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0); /// /// Update API App @@ -169,11 +145,7 @@ ApiAppGetResponse ApiAppUpdate( /// /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppUpdateWithHttpInfo( - string clientId, - ApiAppUpdateRequest apiAppUpdateRequest, - int operationIndex = 0 - ); + ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -194,12 +166,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppCreateAsync( - ApiAppCreateRequest apiAppCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create API App @@ -212,13 +179,7 @@ System.Threading.Tasks.Task ApiAppCreateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync( - ApiAppCreateRequest apiAppCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete API App /// @@ -230,12 +191,7 @@ System.Threading.Tasks.Task> ApiAppCreateWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task ApiAppDeleteAsync( - string clientId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task ApiAppDeleteAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete API App @@ -248,13 +204,7 @@ System.Threading.Tasks.Task ApiAppDeleteAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync( - string clientId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get API App /// @@ -266,12 +216,7 @@ System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppGetAsync( - string clientId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task ApiAppGetAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get API App @@ -284,13 +229,7 @@ System.Threading.Tasks.Task ApiAppGetAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync( - string clientId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List API Apps /// @@ -303,13 +242,7 @@ System.Threading.Tasks.Task> ApiAppGetWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppListResponse - System.Threading.Tasks.Task ApiAppListAsync( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task ApiAppListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List API Apps @@ -323,14 +256,7 @@ System.Threading.Tasks.Task ApiAppListAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppListResponse) - System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update API App /// @@ -343,13 +269,7 @@ System.Threading.Tasks.Task> ApiAppListWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppUpdateAsync( - string clientId, - ApiAppUpdateRequest apiAppUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update API App @@ -363,20 +283,17 @@ System.Threading.Tasks.Task ApiAppUpdateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync( - string clientId, - ApiAppUpdateRequest apiAppUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IApiAppApi : IApiAppApiSync, IApiAppApiAsync { } + public interface IApiAppApi : IApiAppApiSync, IApiAppApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -389,8 +306,9 @@ public partial class ApiAppApi : IApiAppApi /// Initializes a new instance of the class. /// /// - public ApiAppApi() - : this((string)null) { } + public ApiAppApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -403,9 +321,7 @@ public ApiAppApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -417,17 +333,14 @@ public ApiAppApi(string basePath) /// public ApiAppApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -438,18 +351,11 @@ public ApiAppApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public ApiAppApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public ApiAppApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -491,9 +397,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -507,13 +411,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// ApiAppGetResponse - public ApiAppGetResponse ApiAppCreate( - ApiAppCreateRequest apiAppCreateRequest, - int operationIndex = 0 - ) + public ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - ApiAppCreateWithHttpInfo(apiAppCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppCreateWithHttpInfo(apiAppCreateRequest); return localVarResponse.Data; } @@ -524,22 +424,15 @@ public ApiAppGetResponse ApiAppCreate( /// /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpInfo( - ApiAppCreateRequest apiAppCreateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0) { // verify the required parameter 'apiAppCreateRequest' is set if (apiAppCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'apiAppCreateRequest' when calling ApiAppApi->ApiAppCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'apiAppCreateRequest' when calling ApiAppApi->ApiAppCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = apiAppCreateRequest.GetOpenApiTypes(); @@ -555,7 +448,9 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -568,44 +463,25 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/api_app", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/api_app", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppCreate", localVarResponse); @@ -626,20 +502,9 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppCreateAsync( - ApiAppCreateRequest apiAppCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await ApiAppCreateWithHttpInfoAsync( - apiAppCreateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppCreateWithHttpInfoAsync(apiAppCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -651,24 +516,16 @@ await ApiAppCreateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync( - ApiAppCreateRequest apiAppCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'apiAppCreateRequest' is set if (apiAppCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'apiAppCreateRequest' when calling ApiAppApi->ApiAppCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'apiAppCreateRequest' when calling ApiAppApi->ApiAppCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = apiAppCreateRequest.GetOpenApiTypes(); @@ -684,7 +541,9 @@ await ApiAppCreateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -697,47 +556,25 @@ await ApiAppCreateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/api_app", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api_app", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -770,30 +607,24 @@ public void ApiAppDelete(string clientId, int operationIndex = 0) /// The client id of the API App to delete. /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo( - string clientId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string clientId, int operationIndex = 0) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppDelete" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppDelete"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -806,49 +637,26 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "client_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Delete( - "/api_app/{client_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Delete("/api_app/{client_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppDelete", localVarResponse); @@ -869,15 +677,9 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task ApiAppDeleteAsync( - string clientId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task ApiAppDeleteAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await ApiAppDeleteWithHttpInfoAsync(clientId, operationIndex, cancellationToken) - .ConfigureAwait(false); + await ApiAppDeleteWithHttpInfoAsync(clientId, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -888,32 +690,25 @@ await ApiAppDeleteWithHttpInfoAsync(clientId, operationIndex, cancellationToken) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync( - string clientId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppDelete" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppDelete"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -926,52 +721,26 @@ await ApiAppDeleteWithHttpInfoAsync(clientId, operationIndex, cancellationToken) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "client_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.DeleteAsync( - "/api_app/{client_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api_app/{client_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -994,8 +763,7 @@ await ApiAppDeleteWithHttpInfoAsync(clientId, operationIndex, cancellationToken) /// ApiAppGetResponse public ApiAppGetResponse ApiAppGet(string clientId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - ApiAppGetWithHttpInfo(clientId); + Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppGetWithHttpInfo(clientId); return localVarResponse.Data; } @@ -1006,30 +774,24 @@ public ApiAppGetResponse ApiAppGet(string clientId, int operationIndex = 0) /// The client id of the API App to retrieve. /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( - string clientId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo(string clientId, int operationIndex = 0) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1042,49 +804,26 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "client_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/api_app/{client_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/api_app/{client_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppGet", localVarResponse); @@ -1105,16 +844,9 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppGetAsync( - string clientId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task ApiAppGetAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await ApiAppGetWithHttpInfoAsync(clientId, operationIndex, cancellationToken) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppGetWithHttpInfoAsync(clientId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1126,32 +858,25 @@ await ApiAppGetWithHttpInfoAsync(clientId, operationIndex, cancellationToken) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync( - string clientId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1164,52 +889,26 @@ await ApiAppGetWithHttpInfoAsync(clientId, operationIndex, cancellationToken) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "client_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/api_app/{client_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/api_app/{client_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1231,14 +930,9 @@ await ApiAppGetWithHttpInfoAsync(clientId, operationIndex, cancellationToken) /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiAppListResponse - public ApiAppListResponse ApiAppList( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public ApiAppListResponse ApiAppList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - ApiAppListWithHttpInfo(page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppListWithHttpInfo(page, pageSize); return localVarResponse.Data; } @@ -1250,22 +944,18 @@ public ApiAppListResponse ApiAppList( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of ApiAppListResponse - public Dropbox.Sign.Client.ApiResponse ApiAppListWithHttpInfo( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse ApiAppListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1280,15 +970,11 @@ public Dropbox.Sign.Client.ApiResponse ApiAppListWithHttpInf if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "ApiAppApi.ApiAppList"; @@ -1296,39 +982,19 @@ public Dropbox.Sign.Client.ApiResponse ApiAppListWithHttpInf // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/api_app/list", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/api_app/list", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppList", localVarResponse); @@ -1350,17 +1016,9 @@ public Dropbox.Sign.Client.ApiResponse ApiAppListWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppListResponse - public async System.Threading.Tasks.Task ApiAppListAsync( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task ApiAppListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await ApiAppListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1373,24 +1031,19 @@ await ApiAppListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationTo /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppListResponse) - public async System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1405,15 +1058,11 @@ await ApiAppListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationTo if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "ApiAppApi.ApiAppList"; @@ -1421,42 +1070,19 @@ await ApiAppListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationTo // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/api_app/list", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/api_app/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1478,14 +1104,9 @@ await ApiAppListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationTo /// /// Index associated with the operation. /// ApiAppGetResponse - public ApiAppGetResponse ApiAppUpdate( - string clientId, - ApiAppUpdateRequest apiAppUpdateRequest, - int operationIndex = 0 - ) + public ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest); return localVarResponse.Data; } @@ -1497,32 +1118,21 @@ public ApiAppGetResponse ApiAppUpdate( /// /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpInfo( - string clientId, - ApiAppUpdateRequest apiAppUpdateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppUpdate"); } // verify the required parameter 'apiAppUpdateRequest' is set if (apiAppUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'apiAppUpdateRequest' when calling ApiAppApi->ApiAppUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'apiAppUpdateRequest' when calling ApiAppApi->ApiAppUpdate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = apiAppUpdateRequest.GetOpenApiTypes(); @@ -1538,7 +1148,9 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1551,49 +1163,26 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "client_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Put( - "/api_app/{client_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Put("/api_app/{client_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ApiAppUpdate", localVarResponse); @@ -1615,22 +1204,9 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppUpdateAsync( - string clientId, - ApiAppUpdateRequest apiAppUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await ApiAppUpdateWithHttpInfoAsync( - clientId, - apiAppUpdateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppUpdateWithHttpInfoAsync(clientId, apiAppUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1643,34 +1219,22 @@ await ApiAppUpdateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync( - string clientId, - ApiAppUpdateRequest apiAppUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'clientId' is set if (clientId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'clientId' when calling ApiAppApi->ApiAppUpdate"); } // verify the required parameter 'apiAppUpdateRequest' is set if (apiAppUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'apiAppUpdateRequest' when calling ApiAppApi->ApiAppUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'apiAppUpdateRequest' when calling ApiAppApi->ApiAppUpdate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = apiAppUpdateRequest.GetOpenApiTypes(); @@ -1686,7 +1250,9 @@ await ApiAppUpdateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1699,52 +1265,26 @@ await ApiAppUpdateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "client_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PutAsync( - "/api_app/{client_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/api_app/{client_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1757,5 +1297,6 @@ await ApiAppUpdateWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs index bacdc6046..fc47749b5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -38,12 +39,7 @@ public interface IBulkSendJobApiSync : IApiAccessor /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// BulkSendJobGetResponse - BulkSendJobGetResponse BulkSendJobGet( - string bulkSendJobId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); + BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); /// /// Get Bulk Send Job @@ -57,13 +53,7 @@ BulkSendJobGetResponse BulkSendJobGet( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of BulkSendJobGetResponse - ApiResponse BulkSendJobGetWithHttpInfo( - string bulkSendJobId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); - + ApiResponse BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); /// /// List Bulk Send Jobs /// @@ -75,11 +65,7 @@ ApiResponse BulkSendJobGetWithHttpInfo( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// BulkSendJobListResponse - BulkSendJobListResponse BulkSendJobList( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); + BulkSendJobListResponse BulkSendJobList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); /// /// List Bulk Send Jobs @@ -92,11 +78,7 @@ BulkSendJobListResponse BulkSendJobList( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of BulkSendJobListResponse - ApiResponse BulkSendJobListWithHttpInfo( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); + ApiResponse BulkSendJobListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); #endregion Synchronous Operations } @@ -119,14 +101,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobGetResponse - System.Threading.Tasks.Task BulkSendJobGetAsync( - string bulkSendJobId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Bulk Send Job @@ -141,17 +116,7 @@ System.Threading.Tasks.Task BulkSendJobGetAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > BulkSendJobGetWithHttpInfoAsync( - string bulkSendJobId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Bulk Send Jobs /// @@ -164,13 +129,7 @@ System.Threading.Tasks.Task BulkSendJobGetAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobListResponse - System.Threading.Tasks.Task BulkSendJobListAsync( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Bulk Send Jobs @@ -184,22 +143,17 @@ System.Threading.Tasks.Task BulkSendJobListAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobListResponse) - System.Threading.Tasks.Task< - ApiResponse - > BulkSendJobListWithHttpInfoAsync( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IBulkSendJobApi : IBulkSendJobApiSync, IBulkSendJobApiAsync { } + public interface IBulkSendJobApi : IBulkSendJobApiSync, IBulkSendJobApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -212,8 +166,9 @@ public partial class BulkSendJobApi : IBulkSendJobApi /// Initializes a new instance of the class. /// /// - public BulkSendJobApi() - : this((string)null) { } + public BulkSendJobApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -226,9 +181,7 @@ public BulkSendJobApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -240,17 +193,14 @@ public BulkSendJobApi(string basePath) /// public BulkSendJobApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -261,18 +211,11 @@ public BulkSendJobApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public BulkSendJobApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public BulkSendJobApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -314,9 +257,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -332,15 +273,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// BulkSendJobGetResponse - public BulkSendJobGetResponse BulkSendJobGet( - string bulkSendJobId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - BulkSendJobGetWithHttpInfo(bulkSendJobId, page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = BulkSendJobGetWithHttpInfo(bulkSendJobId, page, pageSize); return localVarResponse.Data; } @@ -353,32 +288,24 @@ public BulkSendJobGetResponse BulkSendJobGet( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of BulkSendJobGetResponse - public Dropbox.Sign.Client.ApiResponse BulkSendJobGetWithHttpInfo( - string bulkSendJobId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { // verify the required parameter 'bulkSendJobId' is set if (bulkSendJobId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'bulkSendJobId' when calling BulkSendJobApi->BulkSendJobGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'bulkSendJobId' when calling BulkSendJobApi->BulkSendJobGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -391,21 +318,14 @@ public Dropbox.Sign.Client.ApiResponse BulkSendJobGetWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "bulk_send_job_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(bulkSendJobId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("bulk_send_job_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(bulkSendJobId)); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobGet"; @@ -413,39 +333,19 @@ public Dropbox.Sign.Client.ApiResponse BulkSendJobGetWit // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/bulk_send_job/{bulk_send_job_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/bulk_send_job/{bulk_send_job_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("BulkSendJobGet", localVarResponse); @@ -468,24 +368,9 @@ public Dropbox.Sign.Client.ApiResponse BulkSendJobGetWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobGetResponse - public async System.Threading.Tasks.Task BulkSendJobGetAsync( - string bulkSendJobId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await BulkSendJobGetWithHttpInfoAsync( - bulkSendJobId, - page, - pageSize, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await BulkSendJobGetWithHttpInfoAsync(bulkSendJobId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -499,34 +384,25 @@ await BulkSendJobGetWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobGetResponse) - public async System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync( - string bulkSendJobId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'bulkSendJobId' is set if (bulkSendJobId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'bulkSendJobId' when calling BulkSendJobApi->BulkSendJobGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'bulkSendJobId' when calling BulkSendJobApi->BulkSendJobGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -539,21 +415,14 @@ await BulkSendJobGetWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "bulk_send_job_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(bulkSendJobId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("bulk_send_job_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(bulkSendJobId)); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobGet"; @@ -561,42 +430,19 @@ await BulkSendJobGetWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/bulk_send_job/{bulk_send_job_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/bulk_send_job/{bulk_send_job_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -618,14 +464,9 @@ await BulkSendJobGetWithHttpInfoAsync( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// BulkSendJobListResponse - public BulkSendJobListResponse BulkSendJobList( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public BulkSendJobListResponse BulkSendJobList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - BulkSendJobListWithHttpInfo(page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = BulkSendJobListWithHttpInfo(page, pageSize); return localVarResponse.Data; } @@ -637,22 +478,18 @@ public BulkSendJobListResponse BulkSendJobList( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of BulkSendJobListResponse - public Dropbox.Sign.Client.ApiResponse BulkSendJobListWithHttpInfo( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse BulkSendJobListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -667,15 +504,11 @@ public Dropbox.Sign.Client.ApiResponse BulkSendJobListW if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobList"; @@ -683,39 +516,19 @@ public Dropbox.Sign.Client.ApiResponse BulkSendJobListW // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/bulk_send_job/list", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/bulk_send_job/list", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("BulkSendJobList", localVarResponse); @@ -737,22 +550,9 @@ public Dropbox.Sign.Client.ApiResponse BulkSendJobListW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobListResponse - public async System.Threading.Tasks.Task BulkSendJobListAsync( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await BulkSendJobListWithHttpInfoAsync( - page, - pageSize, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await BulkSendJobListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -765,24 +565,19 @@ await BulkSendJobListWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobListResponse) - public async System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync( - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -797,15 +592,11 @@ await BulkSendJobListWithHttpInfoAsync( if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "BulkSendJobApi.BulkSendJobList"; @@ -813,42 +604,19 @@ await BulkSendJobListWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/bulk_send_job/list", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/bulk_send_job/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -861,5 +629,6 @@ await BulkSendJobListWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs index b022cc64b..244202a30 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,11 +38,7 @@ public interface IEmbeddedApiSync : IApiAccessor /// /// Index associated with the operation. /// EmbeddedEditUrlResponse - EmbeddedEditUrlResponse EmbeddedEditUrl( - string templateId, - EmbeddedEditUrlRequest embeddedEditUrlRequest, - int operationIndex = 0 - ); + EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0); /// /// Get Embedded Template Edit URL @@ -54,12 +51,7 @@ EmbeddedEditUrlResponse EmbeddedEditUrl( /// /// Index associated with the operation. /// ApiResponse of EmbeddedEditUrlResponse - ApiResponse EmbeddedEditUrlWithHttpInfo( - string templateId, - EmbeddedEditUrlRequest embeddedEditUrlRequest, - int operationIndex = 0 - ); - + ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0); /// /// Get Embedded Sign URL /// @@ -82,10 +74,7 @@ ApiResponse EmbeddedEditUrlWithHttpInfo( /// The id of the signature to get a signature url for. /// Index associated with the operation. /// ApiResponse of EmbeddedSignUrlResponse - ApiResponse EmbeddedSignUrlWithHttpInfo( - string signatureId, - int operationIndex = 0 - ); + ApiResponse EmbeddedSignUrlWithHttpInfo(string signatureId, int operationIndex = 0); #endregion Synchronous Operations } @@ -107,13 +96,7 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - System.Threading.Tasks.Task EmbeddedEditUrlAsync( - string templateId, - EmbeddedEditUrlRequest embeddedEditUrlRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Embedded Template Edit URL @@ -127,16 +110,7 @@ System.Threading.Tasks.Task EmbeddedEditUrlAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - System.Threading.Tasks.Task< - ApiResponse - > EmbeddedEditUrlWithHttpInfoAsync( - string templateId, - EmbeddedEditUrlRequest embeddedEditUrlRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Embedded Sign URL /// @@ -148,12 +122,7 @@ System.Threading.Tasks.Task EmbeddedEditUrlAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedSignUrlResponse - System.Threading.Tasks.Task EmbeddedSignUrlAsync( - string signatureId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task EmbeddedSignUrlAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Embedded Sign URL @@ -166,21 +135,17 @@ System.Threading.Tasks.Task EmbeddedSignUrlAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedSignUrlResponse) - System.Threading.Tasks.Task< - ApiResponse - > EmbeddedSignUrlWithHttpInfoAsync( - string signatureId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IEmbeddedApi : IEmbeddedApiSync, IEmbeddedApiAsync { } + public interface IEmbeddedApi : IEmbeddedApiSync, IEmbeddedApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -193,8 +158,9 @@ public partial class EmbeddedApi : IEmbeddedApi /// Initializes a new instance of the class. /// /// - public EmbeddedApi() - : this((string)null) { } + public EmbeddedApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -207,9 +173,7 @@ public EmbeddedApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -221,17 +185,14 @@ public EmbeddedApi(string basePath) /// public EmbeddedApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -242,18 +203,11 @@ public EmbeddedApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public EmbeddedApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public EmbeddedApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -295,9 +249,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -312,14 +264,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// EmbeddedEditUrlResponse - public EmbeddedEditUrlResponse EmbeddedEditUrl( - string templateId, - EmbeddedEditUrlRequest embeddedEditUrlRequest, - int operationIndex = 0 - ) + public EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest); return localVarResponse.Data; } @@ -331,32 +278,21 @@ public EmbeddedEditUrlResponse EmbeddedEditUrl( /// /// Index associated with the operation. /// ApiResponse of EmbeddedEditUrlResponse - public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlWithHttpInfo( - string templateId, - EmbeddedEditUrlRequest embeddedEditUrlRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling EmbeddedApi->EmbeddedEditUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling EmbeddedApi->EmbeddedEditUrl"); } // verify the required parameter 'embeddedEditUrlRequest' is set if (embeddedEditUrlRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'embeddedEditUrlRequest' when calling EmbeddedApi->EmbeddedEditUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'embeddedEditUrlRequest' when calling EmbeddedApi->EmbeddedEditUrl"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = embeddedEditUrlRequest.GetOpenApiTypes(); @@ -372,7 +308,9 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -385,49 +323,26 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/embedded/edit_url/{template_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/embedded/edit_url/{template_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("EmbeddedEditUrl", localVarResponse); @@ -449,22 +364,9 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - public async System.Threading.Tasks.Task EmbeddedEditUrlAsync( - string templateId, - EmbeddedEditUrlRequest embeddedEditUrlRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await EmbeddedEditUrlWithHttpInfoAsync( - templateId, - embeddedEditUrlRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedEditUrlWithHttpInfoAsync(templateId, embeddedEditUrlRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -477,34 +379,22 @@ await EmbeddedEditUrlWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync( - string templateId, - EmbeddedEditUrlRequest embeddedEditUrlRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling EmbeddedApi->EmbeddedEditUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling EmbeddedApi->EmbeddedEditUrl"); } // verify the required parameter 'embeddedEditUrlRequest' is set if (embeddedEditUrlRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'embeddedEditUrlRequest' when calling EmbeddedApi->EmbeddedEditUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'embeddedEditUrlRequest' when calling EmbeddedApi->EmbeddedEditUrl"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = embeddedEditUrlRequest.GetOpenApiTypes(); @@ -520,7 +410,9 @@ await EmbeddedEditUrlWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -533,52 +425,26 @@ await EmbeddedEditUrlWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/embedded/edit_url/{template_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/embedded/edit_url/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -601,8 +467,7 @@ await EmbeddedEditUrlWithHttpInfoAsync( /// EmbeddedSignUrlResponse public EmbeddedSignUrlResponse EmbeddedSignUrl(string signatureId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - EmbeddedSignUrlWithHttpInfo(signatureId); + Dropbox.Sign.Client.ApiResponse localVarResponse = EmbeddedSignUrlWithHttpInfo(signatureId); return localVarResponse.Data; } @@ -613,30 +478,24 @@ public EmbeddedSignUrlResponse EmbeddedSignUrl(string signatureId, int operation /// The id of the signature to get a signature url for. /// Index associated with the operation. /// ApiResponse of EmbeddedSignUrlResponse - public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlWithHttpInfo( - string signatureId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlWithHttpInfo(string signatureId, int operationIndex = 0) { // verify the required parameter 'signatureId' is set if (signatureId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureId' when calling EmbeddedApi->EmbeddedSignUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureId' when calling EmbeddedApi->EmbeddedSignUrl"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -649,49 +508,26 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId)); // path parameter localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedSignUrl"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/embedded/sign_url/{signature_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/embedded/sign_url/{signature_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("EmbeddedSignUrl", localVarResponse); @@ -712,20 +548,9 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedSignUrlResponse - public async System.Threading.Tasks.Task EmbeddedSignUrlAsync( - string signatureId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task EmbeddedSignUrlAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await EmbeddedSignUrlWithHttpInfoAsync( - signatureId, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedSignUrlWithHttpInfoAsync(signatureId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -737,32 +562,25 @@ await EmbeddedSignUrlWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedSignUrlResponse) - public async System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync( - string signatureId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureId' is set if (signatureId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureId' when calling EmbeddedApi->EmbeddedSignUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureId' when calling EmbeddedApi->EmbeddedSignUrl"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -775,52 +593,26 @@ await EmbeddedSignUrlWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureId)); // path parameter localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedSignUrl"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/embedded/sign_url/{signature_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/embedded/sign_url/{signature_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -833,5 +625,6 @@ await EmbeddedSignUrlWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs index 04d79719d..d1a274cd2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -36,10 +37,7 @@ public interface IFaxLineApiSync : IApiAccessor /// /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineAddUser( - FaxLineAddUserRequest faxLineAddUserRequest, - int operationIndex = 0 - ); + FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0); /// /// Add Fax Line User @@ -51,11 +49,7 @@ FaxLineResponse FaxLineAddUser( /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineAddUserWithHttpInfo( - FaxLineAddUserRequest faxLineAddUserRequest, - int operationIndex = 0 - ); - + ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0); /// /// Get Available Fax Line Area Codes /// @@ -69,13 +63,7 @@ ApiResponse FaxLineAddUserWithHttpInfo( /// Filter area codes by city. (optional) /// Index associated with the operation. /// FaxLineAreaCodeGetResponse - FaxLineAreaCodeGetResponse FaxLineAreaCodeGet( - string country, - string? state = default(string?), - string? province = default(string?), - string? city = default(string?), - int operationIndex = 0 - ); + FaxLineAreaCodeGetResponse FaxLineAreaCodeGet(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0); /// /// Get Available Fax Line Area Codes @@ -90,14 +78,7 @@ FaxLineAreaCodeGetResponse FaxLineAreaCodeGet( /// Filter area codes by city. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineAreaCodeGetResponse - ApiResponse FaxLineAreaCodeGetWithHttpInfo( - string country, - string? state = default(string?), - string? province = default(string?), - string? city = default(string?), - int operationIndex = 0 - ); - + ApiResponse FaxLineAreaCodeGetWithHttpInfo(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0); /// /// Purchase Fax Line /// @@ -108,10 +89,7 @@ ApiResponse FaxLineAreaCodeGetWithHttpInfo( /// /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineCreate( - FaxLineCreateRequest faxLineCreateRequest, - int operationIndex = 0 - ); + FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0); /// /// Purchase Fax Line @@ -123,11 +101,7 @@ FaxLineResponse FaxLineCreate( /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineCreateWithHttpInfo( - FaxLineCreateRequest faxLineCreateRequest, - int operationIndex = 0 - ); - + ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0); /// /// Delete Fax Line /// @@ -150,11 +124,7 @@ ApiResponse FaxLineCreateWithHttpInfo( /// /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse FaxLineDeleteWithHttpInfo( - FaxLineDeleteRequest faxLineDeleteRequest, - int operationIndex = 0 - ); - + ApiResponse FaxLineDeleteWithHttpInfo(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0); /// /// Get Fax Line /// @@ -178,7 +148,6 @@ ApiResponse FaxLineDeleteWithHttpInfo( /// Index associated with the operation. /// ApiResponse of FaxLineResponse ApiResponse FaxLineGetWithHttpInfo(string number, int operationIndex = 0); - /// /// List Fax Lines /// @@ -192,13 +161,7 @@ ApiResponse FaxLineDeleteWithHttpInfo( /// Show team lines (optional) /// Index associated with the operation. /// FaxLineListResponse - FaxLineListResponse FaxLineList( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - bool? showTeamLines = default(bool?), - int operationIndex = 0 - ); + FaxLineListResponse FaxLineList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0); /// /// List Fax Lines @@ -213,14 +176,7 @@ FaxLineListResponse FaxLineList( /// Show team lines (optional) /// Index associated with the operation. /// ApiResponse of FaxLineListResponse - ApiResponse FaxLineListWithHttpInfo( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - bool? showTeamLines = default(bool?), - int operationIndex = 0 - ); - + ApiResponse FaxLineListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0); /// /// Remove Fax Line Access /// @@ -231,10 +187,7 @@ ApiResponse FaxLineListWithHttpInfo( /// /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineRemoveUser( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, - int operationIndex = 0 - ); + FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0); /// /// Remove Fax Line Access @@ -246,10 +199,7 @@ FaxLineResponse FaxLineRemoveUser( /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineRemoveUserWithHttpInfo( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, - int operationIndex = 0 - ); + ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -270,12 +220,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineAddUserAsync( - FaxLineAddUserRequest faxLineAddUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Add Fax Line User @@ -288,13 +233,7 @@ System.Threading.Tasks.Task FaxLineAddUserAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync( - FaxLineAddUserRequest faxLineAddUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Available Fax Line Area Codes /// @@ -309,15 +248,7 @@ System.Threading.Tasks.Task> FaxLineAddUserWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineAreaCodeGetResponse - System.Threading.Tasks.Task FaxLineAreaCodeGetAsync( - string country, - string? state = default(string?), - string? province = default(string?), - string? city = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task FaxLineAreaCodeGetAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Available Fax Line Area Codes @@ -333,18 +264,7 @@ System.Threading.Tasks.Task FaxLineAreaCodeGetAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineAreaCodeGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > FaxLineAreaCodeGetWithHttpInfoAsync( - string country, - string? state = default(string?), - string? province = default(string?), - string? city = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Purchase Fax Line /// @@ -356,12 +276,7 @@ System.Threading.Tasks.Task FaxLineAreaCodeGetAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineCreateAsync( - FaxLineCreateRequest faxLineCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Purchase Fax Line @@ -374,13 +289,7 @@ System.Threading.Tasks.Task FaxLineCreateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync( - FaxLineCreateRequest faxLineCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete Fax Line /// @@ -392,12 +301,7 @@ System.Threading.Tasks.Task> FaxLineCreateWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task FaxLineDeleteAsync( - FaxLineDeleteRequest faxLineDeleteRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task FaxLineDeleteAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete Fax Line @@ -410,13 +314,7 @@ System.Threading.Tasks.Task FaxLineDeleteAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync( - FaxLineDeleteRequest faxLineDeleteRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Fax Line /// @@ -428,12 +326,7 @@ System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineGetAsync( - string number, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task FaxLineGetAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Fax Line @@ -446,13 +339,7 @@ System.Threading.Tasks.Task FaxLineGetAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync( - string number, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Fax Lines /// @@ -467,15 +354,7 @@ System.Threading.Tasks.Task> FaxLineGetWithHttpInfo /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineListResponse - System.Threading.Tasks.Task FaxLineListAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - bool? showTeamLines = default(bool?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task FaxLineListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Fax Lines @@ -491,16 +370,7 @@ System.Threading.Tasks.Task FaxLineListAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineListResponse) - System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - bool? showTeamLines = default(bool?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Remove Fax Line Access /// @@ -512,12 +382,7 @@ System.Threading.Tasks.Task> FaxLineListWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineRemoveUserAsync( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Remove Fax Line Access @@ -530,21 +395,17 @@ System.Threading.Tasks.Task FaxLineRemoveUserAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task< - ApiResponse - > FaxLineRemoveUserWithHttpInfoAsync( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IFaxLineApi : IFaxLineApiSync, IFaxLineApiAsync { } + public interface IFaxLineApi : IFaxLineApiSync, IFaxLineApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -557,8 +418,9 @@ public partial class FaxLineApi : IFaxLineApi /// Initializes a new instance of the class. /// /// - public FaxLineApi() - : this((string)null) { } + public FaxLineApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -571,9 +433,7 @@ public FaxLineApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -585,17 +445,14 @@ public FaxLineApi(string basePath) /// public FaxLineApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -606,18 +463,11 @@ public FaxLineApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public FaxLineApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public FaxLineApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -659,9 +509,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -675,13 +523,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineAddUser( - FaxLineAddUserRequest faxLineAddUserRequest, - int operationIndex = 0 - ) + public FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - FaxLineAddUserWithHttpInfo(faxLineAddUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineAddUserWithHttpInfo(faxLineAddUserRequest); return localVarResponse.Data; } @@ -692,22 +536,15 @@ public FaxLineResponse FaxLineAddUser( /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpInfo( - FaxLineAddUserRequest faxLineAddUserRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0) { // verify the required parameter 'faxLineAddUserRequest' is set if (faxLineAddUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'faxLineAddUserRequest' when calling FaxLineApi->FaxLineAddUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineAddUserRequest' when calling FaxLineApi->FaxLineAddUser"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineAddUserRequest.GetOpenApiTypes(); @@ -723,7 +560,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -736,32 +575,19 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Put( - "/fax_line/add_user", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Put("/fax_line/add_user", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineAddUser", localVarResponse); @@ -782,20 +608,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineAddUserAsync( - FaxLineAddUserRequest faxLineAddUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await FaxLineAddUserWithHttpInfoAsync( - faxLineAddUserRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAddUserWithHttpInfoAsync(faxLineAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -807,24 +622,16 @@ await FaxLineAddUserWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync( - FaxLineAddUserRequest faxLineAddUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'faxLineAddUserRequest' is set if (faxLineAddUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'faxLineAddUserRequest' when calling FaxLineApi->FaxLineAddUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineAddUserRequest' when calling FaxLineApi->FaxLineAddUser"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineAddUserRequest.GetOpenApiTypes(); @@ -840,7 +647,9 @@ await FaxLineAddUserWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -853,35 +662,19 @@ await FaxLineAddUserWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PutAsync( - "/fax_line/add_user", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/fax_line/add_user", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -905,16 +698,9 @@ await FaxLineAddUserWithHttpInfoAsync( /// Filter area codes by city. (optional) /// Index associated with the operation. /// FaxLineAreaCodeGetResponse - public FaxLineAreaCodeGetResponse FaxLineAreaCodeGet( - string country, - string? state = default(string?), - string? province = default(string?), - string? city = default(string?), - int operationIndex = 0 - ) + public FaxLineAreaCodeGetResponse FaxLineAreaCodeGet(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - FaxLineAreaCodeGetWithHttpInfo(country, state, province, city); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineAreaCodeGetWithHttpInfo(country, state, province, city); return localVarResponse.Data; } @@ -928,33 +714,24 @@ public FaxLineAreaCodeGetResponse FaxLineAreaCodeGet( /// Filter area codes by city. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineAreaCodeGetResponse - public Dropbox.Sign.Client.ApiResponse FaxLineAreaCodeGetWithHttpInfo( - string country, - string? state = default(string?), - string? province = default(string?), - string? city = default(string?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse FaxLineAreaCodeGetWithHttpInfo(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0) { // verify the required parameter 'country' is set if (country == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'country' when calling FaxLineApi->FaxLineAreaCodeGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'country' when calling FaxLineApi->FaxLineAreaCodeGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -967,26 +744,18 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAreaCo localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "country", country) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "country", country)); if (state != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "state", state) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "state", state)); } if (province != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "province", province) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "province", province)); } if (city != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city)); } localVarRequestOptions.Operation = "FaxLineApi.FaxLineAreaCodeGet"; @@ -994,33 +763,16 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAreaCo // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/fax_line/area_codes", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/fax_line/area_codes", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "FaxLineAreaCodeGet", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("FaxLineAreaCodeGet", localVarResponse); if (_exception != null) { throw _exception; @@ -1041,26 +793,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAreaCo /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineAreaCodeGetResponse - public async System.Threading.Tasks.Task FaxLineAreaCodeGetAsync( - string country, - string? state = default(string?), - string? province = default(string?), - string? city = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task FaxLineAreaCodeGetAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await FaxLineAreaCodeGetWithHttpInfoAsync( - country, - state, - province, - city, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAreaCodeGetWithHttpInfoAsync(country, state, province, city, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1075,35 +810,25 @@ await FaxLineAreaCodeGetWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineAreaCodeGetResponse) - public async System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync( - string country, - string? state = default(string?), - string? province = default(string?), - string? city = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'country' is set if (country == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'country' when calling FaxLineApi->FaxLineAreaCodeGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'country' when calling FaxLineApi->FaxLineAreaCodeGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1116,26 +841,18 @@ await FaxLineAreaCodeGetWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "country", country) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "country", country)); if (state != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "state", state) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "state", state)); } if (province != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "province", province) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "province", province)); } if (city != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "city", city)); } localVarRequestOptions.Operation = "FaxLineApi.FaxLineAreaCodeGet"; @@ -1143,37 +860,17 @@ await FaxLineAreaCodeGetWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/fax_line/area_codes", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/fax_line/area_codes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "FaxLineAreaCodeGet", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("FaxLineAreaCodeGet", localVarResponse); if (_exception != null) { throw _exception; @@ -1190,13 +887,9 @@ await FaxLineAreaCodeGetWithHttpInfoAsync( /// /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineCreate( - FaxLineCreateRequest faxLineCreateRequest, - int operationIndex = 0 - ) + public FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - FaxLineCreateWithHttpInfo(faxLineCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineCreateWithHttpInfo(faxLineCreateRequest); return localVarResponse.Data; } @@ -1207,22 +900,15 @@ public FaxLineResponse FaxLineCreate( /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInfo( - FaxLineCreateRequest faxLineCreateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0) { // verify the required parameter 'faxLineCreateRequest' is set if (faxLineCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'faxLineCreateRequest' when calling FaxLineApi->FaxLineCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineCreateRequest' when calling FaxLineApi->FaxLineCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineCreateRequest.GetOpenApiTypes(); @@ -1238,7 +924,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1251,32 +939,19 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/fax_line/create", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/fax_line/create", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineCreate", localVarResponse); @@ -1297,20 +972,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineCreateAsync( - FaxLineCreateRequest faxLineCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await FaxLineCreateWithHttpInfoAsync( - faxLineCreateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineCreateWithHttpInfoAsync(faxLineCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1322,24 +986,16 @@ await FaxLineCreateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync( - FaxLineCreateRequest faxLineCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'faxLineCreateRequest' is set if (faxLineCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'faxLineCreateRequest' when calling FaxLineApi->FaxLineCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineCreateRequest' when calling FaxLineApi->FaxLineCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineCreateRequest.GetOpenApiTypes(); @@ -1355,7 +1011,9 @@ await FaxLineCreateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1368,35 +1026,19 @@ await FaxLineCreateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/fax_line/create", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fax_line/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1429,22 +1071,15 @@ public void FaxLineDelete(FaxLineDeleteRequest faxLineDeleteRequest, int operati /// /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo( - FaxLineDeleteRequest faxLineDeleteRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0) { // verify the required parameter 'faxLineDeleteRequest' is set if (faxLineDeleteRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'faxLineDeleteRequest' when calling FaxLineApi->FaxLineDelete" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineDeleteRequest' when calling FaxLineApi->FaxLineDelete"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineDeleteRequest.GetOpenApiTypes(); @@ -1460,7 +1095,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1473,32 +1110,19 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Delete( - "/fax_line", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Delete("/fax_line", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineDelete", localVarResponse); @@ -1519,19 +1143,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task FaxLineDeleteAsync( - FaxLineDeleteRequest faxLineDeleteRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task FaxLineDeleteAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await FaxLineDeleteWithHttpInfoAsync( - faxLineDeleteRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + await FaxLineDeleteWithHttpInfoAsync(faxLineDeleteRequest, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -1542,24 +1156,16 @@ await FaxLineDeleteWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync( - FaxLineDeleteRequest faxLineDeleteRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'faxLineDeleteRequest' is set if (faxLineDeleteRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'faxLineDeleteRequest' when calling FaxLineApi->FaxLineDelete" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineDeleteRequest' when calling FaxLineApi->FaxLineDelete"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineDeleteRequest.GetOpenApiTypes(); @@ -1575,7 +1181,9 @@ await FaxLineDeleteWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1588,35 +1196,19 @@ await FaxLineDeleteWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.DeleteAsync( - "/fax_line", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/fax_line", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1639,8 +1231,7 @@ await FaxLineDeleteWithHttpInfoAsync( /// FaxLineResponse public FaxLineResponse FaxLineGet(string number, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - FaxLineGetWithHttpInfo(number); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineGetWithHttpInfo(number); return localVarResponse.Data; } @@ -1651,30 +1242,24 @@ public FaxLineResponse FaxLineGet(string number, int operationIndex = 0) /// The Fax Line number. /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo( - string number, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(string number, int operationIndex = 0) { // verify the required parameter 'number' is set if (number == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'number' when calling FaxLineApi->FaxLineGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'number' when calling FaxLineApi->FaxLineGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1687,36 +1272,20 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number)); localVarRequestOptions.Operation = "FaxLineApi.FaxLineGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/fax_line", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/fax_line", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineGet", localVarResponse); @@ -1737,16 +1306,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineGetAsync( - string number, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task FaxLineGetAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await FaxLineGetWithHttpInfoAsync(number, operationIndex, cancellationToken) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineGetWithHttpInfoAsync(number, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1758,32 +1320,25 @@ await FaxLineGetWithHttpInfoAsync(number, operationIndex, cancellationToken) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync( - string number, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'number' is set if (number == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'number' when calling FaxLineApi->FaxLineGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'number' when calling FaxLineApi->FaxLineGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1796,39 +1351,20 @@ await FaxLineGetWithHttpInfoAsync(number, operationIndex, cancellationToken) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "number", number)); localVarRequestOptions.Operation = "FaxLineApi.FaxLineGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/fax_line", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/fax_line", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1852,16 +1388,9 @@ await FaxLineGetWithHttpInfoAsync(number, operationIndex, cancellationToken) /// Show team lines (optional) /// Index associated with the operation. /// FaxLineListResponse - public FaxLineListResponse FaxLineList( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - bool? showTeamLines = default(bool?), - int operationIndex = 0 - ) + public FaxLineListResponse FaxLineList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - FaxLineListWithHttpInfo(accountId, page, pageSize, showTeamLines); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineListWithHttpInfo(accountId, page, pageSize, showTeamLines); return localVarResponse.Data; } @@ -1875,24 +1404,18 @@ public FaxLineListResponse FaxLineList( /// Show team lines (optional) /// Index associated with the operation. /// ApiResponse of FaxLineListResponse - public Dropbox.Sign.Client.ApiResponse FaxLineListWithHttpInfo( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - bool? showTeamLines = default(bool?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse FaxLineListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1907,31 +1430,19 @@ public Dropbox.Sign.Client.ApiResponse FaxLineListWithHttpI if (accountId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); } if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } if (showTeamLines != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "show_team_lines", - showTeamLines - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "show_team_lines", showTeamLines)); } localVarRequestOptions.Operation = "FaxLineApi.FaxLineList"; @@ -1939,27 +1450,13 @@ public Dropbox.Sign.Client.ApiResponse FaxLineListWithHttpI // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/fax_line/list", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/fax_line/list", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineList", localVarResponse); @@ -1983,26 +1480,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineListWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineListResponse - public async System.Threading.Tasks.Task FaxLineListAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - bool? showTeamLines = default(bool?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task FaxLineListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await FaxLineListWithHttpInfoAsync( - accountId, - page, - pageSize, - showTeamLines, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineListWithHttpInfoAsync(accountId, page, pageSize, showTeamLines, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2017,26 +1497,19 @@ await FaxLineListWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineListResponse) - public async System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - bool? showTeamLines = default(bool?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2051,31 +1524,19 @@ await FaxLineListWithHttpInfoAsync( if (accountId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); } if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } if (showTeamLines != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "show_team_lines", - showTeamLines - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "show_team_lines", showTeamLines)); } localVarRequestOptions.Operation = "FaxLineApi.FaxLineList"; @@ -2083,30 +1544,13 @@ await FaxLineListWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/fax_line/list", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/fax_line/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2127,13 +1571,9 @@ await FaxLineListWithHttpInfoAsync( /// /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineRemoveUser( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, - int operationIndex = 0 - ) + public FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest); return localVarResponse.Data; } @@ -2144,22 +1584,15 @@ public FaxLineResponse FaxLineRemoveUser( /// /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHttpInfo( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0) { // verify the required parameter 'faxLineRemoveUserRequest' is set if (faxLineRemoveUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'faxLineRemoveUserRequest' when calling FaxLineApi->FaxLineRemoveUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineRemoveUserRequest' when calling FaxLineApi->FaxLineRemoveUser"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineRemoveUserRequest.GetOpenApiTypes(); @@ -2175,7 +1608,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2188,32 +1623,19 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Put( - "/fax_line/remove_user", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Put("/fax_line/remove_user", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FaxLineRemoveUser", localVarResponse); @@ -2234,20 +1656,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineRemoveUserAsync( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await FaxLineRemoveUserWithHttpInfoAsync( - faxLineRemoveUserRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineRemoveUserWithHttpInfoAsync(faxLineRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2259,24 +1670,16 @@ await FaxLineRemoveUserWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'faxLineRemoveUserRequest' is set if (faxLineRemoveUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'faxLineRemoveUserRequest' when calling FaxLineApi->FaxLineRemoveUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'faxLineRemoveUserRequest' when calling FaxLineApi->FaxLineRemoveUser"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = faxLineRemoveUserRequest.GetOpenApiTypes(); @@ -2292,7 +1695,9 @@ await FaxLineRemoveUserWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2305,35 +1710,19 @@ await FaxLineRemoveUserWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PutAsync( - "/fax_line/remove_user", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/fax_line/remove_user", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2346,5 +1735,6 @@ await FaxLineRemoveUserWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs index 9bce34fc6..2f651b2b8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -36,10 +37,7 @@ public interface IOAuthApiSync : IApiAccessor /// /// Index associated with the operation. /// OAuthTokenResponse - OAuthTokenResponse OauthTokenGenerate( - OAuthTokenGenerateRequest oAuthTokenGenerateRequest, - int operationIndex = 0 - ); + OAuthTokenResponse OauthTokenGenerate(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0); /// /// OAuth Token Generate @@ -51,11 +49,7 @@ OAuthTokenResponse OauthTokenGenerate( /// /// Index associated with the operation. /// ApiResponse of OAuthTokenResponse - ApiResponse OauthTokenGenerateWithHttpInfo( - OAuthTokenGenerateRequest oAuthTokenGenerateRequest, - int operationIndex = 0 - ); - + ApiResponse OauthTokenGenerateWithHttpInfo(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0); /// /// OAuth Token Refresh /// @@ -66,10 +60,7 @@ ApiResponse OauthTokenGenerateWithHttpInfo( /// /// Index associated with the operation. /// OAuthTokenResponse - OAuthTokenResponse OauthTokenRefresh( - OAuthTokenRefreshRequest oAuthTokenRefreshRequest, - int operationIndex = 0 - ); + OAuthTokenResponse OauthTokenRefresh(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0); /// /// OAuth Token Refresh @@ -81,10 +72,7 @@ OAuthTokenResponse OauthTokenRefresh( /// /// Index associated with the operation. /// ApiResponse of OAuthTokenResponse - ApiResponse OauthTokenRefreshWithHttpInfo( - OAuthTokenRefreshRequest oAuthTokenRefreshRequest, - int operationIndex = 0 - ); + ApiResponse OauthTokenRefreshWithHttpInfo(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -105,12 +93,7 @@ public interface IOAuthApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - System.Threading.Tasks.Task OauthTokenGenerateAsync( - OAuthTokenGenerateRequest oAuthTokenGenerateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task OauthTokenGenerateAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// OAuth Token Generate @@ -123,15 +106,7 @@ System.Threading.Tasks.Task OauthTokenGenerateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - System.Threading.Tasks.Task< - ApiResponse - > OauthTokenGenerateWithHttpInfoAsync( - OAuthTokenGenerateRequest oAuthTokenGenerateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// OAuth Token Refresh /// @@ -143,12 +118,7 @@ System.Threading.Tasks.Task OauthTokenGenerateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - System.Threading.Tasks.Task OauthTokenRefreshAsync( - OAuthTokenRefreshRequest oAuthTokenRefreshRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task OauthTokenRefreshAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// OAuth Token Refresh @@ -161,21 +131,17 @@ System.Threading.Tasks.Task OauthTokenRefreshAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - System.Threading.Tasks.Task< - ApiResponse - > OauthTokenRefreshWithHttpInfoAsync( - OAuthTokenRefreshRequest oAuthTokenRefreshRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IOAuthApi : IOAuthApiSync, IOAuthApiAsync { } + public interface IOAuthApi : IOAuthApiSync, IOAuthApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -188,8 +154,9 @@ public partial class OAuthApi : IOAuthApi /// Initializes a new instance of the class. /// /// - public OAuthApi() - : this((string)null) { } + public OAuthApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -202,9 +169,7 @@ public OAuthApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -216,17 +181,14 @@ public OAuthApi(string basePath) /// public OAuthApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -237,18 +199,11 @@ public OAuthApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public OAuthApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public OAuthApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -290,9 +245,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -306,13 +259,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// OAuthTokenResponse - public OAuthTokenResponse OauthTokenGenerate( - OAuthTokenGenerateRequest oAuthTokenGenerateRequest, - int operationIndex = 0 - ) + public OAuthTokenResponse OauthTokenGenerate(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - OauthTokenGenerateWithHttpInfo(oAuthTokenGenerateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = OauthTokenGenerateWithHttpInfo(oAuthTokenGenerateRequest); return localVarResponse.Data; } @@ -323,22 +272,15 @@ public OAuthTokenResponse OauthTokenGenerate( /// /// Index associated with the operation. /// ApiResponse of OAuthTokenResponse - public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWithHttpInfo( - OAuthTokenGenerateRequest oAuthTokenGenerateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWithHttpInfo(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0) { // verify the required parameter 'oAuthTokenGenerateRequest' is set if (oAuthTokenGenerateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'oAuthTokenGenerateRequest' when calling OAuthApi->OauthTokenGenerate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'oAuthTokenGenerateRequest' when calling OAuthApi->OauthTokenGenerate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = oAuthTokenGenerateRequest.GetOpenApiTypes(); @@ -354,7 +296,9 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -367,21 +311,16 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "OAuthApi.OauthTokenGenerate"; localVarRequestOptions.OperationIndex = operationIndex; + // make the HTTP request - var localVarResponse = this.Client.Post( - "/oauth/token", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/oauth/token", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "OauthTokenGenerate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("OauthTokenGenerate", localVarResponse); if (_exception != null) { throw _exception; @@ -399,20 +338,9 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - public async System.Threading.Tasks.Task OauthTokenGenerateAsync( - OAuthTokenGenerateRequest oAuthTokenGenerateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task OauthTokenGenerateAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await OauthTokenGenerateWithHttpInfoAsync( - oAuthTokenGenerateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await OauthTokenGenerateWithHttpInfoAsync(oAuthTokenGenerateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -424,24 +352,16 @@ await OauthTokenGenerateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - public async System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync( - OAuthTokenGenerateRequest oAuthTokenGenerateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'oAuthTokenGenerateRequest' is set if (oAuthTokenGenerateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'oAuthTokenGenerateRequest' when calling OAuthApi->OauthTokenGenerate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'oAuthTokenGenerateRequest' when calling OAuthApi->OauthTokenGenerate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = oAuthTokenGenerateRequest.GetOpenApiTypes(); @@ -457,7 +377,9 @@ await OauthTokenGenerateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -470,25 +392,17 @@ await OauthTokenGenerateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "OAuthApi.OauthTokenGenerate"; localVarRequestOptions.OperationIndex = operationIndex; + // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/oauth/token", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/oauth/token", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "OauthTokenGenerate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("OauthTokenGenerate", localVarResponse); if (_exception != null) { throw _exception; @@ -505,13 +419,9 @@ await OauthTokenGenerateWithHttpInfoAsync( /// /// Index associated with the operation. /// OAuthTokenResponse - public OAuthTokenResponse OauthTokenRefresh( - OAuthTokenRefreshRequest oAuthTokenRefreshRequest, - int operationIndex = 0 - ) + public OAuthTokenResponse OauthTokenRefresh(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - OauthTokenRefreshWithHttpInfo(oAuthTokenRefreshRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = OauthTokenRefreshWithHttpInfo(oAuthTokenRefreshRequest); return localVarResponse.Data; } @@ -522,22 +432,15 @@ public OAuthTokenResponse OauthTokenRefresh( /// /// Index associated with the operation. /// ApiResponse of OAuthTokenResponse - public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWithHttpInfo( - OAuthTokenRefreshRequest oAuthTokenRefreshRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWithHttpInfo(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0) { // verify the required parameter 'oAuthTokenRefreshRequest' is set if (oAuthTokenRefreshRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'oAuthTokenRefreshRequest' when calling OAuthApi->OauthTokenRefresh" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'oAuthTokenRefreshRequest' when calling OAuthApi->OauthTokenRefresh"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = oAuthTokenRefreshRequest.GetOpenApiTypes(); @@ -553,7 +456,9 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -566,15 +471,13 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "OAuthApi.OauthTokenRefresh"; localVarRequestOptions.OperationIndex = operationIndex; + // make the HTTP request - var localVarResponse = this.Client.Post( - "/oauth/token?refresh", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/oauth/token?refresh", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("OauthTokenRefresh", localVarResponse); @@ -595,20 +498,9 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - public async System.Threading.Tasks.Task OauthTokenRefreshAsync( - OAuthTokenRefreshRequest oAuthTokenRefreshRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task OauthTokenRefreshAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await OauthTokenRefreshWithHttpInfoAsync( - oAuthTokenRefreshRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await OauthTokenRefreshWithHttpInfoAsync(oAuthTokenRefreshRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -620,24 +512,16 @@ await OauthTokenRefreshWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - public async System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync( - OAuthTokenRefreshRequest oAuthTokenRefreshRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'oAuthTokenRefreshRequest' is set if (oAuthTokenRefreshRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'oAuthTokenRefreshRequest' when calling OAuthApi->OauthTokenRefresh" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'oAuthTokenRefreshRequest' when calling OAuthApi->OauthTokenRefresh"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = oAuthTokenRefreshRequest.GetOpenApiTypes(); @@ -653,7 +537,9 @@ await OauthTokenRefreshWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -666,18 +552,13 @@ await OauthTokenRefreshWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "OAuthApi.OauthTokenRefresh"; localVarRequestOptions.OperationIndex = operationIndex; + // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/oauth/token?refresh", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/oauth/token?refresh", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -690,5 +571,6 @@ await OauthTokenRefreshWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs index a2629d868..72b26187a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -36,10 +37,7 @@ public interface IReportApiSync : IApiAccessor /// /// Index associated with the operation. /// ReportCreateResponse - ReportCreateResponse ReportCreate( - ReportCreateRequest reportCreateRequest, - int operationIndex = 0 - ); + ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, int operationIndex = 0); /// /// Create Report @@ -51,10 +49,7 @@ ReportCreateResponse ReportCreate( /// /// Index associated with the operation. /// ApiResponse of ReportCreateResponse - ApiResponse ReportCreateWithHttpInfo( - ReportCreateRequest reportCreateRequest, - int operationIndex = 0 - ); + ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -75,12 +70,7 @@ public interface IReportApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - System.Threading.Tasks.Task ReportCreateAsync( - ReportCreateRequest reportCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Report @@ -93,21 +83,17 @@ System.Threading.Tasks.Task ReportCreateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - System.Threading.Tasks.Task< - ApiResponse - > ReportCreateWithHttpInfoAsync( - ReportCreateRequest reportCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IReportApi : IReportApiSync, IReportApiAsync { } + public interface IReportApi : IReportApiSync, IReportApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -120,8 +106,9 @@ public partial class ReportApi : IReportApi /// Initializes a new instance of the class. /// /// - public ReportApi() - : this((string)null) { } + public ReportApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -134,9 +121,7 @@ public ReportApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -148,17 +133,14 @@ public ReportApi(string basePath) /// public ReportApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -169,18 +151,11 @@ public ReportApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public ReportApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public ReportApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -222,9 +197,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -238,13 +211,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// ReportCreateResponse - public ReportCreateResponse ReportCreate( - ReportCreateRequest reportCreateRequest, - int operationIndex = 0 - ) + public ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - ReportCreateWithHttpInfo(reportCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = ReportCreateWithHttpInfo(reportCreateRequest); return localVarResponse.Data; } @@ -255,22 +224,15 @@ public ReportCreateResponse ReportCreate( /// /// Index associated with the operation. /// ApiResponse of ReportCreateResponse - public Dropbox.Sign.Client.ApiResponse ReportCreateWithHttpInfo( - ReportCreateRequest reportCreateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, int operationIndex = 0) { // verify the required parameter 'reportCreateRequest' is set if (reportCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'reportCreateRequest' when calling ReportApi->ReportCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'reportCreateRequest' when calling ReportApi->ReportCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = reportCreateRequest.GetOpenApiTypes(); @@ -286,7 +248,9 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -299,32 +263,19 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/report/create", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/report/create", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ReportCreate", localVarResponse); @@ -345,20 +296,9 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - public async System.Threading.Tasks.Task ReportCreateAsync( - ReportCreateRequest reportCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await ReportCreateWithHttpInfoAsync( - reportCreateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ReportCreateWithHttpInfoAsync(reportCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -370,24 +310,16 @@ await ReportCreateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync( - ReportCreateRequest reportCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'reportCreateRequest' is set if (reportCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'reportCreateRequest' when calling ReportApi->ReportCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'reportCreateRequest' when calling ReportApi->ReportCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = reportCreateRequest.GetOpenApiTypes(); @@ -403,7 +335,9 @@ await ReportCreateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -416,35 +350,19 @@ await ReportCreateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/report/create", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/report/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -457,5 +375,6 @@ await ReportCreateWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs index 18262c399..0e84330f1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -36,10 +37,7 @@ public interface ISignatureRequestApiSync : IApiAccessor /// /// Index associated with the operation. /// BulkSendJobSendResponse - BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ); + BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Embedded Bulk Send with Template @@ -51,11 +49,7 @@ BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate( /// /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Bulk Send with Template /// @@ -66,10 +60,7 @@ ApiResponse SignatureRequestBulkCreateEmbeddedWithTempl /// /// Index associated with the operation. /// BulkSendJobSendResponse - BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - int operationIndex = 0 - ); + BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0); /// /// Bulk Send with Template @@ -81,11 +72,7 @@ BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate( /// /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0); /// /// Cancel Incomplete Signature Request /// @@ -108,11 +95,7 @@ ApiResponse SignatureRequestBulkSendWithTemplateWithHtt /// The id of the incomplete SignatureRequest to cancel. /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse SignatureRequestCancelWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, int operationIndex = 0); /// /// Create Embedded Signature Request /// @@ -123,10 +106,7 @@ ApiResponse SignatureRequestCancelWithHttpInfo( /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestCreateEmbedded( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - int operationIndex = 0 - ); + SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0); /// /// Create Embedded Signature Request @@ -138,11 +118,7 @@ SignatureRequestGetResponse SignatureRequestCreateEmbedded( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0); /// /// Create Embedded Signature Request with Template /// @@ -153,10 +129,7 @@ ApiResponse SignatureRequestCreateEmbeddedWithHttpI /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate( - SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ); + SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Create Embedded Signature Request with Template @@ -168,11 +141,7 @@ SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo( - SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Download Files /// @@ -184,11 +153,7 @@ ApiResponse SignatureRequestCreateEmbeddedWithTempl /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) /// Index associated with the operation. /// System.IO.Stream - System.IO.Stream SignatureRequestFiles( - string signatureRequestId, - string? fileType = default(string?), - int operationIndex = 0 - ); + System.IO.Stream SignatureRequestFiles(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0); /// /// Download Files @@ -201,12 +166,7 @@ System.IO.Stream SignatureRequestFiles( /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) /// Index associated with the operation. /// ApiResponse of System.IO.Stream - ApiResponse SignatureRequestFilesWithHttpInfo( - string signatureRequestId, - string? fileType = default(string?), - int operationIndex = 0 - ); - + ApiResponse SignatureRequestFilesWithHttpInfo(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0); /// /// Download Files as Data Uri /// @@ -217,10 +177,7 @@ System.IO.Stream SignatureRequestFiles( /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// FileResponseDataUri - FileResponseDataUri SignatureRequestFilesAsDataUri( - string signatureRequestId, - int operationIndex = 0 - ); + FileResponseDataUri SignatureRequestFilesAsDataUri(string signatureRequestId, int operationIndex = 0); /// /// Download Files as Data Uri @@ -232,11 +189,7 @@ FileResponseDataUri SignatureRequestFilesAsDataUri( /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// ApiResponse of FileResponseDataUri - ApiResponse SignatureRequestFilesAsDataUriWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestFilesAsDataUriWithHttpInfo(string signatureRequestId, int operationIndex = 0); /// /// Download Files as File Url /// @@ -248,11 +201,7 @@ ApiResponse SignatureRequestFilesAsDataUriWithHttpInfo( /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// FileResponse - FileResponse SignatureRequestFilesAsFileUrl( - string signatureRequestId, - int? forceDownload = default(int?), - int operationIndex = 0 - ); + FileResponse SignatureRequestFilesAsFileUrl(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0); /// /// Download Files as File Url @@ -265,12 +214,7 @@ FileResponse SignatureRequestFilesAsFileUrl( /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// ApiResponse of FileResponse - ApiResponse SignatureRequestFilesAsFileUrlWithHttpInfo( - string signatureRequestId, - int? forceDownload = default(int?), - int operationIndex = 0 - ); - + ApiResponse SignatureRequestFilesAsFileUrlWithHttpInfo(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0); /// /// Get Signature Request /// @@ -281,10 +225,7 @@ ApiResponse SignatureRequestFilesAsFileUrlWithHttpInfo( /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestGet( - string signatureRequestId, - int operationIndex = 0 - ); + SignatureRequestGetResponse SignatureRequestGet(string signatureRequestId, int operationIndex = 0); /// /// Get Signature Request @@ -296,11 +237,7 @@ SignatureRequestGetResponse SignatureRequestGet( /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestGetWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestGetWithHttpInfo(string signatureRequestId, int operationIndex = 0); /// /// List Signature Requests /// @@ -314,13 +251,7 @@ ApiResponse SignatureRequestGetWithHttpInfo( /// String that includes search terms and/or fields to be used to filter the SignatureRequest objects. (optional) /// Index associated with the operation. /// SignatureRequestListResponse - SignatureRequestListResponse SignatureRequestList( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0 - ); + SignatureRequestListResponse SignatureRequestList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0); /// /// List Signature Requests @@ -335,14 +266,7 @@ SignatureRequestListResponse SignatureRequestList( /// String that includes search terms and/or fields to be used to filter the SignatureRequest objects. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestListResponse - ApiResponse SignatureRequestListWithHttpInfo( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0 - ); - + ApiResponse SignatureRequestListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0); /// /// Release On-Hold Signature Request /// @@ -353,10 +277,7 @@ ApiResponse SignatureRequestListWithHttpInfo( /// The id of the SignatureRequest to release. /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestReleaseHold( - string signatureRequestId, - int operationIndex = 0 - ); + SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, int operationIndex = 0); /// /// Release On-Hold Signature Request @@ -368,11 +289,7 @@ SignatureRequestGetResponse SignatureRequestReleaseHold( /// The id of the SignatureRequest to release. /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestReleaseHoldWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, int operationIndex = 0); /// /// Send Request Reminder /// @@ -384,11 +301,7 @@ ApiResponse SignatureRequestReleaseHoldWithHttpInfo /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestRemind( - string signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - int operationIndex = 0 - ); + SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0); /// /// Send Request Reminder @@ -401,12 +314,7 @@ SignatureRequestGetResponse SignatureRequestRemind( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestRemindWithHttpInfo( - string signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0); /// /// Remove Signature Request Access /// @@ -429,11 +337,7 @@ ApiResponse SignatureRequestRemindWithHttpInfo( /// The id of the SignatureRequest to remove. /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse SignatureRequestRemoveWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, int operationIndex = 0); /// /// Send Signature Request /// @@ -444,10 +348,7 @@ ApiResponse SignatureRequestRemoveWithHttpInfo( /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestSend( - SignatureRequestSendRequest signatureRequestSendRequest, - int operationIndex = 0 - ); + SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0); /// /// Send Signature Request @@ -459,11 +360,7 @@ SignatureRequestGetResponse SignatureRequestSend( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestSendWithHttpInfo( - SignatureRequestSendRequest signatureRequestSendRequest, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0); /// /// Send with Template /// @@ -474,10 +371,7 @@ ApiResponse SignatureRequestSendWithHttpInfo( /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestSendWithTemplate( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - int operationIndex = 0 - ); + SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0); /// /// Send with Template @@ -489,11 +383,7 @@ SignatureRequestGetResponse SignatureRequestSendWithTemplate( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestSendWithTemplateWithHttpInfo( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - int operationIndex = 0 - ); - + ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0); /// /// Update Signature Request /// @@ -505,11 +395,7 @@ ApiResponse SignatureRequestSendWithTemplateWithHtt /// /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestUpdate( - string signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - int operationIndex = 0 - ); + SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0); /// /// Update Signature Request @@ -522,11 +408,7 @@ SignatureRequestGetResponse SignatureRequestUpdate( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestUpdateWithHttpInfo( - string signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - int operationIndex = 0 - ); + ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -547,12 +429,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Embedded Bulk Send with Template @@ -565,15 +442,7 @@ System.Threading.Tasks.Task SignatureRequestBulkCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Bulk Send with Template /// @@ -585,12 +454,7 @@ System.Threading.Tasks.Task SignatureRequestBulkCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Bulk Send with Template @@ -603,15 +467,7 @@ System.Threading.Tasks.Task SignatureRequestBulkSendWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestBulkSendWithTemplateWithHttpInfoAsync( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Cancel Incomplete Signature Request /// @@ -623,12 +479,7 @@ System.Threading.Tasks.Task SignatureRequestBulkSendWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestCancelAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Cancel Incomplete Signature Request @@ -641,13 +492,7 @@ System.Threading.Tasks.Task SignatureRequestCancelAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Signature Request /// @@ -659,12 +504,7 @@ System.Threading.Tasks.Task> SignatureRequestCancelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Signature Request @@ -677,15 +517,7 @@ System.Threading.Tasks.Task SignatureRequestCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestCreateEmbeddedWithHttpInfoAsync( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Signature Request with Template /// @@ -697,12 +529,7 @@ System.Threading.Tasks.Task SignatureRequestCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync( - SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Signature Request with Template @@ -715,15 +542,7 @@ System.Threading.Tasks.Task SignatureRequestCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( - SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Download Files /// @@ -736,13 +555,7 @@ System.Threading.Tasks.Task SignatureRequestCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - System.Threading.Tasks.Task SignatureRequestFilesAsync( - string signatureRequestId, - string? fileType = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestFilesAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Download Files @@ -756,16 +569,7 @@ System.Threading.Tasks.Task SignatureRequestCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestFilesWithHttpInfoAsync( - string signatureRequestId, - string? fileType = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Download Files as Data Uri /// @@ -777,12 +581,7 @@ System.Threading.Tasks.Task SignatureRequestCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Download Files as Data Uri @@ -795,15 +594,7 @@ System.Threading.Tasks.Task SignatureRequestFilesAsDataUriA /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestFilesAsDataUriWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Download Files as File Url /// @@ -816,13 +607,7 @@ System.Threading.Tasks.Task SignatureRequestFilesAsDataUriA /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync( - string signatureRequestId, - int? forceDownload = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Download Files as File Url @@ -836,16 +621,7 @@ System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestFilesAsFileUrlWithHttpInfoAsync( - string signatureRequestId, - int? forceDownload = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Signature Request /// @@ -857,12 +633,7 @@ System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestGetAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestGetAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Signature Request @@ -875,15 +646,7 @@ System.Threading.Tasks.Task SignatureRequestGetAsyn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestGetWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Signature Requests /// @@ -898,15 +661,7 @@ System.Threading.Tasks.Task SignatureRequestGetAsyn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestListResponse - System.Threading.Tasks.Task SignatureRequestListAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Signature Requests @@ -922,18 +677,7 @@ System.Threading.Tasks.Task SignatureRequestListAs /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestListResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestListWithHttpInfoAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Release On-Hold Signature Request /// @@ -945,12 +689,7 @@ System.Threading.Tasks.Task SignatureRequestListAs /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Release On-Hold Signature Request @@ -963,15 +702,7 @@ System.Threading.Tasks.Task SignatureRequestRelease /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestReleaseHoldWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Send Request Reminder /// @@ -984,13 +715,7 @@ System.Threading.Tasks.Task SignatureRequestRelease /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestRemindAsync( - string signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Send Request Reminder @@ -1004,16 +729,7 @@ System.Threading.Tasks.Task SignatureRequestRemindA /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestRemindWithHttpInfoAsync( - string signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Remove Signature Request Access /// @@ -1025,12 +741,7 @@ System.Threading.Tasks.Task SignatureRequestRemindA /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestRemoveAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Remove Signature Request Access @@ -1043,13 +754,7 @@ System.Threading.Tasks.Task SignatureRequestRemoveAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Send Signature Request /// @@ -1061,12 +766,7 @@ System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendAsync( - SignatureRequestSendRequest signatureRequestSendRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Send Signature Request @@ -1079,15 +779,7 @@ System.Threading.Tasks.Task SignatureRequestSendAsy /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestSendWithHttpInfoAsync( - SignatureRequestSendRequest signatureRequestSendRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Send with Template /// @@ -1099,12 +791,7 @@ System.Threading.Tasks.Task SignatureRequestSendAsy /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Send with Template @@ -1117,15 +804,7 @@ System.Threading.Tasks.Task SignatureRequestSendWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestSendWithTemplateWithHttpInfoAsync( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update Signature Request /// @@ -1138,13 +817,7 @@ System.Threading.Tasks.Task SignatureRequestSendWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestUpdateAsync( - string signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update Signature Request @@ -1158,22 +831,17 @@ System.Threading.Tasks.Task SignatureRequestUpdateA /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > SignatureRequestUpdateWithHttpInfoAsync( - string signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface ISignatureRequestApi : ISignatureRequestApiSync, ISignatureRequestApiAsync { } + public interface ISignatureRequestApi : ISignatureRequestApiSync, ISignatureRequestApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -1186,8 +854,9 @@ public partial class SignatureRequestApi : ISignatureRequestApi /// Initializes a new instance of the class. /// /// - public SignatureRequestApi() - : this((string)null) { } + public SignatureRequestApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -1200,9 +869,7 @@ public SignatureRequestApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -1214,17 +881,14 @@ public SignatureRequestApi(string basePath) /// public SignatureRequestApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -1235,18 +899,11 @@ public SignatureRequestApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public SignatureRequestApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public SignatureRequestApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -1288,9 +945,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -1304,15 +959,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// BulkSendJobSendResponse - public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ) + public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestBulkCreateEmbeddedWithTemplateRequest - ); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest); return localVarResponse.Data; } @@ -1323,26 +972,18 @@ public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate( /// /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' is set if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkCreateEmbeddedWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkCreateEmbeddedWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; - var openApiTypes = - signatureRequestBulkCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); + var openApiTypes = signatureRequestBulkCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); if (ClientUtils.HasFileType(openApiTypes)) { ClientUtils.SetFormData(localVarRequestOptions, openApiTypes); @@ -1355,7 +996,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1368,39 +1011,22 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; + + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/bulk_create_embedded_with_template", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/bulk_create_embedded_with_template", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestBulkCreateEmbeddedWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestBulkCreateEmbeddedWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -1418,20 +1044,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( - signatureRequestBulkCreateEmbeddedWithTemplateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestBulkCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1443,28 +1058,19 @@ await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' is set if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkCreateEmbeddedWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkCreateEmbeddedWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; - var openApiTypes = - signatureRequestBulkCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); + var openApiTypes = signatureRequestBulkCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); if (ClientUtils.HasFileType(openApiTypes)) { ClientUtils.SetFormData(localVarRequestOptions, openApiTypes); @@ -1477,7 +1083,9 @@ await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1490,43 +1098,23 @@ await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; + + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/bulk_create_embedded_with_template", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/bulk_create_embedded_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestBulkCreateEmbeddedWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestBulkCreateEmbeddedWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -1543,15 +1131,9 @@ await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync( /// /// Index associated with the operation. /// BulkSendJobSendResponse - public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - int operationIndex = 0 - ) + public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestBulkSendWithTemplateWithHttpInfo( - signatureRequestBulkSendWithTemplateRequest - ); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest); return localVarResponse.Data; } @@ -1562,22 +1144,15 @@ public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate( /// /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestBulkSendWithTemplateRequest' is set if (signatureRequestBulkSendWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkSendWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkSendWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestBulkSendWithTemplateRequest.GetOpenApiTypes(); @@ -1593,7 +1168,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1606,51 +1183,28 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; + + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/bulk_send_with_template", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/bulk_send_with_template", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestBulkSendWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestBulkSendWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -1668,20 +1222,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync( - signatureRequestBulkSendWithTemplateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(signatureRequestBulkSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1693,24 +1236,16 @@ await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestBulkSendWithTemplateRequest' is set if (signatureRequestBulkSendWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkSendWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestBulkSendWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestBulkSendWithTemplateRequest.GetOpenApiTypes(); @@ -1726,7 +1261,9 @@ await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1739,55 +1276,29 @@ await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; + + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/bulk_send_with_template", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/bulk_send_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestBulkSendWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestBulkSendWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -1816,30 +1327,24 @@ public void SignatureRequestCancel(string signatureRequestId, int operationIndex /// The id of the incomplete SignatureRequest to cancel. /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestCancel" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestCancel"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1852,55 +1357,29 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/cancel/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/cancel/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestCancel", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestCancel", localVarResponse); if (_exception != null) { throw _exception; @@ -1918,19 +1397,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestCancelAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await SignatureRequestCancelWithHttpInfoAsync( - signatureRequestId, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + await SignatureRequestCancelWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -1941,32 +1410,25 @@ await SignatureRequestCancelWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestCancel" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestCancel"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1979,59 +1441,30 @@ await SignatureRequestCancelWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/cancel/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/cancel/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestCancel", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestCancel", localVarResponse); if (_exception != null) { throw _exception; @@ -2048,13 +1481,9 @@ await SignatureRequestCancelWithHttpInfoAsync( /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestCreateEmbedded( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - int operationIndex = 0 - ) + public SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest); return localVarResponse.Data; } @@ -2065,22 +1494,15 @@ public SignatureRequestGetResponse SignatureRequestCreateEmbedded( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestCreateEmbeddedRequest' is set if (signatureRequestCreateEmbeddedRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestCreateEmbeddedRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbedded" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestCreateEmbeddedRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbedded"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestCreateEmbeddedRequest.GetOpenApiTypes(); @@ -2096,7 +1518,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2109,50 +1533,28 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/create_embedded", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/create_embedded", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestCreateEmbedded", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestCreateEmbedded", localVarResponse); if (_exception != null) { throw _exception; @@ -2170,20 +1572,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestCreateEmbeddedWithHttpInfoAsync( - signatureRequestCreateEmbeddedRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithHttpInfoAsync(signatureRequestCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2195,24 +1586,16 @@ await SignatureRequestCreateEmbeddedWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestCreateEmbeddedRequest' is set if (signatureRequestCreateEmbeddedRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestCreateEmbeddedRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbedded" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestCreateEmbeddedRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbedded"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestCreateEmbeddedRequest.GetOpenApiTypes(); @@ -2228,7 +1611,9 @@ await SignatureRequestCreateEmbeddedWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2241,54 +1626,29 @@ await SignatureRequestCreateEmbeddedWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/create_embedded", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/create_embedded", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestCreateEmbedded", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestCreateEmbedded", localVarResponse); if (_exception != null) { throw _exception; @@ -2305,15 +1665,9 @@ await SignatureRequestCreateEmbeddedWithHttpInfoAsync( /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate( - SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ) + public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestCreateEmbeddedWithTemplateRequest - ); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest); return localVarResponse.Data; } @@ -2324,22 +1678,15 @@ public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo( - SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' is set if (signatureRequestCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbeddedWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbeddedWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); @@ -2355,7 +1702,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2368,51 +1717,28 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; + + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/create_embedded_with_template", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/create_embedded_with_template", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestCreateEmbeddedWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestCreateEmbeddedWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -2430,20 +1756,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync( - SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( - signatureRequestCreateEmbeddedWithTemplateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2455,24 +1770,16 @@ await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( - SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' is set if (signatureRequestCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbeddedWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestCreateEmbeddedWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); @@ -2488,7 +1795,9 @@ await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2501,55 +1810,29 @@ await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; + + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/create_embedded_with_template", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/create_embedded_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestCreateEmbeddedWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestCreateEmbeddedWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -2567,14 +1850,9 @@ await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync( /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) /// Index associated with the operation. /// System.IO.Stream - public System.IO.Stream SignatureRequestFiles( - string signatureRequestId, - string? fileType = default(string?), - int operationIndex = 0 - ) + public System.IO.Stream SignatureRequestFiles(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestFilesWithHttpInfo(signatureRequestId, fileType); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestFilesWithHttpInfo(signatureRequestId, fileType); return localVarResponse.Data; } @@ -2586,35 +1864,25 @@ public System.IO.Stream SignatureRequestFiles( /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) /// Index associated with the operation. /// ApiResponse of System.IO.Stream - public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesWithHttpInfo( - string signatureRequestId, - string? fileType = default(string?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesWithHttpInfo(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFiles" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFiles"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] - { + string[] _accepts = new string[] { "application/pdf", "application/zip", - "application/json", + "application/json" }; if (localVarContentType != null) @@ -2628,15 +1896,10 @@ public System.IO.Stream SignatureRequestFiles( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter if (fileType != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFiles"; @@ -2644,45 +1907,22 @@ public System.IO.Stream SignatureRequestFiles( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/signature_request/files/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/signature_request/files/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestFiles", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestFiles", localVarResponse); if (_exception != null) { throw _exception; @@ -2701,22 +1941,9 @@ public System.IO.Stream SignatureRequestFiles( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task SignatureRequestFilesAsync( - string signatureRequestId, - string? fileType = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestFilesAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestFilesWithHttpInfoAsync( - signatureRequestId, - fileType, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestFilesWithHttpInfoAsync(signatureRequestId, fileType, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2729,37 +1956,26 @@ await SignatureRequestFilesWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync( - string signatureRequestId, - string? fileType = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFiles" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFiles"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] - { + string[] _accepts = new string[] { "application/pdf", "application/zip", - "application/json", + "application/json" }; if (localVarContentType != null) @@ -2773,15 +1989,10 @@ await SignatureRequestFilesWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter if (fileType != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFiles"; @@ -2789,49 +2000,23 @@ await SignatureRequestFilesWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/signature_request/files/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/files/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestFiles", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestFiles", localVarResponse); if (_exception != null) { throw _exception; @@ -2848,13 +2033,9 @@ await SignatureRequestFilesWithHttpInfoAsync( /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// FileResponseDataUri - public FileResponseDataUri SignatureRequestFilesAsDataUri( - string signatureRequestId, - int operationIndex = 0 - ) + public FileResponseDataUri SignatureRequestFilesAsDataUri(string signatureRequestId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestFilesAsDataUriWithHttpInfo(signatureRequestId); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestFilesAsDataUriWithHttpInfo(signatureRequestId); return localVarResponse.Data; } @@ -2865,30 +2046,24 @@ public FileResponseDataUri SignatureRequestFilesAsDataUri( /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// ApiResponse of FileResponseDataUri - public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsDataUriWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsDataUriWithHttpInfo(string signatureRequestId, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsDataUri" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsDataUri"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2901,55 +2076,29 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/signature_request/files_as_data_uri/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/signature_request/files_as_data_uri/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestFilesAsDataUri", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestFilesAsDataUri", localVarResponse); if (_exception != null) { throw _exception; @@ -2967,20 +2116,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - public async System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestFilesAsDataUriWithHttpInfoAsync( - signatureRequestId, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestFilesAsDataUriWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2992,32 +2130,25 @@ await SignatureRequestFilesAsDataUriWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - public async System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsDataUri" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsDataUri"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3030,59 +2161,30 @@ await SignatureRequestFilesAsDataUriWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/signature_request/files_as_data_uri/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/files_as_data_uri/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestFilesAsDataUri", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestFilesAsDataUri", localVarResponse); if (_exception != null) { throw _exception; @@ -3100,14 +2202,9 @@ await SignatureRequestFilesAsDataUriWithHttpInfoAsync( /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// FileResponse - public FileResponse SignatureRequestFilesAsFileUrl( - string signatureRequestId, - int? forceDownload = default(int?), - int operationIndex = 0 - ) + public FileResponse SignatureRequestFilesAsFileUrl(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestFilesAsFileUrlWithHttpInfo(signatureRequestId, forceDownload); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestFilesAsFileUrlWithHttpInfo(signatureRequestId, forceDownload); return localVarResponse.Data; } @@ -3119,31 +2216,24 @@ public FileResponse SignatureRequestFilesAsFileUrl( /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// ApiResponse of FileResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsFileUrlWithHttpInfo( - string signatureRequestId, - int? forceDownload = default(int?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsFileUrlWithHttpInfo(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsFileUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsFileUrl"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3156,19 +2246,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsFile localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter if (forceDownload != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "force_download", - forceDownload - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsFileUrl"; @@ -3176,45 +2257,22 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsFile // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/signature_request/files_as_file_url/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/signature_request/files_as_file_url/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestFilesAsFileUrl", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestFilesAsFileUrl", localVarResponse); if (_exception != null) { throw _exception; @@ -3233,22 +2291,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFilesAsFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - public async System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync( - string signatureRequestId, - int? forceDownload = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestFilesAsFileUrlWithHttpInfoAsync( - signatureRequestId, - forceDownload, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestFilesAsFileUrlWithHttpInfoAsync(signatureRequestId, forceDownload, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3261,33 +2306,25 @@ await SignatureRequestFilesAsFileUrlWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - public async System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync( - string signatureRequestId, - int? forceDownload = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsFileUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestFilesAsFileUrl"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3300,19 +2337,10 @@ await SignatureRequestFilesAsFileUrlWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter if (forceDownload != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "force_download", - forceDownload - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestFilesAsFileUrl"; @@ -3320,49 +2348,23 @@ await SignatureRequestFilesAsFileUrlWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/signature_request/files_as_file_url/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/files_as_file_url/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestFilesAsFileUrl", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestFilesAsFileUrl", localVarResponse); if (_exception != null) { throw _exception; @@ -3379,13 +2381,9 @@ await SignatureRequestFilesAsFileUrlWithHttpInfoAsync( /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestGet( - string signatureRequestId, - int operationIndex = 0 - ) + public SignatureRequestGetResponse SignatureRequestGet(string signatureRequestId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestGetWithHttpInfo(signatureRequestId); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestGetWithHttpInfo(signatureRequestId); return localVarResponse.Data; } @@ -3396,30 +2394,24 @@ public SignatureRequestGetResponse SignatureRequestGet( /// The id of the SignatureRequest to retrieve. /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestGetWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestGetWithHttpInfo(string signatureRequestId, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3432,55 +2424,29 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/signature_request/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/signature_request/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestGet", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestGet", localVarResponse); if (_exception != null) { throw _exception; @@ -3498,20 +2464,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestGetAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestGetAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestGetWithHttpInfoAsync( - signatureRequestId, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestGetWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3523,32 +2478,25 @@ await SignatureRequestGetWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3561,59 +2509,30 @@ await SignatureRequestGetWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/signature_request/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestGet", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestGet", localVarResponse); if (_exception != null) { throw _exception; @@ -3633,16 +2552,9 @@ await SignatureRequestGetWithHttpInfoAsync( /// String that includes search terms and/or fields to be used to filter the SignatureRequest objects. (optional) /// Index associated with the operation. /// SignatureRequestListResponse - public SignatureRequestListResponse SignatureRequestList( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0 - ) + public SignatureRequestListResponse SignatureRequestList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestListWithHttpInfo(accountId, page, pageSize, query); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestListWithHttpInfo(accountId, page, pageSize, query); return localVarResponse.Data; } @@ -3656,24 +2568,18 @@ public SignatureRequestListResponse SignatureRequestList( /// String that includes search terms and/or fields to be used to filter the SignatureRequest objects. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestListResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestListWithHttpInfo( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3688,27 +2594,19 @@ public Dropbox.Sign.Client.ApiResponse SignatureRe if (accountId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); } if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } if (query != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestList"; @@ -3716,45 +2614,22 @@ public Dropbox.Sign.Client.ApiResponse SignatureRe // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/signature_request/list", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/signature_request/list", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestList", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestList", localVarResponse); if (_exception != null) { throw _exception; @@ -3775,26 +2650,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureRe /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestListResponse - public async System.Threading.Tasks.Task SignatureRequestListAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestListWithHttpInfoAsync( - accountId, - page, - pageSize, - query, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestListWithHttpInfoAsync(accountId, page, pageSize, query, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3809,26 +2667,19 @@ await SignatureRequestListWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestListResponse) - public async System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3843,27 +2694,19 @@ await SignatureRequestListWithHttpInfoAsync( if (accountId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); } if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } if (query != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestList"; @@ -3871,49 +2714,23 @@ await SignatureRequestListWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/signature_request/list", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/signature_request/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestList", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestList", localVarResponse); if (_exception != null) { throw _exception; @@ -3930,13 +2747,9 @@ await SignatureRequestListWithHttpInfoAsync( /// The id of the SignatureRequest to release. /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestReleaseHold( - string signatureRequestId, - int operationIndex = 0 - ) + public SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId); return localVarResponse.Data; } @@ -3947,30 +2760,24 @@ public SignatureRequestGetResponse SignatureRequestReleaseHold( /// The id of the SignatureRequest to release. /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestReleaseHoldWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestReleaseHold" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestReleaseHold"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3983,55 +2790,29 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/release_hold/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/release_hold/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestReleaseHold", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestReleaseHold", localVarResponse); if (_exception != null) { throw _exception; @@ -4049,20 +2830,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestReleaseHoldWithHttpInfoAsync( - signatureRequestId, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestReleaseHoldWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4074,32 +2844,25 @@ await SignatureRequestReleaseHoldWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestReleaseHold" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestReleaseHold"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -4112,59 +2875,30 @@ await SignatureRequestReleaseHoldWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/release_hold/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/release_hold/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestReleaseHold", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestReleaseHold", localVarResponse); if (_exception != null) { throw _exception; @@ -4182,17 +2916,9 @@ await SignatureRequestReleaseHoldWithHttpInfoAsync( /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestRemind( - string signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - int operationIndex = 0 - ) + public SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestRemindWithHttpInfo( - signatureRequestId, - signatureRequestRemindRequest - ); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest); return localVarResponse.Data; } @@ -4204,32 +2930,21 @@ public SignatureRequestGetResponse SignatureRequestRemind( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestRemindWithHttpInfo( - string signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemind" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemind"); } // verify the required parameter 'signatureRequestRemindRequest' is set if (signatureRequestRemindRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestRemindRequest' when calling SignatureRequestApi->SignatureRequestRemind" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestRemindRequest' when calling SignatureRequestApi->SignatureRequestRemind"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestRemindRequest.GetOpenApiTypes(); @@ -4245,7 +2960,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -4258,55 +2975,29 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/remind/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/remind/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestRemind", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestRemind", localVarResponse); if (_exception != null) { throw _exception; @@ -4325,22 +3016,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestRemindAsync( - string signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestRemindWithHttpInfoAsync( - signatureRequestId, - signatureRequestRemindRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestRemindWithHttpInfoAsync(signatureRequestId, signatureRequestRemindRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4353,34 +3031,22 @@ await SignatureRequestRemindWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync( - string signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemind" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemind"); } // verify the required parameter 'signatureRequestRemindRequest' is set if (signatureRequestRemindRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestRemindRequest' when calling SignatureRequestApi->SignatureRequestRemind" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestRemindRequest' when calling SignatureRequestApi->SignatureRequestRemind"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestRemindRequest.GetOpenApiTypes(); @@ -4396,7 +3062,9 @@ await SignatureRequestRemindWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -4409,59 +3077,30 @@ await SignatureRequestRemindWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/remind/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/remind/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestRemind", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestRemind", localVarResponse); if (_exception != null) { throw _exception; @@ -4490,30 +3129,24 @@ public void SignatureRequestRemove(string signatureRequestId, int operationIndex /// The id of the SignatureRequest to remove. /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInfo( - string signatureRequestId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemove" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemove"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -4526,43 +3159,23 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/remove/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/remove/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestRemove", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestRemove", localVarResponse); if (_exception != null) { throw _exception; @@ -4580,19 +3193,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestRemoveAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await SignatureRequestRemoveWithHttpInfoAsync( - signatureRequestId, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + await SignatureRequestRemoveWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -4603,32 +3206,25 @@ await SignatureRequestRemoveWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync( - string signatureRequestId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemove" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestRemove"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -4641,47 +3237,24 @@ await SignatureRequestRemoveWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/remove/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/remove/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestRemove", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestRemove", localVarResponse); if (_exception != null) { throw _exception; @@ -4698,13 +3271,9 @@ await SignatureRequestRemoveWithHttpInfoAsync( /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestSend( - SignatureRequestSendRequest signatureRequestSendRequest, - int operationIndex = 0 - ) + public SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestSendWithHttpInfo(signatureRequestSendRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithHttpInfo(signatureRequestSendRequest); return localVarResponse.Data; } @@ -4715,22 +3284,15 @@ public SignatureRequestGetResponse SignatureRequestSend( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithHttpInfo( - SignatureRequestSendRequest signatureRequestSendRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestSendRequest' is set if (signatureRequestSendRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestSendRequest' when calling SignatureRequestApi->SignatureRequestSend" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestSendRequest' when calling SignatureRequestApi->SignatureRequestSend"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestSendRequest.GetOpenApiTypes(); @@ -4746,7 +3308,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -4759,50 +3323,28 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/send", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/send", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestSend", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestSend", localVarResponse); if (_exception != null) { throw _exception; @@ -4820,20 +3362,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendAsync( - SignatureRequestSendRequest signatureRequestSendRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestSendWithHttpInfoAsync( - signatureRequestSendRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithHttpInfoAsync(signatureRequestSendRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4845,24 +3376,16 @@ await SignatureRequestSendWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync( - SignatureRequestSendRequest signatureRequestSendRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestSendRequest' is set if (signatureRequestSendRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestSendRequest' when calling SignatureRequestApi->SignatureRequestSend" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestSendRequest' when calling SignatureRequestApi->SignatureRequestSend"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestSendRequest.GetOpenApiTypes(); @@ -4878,7 +3401,9 @@ await SignatureRequestSendWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -4891,54 +3416,29 @@ await SignatureRequestSendWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/send", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/send", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestSend", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestSend", localVarResponse); if (_exception != null) { throw _exception; @@ -4955,15 +3455,9 @@ await SignatureRequestSendWithHttpInfoAsync( /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestSendWithTemplate( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - int operationIndex = 0 - ) + public SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestSendWithTemplateWithHttpInfo( - signatureRequestSendWithTemplateRequest - ); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest); return localVarResponse.Data; } @@ -4974,22 +3468,15 @@ public SignatureRequestGetResponse SignatureRequestSendWithTemplate( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithTemplateWithHttpInfo( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestSendWithTemplateRequest' is set if (signatureRequestSendWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestSendWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestSendWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestSendWithTemplateRequest.GetOpenApiTypes(); @@ -5005,7 +3492,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -5018,51 +3507,28 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "SignatureRequestApi.SignatureRequestSendWithTemplate"; + + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/send_with_template", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/send_with_template", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestSendWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestSendWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -5080,20 +3546,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestSendWithTemplateWithHttpInfoAsync( - signatureRequestSendWithTemplateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithTemplateWithHttpInfoAsync(signatureRequestSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -5105,24 +3560,16 @@ await SignatureRequestSendWithTemplateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestSendWithTemplateRequest' is set if (signatureRequestSendWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestSendWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestSendWithTemplateRequest' when calling SignatureRequestApi->SignatureRequestSendWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestSendWithTemplateRequest.GetOpenApiTypes(); @@ -5138,7 +3585,9 @@ await SignatureRequestSendWithTemplateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -5151,55 +3600,29 @@ await SignatureRequestSendWithTemplateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "SignatureRequestApi.SignatureRequestSendWithTemplate"; + + localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/send_with_template", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/send_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestSendWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestSendWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -5217,17 +3640,9 @@ await SignatureRequestSendWithTemplateWithHttpInfoAsync( /// /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestUpdate( - string signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - int operationIndex = 0 - ) + public SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - SignatureRequestUpdateWithHttpInfo( - signatureRequestId, - signatureRequestUpdateRequest - ); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest); return localVarResponse.Data; } @@ -5239,32 +3654,21 @@ public SignatureRequestGetResponse SignatureRequestUpdate( /// /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestUpdateWithHttpInfo( - string signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestUpdate"); } // verify the required parameter 'signatureRequestUpdateRequest' is set if (signatureRequestUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestUpdateRequest' when calling SignatureRequestApi->SignatureRequestUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestUpdateRequest' when calling SignatureRequestApi->SignatureRequestUpdate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestUpdateRequest.GetOpenApiTypes(); @@ -5280,7 +3684,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -5293,55 +3699,29 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/signature_request/update/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/signature_request/update/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestUpdate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestUpdate", localVarResponse); if (_exception != null) { throw _exception; @@ -5360,22 +3740,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestUpdateAsync( - string signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await SignatureRequestUpdateWithHttpInfoAsync( - signatureRequestId, - signatureRequestUpdateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestUpdateWithHttpInfoAsync(signatureRequestId, signatureRequestUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -5388,34 +3755,22 @@ await SignatureRequestUpdateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync( - string signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling SignatureRequestApi->SignatureRequestUpdate"); } // verify the required parameter 'signatureRequestUpdateRequest' is set if (signatureRequestUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestUpdateRequest' when calling SignatureRequestApi->SignatureRequestUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestUpdateRequest' when calling SignatureRequestApi->SignatureRequestUpdate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = signatureRequestUpdateRequest.GetOpenApiTypes(); @@ -5431,7 +3786,9 @@ await SignatureRequestUpdateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -5444,59 +3801,30 @@ await SignatureRequestUpdateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/signature_request/update/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/signature_request/update/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "SignatureRequestUpdate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("SignatureRequestUpdate", localVarResponse); if (_exception != null) { throw _exception; @@ -5505,5 +3833,6 @@ await SignatureRequestUpdateWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs index 72b89678f..b309fb316 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,11 +38,7 @@ public interface ITeamApiSync : IApiAccessor /// The id of the team. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamAddMember( - TeamAddMemberRequest teamAddMemberRequest, - string? teamId = default(string?), - int operationIndex = 0 - ); + TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0); /// /// Add User to Team @@ -54,12 +51,7 @@ TeamGetResponse TeamAddMember( /// The id of the team. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamAddMemberWithHttpInfo( - TeamAddMemberRequest teamAddMemberRequest, - string? teamId = default(string?), - int operationIndex = 0 - ); - + ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0); /// /// Create Team /// @@ -82,11 +74,7 @@ ApiResponse TeamAddMemberWithHttpInfo( /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamCreateWithHttpInfo( - TeamCreateRequest teamCreateRequest, - int operationIndex = 0 - ); - + ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, int operationIndex = 0); /// /// Delete Team /// @@ -108,7 +96,6 @@ ApiResponse TeamCreateWithHttpInfo( /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse TeamDeleteWithHttpInfo(int operationIndex = 0); - /// /// Get Team /// @@ -130,7 +117,6 @@ ApiResponse TeamCreateWithHttpInfo( /// Index associated with the operation. /// ApiResponse of TeamGetResponse ApiResponse TeamGetWithHttpInfo(int operationIndex = 0); - /// /// Get Team Info /// @@ -153,11 +139,7 @@ ApiResponse TeamCreateWithHttpInfo( /// The id of the team. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetInfoResponse - ApiResponse TeamInfoWithHttpInfo( - string? teamId = default(string?), - int operationIndex = 0 - ); - + ApiResponse TeamInfoWithHttpInfo(string? teamId = default(string?), int operationIndex = 0); /// /// List Team Invites /// @@ -168,10 +150,7 @@ ApiResponse TeamInfoWithHttpInfo( /// The email address for which to display the team invites. (optional) /// Index associated with the operation. /// TeamInvitesResponse - TeamInvitesResponse TeamInvites( - string? emailAddress = default(string?), - int operationIndex = 0 - ); + TeamInvitesResponse TeamInvites(string? emailAddress = default(string?), int operationIndex = 0); /// /// List Team Invites @@ -183,11 +162,7 @@ TeamInvitesResponse TeamInvites( /// The email address for which to display the team invites. (optional) /// Index associated with the operation. /// ApiResponse of TeamInvitesResponse - ApiResponse TeamInvitesWithHttpInfo( - string? emailAddress = default(string?), - int operationIndex = 0 - ); - + ApiResponse TeamInvitesWithHttpInfo(string? emailAddress = default(string?), int operationIndex = 0); /// /// List Team Members /// @@ -200,12 +175,7 @@ ApiResponse TeamInvitesWithHttpInfo( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// TeamMembersResponse - TeamMembersResponse TeamMembers( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); + TeamMembersResponse TeamMembers(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); /// /// List Team Members @@ -219,13 +189,7 @@ TeamMembersResponse TeamMembers( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of TeamMembersResponse - ApiResponse TeamMembersWithHttpInfo( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); - + ApiResponse TeamMembersWithHttpInfo(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); /// /// Remove User from Team /// @@ -236,10 +200,7 @@ ApiResponse TeamMembersWithHttpInfo( /// /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamRemoveMember( - TeamRemoveMemberRequest teamRemoveMemberRequest, - int operationIndex = 0 - ); + TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0); /// /// Remove User from Team @@ -251,11 +212,7 @@ TeamGetResponse TeamRemoveMember( /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamRemoveMemberWithHttpInfo( - TeamRemoveMemberRequest teamRemoveMemberRequest, - int operationIndex = 0 - ); - + ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0); /// /// List Sub Teams /// @@ -268,12 +225,7 @@ ApiResponse TeamRemoveMemberWithHttpInfo( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// TeamSubTeamsResponse - TeamSubTeamsResponse TeamSubTeams( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); + TeamSubTeamsResponse TeamSubTeams(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); /// /// List Sub Teams @@ -287,13 +239,7 @@ TeamSubTeamsResponse TeamSubTeams( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of TeamSubTeamsResponse - ApiResponse TeamSubTeamsWithHttpInfo( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ); - + ApiResponse TeamSubTeamsWithHttpInfo(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0); /// /// Update Team /// @@ -316,10 +262,7 @@ ApiResponse TeamSubTeamsWithHttpInfo( /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamUpdateWithHttpInfo( - TeamUpdateRequest teamUpdateRequest, - int operationIndex = 0 - ); + ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -341,13 +284,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamAddMemberAsync( - TeamAddMemberRequest teamAddMemberRequest, - string? teamId = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Add User to Team @@ -361,14 +298,7 @@ System.Threading.Tasks.Task TeamAddMemberAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync( - TeamAddMemberRequest teamAddMemberRequest, - string? teamId = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Team /// @@ -380,12 +310,7 @@ System.Threading.Tasks.Task> TeamAddMemberWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamCreateAsync( - TeamCreateRequest teamCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Team @@ -398,13 +323,7 @@ System.Threading.Tasks.Task TeamCreateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync( - TeamCreateRequest teamCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete Team /// @@ -415,11 +334,7 @@ System.Threading.Tasks.Task> TeamCreateWithHttpInfo /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TeamDeleteAsync( - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamDeleteAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete Team @@ -431,12 +346,7 @@ System.Threading.Tasks.Task TeamDeleteAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync( - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Team /// @@ -447,11 +357,7 @@ System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamGetAsync( - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Team @@ -463,12 +369,7 @@ System.Threading.Tasks.Task TeamGetAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync( - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Team Info /// @@ -480,12 +381,7 @@ System.Threading.Tasks.Task> TeamGetWithHttpInfoAsy /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetInfoResponse - System.Threading.Tasks.Task TeamInfoAsync( - string? teamId = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Team Info @@ -498,13 +394,7 @@ System.Threading.Tasks.Task TeamInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetInfoResponse) - System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync( - string? teamId = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Team Invites /// @@ -516,12 +406,7 @@ System.Threading.Tasks.Task> TeamInfoWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamInvitesResponse - System.Threading.Tasks.Task TeamInvitesAsync( - string? emailAddress = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamInvitesAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Team Invites @@ -534,13 +419,7 @@ System.Threading.Tasks.Task TeamInvitesAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamInvitesResponse) - System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync( - string? emailAddress = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Team Members /// @@ -554,14 +433,7 @@ System.Threading.Tasks.Task> TeamInvitesWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamMembersResponse - System.Threading.Tasks.Task TeamMembersAsync( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamMembersAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Team Members @@ -576,15 +448,7 @@ System.Threading.Tasks.Task TeamMembersAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamMembersResponse) - System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Remove User from Team /// @@ -596,12 +460,7 @@ System.Threading.Tasks.Task> TeamMembersWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamRemoveMemberAsync( - TeamRemoveMemberRequest teamRemoveMemberRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Remove User from Team @@ -614,13 +473,7 @@ System.Threading.Tasks.Task TeamRemoveMemberAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync( - TeamRemoveMemberRequest teamRemoveMemberRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Sub Teams /// @@ -634,14 +487,7 @@ System.Threading.Tasks.Task> TeamRemoveMemberWithHt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamSubTeamsResponse - System.Threading.Tasks.Task TeamSubTeamsAsync( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamSubTeamsAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Sub Teams @@ -656,17 +502,7 @@ System.Threading.Tasks.Task TeamSubTeamsAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamSubTeamsResponse) - System.Threading.Tasks.Task< - ApiResponse - > TeamSubTeamsWithHttpInfoAsync( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update Team /// @@ -678,12 +514,7 @@ System.Threading.Tasks.Task TeamSubTeamsAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamUpdateAsync( - TeamUpdateRequest teamUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update Team @@ -696,19 +527,17 @@ System.Threading.Tasks.Task TeamUpdateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync( - TeamUpdateRequest teamUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface ITeamApi : ITeamApiSync, ITeamApiAsync { } + public interface ITeamApi : ITeamApiSync, ITeamApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -721,8 +550,9 @@ public partial class TeamApi : ITeamApi /// Initializes a new instance of the class. /// /// - public TeamApi() - : this((string)null) { } + public TeamApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -735,9 +565,7 @@ public TeamApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -749,17 +577,14 @@ public TeamApi(string basePath) /// public TeamApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -770,18 +595,11 @@ public TeamApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public TeamApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public TeamApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -823,9 +641,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -840,14 +656,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// The id of the team. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamAddMember( - TeamAddMemberRequest teamAddMemberRequest, - string? teamId = default(string?), - int operationIndex = 0 - ) + public TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); return localVarResponse.Data; } @@ -859,23 +670,15 @@ public TeamGetResponse TeamAddMember( /// The id of the team. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInfo( - TeamAddMemberRequest teamAddMemberRequest, - string? teamId = default(string?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0) { // verify the required parameter 'teamAddMemberRequest' is set if (teamAddMemberRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamAddMemberRequest' when calling TeamApi->TeamAddMember" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamAddMemberRequest' when calling TeamApi->TeamAddMember"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamAddMemberRequest.GetOpenApiTypes(); @@ -891,7 +694,9 @@ public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInf } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -906,9 +711,7 @@ public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInf if (teamId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; @@ -916,39 +719,19 @@ public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInf // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Put( - "/team/add_member", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Put("/team/add_member", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamAddMember", localVarResponse); @@ -970,22 +753,9 @@ public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamAddMemberAsync( - TeamAddMemberRequest teamAddMemberRequest, - string? teamId = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TeamAddMemberWithHttpInfoAsync( - teamAddMemberRequest, - teamId, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamAddMemberWithHttpInfoAsync(teamAddMemberRequest, teamId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -998,25 +768,16 @@ await TeamAddMemberWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync( - TeamAddMemberRequest teamAddMemberRequest, - string? teamId = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'teamAddMemberRequest' is set if (teamAddMemberRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamAddMemberRequest' when calling TeamApi->TeamAddMember" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamAddMemberRequest' when calling TeamApi->TeamAddMember"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamAddMemberRequest.GetOpenApiTypes(); @@ -1032,7 +793,9 @@ await TeamAddMemberWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1047,9 +810,7 @@ await TeamAddMemberWithHttpInfoAsync( if (teamId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; @@ -1057,42 +818,19 @@ await TeamAddMemberWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PutAsync( - "/team/add_member", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/team/add_member", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1113,13 +851,9 @@ await TeamAddMemberWithHttpInfoAsync( /// /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamCreate( - TeamCreateRequest teamCreateRequest, - int operationIndex = 0 - ) + public TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TeamCreateWithHttpInfo(teamCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamCreateWithHttpInfo(teamCreateRequest); return localVarResponse.Data; } @@ -1130,22 +864,15 @@ public TeamGetResponse TeamCreate( /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo( - TeamCreateRequest teamCreateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, int operationIndex = 0) { // verify the required parameter 'teamCreateRequest' is set if (teamCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamCreateRequest' when calling TeamApi->TeamCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamCreateRequest' when calling TeamApi->TeamCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamCreateRequest.GetOpenApiTypes(); @@ -1161,7 +888,9 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1174,44 +903,25 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/team/create", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/team/create", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamCreate", localVarResponse); @@ -1232,20 +942,9 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamCreateAsync( - TeamCreateRequest teamCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TeamCreateWithHttpInfoAsync( - teamCreateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamCreateWithHttpInfoAsync(teamCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1257,24 +956,16 @@ await TeamCreateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync( - TeamCreateRequest teamCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'teamCreateRequest' is set if (teamCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamCreateRequest' when calling TeamApi->TeamCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamCreateRequest' when calling TeamApi->TeamCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamCreateRequest.GetOpenApiTypes(); @@ -1290,7 +981,9 @@ await TeamCreateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1303,47 +996,25 @@ await TeamCreateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/team/create", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/team/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1374,20 +1045,18 @@ public void TeamDelete(int operationIndex = 0) /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo( - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1400,44 +1069,25 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Delete( - "/team/destroy", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Delete("/team/destroy", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamDelete", localVarResponse); @@ -1457,14 +1107,9 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TeamDeleteAsync( - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamDeleteAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await TeamDeleteWithHttpInfoAsync(operationIndex, cancellationToken) - .ConfigureAwait(false); + await TeamDeleteWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -1474,22 +1119,19 @@ await TeamDeleteWithHttpInfoAsync(operationIndex, cancellationToken) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync( - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1502,47 +1144,25 @@ await TeamDeleteWithHttpInfoAsync(operationIndex, cancellationToken) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.DeleteAsync( - "/team/destroy", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/team/destroy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1564,8 +1184,7 @@ await TeamDeleteWithHttpInfoAsync(operationIndex, cancellationToken) /// TeamGetResponse public TeamGetResponse TeamGet(int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TeamGetWithHttpInfo(); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamGetWithHttpInfo(); return localVarResponse.Data; } @@ -1575,20 +1194,18 @@ public TeamGetResponse TeamGet(int operationIndex = 0) /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo( - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1601,44 +1218,25 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/team", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/team", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamGet", localVarResponse); @@ -1658,15 +1256,9 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamGetAsync( - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TeamGetWithHttpInfoAsync(operationIndex, cancellationToken) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1677,22 +1269,19 @@ await TeamGetWithHttpInfoAsync(operationIndex, cancellationToken) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync( - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1705,47 +1294,25 @@ await TeamGetWithHttpInfoAsync(operationIndex, cancellationToken) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/team", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/team", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1766,13 +1333,9 @@ await TeamGetWithHttpInfoAsync(operationIndex, cancellationToken) /// The id of the team. (optional) /// Index associated with the operation. /// TeamGetInfoResponse - public TeamGetInfoResponse TeamInfo( - string? teamId = default(string?), - int operationIndex = 0 - ) + public TeamGetInfoResponse TeamInfo(string? teamId = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TeamInfoWithHttpInfo(teamId); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamInfoWithHttpInfo(teamId); return localVarResponse.Data; } @@ -1783,21 +1346,18 @@ public TeamGetInfoResponse TeamInfo( /// The id of the team. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetInfoResponse - public Dropbox.Sign.Client.ApiResponse TeamInfoWithHttpInfo( - string? teamId = default(string?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamInfoWithHttpInfo(string? teamId = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1812,9 +1372,7 @@ public Dropbox.Sign.Client.ApiResponse TeamInfoWithHttpInfo if (teamId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } localVarRequestOptions.Operation = "TeamApi.TeamInfo"; @@ -1822,39 +1380,19 @@ public Dropbox.Sign.Client.ApiResponse TeamInfoWithHttpInfo // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/team/info", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/team/info", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamInfo", localVarResponse); @@ -1875,16 +1413,9 @@ public Dropbox.Sign.Client.ApiResponse TeamInfoWithHttpInfo /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetInfoResponse - public async System.Threading.Tasks.Task TeamInfoAsync( - string? teamId = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TeamInfoWithHttpInfoAsync(teamId, operationIndex, cancellationToken) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamInfoWithHttpInfoAsync(teamId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1896,23 +1427,19 @@ await TeamInfoWithHttpInfoAsync(teamId, operationIndex, cancellationToken) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetInfoResponse) - public async System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync( - string? teamId = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1927,9 +1454,7 @@ await TeamInfoWithHttpInfoAsync(teamId, operationIndex, cancellationToken) if (teamId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } localVarRequestOptions.Operation = "TeamApi.TeamInfo"; @@ -1937,42 +1462,19 @@ await TeamInfoWithHttpInfoAsync(teamId, operationIndex, cancellationToken) // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/team/info", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/team/info", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1993,13 +1495,9 @@ await TeamInfoWithHttpInfoAsync(teamId, operationIndex, cancellationToken) /// The email address for which to display the team invites. (optional) /// Index associated with the operation. /// TeamInvitesResponse - public TeamInvitesResponse TeamInvites( - string? emailAddress = default(string?), - int operationIndex = 0 - ) + public TeamInvitesResponse TeamInvites(string? emailAddress = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TeamInvitesWithHttpInfo(emailAddress); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamInvitesWithHttpInfo(emailAddress); return localVarResponse.Data; } @@ -2010,21 +1508,18 @@ public TeamInvitesResponse TeamInvites( /// The email address for which to display the team invites. (optional) /// Index associated with the operation. /// ApiResponse of TeamInvitesResponse - public Dropbox.Sign.Client.ApiResponse TeamInvitesWithHttpInfo( - string? emailAddress = default(string?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamInvitesWithHttpInfo(string? emailAddress = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2039,13 +1534,7 @@ public Dropbox.Sign.Client.ApiResponse TeamInvitesWithHttpI if (emailAddress != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "email_address", - emailAddress - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); } localVarRequestOptions.Operation = "TeamApi.TeamInvites"; @@ -2053,39 +1542,19 @@ public Dropbox.Sign.Client.ApiResponse TeamInvitesWithHttpI // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/team/invites", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/team/invites", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamInvites", localVarResponse); @@ -2106,16 +1575,9 @@ public Dropbox.Sign.Client.ApiResponse TeamInvitesWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamInvitesResponse - public async System.Threading.Tasks.Task TeamInvitesAsync( - string? emailAddress = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamInvitesAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TeamInvitesWithHttpInfoAsync(emailAddress, operationIndex, cancellationToken) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamInvitesWithHttpInfoAsync(emailAddress, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2127,23 +1589,19 @@ await TeamInvitesWithHttpInfoAsync(emailAddress, operationIndex, cancellationTok /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamInvitesResponse) - public async System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync( - string? emailAddress = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2158,13 +1616,7 @@ await TeamInvitesWithHttpInfoAsync(emailAddress, operationIndex, cancellationTok if (emailAddress != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "email_address", - emailAddress - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "email_address", emailAddress)); } localVarRequestOptions.Operation = "TeamApi.TeamInvites"; @@ -2172,42 +1624,19 @@ await TeamInvitesWithHttpInfoAsync(emailAddress, operationIndex, cancellationTok // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/team/invites", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/team/invites", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2230,15 +1659,9 @@ await TeamInvitesWithHttpInfoAsync(emailAddress, operationIndex, cancellationTok /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// TeamMembersResponse - public TeamMembersResponse TeamMembers( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public TeamMembersResponse TeamMembers(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TeamMembersWithHttpInfo(teamId, page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamMembersWithHttpInfo(teamId, page, pageSize); return localVarResponse.Data; } @@ -2251,32 +1674,24 @@ public TeamMembersResponse TeamMembers( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of TeamMembersResponse - public Dropbox.Sign.Client.ApiResponse TeamMembersWithHttpInfo( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamMembersWithHttpInfo(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { // verify the required parameter 'teamId' is set if (teamId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamId' when calling TeamApi->TeamMembers" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamId' when calling TeamApi->TeamMembers"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2289,21 +1704,14 @@ public Dropbox.Sign.Client.ApiResponse TeamMembersWithHttpI localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "team_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("team_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId)); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "TeamApi.TeamMembers"; @@ -2311,39 +1719,19 @@ public Dropbox.Sign.Client.ApiResponse TeamMembersWithHttpI // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/team/members/{team_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/team/members/{team_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamMembers", localVarResponse); @@ -2366,24 +1754,9 @@ public Dropbox.Sign.Client.ApiResponse TeamMembersWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamMembersResponse - public async System.Threading.Tasks.Task TeamMembersAsync( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamMembersAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TeamMembersWithHttpInfoAsync( - teamId, - page, - pageSize, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamMembersWithHttpInfoAsync(teamId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2397,34 +1770,25 @@ await TeamMembersWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamMembersResponse) - public async System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'teamId' is set if (teamId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamId' when calling TeamApi->TeamMembers" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamId' when calling TeamApi->TeamMembers"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2437,21 +1801,14 @@ await TeamMembersWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "team_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("team_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId)); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "TeamApi.TeamMembers"; @@ -2459,42 +1816,19 @@ await TeamMembersWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/team/members/{team_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/team/members/{team_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2515,13 +1849,9 @@ await TeamMembersWithHttpInfoAsync( /// /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamRemoveMember( - TeamRemoveMemberRequest teamRemoveMemberRequest, - int operationIndex = 0 - ) + public TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest); return localVarResponse.Data; } @@ -2532,22 +1862,15 @@ public TeamGetResponse TeamRemoveMember( /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttpInfo( - TeamRemoveMemberRequest teamRemoveMemberRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0) { // verify the required parameter 'teamRemoveMemberRequest' is set if (teamRemoveMemberRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamRemoveMemberRequest' when calling TeamApi->TeamRemoveMember" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamRemoveMemberRequest' when calling TeamApi->TeamRemoveMember"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamRemoveMemberRequest.GetOpenApiTypes(); @@ -2563,7 +1886,9 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2576,44 +1901,25 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/team/remove_member", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/team/remove_member", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamRemoveMember", localVarResponse); @@ -2634,20 +1940,9 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamRemoveMemberAsync( - TeamRemoveMemberRequest teamRemoveMemberRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TeamRemoveMemberWithHttpInfoAsync( - teamRemoveMemberRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamRemoveMemberWithHttpInfoAsync(teamRemoveMemberRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2659,24 +1954,16 @@ await TeamRemoveMemberWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync( - TeamRemoveMemberRequest teamRemoveMemberRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'teamRemoveMemberRequest' is set if (teamRemoveMemberRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamRemoveMemberRequest' when calling TeamApi->TeamRemoveMember" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamRemoveMemberRequest' when calling TeamApi->TeamRemoveMember"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamRemoveMemberRequest.GetOpenApiTypes(); @@ -2692,7 +1979,9 @@ await TeamRemoveMemberWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2705,47 +1994,25 @@ await TeamRemoveMemberWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/team/remove_member", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/team/remove_member", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2768,15 +2035,9 @@ await TeamRemoveMemberWithHttpInfoAsync( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// TeamSubTeamsResponse - public TeamSubTeamsResponse TeamSubTeams( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public TeamSubTeamsResponse TeamSubTeams(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TeamSubTeamsWithHttpInfo(teamId, page, pageSize); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamSubTeamsWithHttpInfo(teamId, page, pageSize); return localVarResponse.Data; } @@ -2789,32 +2050,24 @@ public TeamSubTeamsResponse TeamSubTeams( /// Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) /// Index associated with the operation. /// ApiResponse of TeamSubTeamsResponse - public Dropbox.Sign.Client.ApiResponse TeamSubTeamsWithHttpInfo( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamSubTeamsWithHttpInfo(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0) { // verify the required parameter 'teamId' is set if (teamId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamId' when calling TeamApi->TeamSubTeams" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamId' when calling TeamApi->TeamSubTeams"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2827,21 +2080,14 @@ public Dropbox.Sign.Client.ApiResponse TeamSubTeamsWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "team_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("team_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId)); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "TeamApi.TeamSubTeams"; @@ -2849,39 +2095,19 @@ public Dropbox.Sign.Client.ApiResponse TeamSubTeamsWithHtt // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/team/sub_teams/{team_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/team/sub_teams/{team_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamSubTeams", localVarResponse); @@ -2904,24 +2130,9 @@ public Dropbox.Sign.Client.ApiResponse TeamSubTeamsWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamSubTeamsResponse - public async System.Threading.Tasks.Task TeamSubTeamsAsync( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamSubTeamsAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TeamSubTeamsWithHttpInfoAsync( - teamId, - page, - pageSize, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamSubTeamsWithHttpInfoAsync(teamId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2935,34 +2146,25 @@ await TeamSubTeamsWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamSubTeamsResponse) - public async System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync( - string teamId, - int? page = default(int?), - int? pageSize = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'teamId' is set if (teamId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamId' when calling TeamApi->TeamSubTeams" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamId' when calling TeamApi->TeamSubTeams"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2975,21 +2177,14 @@ await TeamSubTeamsWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "team_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("team_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(teamId)); // path parameter if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } localVarRequestOptions.Operation = "TeamApi.TeamSubTeams"; @@ -2997,42 +2192,19 @@ await TeamSubTeamsWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/team/sub_teams/{team_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/team/sub_teams/{team_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -3053,13 +2225,9 @@ await TeamSubTeamsWithHttpInfoAsync( /// /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamUpdate( - TeamUpdateRequest teamUpdateRequest, - int operationIndex = 0 - ) + public TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TeamUpdateWithHttpInfo(teamUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamUpdateWithHttpInfo(teamUpdateRequest); return localVarResponse.Data; } @@ -3070,22 +2238,15 @@ public TeamGetResponse TeamUpdate( /// /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo( - TeamUpdateRequest teamUpdateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0) { // verify the required parameter 'teamUpdateRequest' is set if (teamUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamUpdateRequest' when calling TeamApi->TeamUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamUpdateRequest' when calling TeamApi->TeamUpdate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamUpdateRequest.GetOpenApiTypes(); @@ -3101,7 +2262,9 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3114,44 +2277,25 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Put( - "/team", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Put("/team", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TeamUpdate", localVarResponse); @@ -3172,20 +2316,9 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamUpdateAsync( - TeamUpdateRequest teamUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TeamUpdateWithHttpInfoAsync( - teamUpdateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamUpdateWithHttpInfoAsync(teamUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3197,24 +2330,16 @@ await TeamUpdateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync( - TeamUpdateRequest teamUpdateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'teamUpdateRequest' is set if (teamUpdateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'teamUpdateRequest' when calling TeamApi->TeamUpdate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'teamUpdateRequest' when calling TeamApi->TeamUpdate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = teamUpdateRequest.GetOpenApiTypes(); @@ -3230,7 +2355,9 @@ await TeamUpdateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3243,47 +2370,25 @@ await TeamUpdateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PutAsync( - "/team", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/team", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -3296,5 +2401,6 @@ await TeamUpdateWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs index dd8149ecc..6211320d3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -37,11 +38,7 @@ public interface ITemplateApiSync : IApiAccessor /// /// Index associated with the operation. /// TemplateGetResponse - TemplateGetResponse TemplateAddUser( - string templateId, - TemplateAddUserRequest templateAddUserRequest, - int operationIndex = 0 - ); + TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0); /// /// Add User to Template @@ -54,12 +51,7 @@ TemplateGetResponse TemplateAddUser( /// /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateAddUserWithHttpInfo( - string templateId, - TemplateAddUserRequest templateAddUserRequest, - int operationIndex = 0 - ); - + ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0); /// /// Create Template /// @@ -70,10 +62,7 @@ ApiResponse TemplateAddUserWithHttpInfo( /// /// Index associated with the operation. /// TemplateCreateResponse - TemplateCreateResponse TemplateCreate( - TemplateCreateRequest templateCreateRequest, - int operationIndex = 0 - ); + TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, int operationIndex = 0); /// /// Create Template @@ -85,11 +74,7 @@ TemplateCreateResponse TemplateCreate( /// /// Index associated with the operation. /// ApiResponse of TemplateCreateResponse - ApiResponse TemplateCreateWithHttpInfo( - TemplateCreateRequest templateCreateRequest, - int operationIndex = 0 - ); - + ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, int operationIndex = 0); /// /// Create Embedded Template Draft /// @@ -100,10 +85,7 @@ ApiResponse TemplateCreateWithHttpInfo( /// /// Index associated with the operation. /// TemplateCreateEmbeddedDraftResponse - TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - int operationIndex = 0 - ); + TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0); /// /// Create Embedded Template Draft @@ -115,11 +97,7 @@ TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft( /// /// Index associated with the operation. /// ApiResponse of TemplateCreateEmbeddedDraftResponse - ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - int operationIndex = 0 - ); - + ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0); /// /// Delete Template /// @@ -143,7 +121,6 @@ ApiResponse TemplateCreateEmbeddedDraftWith /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse TemplateDeleteWithHttpInfo(string templateId, int operationIndex = 0); - /// /// Get Template Files /// @@ -155,11 +132,7 @@ ApiResponse TemplateCreateEmbeddedDraftWith /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) /// Index associated with the operation. /// System.IO.Stream - System.IO.Stream TemplateFiles( - string templateId, - string? fileType = default(string?), - int operationIndex = 0 - ); + System.IO.Stream TemplateFiles(string templateId, string? fileType = default(string?), int operationIndex = 0); /// /// Get Template Files @@ -172,12 +145,7 @@ System.IO.Stream TemplateFiles( /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) /// Index associated with the operation. /// ApiResponse of System.IO.Stream - ApiResponse TemplateFilesWithHttpInfo( - string templateId, - string? fileType = default(string?), - int operationIndex = 0 - ); - + ApiResponse TemplateFilesWithHttpInfo(string templateId, string? fileType = default(string?), int operationIndex = 0); /// /// Get Template Files as Data Uri /// @@ -200,11 +168,7 @@ System.IO.Stream TemplateFiles( /// The id of the template files to retrieve. /// Index associated with the operation. /// ApiResponse of FileResponseDataUri - ApiResponse TemplateFilesAsDataUriWithHttpInfo( - string templateId, - int operationIndex = 0 - ); - + ApiResponse TemplateFilesAsDataUriWithHttpInfo(string templateId, int operationIndex = 0); /// /// Get Template Files as File Url /// @@ -216,11 +180,7 @@ ApiResponse TemplateFilesAsDataUriWithHttpInfo( /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// FileResponse - FileResponse TemplateFilesAsFileUrl( - string templateId, - int? forceDownload = default(int?), - int operationIndex = 0 - ); + FileResponse TemplateFilesAsFileUrl(string templateId, int? forceDownload = default(int?), int operationIndex = 0); /// /// Get Template Files as File Url @@ -233,12 +193,7 @@ FileResponse TemplateFilesAsFileUrl( /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// ApiResponse of FileResponse - ApiResponse TemplateFilesAsFileUrlWithHttpInfo( - string templateId, - int? forceDownload = default(int?), - int operationIndex = 0 - ); - + ApiResponse TemplateFilesAsFileUrlWithHttpInfo(string templateId, int? forceDownload = default(int?), int operationIndex = 0); /// /// Get Template /// @@ -261,11 +216,7 @@ ApiResponse TemplateFilesAsFileUrlWithHttpInfo( /// The id of the Template to retrieve. /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateGetWithHttpInfo( - string templateId, - int operationIndex = 0 - ); - + ApiResponse TemplateGetWithHttpInfo(string templateId, int operationIndex = 0); /// /// List Templates /// @@ -279,13 +230,7 @@ ApiResponse TemplateGetWithHttpInfo( /// String that includes search terms and/or fields to be used to filter the Template objects. (optional) /// Index associated with the operation. /// TemplateListResponse - TemplateListResponse TemplateList( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0 - ); + TemplateListResponse TemplateList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0); /// /// List Templates @@ -300,14 +245,7 @@ TemplateListResponse TemplateList( /// String that includes search terms and/or fields to be used to filter the Template objects. (optional) /// Index associated with the operation. /// ApiResponse of TemplateListResponse - ApiResponse TemplateListWithHttpInfo( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0 - ); - + ApiResponse TemplateListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0); /// /// Remove User from Template /// @@ -319,11 +257,7 @@ ApiResponse TemplateListWithHttpInfo( /// /// Index associated with the operation. /// TemplateGetResponse - TemplateGetResponse TemplateRemoveUser( - string templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - int operationIndex = 0 - ); + TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0); /// /// Remove User from Template @@ -336,12 +270,7 @@ TemplateGetResponse TemplateRemoveUser( /// /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateRemoveUserWithHttpInfo( - string templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - int operationIndex = 0 - ); - + ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0); /// /// Update Template Files /// @@ -353,11 +282,7 @@ ApiResponse TemplateRemoveUserWithHttpInfo( /// /// Index associated with the operation. /// TemplateUpdateFilesResponse - TemplateUpdateFilesResponse TemplateUpdateFiles( - string templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - int operationIndex = 0 - ); + TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0); /// /// Update Template Files @@ -370,11 +295,7 @@ TemplateUpdateFilesResponse TemplateUpdateFiles( /// /// Index associated with the operation. /// ApiResponse of TemplateUpdateFilesResponse - ApiResponse TemplateUpdateFilesWithHttpInfo( - string templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - int operationIndex = 0 - ); + ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -396,13 +317,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateAddUserAsync( - string templateId, - TemplateAddUserRequest templateAddUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Add User to Template @@ -416,16 +331,7 @@ System.Threading.Tasks.Task TemplateAddUserAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > TemplateAddUserWithHttpInfoAsync( - string templateId, - TemplateAddUserRequest templateAddUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Template /// @@ -437,12 +343,7 @@ System.Threading.Tasks.Task TemplateAddUserAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - System.Threading.Tasks.Task TemplateCreateAsync( - TemplateCreateRequest templateCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Template @@ -455,15 +356,7 @@ System.Threading.Tasks.Task TemplateCreateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - System.Threading.Tasks.Task< - ApiResponse - > TemplateCreateWithHttpInfoAsync( - TemplateCreateRequest templateCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Template Draft /// @@ -475,12 +368,7 @@ System.Threading.Tasks.Task TemplateCreateAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Template Draft @@ -493,15 +381,7 @@ System.Threading.Tasks.Task TemplateCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - System.Threading.Tasks.Task< - ApiResponse - > TemplateCreateEmbeddedDraftWithHttpInfoAsync( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete Template /// @@ -513,12 +393,7 @@ System.Threading.Tasks.Task TemplateCreateE /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TemplateDeleteAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete Template @@ -531,13 +406,7 @@ System.Threading.Tasks.Task TemplateDeleteAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Template Files /// @@ -550,13 +419,7 @@ System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - System.Threading.Tasks.Task TemplateFilesAsync( - string templateId, - string? fileType = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateFilesAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Template Files @@ -570,14 +433,7 @@ System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync( - string templateId, - string? fileType = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Template Files as Data Uri /// @@ -589,12 +445,7 @@ System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - System.Threading.Tasks.Task TemplateFilesAsDataUriAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateFilesAsDataUriAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Template Files as Data Uri @@ -607,15 +458,7 @@ System.Threading.Tasks.Task TemplateFilesAsDataUriAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - System.Threading.Tasks.Task< - ApiResponse - > TemplateFilesAsDataUriWithHttpInfoAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Template Files as File Url /// @@ -628,13 +471,7 @@ System.Threading.Tasks.Task TemplateFilesAsDataUriAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync( - string templateId, - int? forceDownload = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Template Files as File Url @@ -648,16 +485,7 @@ System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - System.Threading.Tasks.Task< - ApiResponse - > TemplateFilesAsFileUrlWithHttpInfoAsync( - string templateId, - int? forceDownload = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Template /// @@ -669,12 +497,7 @@ System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateGetAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateGetAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Template @@ -687,13 +510,7 @@ System.Threading.Tasks.Task TemplateGetAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Templates /// @@ -708,15 +525,7 @@ System.Threading.Tasks.Task> TemplateGetWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateListResponse - System.Threading.Tasks.Task TemplateListAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Templates @@ -732,18 +541,7 @@ System.Threading.Tasks.Task TemplateListAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateListResponse) - System.Threading.Tasks.Task< - ApiResponse - > TemplateListWithHttpInfoAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Remove User from Template /// @@ -756,13 +554,7 @@ System.Threading.Tasks.Task TemplateListAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateRemoveUserAsync( - string templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Remove User from Template @@ -776,16 +568,7 @@ System.Threading.Tasks.Task TemplateRemoveUserAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task< - ApiResponse - > TemplateRemoveUserWithHttpInfoAsync( - string templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update Template Files /// @@ -798,13 +581,7 @@ System.Threading.Tasks.Task TemplateRemoveUserAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - System.Threading.Tasks.Task TemplateUpdateFilesAsync( - string templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update Template Files @@ -818,22 +595,17 @@ System.Threading.Tasks.Task TemplateUpdateFilesAsyn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - System.Threading.Tasks.Task< - ApiResponse - > TemplateUpdateFilesWithHttpInfoAsync( - string templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface ITemplateApi : ITemplateApiSync, ITemplateApiAsync { } + public interface ITemplateApi : ITemplateApiSync, ITemplateApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -846,8 +618,9 @@ public partial class TemplateApi : ITemplateApi /// Initializes a new instance of the class. /// /// - public TemplateApi() - : this((string)null) { } + public TemplateApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -860,9 +633,7 @@ public TemplateApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -874,17 +645,14 @@ public TemplateApi(string basePath) /// public TemplateApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -895,18 +663,11 @@ public TemplateApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public TemplateApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public TemplateApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -948,9 +709,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -965,14 +724,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// TemplateGetResponse - public TemplateGetResponse TemplateAddUser( - string templateId, - TemplateAddUserRequest templateAddUserRequest, - int operationIndex = 0 - ) + public TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest); return localVarResponse.Data; } @@ -984,32 +738,21 @@ public TemplateGetResponse TemplateAddUser( /// /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithHttpInfo( - string templateId, - TemplateAddUserRequest templateAddUserRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateAddUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateAddUser"); } // verify the required parameter 'templateAddUserRequest' is set if (templateAddUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateAddUserRequest' when calling TemplateApi->TemplateAddUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateAddUserRequest' when calling TemplateApi->TemplateAddUser"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateAddUserRequest.GetOpenApiTypes(); @@ -1025,7 +768,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1038,49 +783,26 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/template/add_user/{template_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/template/add_user/{template_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateAddUser", localVarResponse); @@ -1102,22 +824,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateAddUserAsync( - string templateId, - TemplateAddUserRequest templateAddUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateAddUserWithHttpInfoAsync( - templateId, - templateAddUserRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateAddUserWithHttpInfoAsync(templateId, templateAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1130,34 +839,22 @@ await TemplateAddUserWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync( - string templateId, - TemplateAddUserRequest templateAddUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateAddUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateAddUser"); } // verify the required parameter 'templateAddUserRequest' is set if (templateAddUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateAddUserRequest' when calling TemplateApi->TemplateAddUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateAddUserRequest' when calling TemplateApi->TemplateAddUser"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateAddUserRequest.GetOpenApiTypes(); @@ -1173,7 +870,9 @@ await TemplateAddUserWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1186,52 +885,26 @@ await TemplateAddUserWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/template/add_user/{template_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/template/add_user/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1252,13 +925,9 @@ await TemplateAddUserWithHttpInfoAsync( /// /// Index associated with the operation. /// TemplateCreateResponse - public TemplateCreateResponse TemplateCreate( - TemplateCreateRequest templateCreateRequest, - int operationIndex = 0 - ) + public TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateCreateWithHttpInfo(templateCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateWithHttpInfo(templateCreateRequest); return localVarResponse.Data; } @@ -1269,22 +938,15 @@ public TemplateCreateResponse TemplateCreate( /// /// Index associated with the operation. /// ApiResponse of TemplateCreateResponse - public Dropbox.Sign.Client.ApiResponse TemplateCreateWithHttpInfo( - TemplateCreateRequest templateCreateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, int operationIndex = 0) { // verify the required parameter 'templateCreateRequest' is set if (templateCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateCreateRequest' when calling TemplateApi->TemplateCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateCreateRequest' when calling TemplateApi->TemplateCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateCreateRequest.GetOpenApiTypes(); @@ -1300,7 +962,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1313,44 +977,25 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/template/create", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/template/create", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateCreate", localVarResponse); @@ -1371,20 +1016,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - public async System.Threading.Tasks.Task TemplateCreateAsync( - TemplateCreateRequest templateCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateCreateWithHttpInfoAsync( - templateCreateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateWithHttpInfoAsync(templateCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1396,24 +1030,16 @@ await TemplateCreateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync( - TemplateCreateRequest templateCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateCreateRequest' is set if (templateCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateCreateRequest' when calling TemplateApi->TemplateCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateCreateRequest' when calling TemplateApi->TemplateCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateCreateRequest.GetOpenApiTypes(); @@ -1429,7 +1055,9 @@ await TemplateCreateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1442,47 +1070,25 @@ await TemplateCreateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/template/create", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/template/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1503,13 +1109,9 @@ await TemplateCreateWithHttpInfoAsync( /// /// Index associated with the operation. /// TemplateCreateEmbeddedDraftResponse - public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - int operationIndex = 0 - ) + public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest); return localVarResponse.Data; } @@ -1520,22 +1122,15 @@ public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft( /// /// Index associated with the operation. /// ApiResponse of TemplateCreateEmbeddedDraftResponse - public Dropbox.Sign.Client.ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0) { // verify the required parameter 'templateCreateEmbeddedDraftRequest' is set if (templateCreateEmbeddedDraftRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateCreateEmbeddedDraftRequest' when calling TemplateApi->TemplateCreateEmbeddedDraft" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateCreateEmbeddedDraftRequest' when calling TemplateApi->TemplateCreateEmbeddedDraft"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateCreateEmbeddedDraftRequest.GetOpenApiTypes(); @@ -1551,7 +1146,9 @@ public Dropbox.Sign.Client.ApiResponse Temp } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1564,50 +1161,28 @@ public Dropbox.Sign.Client.ApiResponse Temp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/template/create_embedded_draft", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/template/create_embedded_draft", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateCreateEmbeddedDraft", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateCreateEmbeddedDraft", localVarResponse); if (_exception != null) { throw _exception; @@ -1625,20 +1200,9 @@ public Dropbox.Sign.Client.ApiResponse Temp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateCreateEmbeddedDraftWithHttpInfoAsync( - templateCreateEmbeddedDraftRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateEmbeddedDraftWithHttpInfoAsync(templateCreateEmbeddedDraftRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1650,24 +1214,16 @@ await TemplateCreateEmbeddedDraftWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateCreateEmbeddedDraftRequest' is set if (templateCreateEmbeddedDraftRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateCreateEmbeddedDraftRequest' when calling TemplateApi->TemplateCreateEmbeddedDraft" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateCreateEmbeddedDraftRequest' when calling TemplateApi->TemplateCreateEmbeddedDraft"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateCreateEmbeddedDraftRequest.GetOpenApiTypes(); @@ -1683,7 +1239,9 @@ await TemplateCreateEmbeddedDraftWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1696,54 +1254,29 @@ await TemplateCreateEmbeddedDraftWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/template/create_embedded_draft", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/template/create_embedded_draft", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateCreateEmbeddedDraft", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateCreateEmbeddedDraft", localVarResponse); if (_exception != null) { throw _exception; @@ -1772,30 +1305,24 @@ public void TemplateDelete(string templateId, int operationIndex = 0) /// The id of the Template to delete. /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo( - string templateId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string templateId, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateDelete" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateDelete"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1808,49 +1335,26 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/template/delete/{template_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/template/delete/{template_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateDelete", localVarResponse); @@ -1871,15 +1375,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TemplateDeleteAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationToken) - .ConfigureAwait(false); + await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -1890,32 +1388,25 @@ await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationTo /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateDelete" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateDelete"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1928,52 +1419,26 @@ await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationTo localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/template/delete/{template_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/template/delete/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1995,14 +1460,9 @@ await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationTo /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) /// Index associated with the operation. /// System.IO.Stream - public System.IO.Stream TemplateFiles( - string templateId, - string? fileType = default(string?), - int operationIndex = 0 - ) + public System.IO.Stream TemplateFiles(string templateId, string? fileType = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateFilesWithHttpInfo(templateId, fileType); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateFilesWithHttpInfo(templateId, fileType); return localVarResponse.Data; } @@ -2014,35 +1474,25 @@ public System.IO.Stream TemplateFiles( /// Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) /// Index associated with the operation. /// ApiResponse of System.IO.Stream - public Dropbox.Sign.Client.ApiResponse TemplateFilesWithHttpInfo( - string templateId, - string? fileType = default(string?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateFilesWithHttpInfo(string templateId, string? fileType = default(string?), int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateFiles" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFiles"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] - { + string[] _accepts = new string[] { "application/pdf", "application/zip", - "application/json", + "application/json" }; if (localVarContentType != null) @@ -2056,15 +1506,10 @@ public System.IO.Stream TemplateFiles( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter if (fileType != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); } localVarRequestOptions.Operation = "TemplateApi.TemplateFiles"; @@ -2072,39 +1517,19 @@ public System.IO.Stream TemplateFiles( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/template/files/{template_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/template/files/{template_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateFiles", localVarResponse); @@ -2126,22 +1551,9 @@ public System.IO.Stream TemplateFiles( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task TemplateFilesAsync( - string templateId, - string? fileType = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateFilesAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateFilesWithHttpInfoAsync( - templateId, - fileType, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateFilesWithHttpInfoAsync(templateId, fileType, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2154,37 +1566,26 @@ await TemplateFilesWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync( - string templateId, - string? fileType = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateFiles" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFiles"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] - { + string[] _accepts = new string[] { "application/pdf", "application/zip", - "application/json", + "application/json" }; if (localVarContentType != null) @@ -2198,15 +1599,10 @@ await TemplateFilesWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter if (fileType != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "file_type", fileType)); } localVarRequestOptions.Operation = "TemplateApi.TemplateFiles"; @@ -2214,42 +1610,19 @@ await TemplateFilesWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/template/files/{template_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/template/files/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2272,8 +1645,7 @@ await TemplateFilesWithHttpInfoAsync( /// FileResponseDataUri public FileResponseDataUri TemplateFilesAsDataUri(string templateId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateFilesAsDataUriWithHttpInfo(templateId); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateFilesAsDataUriWithHttpInfo(templateId); return localVarResponse.Data; } @@ -2284,30 +1656,24 @@ public FileResponseDataUri TemplateFilesAsDataUri(string templateId, int operati /// The id of the template files to retrieve. /// Index associated with the operation. /// ApiResponse of FileResponseDataUri - public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataUriWithHttpInfo( - string templateId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataUriWithHttpInfo(string templateId, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsDataUri" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsDataUri"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2320,55 +1686,29 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/template/files_as_data_uri/{template_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/template/files_as_data_uri/{template_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateFilesAsDataUri", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateFilesAsDataUri", localVarResponse); if (_exception != null) { throw _exception; @@ -2386,20 +1726,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - public async System.Threading.Tasks.Task TemplateFilesAsDataUriAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateFilesAsDataUriAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateFilesAsDataUriWithHttpInfoAsync( - templateId, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateFilesAsDataUriWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2411,32 +1740,25 @@ await TemplateFilesAsDataUriWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - public async System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsDataUri" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsDataUri"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2449,59 +1771,30 @@ await TemplateFilesAsDataUriWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsDataUri"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/template/files_as_data_uri/{template_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/template/files_as_data_uri/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateFilesAsDataUri", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateFilesAsDataUri", localVarResponse); if (_exception != null) { throw _exception; @@ -2519,14 +1812,9 @@ await TemplateFilesAsDataUriWithHttpInfoAsync( /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// FileResponse - public FileResponse TemplateFilesAsFileUrl( - string templateId, - int? forceDownload = default(int?), - int operationIndex = 0 - ) + public FileResponse TemplateFilesAsFileUrl(string templateId, int? forceDownload = default(int?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateFilesAsFileUrlWithHttpInfo(templateId, forceDownload); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateFilesAsFileUrlWithHttpInfo(templateId, forceDownload); return localVarResponse.Data; } @@ -2538,31 +1826,24 @@ public FileResponse TemplateFilesAsFileUrl( /// By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) /// Index associated with the operation. /// ApiResponse of FileResponse - public Dropbox.Sign.Client.ApiResponse TemplateFilesAsFileUrlWithHttpInfo( - string templateId, - int? forceDownload = default(int?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateFilesAsFileUrlWithHttpInfo(string templateId, int? forceDownload = default(int?), int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsFileUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsFileUrl"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2575,19 +1856,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsFileUrlWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter if (forceDownload != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "force_download", - forceDownload - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); } localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsFileUrl"; @@ -2595,45 +1867,22 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsFileUrlWithH // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/template/files_as_file_url/{template_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/template/files_as_file_url/{template_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateFilesAsFileUrl", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateFilesAsFileUrl", localVarResponse); if (_exception != null) { throw _exception; @@ -2652,22 +1901,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsFileUrlWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - public async System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync( - string templateId, - int? forceDownload = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateFilesAsFileUrlWithHttpInfoAsync( - templateId, - forceDownload, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateFilesAsFileUrlWithHttpInfoAsync(templateId, forceDownload, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2680,33 +1916,25 @@ await TemplateFilesAsFileUrlWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - public async System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync( - string templateId, - int? forceDownload = default(int?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsFileUrl" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateFilesAsFileUrl"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2719,19 +1947,10 @@ await TemplateFilesAsFileUrlWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter if (forceDownload != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap( - "", - "force_download", - forceDownload - ) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "force_download", forceDownload)); } localVarRequestOptions.Operation = "TemplateApi.TemplateFilesAsFileUrl"; @@ -2739,49 +1958,23 @@ await TemplateFilesAsFileUrlWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/template/files_as_file_url/{template_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/template/files_as_file_url/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateFilesAsFileUrl", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateFilesAsFileUrl", localVarResponse); if (_exception != null) { throw _exception; @@ -2800,8 +1993,7 @@ await TemplateFilesAsFileUrlWithHttpInfoAsync( /// TemplateGetResponse public TemplateGetResponse TemplateGet(string templateId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateGetWithHttpInfo(templateId); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateGetWithHttpInfo(templateId); return localVarResponse.Data; } @@ -2812,30 +2004,24 @@ public TemplateGetResponse TemplateGet(string templateId, int operationIndex = 0 /// The id of the Template to retrieve. /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpInfo( - string templateId, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpInfo(string templateId, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2848,49 +2034,26 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/template/{template_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/template/{template_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateGet", localVarResponse); @@ -2911,16 +2074,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateGetAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateGetAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateGetWithHttpInfoAsync(templateId, operationIndex, cancellationToken) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateGetWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2932,32 +2088,25 @@ await TemplateGetWithHttpInfoAsync(templateId, operationIndex, cancellationToken /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync( - string templateId, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateGet" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateGet"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -2970,52 +2119,26 @@ await TemplateGetWithHttpInfoAsync(templateId, operationIndex, cancellationToken localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/template/{template_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/template/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -3039,16 +2162,9 @@ await TemplateGetWithHttpInfoAsync(templateId, operationIndex, cancellationToken /// String that includes search terms and/or fields to be used to filter the Template objects. (optional) /// Index associated with the operation. /// TemplateListResponse - public TemplateListResponse TemplateList( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0 - ) + public TemplateListResponse TemplateList(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateListWithHttpInfo(accountId, page, pageSize, query); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateListWithHttpInfo(accountId, page, pageSize, query); return localVarResponse.Data; } @@ -3062,24 +2178,18 @@ public TemplateListResponse TemplateList( /// String that includes search terms and/or fields to be used to filter the Template objects. (optional) /// Index associated with the operation. /// ApiResponse of TemplateListResponse - public Dropbox.Sign.Client.ApiResponse TemplateListWithHttpInfo( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateListWithHttpInfo(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3094,27 +2204,19 @@ public Dropbox.Sign.Client.ApiResponse TemplateListWithHtt if (accountId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); } if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } if (query != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); } localVarRequestOptions.Operation = "TemplateApi.TemplateList"; @@ -3122,39 +2224,19 @@ public Dropbox.Sign.Client.ApiResponse TemplateListWithHtt // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Get( - "/template/list", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Get("/template/list", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TemplateList", localVarResponse); @@ -3178,26 +2260,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateListWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateListResponse - public async System.Threading.Tasks.Task TemplateListAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateListWithHttpInfoAsync( - accountId, - page, - pageSize, - query, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateListWithHttpInfoAsync(accountId, page, pageSize, query, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3212,26 +2277,19 @@ await TemplateListWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateListResponse) - public async System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync( - string? accountId = default(string?), - int? page = default(int?), - int? pageSize = default(int?), - string? query = default(string?), - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); - string[] _contentTypes = new string[] { }; - var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType( - _contentTypes - ); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + var localVarContentType = Dropbox.Sign.Client.ClientUtils.SelectHeaderContentType(_contentTypes); // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3246,27 +2304,19 @@ await TemplateListWithHttpInfoAsync( if (accountId != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "account_id", accountId)); } if (page != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (pageSize != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); } if (query != null) { - localVarRequestOptions.QueryParameters.Add( - Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query) - ); + localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "query", query)); } localVarRequestOptions.Operation = "TemplateApi.TemplateList"; @@ -3274,42 +2324,19 @@ await TemplateListWithHttpInfoAsync( // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.GetAsync( - "/template/list", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/template/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -3331,14 +2358,9 @@ await TemplateListWithHttpInfoAsync( /// /// Index associated with the operation. /// TemplateGetResponse - public TemplateGetResponse TemplateRemoveUser( - string templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - int operationIndex = 0 - ) + public TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest); return localVarResponse.Data; } @@ -3350,32 +2372,21 @@ public TemplateGetResponse TemplateRemoveUser( /// /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWithHttpInfo( - string templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateRemoveUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateRemoveUser"); } // verify the required parameter 'templateRemoveUserRequest' is set if (templateRemoveUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateRemoveUserRequest' when calling TemplateApi->TemplateRemoveUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateRemoveUserRequest' when calling TemplateApi->TemplateRemoveUser"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateRemoveUserRequest.GetOpenApiTypes(); @@ -3391,7 +2402,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3404,55 +2417,29 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/template/remove_user/{template_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/template/remove_user/{template_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateRemoveUser", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateRemoveUser", localVarResponse); if (_exception != null) { throw _exception; @@ -3471,22 +2458,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateRemoveUserAsync( - string templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateRemoveUserWithHttpInfoAsync( - templateId, - templateRemoveUserRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateRemoveUserWithHttpInfoAsync(templateId, templateRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3499,34 +2473,22 @@ await TemplateRemoveUserWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync( - string templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateRemoveUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateRemoveUser"); } // verify the required parameter 'templateRemoveUserRequest' is set if (templateRemoveUserRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateRemoveUserRequest' when calling TemplateApi->TemplateRemoveUser" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateRemoveUserRequest' when calling TemplateApi->TemplateRemoveUser"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateRemoveUserRequest.GetOpenApiTypes(); @@ -3542,7 +2504,9 @@ await TemplateRemoveUserWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3555,59 +2519,30 @@ await TemplateRemoveUserWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/template/remove_user/{template_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/template/remove_user/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateRemoveUser", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateRemoveUser", localVarResponse); if (_exception != null) { throw _exception; @@ -3625,14 +2560,9 @@ await TemplateRemoveUserWithHttpInfoAsync( /// /// Index associated with the operation. /// TemplateUpdateFilesResponse - public TemplateUpdateFilesResponse TemplateUpdateFiles( - string templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - int operationIndex = 0 - ) + public TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest); return localVarResponse.Data; } @@ -3644,32 +2574,21 @@ public TemplateUpdateFilesResponse TemplateUpdateFiles( /// /// Index associated with the operation. /// ApiResponse of TemplateUpdateFilesResponse - public Dropbox.Sign.Client.ApiResponse TemplateUpdateFilesWithHttpInfo( - string templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateUpdateFiles" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateUpdateFiles"); } // verify the required parameter 'templateUpdateFilesRequest' is set if (templateUpdateFilesRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateUpdateFilesRequest' when calling TemplateApi->TemplateUpdateFiles" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateUpdateFilesRequest' when calling TemplateApi->TemplateUpdateFiles"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateUpdateFilesRequest.GetOpenApiTypes(); @@ -3685,7 +2604,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3698,55 +2619,29 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/template/update_files/{template_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/template/update_files/{template_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateUpdateFiles", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateUpdateFiles", localVarResponse); if (_exception != null) { throw _exception; @@ -3765,22 +2660,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - public async System.Threading.Tasks.Task TemplateUpdateFilesAsync( - string templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await TemplateUpdateFilesWithHttpInfoAsync( - templateId, - templateUpdateFilesRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateUpdateFilesWithHttpInfoAsync(templateId, templateUpdateFilesRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3793,34 +2675,22 @@ await TemplateUpdateFilesWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync( - string templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateId' when calling TemplateApi->TemplateUpdateFiles" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateId' when calling TemplateApi->TemplateUpdateFiles"); } // verify the required parameter 'templateUpdateFilesRequest' is set if (templateUpdateFilesRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'templateUpdateFilesRequest' when calling TemplateApi->TemplateUpdateFiles" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'templateUpdateFilesRequest' when calling TemplateApi->TemplateUpdateFiles"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = templateUpdateFilesRequest.GetOpenApiTypes(); @@ -3836,7 +2706,9 @@ await TemplateUpdateFilesWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -3849,59 +2721,30 @@ await TemplateUpdateFilesWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "template_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/template/update_files/{template_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/template/update_files/{template_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "TemplateUpdateFiles", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("TemplateUpdateFiles", localVarResponse); if (_exception != null) { throw _exception; @@ -3910,5 +2753,6 @@ await TemplateUpdateFilesWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs index 38b7de216..9db3b6a4c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs @@ -20,6 +20,7 @@ namespace Dropbox.Sign.Api { + /// /// Represents a collection of functions to interact with the API endpoints /// @@ -36,10 +37,7 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreate( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, - int operationIndex = 0 - ); + UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0); /// /// Create Unclaimed Draft @@ -51,11 +49,7 @@ UnclaimedDraftCreateResponse UnclaimedDraftCreate( /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateWithHttpInfo( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, - int operationIndex = 0 - ); - + ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0); /// /// Create Embedded Unclaimed Draft /// @@ -66,10 +60,7 @@ ApiResponse UnclaimedDraftCreateWithHttpInfo( /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - int operationIndex = 0 - ); + UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0); /// /// Create Embedded Unclaimed Draft @@ -81,11 +72,7 @@ UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded( /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - int operationIndex = 0 - ); - + ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0); /// /// Create Embedded Unclaimed Draft with Template /// @@ -96,10 +83,7 @@ ApiResponse UnclaimedDraftCreateEmbeddedWithHttpIn /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate( - UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ); + UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Create Embedded Unclaimed Draft with Template @@ -111,11 +95,7 @@ UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate( /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( - UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ); - + ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Edit and Resend Unclaimed Draft /// @@ -127,11 +107,7 @@ ApiResponse UnclaimedDraftCreateEmbeddedWithTempla /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend( - string signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - int operationIndex = 0 - ); + UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0); /// /// Edit and Resend Unclaimed Draft @@ -144,11 +120,7 @@ UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend( /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftEditAndResendWithHttpInfo( - string signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - int operationIndex = 0 - ); + ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -169,12 +141,7 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateAsync( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Unclaimed Draft @@ -187,15 +154,7 @@ System.Threading.Tasks.Task UnclaimedDraftCreateAs /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task< - ApiResponse - > UnclaimedDraftCreateWithHttpInfoAsync( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft /// @@ -207,12 +166,7 @@ System.Threading.Tasks.Task UnclaimedDraftCreateAs /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft @@ -225,15 +179,7 @@ System.Threading.Tasks.Task UnclaimedDraftCreateEm /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task< - ApiResponse - > UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft with Template /// @@ -245,12 +191,7 @@ System.Threading.Tasks.Task UnclaimedDraftCreateEm /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync( - UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft with Template @@ -263,15 +204,7 @@ System.Threading.Tasks.Task UnclaimedDraftCreateEm /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task< - ApiResponse - > UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( - UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); - + System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Edit and Resend Unclaimed Draft /// @@ -284,13 +217,7 @@ System.Threading.Tasks.Task UnclaimedDraftCreateEm /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync( - string signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Edit and Resend Unclaimed Draft @@ -304,22 +231,17 @@ System.Threading.Tasks.Task UnclaimedDraftEditAndR /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task< - ApiResponse - > UnclaimedDraftEditAndResendWithHttpInfoAsync( - string signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IUnclaimedDraftApi : IUnclaimedDraftApiSync, IUnclaimedDraftApiAsync { } + public interface IUnclaimedDraftApi : IUnclaimedDraftApiSync, IUnclaimedDraftApiAsync + { + + } /// /// Represents a collection of functions to interact with the API endpoints @@ -332,8 +254,9 @@ public partial class UnclaimedDraftApi : IUnclaimedDraftApi /// Initializes a new instance of the class. /// /// - public UnclaimedDraftApi() - : this((string)null) { } + public UnclaimedDraftApi() : this((string)null) + { + } /// /// Initializes a new instance of the class. @@ -346,9 +269,7 @@ public UnclaimedDraftApi(string basePath) new Dropbox.Sign.Client.Configuration { BasePath = basePath } ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -360,17 +281,14 @@ public UnclaimedDraftApi(string basePath) /// public UnclaimedDraftApi(Dropbox.Sign.Client.Configuration configuration) { - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Dropbox.Sign.Client.Configuration.MergeConfigurations( Dropbox.Sign.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient( - this.Configuration.BasePath - ); + this.AsynchronousClient = new Dropbox.Sign.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Dropbox.Sign.Client.Configuration.DefaultExceptionFactory; } @@ -381,18 +299,11 @@ public UnclaimedDraftApi(Dropbox.Sign.Client.Configuration configuration) /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public UnclaimedDraftApi( - Dropbox.Sign.Client.ISynchronousClient client, - Dropbox.Sign.Client.IAsynchronousClient asyncClient, - Dropbox.Sign.Client.IReadableConfiguration configuration - ) + public UnclaimedDraftApi(Dropbox.Sign.Client.ISynchronousClient client, Dropbox.Sign.Client.IAsynchronousClient asyncClient, Dropbox.Sign.Client.IReadableConfiguration configuration) { - if (client == null) - throw new ArgumentNullException("client"); - if (asyncClient == null) - throw new ArgumentNullException("asyncClient"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; @@ -434,9 +345,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { - throw new InvalidOperationException( - "Multicast delegate for ExceptionFactory is unsupported." - ); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } @@ -450,13 +359,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreate( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, - int operationIndex = 0 - ) + public UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest); return localVarResponse.Data; } @@ -467,22 +372,15 @@ public UnclaimedDraftCreateResponse UnclaimedDraftCreate( /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateWithHttpInfo( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0) { // verify the required parameter 'unclaimedDraftCreateRequest' is set if (unclaimedDraftCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'unclaimedDraftCreateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateRequest.GetOpenApiTypes(); @@ -498,7 +396,9 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -511,50 +411,28 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/unclaimed_draft/create", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/unclaimed_draft/create", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "UnclaimedDraftCreate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("UnclaimedDraftCreate", localVarResponse); if (_exception != null) { throw _exception; @@ -572,20 +450,9 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await UnclaimedDraftCreateWithHttpInfoAsync( - unclaimedDraftCreateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateWithHttpInfoAsync(unclaimedDraftCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -597,24 +464,16 @@ await UnclaimedDraftCreateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateRequest' is set if (unclaimedDraftCreateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'unclaimedDraftCreateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateRequest.GetOpenApiTypes(); @@ -630,7 +489,9 @@ await UnclaimedDraftCreateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -643,54 +504,29 @@ await UnclaimedDraftCreateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/unclaimed_draft/create", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/unclaimed_draft/create", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "UnclaimedDraftCreate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("UnclaimedDraftCreate", localVarResponse); if (_exception != null) { throw _exception; @@ -707,13 +543,9 @@ await UnclaimedDraftCreateWithHttpInfoAsync( /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - int operationIndex = 0 - ) + public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest); return localVarResponse.Data; } @@ -724,22 +556,15 @@ public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded( /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0) { // verify the required parameter 'unclaimedDraftCreateEmbeddedRequest' is set if (unclaimedDraftCreateEmbeddedRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbedded" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbedded"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateEmbeddedRequest.GetOpenApiTypes(); @@ -755,7 +580,9 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -768,50 +595,28 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/unclaimed_draft/create_embedded", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/unclaimed_draft/create_embedded", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "UnclaimedDraftCreateEmbedded", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("UnclaimedDraftCreateEmbedded", localVarResponse); if (_exception != null) { throw _exception; @@ -829,20 +634,9 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( - unclaimedDraftCreateEmbeddedRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(unclaimedDraftCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -854,24 +648,16 @@ await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateEmbeddedRequest' is set if (unclaimedDraftCreateEmbeddedRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbedded" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbedded"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateEmbeddedRequest.GetOpenApiTypes(); @@ -887,7 +673,9 @@ await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -900,54 +688,29 @@ await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/unclaimed_draft/create_embedded", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/unclaimed_draft/create_embedded", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "UnclaimedDraftCreateEmbedded", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("UnclaimedDraftCreateEmbedded", localVarResponse); if (_exception != null) { throw _exception; @@ -964,15 +727,9 @@ await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync( /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate( - UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ) + public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( - unclaimedDraftCreateEmbeddedWithTemplateRequest - ); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest); return localVarResponse.Data; } @@ -983,22 +740,15 @@ public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate( /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( - UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' is set if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbeddedWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbeddedWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); @@ -1014,7 +764,9 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1027,51 +779,28 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; + + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/unclaimed_draft/create_embedded_with_template", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/unclaimed_draft/create_embedded_with_template", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "UnclaimedDraftCreateEmbeddedWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("UnclaimedDraftCreateEmbeddedWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -1089,20 +818,9 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync( - UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( - unclaimedDraftCreateEmbeddedWithTemplateRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(unclaimedDraftCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1114,24 +832,16 @@ await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( - UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' is set if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbeddedWithTemplate" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling UnclaimedDraftApi->UnclaimedDraftCreateEmbeddedWithTemplate"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftCreateEmbeddedWithTemplateRequest.GetOpenApiTypes(); @@ -1147,7 +857,9 @@ await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1160,55 +872,29 @@ await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Operation = - "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; + + localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/unclaimed_draft/create_embedded_with_template", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/unclaimed_draft/create_embedded_with_template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "UnclaimedDraftCreateEmbeddedWithTemplate", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("UnclaimedDraftCreateEmbeddedWithTemplate", localVarResponse); if (_exception != null) { throw _exception; @@ -1226,17 +912,9 @@ await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync( /// /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend( - string signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - int operationIndex = 0 - ) + public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - UnclaimedDraftEditAndResendWithHttpInfo( - signatureRequestId, - unclaimedDraftEditAndResendRequest - ); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest); return localVarResponse.Data; } @@ -1248,32 +926,21 @@ public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend( /// /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftEditAndResendWithHttpInfo( - string signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - int operationIndex = 0 - ) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend"); } // verify the required parameter 'unclaimedDraftEditAndResendRequest' is set if (unclaimedDraftEditAndResendRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'unclaimedDraftEditAndResendRequest' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftEditAndResendRequest' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftEditAndResendRequest.GetOpenApiTypes(); @@ -1289,7 +956,9 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1302,55 +971,29 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = this.Client.Post( - "/unclaimed_draft/edit_and_resend/{signature_request_id}", - localVarRequestOptions, - this.Configuration - ); + var localVarResponse = this.Client.Post("/unclaimed_draft/edit_and_resend/{signature_request_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "UnclaimedDraftEditAndResend", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("UnclaimedDraftEditAndResend", localVarResponse); if (_exception != null) { throw _exception; @@ -1369,22 +1012,9 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync( - string signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = - await UnclaimedDraftEditAndResendWithHttpInfoAsync( - signatureRequestId, - unclaimedDraftEditAndResendRequest, - operationIndex, - cancellationToken - ) - .ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftEditAndResendWithHttpInfoAsync(signatureRequestId, unclaimedDraftEditAndResendRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1397,34 +1027,22 @@ await UnclaimedDraftEditAndResendWithHttpInfoAsync( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync( - string signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - int operationIndex = 0, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ) + public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'signatureRequestId' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'signatureRequestId' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend"); } // verify the required parameter 'unclaimedDraftEditAndResendRequest' is set if (unclaimedDraftEditAndResendRequest == null) { - throw new Dropbox.Sign.Client.ApiException( - 400, - "Missing required parameter 'unclaimedDraftEditAndResendRequest' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend" - ); + throw new Dropbox.Sign.Client.ApiException(400, "Missing required parameter 'unclaimedDraftEditAndResendRequest' when calling UnclaimedDraftApi->UnclaimedDraftEditAndResend"); } - Dropbox.Sign.Client.RequestOptions localVarRequestOptions = - new Dropbox.Sign.Client.RequestOptions(); + + Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); var localVarContentType = ""; var openApiTypes = unclaimedDraftEditAndResendRequest.GetOpenApiTypes(); @@ -1440,7 +1058,9 @@ await UnclaimedDraftEditAndResendWithHttpInfoAsync( } // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; + string[] _accepts = new string[] { + "application/json" + }; if (localVarContentType != null) { @@ -1453,59 +1073,30 @@ await UnclaimedDraftEditAndResendWithHttpInfoAsync( localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.PathParameters.Add( - "signature_request_id", - Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId) - ); // path parameter + localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (api_key) required // http basic authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.Username) - || !string.IsNullOrEmpty(this.Configuration.Password) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) - { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Basic " - + Dropbox.Sign.Client.ClientUtils.Base64Encode( - this.Configuration.Username + ":" + this.Configuration.Password - ) - ); + if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Dropbox.Sign.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } // authentication (oauth2) required // bearer authentication required - if ( - !string.IsNullOrEmpty(this.Configuration.AccessToken) - && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization") - ) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) { - localVarRequestOptions.HeaderParameters.Add( - "Authorization", - "Bearer " + this.Configuration.AccessToken - ); + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request - var localVarResponse = await this - .AsynchronousClient.PostAsync( - "/unclaimed_draft/edit_and_resend/{signature_request_id}", - localVarRequestOptions, - this.Configuration, - cancellationToken - ) - .ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/unclaimed_draft/edit_and_resend/{signature_request_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory( - "UnclaimedDraftEditAndResend", - localVarResponse - ); + Exception _exception = this.ExceptionFactory("UnclaimedDraftEditAndResend", localVarResponse); if (_exception != null) { throw _exception; @@ -1514,5 +1105,6 @@ await UnclaimedDraftEditAndResendWithHttpInfoAsync( return localVarResponse; } + } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs index e962b0f29..a1e43958a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs @@ -20,17 +20,17 @@ using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters; using System.Text; -using System.Text.RegularExpressions; using System.Threading; +using System.Text.RegularExpressions; using System.Threading.Tasks; -using Dropbox.Sign.Model; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -using Polly; using RestSharp; using RestSharp.Serializers; -using FileIO = System.IO.File; using RestSharpMethod = RestSharp.Method; +using FileIO = System.IO.File; +using Polly; +using Dropbox.Sign.Model; namespace Dropbox.Sign.Client { @@ -46,8 +46,11 @@ internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, ContractResolver = new DefaultContractResolver { - NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, - }, + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } }; public CustomJsonCodec(IReadableConfiguration configuration) @@ -55,10 +58,7 @@ public CustomJsonCodec(IReadableConfiguration configuration) _configuration = configuration; } - public CustomJsonCodec( - JsonSerializerSettings serializerSettings, - IReadableConfiguration configuration - ) + public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) { _serializerSettings = serializerSettings; _configuration = configuration; @@ -112,19 +112,13 @@ internal object Deserialize(RestResponse response, Type type) var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath) ? Path.GetTempPath() : _configuration.TempFolderPath; - var regex = new Regex( - @"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$" - ); + var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); foreach (var header in response.Headers) { var match = regex.Match(header.ToString()); if (match.Success) { - string fileName = - filePath - + ClientUtils.SanitizeFilename( - match.Groups[1].Value.Replace("\"", "").Replace("'", "") - ); + string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); FileIO.WriteAllBytes(fileName, bytes); return new FileStream(fileName, FileMode.Open); } @@ -160,19 +154,14 @@ internal object Deserialize(RestResponse response, Type type) public string[] AcceptedContentTypes => ContentType.JsonAccept; - public SupportsContentType SupportsContentType => - contentType => - contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) - || contentType.Value.EndsWith( - "javascript", - StringComparison.InvariantCultureIgnoreCase - ); + public SupportsContentType SupportsContentType => contentType => + contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || + contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); public ContentType ContentType { get; set; } = ContentType.Json; public DataFormat DataFormat => DataFormat.Json; } - /// /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), /// encapsulating general REST accessor use cases. @@ -187,16 +176,18 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Specifies the settings on a object. /// These settings can be adjusted to accommodate custom serialization rules. /// - public JsonSerializerSettings SerializerSettings { get; set; } = - new JsonSerializerSettings + public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - ContractResolver = new DefaultContractResolver + NamingStrategy = new CamelCaseNamingStrategy { - NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, - }, - }; + OverrideSpecifiedNames = false + } + } + }; /// /// Allows for extending request processing for generated code. @@ -233,15 +224,15 @@ public ApiClient(string basePath) } /// - /// Initializes a new instance of the . This should be used in unit tests only - /// + /// Initializes a new instance of the . This should be used in unit tests only + /// /// The target service's base path in URL format. /// Mock client for unit testing purpose /// public ApiClient(string basePath, RestClient mockClient) { if (string.IsNullOrEmpty(basePath)) - throw new ArgumentException("basePath cannot be empty"); + throw new ArgumentException("basePath cannot be empty"); _baseUrl = basePath; _restClient = mockClient; @@ -288,7 +279,7 @@ private RestSharpMethod Method(HttpMethod method) /// /// Provides all logic for constructing a new RestSharp . - /// At this point, all information for querying the service is known. + /// At this point, all information for querying the service is known. /// Here, it is simply mapped into the RestSharp request. /// /// The http verb. @@ -302,15 +293,11 @@ private RestRequest NewRequest( HttpMethod method, string path, RequestOptions options, - IReadableConfiguration configuration - ) + IReadableConfiguration configuration) { - if (path == null) - throw new ArgumentNullException("path"); - if (options == null) - throw new ArgumentNullException("options"); - if (configuration == null) - throw new ArgumentNullException("configuration"); + if (path == null) throw new ArgumentNullException("path"); + if (options == null) throw new ArgumentNullException("options"); + if (configuration == null) throw new ArgumentNullException("configuration"); RestRequest request = new RestRequest(path, Method(method)); @@ -379,10 +366,7 @@ IReadableConfiguration configuration if (options.HeaderParameters != null) { var contentTypes = options.HeaderParameters["Content-Type"]; - if ( - contentTypes == null - || contentTypes.Any(header => header.Contains("application/json")) - ) + if (contentTypes == null || contentTypes.Any(header => header.Contains("application/json"))) { request.RequestFormat = DataFormat.Json; } @@ -410,11 +394,7 @@ IReadableConfiguration configuration var bytes = ClientUtils.ReadAsBytes(file); var fileStream = file as FileStream; if (fileStream != null) - request.AddFile( - fileParam.Key, - bytes, - Path.GetFileName(fileStream.Name) - ); + request.AddFile(fileParam.Key, bytes, Path.GetFileName(fileStream.Name)); else request.AddFile(fileParam.Key, bytes, "no_file_name_provided"); } @@ -436,25 +416,17 @@ private ApiResponse ToApiResponse(RestResponse response) T result = response.Data; string rawContent = response.Content; - var transformed = new ApiResponse( - response.StatusCode, - new Multimap(), - result, - rawContent - ) + var transformed = new ApiResponse(response.StatusCode, new Multimap(), result, rawContent) { ErrorText = response.ErrorMessage, - Cookies = new List(), + Cookies = new List() }; if (response.Headers != null) { foreach (var responseHeader in response.Headers) { - transformed.Headers.Add( - responseHeader.Name, - ClientUtils.ParameterToString(responseHeader.Value) - ); + transformed.Headers.Add(responseHeader.Name, ClientUtils.ParameterToString(responseHeader.Value)); } } @@ -462,10 +434,7 @@ private ApiResponse ToApiResponse(RestResponse response) { foreach (var responseHeader in response.ContentHeaders) { - transformed.Headers.Add( - responseHeader.Name, - ClientUtils.ParameterToString(responseHeader.Value) - ); + transformed.Headers.Add(responseHeader.Name, ClientUtils.ParameterToString(responseHeader.Value)); } } @@ -478,9 +447,8 @@ private ApiResponse ToApiResponse(RestResponse response) responseCookies.Name, responseCookies.Value, responseCookies.Path, - responseCookies.Domain - ) - ); + responseCookies.Domain) + ); } } @@ -492,23 +460,15 @@ private ApiResponse ToApiResponse(RestResponse response) /// Based on functions received it can be async or sync. /// /// Local function that executes http request and returns http response. - /// Local function to specify options for the service. + /// Local function to specify options for the service. /// The RestSharp request object /// The RestSharp options object /// A per-request configuration object. /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. /// A new ApiResponse instance. - private ApiResponse ExecClient( - Func> getResponse, - Action setOptions, - RestRequest request, - RequestOptions options, - IReadableConfiguration configuration - ) + private ApiResponse ExecClient(Func> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) { - var baseUrl = - configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) - ?? _baseUrl; + var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; var clientOptions = new RestClientOptions(baseUrl) { @@ -517,20 +477,15 @@ IReadableConfiguration configuration Proxy = configuration.Proxy, UserAgent = configuration.UserAgent, UseDefaultCredentials = configuration.UseDefaultCredentials, - RemoteCertificateValidationCallback = - configuration.RemoteCertificateValidationCallback, + RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback }; setOptions(clientOptions); - + RestClient client = _restClient; if (client == null) { - client = new RestClient( - clientOptions, - configureSerialization: serializerConfig => - serializerConfig.UseSerializer( - () => new CustomJsonCodec(SerializerSettings, configuration) - ) + client = new RestClient(clientOptions, + configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)) ); } @@ -545,10 +500,7 @@ IReadableConfiguration configuration { try { - response.Data = (T) - typeof(T) - .GetMethod("FromJson") - .Invoke(null, new object[] { response.Content }); + response.Data = (T)typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); } catch (Exception ex) { @@ -578,8 +530,7 @@ IReadableConfiguration configuration if (response.Cookies != null && response.Cookies.Count > 0) { - if (result.Cookies == null) - result.Cookies = new List(); + if (result.Cookies == null) result.Cookies = new List(); foreach (var restResponseCookie in response.Cookies.Cast()) { var cookie = new Cookie( @@ -597,7 +548,7 @@ IReadableConfiguration configuration HttpOnly = restResponseCookie.HttpOnly, Port = restResponseCookie.Port, Secure = restResponseCookie.Secure, - Version = restResponseCookie.Version, + Version = restResponseCookie.Version }; result.Cookies.Add(cookie); @@ -607,13 +558,9 @@ IReadableConfiguration configuration } } - private RestResponse DeserializeRestResponseFromPolicy( - RestClient client, - RestRequest request, - PolicyResult policyResult - ) + private RestResponse DeserializeRestResponseFromPolicy(RestClient client, RestRequest request, PolicyResult policyResult) { - if (policyResult.Outcome == OutcomeType.Successful) + if (policyResult.Outcome == OutcomeType.Successful) { return client.Deserialize(policyResult.Result); } @@ -621,16 +568,12 @@ PolicyResult policyResult { return new RestResponse(request) { - ErrorException = policyResult.FinalException, + ErrorException = policyResult.FinalException }; } } - - private ApiResponse Exec( - RestRequest request, - RequestOptions options, - IReadableConfiguration configuration - ) + + private ApiResponse Exec(RestRequest request, RequestOptions options, IReadableConfiguration configuration) { Action setOptions = (clientOptions) => { @@ -663,14 +606,10 @@ IReadableConfiguration configuration return ExecClient(getResponse, setOptions, request, options, configuration); } - private Task> ExecAsync( - RestRequest request, - RequestOptions options, - IReadableConfiguration configuration, - CancellationToken cancellationToken = default(CancellationToken) - ) + private Task> ExecAsync(RestRequest request, RequestOptions options, IReadableConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken)) { - Action setOptions = (clientOptions) => { + Action setOptions = (clientOptions) => + { //no extra options }; @@ -681,27 +620,18 @@ private Task> ExecAsync( if (RetryConfiguration.AsyncRetryPolicy != null) { var policy = RetryConfiguration.AsyncRetryPolicy; - var policyResult = await policy - .ExecuteAndCaptureAsync( - (ct) => client.ExecuteAsync(request, ct), - cancellationToken - ) - .ConfigureAwait(false); + var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); return DeserializeRestResponseFromPolicy(client, request, policyResult); } else { - return await client - .ExecuteAsync(request, cancellationToken) - .ConfigureAwait(false); + return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false); } }; return action().Result; }; - return Task.FromResult>( - ExecClient(getResponse, setOptions, request, options, configuration) - ); + return Task.FromResult>(ExecClient(getResponse, setOptions, request, options, configuration)); } #region IAsynchronousClient @@ -714,20 +644,10 @@ private Task> ExecAsync( /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> GetAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - CancellationToken cancellationToken = default - ) + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync( - NewRequest(HttpMethod.Get, path, options, config), - options, - config, - cancellationToken - ); + return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), options, config, cancellationToken); } /// @@ -739,20 +659,10 @@ public Task> GetAsync( /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PostAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - CancellationToken cancellationToken = default - ) + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync( - NewRequest(HttpMethod.Post, path, options, config), - options, - config, - cancellationToken - ); + return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), options, config, cancellationToken); } /// @@ -764,20 +674,10 @@ public Task> PostAsync( /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PutAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - CancellationToken cancellationToken = default - ) + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync( - NewRequest(HttpMethod.Put, path, options, config), - options, - config, - cancellationToken - ); + return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), options, config, cancellationToken); } /// @@ -789,20 +689,10 @@ public Task> PutAsync( /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> DeleteAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - CancellationToken cancellationToken = default - ) + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync( - NewRequest(HttpMethod.Delete, path, options, config), - options, - config, - cancellationToken - ); + return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), options, config, cancellationToken); } /// @@ -814,20 +704,10 @@ public Task> DeleteAsync( /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> HeadAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - CancellationToken cancellationToken = default - ) + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync( - NewRequest(HttpMethod.Head, path, options, config), - options, - config, - cancellationToken - ); + return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), options, config, cancellationToken); } /// @@ -839,20 +719,10 @@ public Task> HeadAsync( /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> OptionsAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - CancellationToken cancellationToken = default - ) + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync( - NewRequest(HttpMethod.Options, path, options, config), - options, - config, - cancellationToken - ); + return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), options, config, cancellationToken); } /// @@ -864,20 +734,10 @@ public Task> OptionsAsync( /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PatchAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - CancellationToken cancellationToken = default - ) + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync( - NewRequest(HttpMethod.Patch, path, options, config), - options, - config, - cancellationToken - ); + return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), options, config, cancellationToken); } #endregion IAsynchronousClient @@ -890,11 +750,7 @@ public Task> PatchAsync( /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Get( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ) + public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Get, path, options, config), options, config); @@ -908,11 +764,7 @@ public ApiResponse Get( /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Post( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ) + public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Post, path, options, config), options, config); @@ -926,11 +778,7 @@ public ApiResponse Post( /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Put( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ) + public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Put, path, options, config), options, config); @@ -944,11 +792,7 @@ public ApiResponse Put( /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Delete( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ) + public ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Delete, path, options, config), options, config); @@ -962,11 +806,7 @@ public ApiResponse Delete( /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Head( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ) + public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Head, path, options, config), options, config); @@ -980,11 +820,7 @@ public ApiResponse Head( /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Options( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ) + public ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Options, path, options, config), options, config); @@ -998,11 +834,7 @@ public ApiResponse Options( /// A per-request configuration object. It is assumed that any merge with /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Patch( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ) + public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; return Exec(NewRequest(HttpMethod.Patch, path, options, config), options, config); diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ApiException.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ApiException.cs index f0ee8633e..4b1ad2fdb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ApiException.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ApiException.cs @@ -47,8 +47,7 @@ public ApiException() { } /// /// HTTP status code. /// Error message. - public ApiException(int errorCode, string message) - : base(message) + public ApiException(int errorCode, string message) : base(message) { this.ErrorCode = errorCode; } @@ -60,17 +59,12 @@ public ApiException(int errorCode, string message) /// Error message. /// Error content. /// HTTP Headers. - public ApiException( - int errorCode, - string message, - ErrorResponse errorContent = null, - Multimap headers = null - ) - : base(message) + public ApiException(int errorCode, string message, ErrorResponse errorContent = null, Multimap headers = null) : base(message) { this.ErrorCode = errorCode; this.ErrorContent = errorContent; this.Headers = headers; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ApiResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ApiResponse.cs index 8238c9776..3b57a962e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ApiResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ApiResponse.cs @@ -125,12 +125,7 @@ public object Content /// HTTP headers. /// Data (parsed HTTP body) /// Raw content. - public ApiResponse( - HttpStatusCode statusCode, - Multimap headers, - T data, - string rawContent - ) + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data, string rawContent) { StatusCode = statusCode; Headers = headers; @@ -144,8 +139,9 @@ string rawContent /// HTTP status code. /// HTTP headers. /// Data (parsed HTTP body) - public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) - : this(statusCode, headers, data, null) { } + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) : this(statusCode, headers, data, null) + { + } /// /// Initializes a new instance of the class. @@ -153,16 +149,18 @@ public ApiResponse(HttpStatusCode statusCode, Multimap headers, /// HTTP status code. /// Data (parsed HTTP body) /// Raw content. - public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) - : this(statusCode, null, data, rawContent) { } + public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) : this(statusCode, null, data, rawContent) + { + } /// /// Initializes a new instance of the class. /// /// HTTP status code. /// Data (parsed HTTP body) - public ApiResponse(HttpStatusCode statusCode, T data) - : this(statusCode, data, null) { } + public ApiResponse(HttpStatusCode statusCode, T data) : this(statusCode, data, null) + { + } #endregion Constructors } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs index b0bda9c43..c603a93ae 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs @@ -18,8 +18,8 @@ using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using Dropbox.Sign.Model; using Newtonsoft.Json; +using Dropbox.Sign.Model; namespace Dropbox.Sign.Client { @@ -47,11 +47,7 @@ public static string SanitizeFilename(string filename) /// Key name. /// Value object. /// A multimap of keys with 1..n associated values. - public static Multimap ParameterToMultiMap( - string collectionFormat, - string name, - object value - ) + public static Multimap ParameterToMultiMap(string collectionFormat, string name, object value) { var parameters = new Multimap(); @@ -64,18 +60,13 @@ object value } else if (value is IDictionary dictionary) { - if (collectionFormat == "deepObject") - { + if(collectionFormat == "deepObject") { foreach (DictionaryEntry entry in dictionary) { - parameters.Add( - name + "[" + entry.Key + "]", - ParameterToString(entry.Value) - ); + parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); } } - else - { + else { foreach (DictionaryEntry entry in dictionary) { parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); @@ -98,31 +89,23 @@ object value /// The parameter (header, path, query, form). /// An optional configuration instance, providing formatting options used in processing. /// Formatted string. - public static string ParameterToString( - object obj, - IReadableConfiguration configuration = null - ) + public static string ParameterToString(object obj, IReadableConfiguration configuration = null) { if (obj is DateTime dateTime) // Return a formatted date string - Can be customized with Configuration.DateTimeFormat // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 - return dateTime.ToString( - (configuration ?? GlobalConfiguration.Instance).DateTimeFormat - ); + return dateTime.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is DateTimeOffset dateTimeOffset) // Return a formatted date string - Can be customized with Configuration.DateTimeFormat // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 - return dateTimeOffset.ToString( - (configuration ?? GlobalConfiguration.Instance).DateTimeFormat - ); + return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is bool boolean) return boolean ? "true" : "false"; - if (obj is ICollection collection) - { + if (obj is ICollection collection) { List entries = new List(); foreach (var entry in collection) entries.Add(ParameterToString(entry, configuration)); @@ -210,9 +193,7 @@ public static string SelectHeaderAccept(string[] accepts) /// /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. /// - public static readonly Regex JsonRegex = new Regex( - "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$" - ); + public static readonly Regex JsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); /// /// Check if the given MIME is a JSON MIME. @@ -226,8 +207,7 @@ public static string SelectHeaderAccept(string[] accepts) /// Returns True if MIME type is json. public static bool IsJsonMime(string mime) { - if (string.IsNullOrWhiteSpace(mime)) - return false; + if (string.IsNullOrWhiteSpace(mime)) return false; return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); } @@ -242,17 +222,10 @@ private static bool HasEnumMemberAttrValue(object enumVal) if (enumVal == null) throw new ArgumentNullException(nameof(enumVal)); var enumType = enumVal.GetType(); - var memInfo = enumType.GetMember( - enumVal.ToString() ?? throw new InvalidOperationException() - ); - var attr = memInfo - .FirstOrDefault() - ?.GetCustomAttributes(false) - .OfType() - .FirstOrDefault(); - if (attr != null) - return true; - return false; + var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); + if (attr != null) return true; + return false; } /// @@ -265,14 +238,8 @@ public static string GetEnumMemberAttrValue(object enumVal) if (enumVal == null) throw new ArgumentNullException(nameof(enumVal)); var enumType = enumVal.GetType(); - var memInfo = enumType.GetMember( - enumVal.ToString() ?? throw new InvalidOperationException() - ); - var attr = memInfo - .FirstOrDefault() - ?.GetCustomAttributes(false) - .OfType() - .FirstOrDefault(); + var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); if (attr != null) { return attr.Value; @@ -289,8 +256,9 @@ public static bool HasFileType(List items) foreach (var item in items) { if ( - item.Value != null - && (item.Type == "System.IO.Stream" || item.Type == "List") + item.Value != null && + (item.Type == "System.IO.Stream" || + item.Type == "List") ) { return true; @@ -324,7 +292,10 @@ public static void SetFormData(RequestOptions requestOptions, List if (item.Value is string or int) { - requestOptions.FormParameters.Add(item.Name, item.Value.ToString()); + requestOptions.FormParameters.Add( + item.Name, + item.Value.ToString() + ); continue; } @@ -342,7 +313,10 @@ public static void SetFormData(RequestOptions requestOptions, List { for (var i = 0; i < streams.Count; i++) { - requestOptions.FileParameters.Add($"{item.Name}[{i}]", streams[i]); + requestOptions.FileParameters.Add( + $"{item.Name}[{i}]", + streams[i] + ); } continue; diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs index 85292883d..4db83046b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs @@ -15,13 +15,13 @@ using System.IO; using System.Linq; using System.Net; -using System.Net.Http; -using System.Net.Security; using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Text; -using Dropbox.Sign.Model; +using System.Net.Http; +using System.Net.Security; using Newtonsoft.Json; +using Dropbox.Sign.Model; namespace Dropbox.Sign.Client { @@ -57,20 +57,14 @@ public class Configuration : IReadableConfiguration var status = (int)response.StatusCode; if (status >= 400) { - return new ApiException( - status, + return new ApiException(status, string.Format("Error calling {0}: {1}", methodName, response.RawContent), - JsonConvert.DeserializeObject(response.RawContent), - response.Headers - ); + JsonConvert.DeserializeObject(response.RawContent), response.Headers); } if (status == 0) { - return new ApiException( - status, - string.Format("Error calling {0}: {1}", methodName, response.ErrorText), - JsonConvert.DeserializeObject(response.ErrorText) - ); + return new ApiException(status, + string.Format("Error calling {0}: {1}", methodName, response.ErrorText), JsonConvert.DeserializeObject(response.ErrorText)); } return null; }; @@ -113,10 +107,7 @@ public class Configuration : IReadableConfiguration /// Gets or sets the operation servers defined in the OpenAPI spec. /// /// The operation servers - private IReadOnlyDictionary< - string, - List> - > _operationServers; + private IReadOnlyDictionary>> _operationServers; #endregion Private Members @@ -125,10 +116,7 @@ private IReadOnlyDictionary< /// /// Initializes a new instance of the class /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "ReSharper", - "VirtualMemberCallInConstructor" - )] + [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration() { Proxy = null; @@ -140,37 +128,34 @@ public Configuration() Servers = new List>() { { - new Dictionary - { - { "url", "https://api.hellosign.com/v3" }, - { "description", "No description provided" }, + new Dictionary { + {"url", "https://api.hellosign.com/v3"}, + {"description", "No description provided"}, } - }, + } }; OperationServers = new Dictionary>>() { { - "OAuthApi.OauthTokenGenerate", - new List> + "OAuthApi.OauthTokenGenerate", new List> { { new Dictionary { - { "url", "https://app.hellosign.com" }, - { "description", "No description provided" }, + {"url", "https://app.hellosign.com"}, + {"description", "No description provided"} } }, } }, { - "OAuthApi.OauthTokenRefresh", - new List> + "OAuthApi.OauthTokenRefresh", new List> { { new Dictionary { - { "url", "https://app.hellosign.com" }, - { "description", "No description provided" }, + {"url", "https://app.hellosign.com"}, + {"description", "No description provided"} } }, } @@ -184,17 +169,12 @@ public Configuration() /// /// Initializes a new instance of the class /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "ReSharper", - "VirtualMemberCallInConstructor" - )] + [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration( IDictionary defaultHeaders, IDictionary apiKey, IDictionary apiKeyPrefix, - string basePath = "https://api.hellosign.com/v3" - ) - : this() + string basePath = "https://api.hellosign.com/v3") : this() { if (string.IsNullOrWhiteSpace(basePath)) throw new ArgumentException("The provided basePath is invalid.", "basePath"); @@ -230,7 +210,7 @@ public Configuration( /// /// Gets or sets the base path for API access. /// - public virtual string BasePath + public virtual string BasePath { get { return _basePath; } set { _basePath = value; } @@ -251,8 +231,14 @@ public virtual bool UseDefaultCredentials [Obsolete("Use DefaultHeaders instead.")] public virtual IDictionary DefaultHeader { - get { return DefaultHeaders; } - set { DefaultHeaders = value; } + get + { + return DefaultHeaders; + } + set + { + DefaultHeaders = value; + } } /// @@ -328,6 +314,7 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) public virtual string TempFolderPath { get { return _tempFolderPath; } + set { if (string.IsNullOrEmpty(value)) @@ -447,10 +434,7 @@ public virtual IList> Servers /// Gets or sets the operation servers. /// /// The operation servers. - public virtual IReadOnlyDictionary< - string, - List> - > OperationServers + public virtual IReadOnlyDictionary>> OperationServers { get { return _operationServers; } set @@ -503,16 +487,9 @@ public string GetOperationServerUrl(string operation, int index) /// Array index of the server settings. /// Dictionary of the variables and the corresponding values. /// The operation server URL. - public string GetOperationServerUrl( - string operation, - int index, - Dictionary inputVariables - ) + public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables) { - if ( - operation != null - && OperationServers.TryGetValue(operation, out var operationServer) - ) + if (operation != null && OperationServers.TryGetValue(operation, out var operationServer)) { return GetServerUrl(operationServer, index, inputVariables); } @@ -527,17 +504,11 @@ Dictionary inputVariables /// Array index of the server settings. /// Dictionary of the variables and the corresponding values. /// The server URL. - private string GetServerUrl( - IList> servers, - int index, - Dictionary inputVariables - ) + private string GetServerUrl(IList> servers, int index, Dictionary inputVariables) { if (index < 0 || index >= servers.Count) { - throw new InvalidOperationException( - $"Invalid index {index} when selecting the server. Must be less than {servers.Count}." - ); + throw new InvalidOperationException($"Invalid index {index} when selecting the server. Must be less than {servers.Count}."); } if (inputVariables == null) @@ -551,48 +522,33 @@ Dictionary inputVariables if (server.ContainsKey("variables")) { // go through each variable and assign a value - foreach ( - KeyValuePair variable in (IReadOnlyDictionary) - server["variables"] - ) + foreach (KeyValuePair variable in (IReadOnlyDictionary)server["variables"]) { - IReadOnlyDictionary serverVariables = - (IReadOnlyDictionary)(variable.Value); + + IReadOnlyDictionary serverVariables = (IReadOnlyDictionary)(variable.Value); if (inputVariables.ContainsKey(variable.Key)) { - if ( - ((List)serverVariables["enum_values"]).Contains( - inputVariables[variable.Key] - ) - ) + if (((List)serverVariables["enum_values"]).Contains(inputVariables[variable.Key])) { - url = url.Replace( - "{" + variable.Key + "}", - inputVariables[variable.Key] - ); + url = url.Replace("{" + variable.Key + "}", inputVariables[variable.Key]); } else { - throw new InvalidOperationException( - $"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}" - ); + throw new InvalidOperationException($"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}"); } } else { // use default value - url = url.Replace( - "{" + variable.Key + "}", - (string)serverVariables["default_value"] - ); + url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]); } } } return url; } - + /// /// Gets and Sets the RemoteCertificateValidationCallback /// @@ -609,7 +565,7 @@ public static string ToDebugReport() { string report = "C# SDK (Dropbox.Sign) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; - report += " .NET Framework Version: " + System.Environment.Version + "\n"; + report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 3.0.0\n"; report += " SDK Package Version: 1.5-dev\n"; @@ -646,33 +602,17 @@ public void AddApiKeyPrefix(string key, string value) /// First configuration. /// Second configuration. /// Merged configuration. - public static IReadableConfiguration MergeConfigurations( - IReadableConfiguration first, - IReadableConfiguration second - ) + public static IReadableConfiguration MergeConfigurations(IReadableConfiguration first, IReadableConfiguration second) { - if (second == null) - return first ?? GlobalConfiguration.Instance; - - Dictionary apiKey = first.ApiKey.ToDictionary( - kvp => kvp.Key, - kvp => kvp.Value - ); - Dictionary apiKeyPrefix = first.ApiKeyPrefix.ToDictionary( - kvp => kvp.Key, - kvp => kvp.Value - ); - Dictionary defaultHeaders = first.DefaultHeaders.ToDictionary( - kvp => kvp.Key, - kvp => kvp.Value - ); - - foreach (var kvp in second.ApiKey) - apiKey[kvp.Key] = kvp.Value; - foreach (var kvp in second.ApiKeyPrefix) - apiKeyPrefix[kvp.Key] = kvp.Value; - foreach (var kvp in second.DefaultHeaders) - defaultHeaders[kvp.Key] = kvp.Value; + if (second == null) return first ?? GlobalConfiguration.Instance; + + Dictionary apiKey = first.ApiKey.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary apiKeyPrefix = first.ApiKeyPrefix.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary defaultHeaders = first.DefaultHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + + foreach (var kvp in second.ApiKey) apiKey[kvp.Key] = kvp.Value; + foreach (var kvp in second.ApiKeyPrefix) apiKeyPrefix[kvp.Key] = kvp.Value; + foreach (var kvp in second.DefaultHeaders) defaultHeaders[kvp.Key] = kvp.Value; var config = new Configuration { @@ -690,9 +630,7 @@ IReadableConfiguration second DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, UseDefaultCredentials = second.UseDefaultCredentials, - RemoteCertificateValidationCallback = - second.RemoteCertificateValidationCallback - ?? first.RemoteCertificateValidationCallback, + RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? first.RemoteCertificateValidationCallback, }; return config; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/GlobalConfiguration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/GlobalConfiguration.cs index ebdd4c126..b0d10aeef 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/GlobalConfiguration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/GlobalConfiguration.cs @@ -33,16 +33,14 @@ public partial class GlobalConfiguration : Configuration #region Constructors /// - private GlobalConfiguration() { } + private GlobalConfiguration() + { + } /// - public GlobalConfiguration( - IDictionary defaultHeader, - IDictionary apiKey, - IDictionary apiKeyPrefix, - string basePath = "http://localhost:3000/api" - ) - : base(defaultHeader, apiKey, apiKeyPrefix, basePath) { } + public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base(defaultHeader, apiKey, apiKeyPrefix, basePath) + { + } static GlobalConfiguration() { diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/HttpMethod.cs b/sdks/dotnet/src/Dropbox.Sign/Client/HttpMethod.cs index b808e5bc0..bec196c36 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/HttpMethod.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/HttpMethod.cs @@ -18,23 +18,17 @@ public enum HttpMethod { /// HTTP GET request. Get, - /// HTTP POST request. Post, - /// HTTP PUT request. Put, - /// HTTP DELETE request. Delete, - /// HTTP HEAD request. Head, - /// HTTP OPTIONS request. Options, - /// HTTP PATCH request. - Patch, + Patch } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs index 57dad69dc..6d1c11df9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs @@ -30,13 +30,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> GetAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the POST http verb. @@ -47,13 +41,7 @@ Task> GetAsync( /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PostAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the PUT http verb. @@ -64,13 +52,7 @@ Task> PostAsync( /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PutAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the DELETE http verb. @@ -81,13 +63,7 @@ Task> PutAsync( /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> DeleteAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the HEAD http verb. @@ -98,13 +74,7 @@ Task> DeleteAsync( /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> HeadAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the OPTIONS http verb. @@ -115,13 +85,7 @@ Task> HeadAsync( /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> OptionsAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the PATCH http verb. @@ -132,12 +96,6 @@ Task> OptionsAsync( /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PatchAsync( - string path, - RequestOptions options, - IReadableConfiguration configuration = null, - System.Threading.CancellationToken cancellationToken = - default(System.Threading.CancellationToken) - ); + Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs index 4dacb6de2..a4e493e1c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/IReadableConfiguration.cs @@ -110,10 +110,7 @@ public interface IReadableConfiguration /// Get the servers associated with the operation. /// /// Operation servers. - IReadOnlyDictionary< - string, - List> - > OperationServers { get; } + IReadOnlyDictionary>> OperationServers { get; } /// /// Gets the API key with prefix. diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ISynchronousClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ISynchronousClient.cs index 1b6e8abe3..fd45e78b7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ISynchronousClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ISynchronousClient.cs @@ -29,11 +29,7 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Get( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ); + ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the POST http verb. @@ -43,11 +39,7 @@ ApiResponse Get( /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Post( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ); + ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the PUT http verb. @@ -57,11 +49,7 @@ ApiResponse Post( /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Put( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ); + ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the DELETE http verb. @@ -71,11 +59,7 @@ ApiResponse Put( /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Delete( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ); + ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the HEAD http verb. @@ -85,11 +69,7 @@ ApiResponse Delete( /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Head( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ); + ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the OPTIONS http verb. @@ -99,11 +79,7 @@ ApiResponse Head( /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Options( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ); + ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the PATCH http verb. @@ -113,10 +89,6 @@ ApiResponse Options( /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Patch( - string path, - RequestOptions options, - IReadableConfiguration configuration = null - ); + ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null); } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/Multimap.cs b/sdks/dotnet/src/Dropbox.Sign/Client/Multimap.cs index 9cc9d2afd..af0892421 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/Multimap.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/Multimap.cs @@ -160,8 +160,7 @@ public void Add(TKey key, IList value) { if (_dictionary.TryGetValue(key, out var list)) { - foreach (var k in value) - list.Add(k); + foreach (var k in value) list.Add(k); } else { diff --git a/sdks/dotnet/src/Dropbox.Sign/EventCallbackHelper.cs b/sdks/dotnet/src/Dropbox.Sign/EventCallbackHelper.cs index 27704cc6c..40fa9a21b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/EventCallbackHelper.cs +++ b/sdks/dotnet/src/Dropbox.Sign/EventCallbackHelper.cs @@ -12,7 +12,7 @@ public class EventCallbackHelper public const string EVENT_TYPE_APP_CALLBACK = "app_callback"; - private EventCallbackHelper() { } + private EventCallbackHelper() {} /// /// Verify that a callback came from HelloSign.com @@ -53,7 +53,9 @@ private static string GetHash(string text, string key) var hash = new HMACSHA256(keyBytes); var hashBytes = hash.ComputeHash(textBytes); - return BitConverter.ToString(hashBytes).Replace("-", "").ToLower(); + return BitConverter.ToString(hashBytes) + .Replace("-", "") + .ToLower(); } } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs index 12a3c845f..76b51744a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs @@ -10,16 +10,16 @@ using System; -using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; +using System.Collections.Generic; namespace Dropbox.Sign.Model { public struct OpenApiType { public string Name { set; get; } - public string Property { set; get; } + public string Property { set; get; } public string Type { set; get; } public object Value { set; get; } } @@ -37,32 +37,36 @@ public abstract partial class AbstractOpenAPISchema /// /// Custom JSON serializer /// - static public readonly JsonSerializerSettings SerializerSettings = - new JsonSerializerSettings + static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Error, + ContractResolver = new DefaultContractResolver { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - MissingMemberHandling = MissingMemberHandling.Error, - ContractResolver = new DefaultContractResolver + NamingStrategy = new CamelCaseNamingStrategy { - NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, - }, - }; + OverrideSpecifiedNames = false + } + } + }; /// /// Custom JSON serializer for objects with additional properties /// - static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = - new JsonSerializerSettings + static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Ignore, + ContractResolver = new DefaultContractResolver { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - MissingMemberHandling = MissingMemberHandling.Ignore, - ContractResolver = new DefaultContractResolver + NamingStrategy = new CamelCaseNamingStrategy { - NamingStrategy = new CamelCaseNamingStrategy { OverrideSpecifiedNames = false }, - }, - }; + OverrideSpecifiedNames = false + } + } + }; /// /// Gets or Sets the actual instance diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs index 0c5a5d6bf..95b17897d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class AccountCreateRequest : IEquatable, IV /// [JsonConstructorAttribute] protected AccountCreateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -46,19 +45,13 @@ protected AccountCreateRequest() { } /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization). /// The email address which will be associated with the new Account. (required). /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values.. - public AccountCreateRequest( - string clientId = default(string), - string clientSecret = default(string), - string emailAddress = default(string), - string locale = default(string) - ) + public AccountCreateRequest(string clientId = default(string), string clientSecret = default(string), string emailAddress = default(string), string locale = default(string)) { + // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException( - "emailAddress is a required property for AccountCreateRequest and cannot be null" - ); + throw new ArgumentNullException("emailAddress is a required property for AccountCreateRequest and cannot be null"); } this.EmailAddress = emailAddress; this.ClientId = clientId; @@ -76,9 +69,7 @@ public static AccountCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of AccountCreateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of AccountCreateRequest"); } return obj; @@ -90,6 +81,7 @@ public static AccountCreateRequest Init(string jsonData) /// The email address which will be associated with the new Account. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) @@ -97,6 +89,7 @@ public static AccountCreateRequest Init(string jsonData) /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) @@ -104,6 +97,7 @@ public static AccountCreateRequest Init(string jsonData) /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) [DataMember(Name = "client_secret", EmitDefaultValue = true)] public string ClientSecret { get; set; } + /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. @@ -111,6 +105,7 @@ public static AccountCreateRequest Init(string jsonData) /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } + /// /// Returns the string presentation of the object @@ -134,10 +129,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -161,21 +153,26 @@ public bool Equals(AccountCreateRequest input) { return false; } - return ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.ClientSecret == input.ClientSecret - || (this.ClientSecret != null && this.ClientSecret.Equals(input.ClientSecret)) - ) - && ( - this.Locale == input.Locale - || (this.Locale != null && this.Locale.Equals(input.Locale)) + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.ClientSecret == input.ClientSecret || + (this.ClientSecret != null && + this.ClientSecret.Equals(input.ClientSecret)) + ) && + ( + this.Locale == input.Locale || + (this.Locale != null && + this.Locale.Equals(input.Locale)) ); } @@ -213,9 +210,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -223,44 +218,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_secret", - Property = "ClientSecret", - Type = "string", - Value = ClientSecret, - } - ); - types.Add( - new OpenApiType() - { - Name = "locale", - Property = "Locale", - Type = "string", - Value = Locale, - } - ); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "client_secret", + Property = "ClientSecret", + Type = "string", + Value = ClientSecret, + }); + types.Add(new OpenApiType(){ + Name = "locale", + Property = "Locale", + Type = "string", + Value = Locale, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs index 6a13f17e2..a915bb715 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,28 +31,22 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountCreateResponse - : IEquatable, - IValidatableObject + public partial class AccountCreateResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected AccountCreateResponse() { } - /// /// Initializes a new instance of the class. /// /// account. /// oauthData. /// A list of warnings.. - public AccountCreateResponse( - AccountResponse account = default(AccountResponse), - OAuthTokenResponse oauthData = default(OAuthTokenResponse), - List warnings = default(List) - ) + public AccountCreateResponse(AccountResponse account = default(AccountResponse), OAuthTokenResponse oauthData = default(OAuthTokenResponse), List warnings = default(List)) { + this.Account = account; this.OauthData = oauthData; this.Warnings = warnings; @@ -68,9 +62,7 @@ public static AccountCreateResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of AccountCreateResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of AccountCreateResponse"); } return obj; @@ -81,12 +73,14 @@ public static AccountCreateResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } + /// /// Gets or Sets OauthData /// [DataMember(Name = "oauth_data", EmitDefaultValue = true)] public OAuthTokenResponse OauthData { get; set; } + /// /// A list of warnings. @@ -94,6 +88,7 @@ public static AccountCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -116,10 +111,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -143,19 +135,22 @@ public bool Equals(AccountCreateResponse input) { return false; } - return ( - this.Account == input.Account - || (this.Account != null && this.Account.Equals(input.Account)) - ) - && ( - this.OauthData == input.OauthData - || (this.OauthData != null && this.OauthData.Equals(input.OauthData)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Account == input.Account || + (this.Account != null && + this.Account.Equals(input.Account)) + ) && + ( + this.OauthData == input.OauthData || + (this.OauthData != null && + this.OauthData.Equals(input.OauthData)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -189,9 +184,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -199,35 +192,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account", - Property = "Account", - Type = "AccountResponse", - Value = Account, - } - ); - types.Add( - new OpenApiType() - { - Name = "oauth_data", - Property = "OauthData", - Type = "OAuthTokenResponse", - Value = OauthData, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "account", + Property = "Account", + Type = "AccountResponse", + Value = Account, + }); + types.Add(new OpenApiType(){ + Name = "oauth_data", + Property = "OauthData", + Type = "OAuthTokenResponse", + Value = OauthData, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs index fb1ab2f15..069b0cce7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,14 @@ public partial class AccountGetResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected AccountGetResponse() { } - /// /// Initializes a new instance of the class. /// /// account. /// A list of warnings.. - public AccountGetResponse( - AccountResponse account = default(AccountResponse), - List warnings = default(List) - ) + public AccountGetResponse(AccountResponse account = default(AccountResponse), List warnings = default(List)) { + this.Account = account; this.Warnings = warnings; } @@ -74,6 +71,7 @@ public static AccountGetResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } + /// /// A list of warnings. @@ -81,6 +79,7 @@ public static AccountGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -102,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -129,15 +125,17 @@ public bool Equals(AccountGetResponse input) { return false; } - return ( - this.Account == input.Account - || (this.Account != null && this.Account.Equals(input.Account)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Account == input.Account || + (this.Account != null && + this.Account.Equals(input.Account)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -167,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -177,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account", - Property = "Account", - Type = "AccountResponse", - Value = Account, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "account", + Property = "Account", + Type = "AccountResponse", + Value = Account, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs index e04b20cbd..45950883d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class AccountResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected AccountResponse() { } - /// /// Initializes a new instance of the class. /// @@ -53,20 +52,9 @@ protected AccountResponse() { } /// The id of the team account belongs to.. /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values.. /// usage. - public AccountResponse( - string accountId = default(string), - string emailAddress = default(string), - bool isLocked = default(bool), - bool isPaidHs = default(bool), - bool isPaidHf = default(bool), - AccountResponseQuotas quotas = default(AccountResponseQuotas), - string callbackUrl = default(string), - string roleCode = default(string), - string teamId = default(string), - string locale = default(string), - AccountResponseUsage usage = default(AccountResponseUsage) - ) + public AccountResponse(string accountId = default(string), string emailAddress = default(string), bool isLocked = default(bool), bool isPaidHs = default(bool), bool isPaidHf = default(bool), AccountResponseQuotas quotas = default(AccountResponseQuotas), string callbackUrl = default(string), string roleCode = default(string), string teamId = default(string), string locale = default(string), AccountResponseUsage usage = default(AccountResponseUsage)) { + this.AccountId = accountId; this.EmailAddress = emailAddress; this.IsLocked = isLocked; @@ -102,6 +90,7 @@ public static AccountResponse Init(string jsonData) /// The ID of the Account [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The email address associated with the Account. @@ -109,6 +98,7 @@ public static AccountResponse Init(string jsonData) /// The email address associated with the Account. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns `true` if the user has been locked out of their account by a team admin. @@ -116,6 +106,7 @@ public static AccountResponse Init(string jsonData) /// Returns `true` if the user has been locked out of their account by a team admin. [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool IsLocked { get; set; } + /// /// Returns `true` if the user has a paid Dropbox Sign account. @@ -123,6 +114,7 @@ public static AccountResponse Init(string jsonData) /// Returns `true` if the user has a paid Dropbox Sign account. [DataMember(Name = "is_paid_hs", EmitDefaultValue = true)] public bool IsPaidHs { get; set; } + /// /// Returns `true` if the user has a paid HelloFax account. @@ -130,12 +122,14 @@ public static AccountResponse Init(string jsonData) /// Returns `true` if the user has a paid HelloFax account. [DataMember(Name = "is_paid_hf", EmitDefaultValue = true)] public bool IsPaidHf { get; set; } + /// /// Gets or Sets Quotas /// [DataMember(Name = "quotas", EmitDefaultValue = true)] public AccountResponseQuotas Quotas { get; set; } + /// /// The URL that Dropbox Sign events will `POST` to. @@ -143,6 +137,7 @@ public static AccountResponse Init(string jsonData) /// The URL that Dropbox Sign events will `POST` to. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// The membership role for the team. @@ -150,6 +145,7 @@ public static AccountResponse Init(string jsonData) /// The membership role for the team. [DataMember(Name = "role_code", EmitDefaultValue = true)] public string RoleCode { get; set; } + /// /// The id of the team account belongs to. @@ -157,6 +153,7 @@ public static AccountResponse Init(string jsonData) /// The id of the team account belongs to. [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. @@ -164,12 +161,14 @@ public static AccountResponse Init(string jsonData) /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } + /// /// Gets or Sets Usage /// [DataMember(Name = "usage", EmitDefaultValue = true)] public AccountResponseUsage Usage { get; set; } + /// /// Returns the string presentation of the object @@ -200,10 +199,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -227,40 +223,58 @@ public bool Equals(AccountResponse input) { return false; } - return ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && (this.IsLocked == input.IsLocked || this.IsLocked.Equals(input.IsLocked)) - && (this.IsPaidHs == input.IsPaidHs || this.IsPaidHs.Equals(input.IsPaidHs)) - && (this.IsPaidHf == input.IsPaidHf || this.IsPaidHf.Equals(input.IsPaidHf)) - && ( - this.Quotas == input.Quotas - || (this.Quotas != null && this.Quotas.Equals(input.Quotas)) - ) - && ( - this.CallbackUrl == input.CallbackUrl - || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) - ) - && ( - this.RoleCode == input.RoleCode - || (this.RoleCode != null && this.RoleCode.Equals(input.RoleCode)) - ) - && ( - this.TeamId == input.TeamId - || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) - ) - && ( - this.Locale == input.Locale - || (this.Locale != null && this.Locale.Equals(input.Locale)) - ) - && ( - this.Usage == input.Usage - || (this.Usage != null && this.Usage.Equals(input.Usage)) + return + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.IsLocked == input.IsLocked || + this.IsLocked.Equals(input.IsLocked) + ) && + ( + this.IsPaidHs == input.IsPaidHs || + this.IsPaidHs.Equals(input.IsPaidHs) + ) && + ( + this.IsPaidHf == input.IsPaidHf || + this.IsPaidHf.Equals(input.IsPaidHf) + ) && + ( + this.Quotas == input.Quotas || + (this.Quotas != null && + this.Quotas.Equals(input.Quotas)) + ) && + ( + this.CallbackUrl == input.CallbackUrl || + (this.CallbackUrl != null && + this.CallbackUrl.Equals(input.CallbackUrl)) + ) && + ( + this.RoleCode == input.RoleCode || + (this.RoleCode != null && + this.RoleCode.Equals(input.RoleCode)) + ) && + ( + this.TeamId == input.TeamId || + (this.TeamId != null && + this.TeamId.Equals(input.TeamId)) + ) && + ( + this.Locale == input.Locale || + (this.Locale != null && + this.Locale.Equals(input.Locale)) + ) && + ( + this.Usage == input.Usage || + (this.Usage != null && + this.Usage.Equals(input.Usage)) ); } @@ -317,9 +331,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -327,107 +339,75 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_locked", - Property = "IsLocked", - Type = "bool", - Value = IsLocked, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_paid_hs", - Property = "IsPaidHs", - Type = "bool", - Value = IsPaidHs, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_paid_hf", - Property = "IsPaidHf", - Type = "bool", - Value = IsPaidHf, - } - ); - types.Add( - new OpenApiType() - { - Name = "quotas", - Property = "Quotas", - Type = "AccountResponseQuotas", - Value = Quotas, - } - ); - types.Add( - new OpenApiType() - { - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "role_code", - Property = "RoleCode", - Type = "string", - Value = RoleCode, - } - ); - types.Add( - new OpenApiType() - { - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - } - ); - types.Add( - new OpenApiType() - { - Name = "locale", - Property = "Locale", - Type = "string", - Value = Locale, - } - ); - types.Add( - new OpenApiType() - { - Name = "usage", - Property = "Usage", - Type = "AccountResponseUsage", - Value = Usage, - } - ); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "is_locked", + Property = "IsLocked", + Type = "bool", + Value = IsLocked, + }); + types.Add(new OpenApiType(){ + Name = "is_paid_hs", + Property = "IsPaidHs", + Type = "bool", + Value = IsPaidHs, + }); + types.Add(new OpenApiType(){ + Name = "is_paid_hf", + Property = "IsPaidHf", + Type = "bool", + Value = IsPaidHf, + }); + types.Add(new OpenApiType(){ + Name = "quotas", + Property = "Quotas", + Type = "AccountResponseQuotas", + Value = Quotas, + }); + types.Add(new OpenApiType(){ + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + }); + types.Add(new OpenApiType(){ + Name = "role_code", + Property = "RoleCode", + Type = "string", + Value = RoleCode, + }); + types.Add(new OpenApiType(){ + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + }); + types.Add(new OpenApiType(){ + Name = "locale", + Property = "Locale", + Type = "string", + Value = Locale, + }); + types.Add(new OpenApiType(){ + Name = "usage", + Property = "Usage", + Type = "AccountResponseUsage", + Value = Usage, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs index b7a586a2c..56ad16441 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountResponseQuotas")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountResponseQuotas - : IEquatable, - IValidatableObject + public partial class AccountResponseQuotas : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected AccountResponseQuotas() { } - /// /// Initializes a new instance of the class. /// @@ -50,15 +47,9 @@ protected AccountResponseQuotas() { } /// API templates remaining.. /// SMS verifications remaining.. /// Number of fax pages left. - public AccountResponseQuotas( - int? apiSignatureRequestsLeft = default(int?), - int? documentsLeft = default(int?), - int? templatesTotal = default(int?), - int? templatesLeft = default(int?), - int? smsVerificationsLeft = default(int?), - int? numFaxPagesLeft = default(int?) - ) + public AccountResponseQuotas(int? apiSignatureRequestsLeft = default(int?), int? documentsLeft = default(int?), int? templatesTotal = default(int?), int? templatesLeft = default(int?), int? smsVerificationsLeft = default(int?), int? numFaxPagesLeft = default(int?)) { + this.ApiSignatureRequestsLeft = apiSignatureRequestsLeft; this.DocumentsLeft = documentsLeft; this.TemplatesTotal = templatesTotal; @@ -77,9 +68,7 @@ public static AccountResponseQuotas Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of AccountResponseQuotas" - ); + throw new Exception("Unable to deserialize JSON to instance of AccountResponseQuotas"); } return obj; @@ -91,6 +80,7 @@ public static AccountResponseQuotas Init(string jsonData) /// API signature requests remaining. [DataMember(Name = "api_signature_requests_left", EmitDefaultValue = true)] public int? ApiSignatureRequestsLeft { get; set; } + /// /// Signature requests remaining. @@ -98,6 +88,7 @@ public static AccountResponseQuotas Init(string jsonData) /// Signature requests remaining. [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int? DocumentsLeft { get; set; } + /// /// Total API templates allowed. @@ -105,6 +96,7 @@ public static AccountResponseQuotas Init(string jsonData) /// Total API templates allowed. [DataMember(Name = "templates_total", EmitDefaultValue = true)] public int? TemplatesTotal { get; set; } + /// /// API templates remaining. @@ -112,6 +104,7 @@ public static AccountResponseQuotas Init(string jsonData) /// API templates remaining. [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int? TemplatesLeft { get; set; } + /// /// SMS verifications remaining. @@ -119,6 +112,7 @@ public static AccountResponseQuotas Init(string jsonData) /// SMS verifications remaining. [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int? SmsVerificationsLeft { get; set; } + /// /// Number of fax pages left @@ -126,6 +120,7 @@ public static AccountResponseQuotas Init(string jsonData) /// Number of fax pages left [DataMember(Name = "num_fax_pages_left", EmitDefaultValue = true)] public int? NumFaxPagesLeft { get; set; } + /// /// Returns the string presentation of the object @@ -151,10 +146,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -178,45 +170,36 @@ public bool Equals(AccountResponseQuotas input) { return false; } - return ( - this.ApiSignatureRequestsLeft == input.ApiSignatureRequestsLeft - || ( - this.ApiSignatureRequestsLeft != null - && this.ApiSignatureRequestsLeft.Equals(input.ApiSignatureRequestsLeft) - ) - ) - && ( - this.DocumentsLeft == input.DocumentsLeft - || ( - this.DocumentsLeft != null && this.DocumentsLeft.Equals(input.DocumentsLeft) - ) - ) - && ( - this.TemplatesTotal == input.TemplatesTotal - || ( - this.TemplatesTotal != null - && this.TemplatesTotal.Equals(input.TemplatesTotal) - ) - ) - && ( - this.TemplatesLeft == input.TemplatesLeft - || ( - this.TemplatesLeft != null && this.TemplatesLeft.Equals(input.TemplatesLeft) - ) - ) - && ( - this.SmsVerificationsLeft == input.SmsVerificationsLeft - || ( - this.SmsVerificationsLeft != null - && this.SmsVerificationsLeft.Equals(input.SmsVerificationsLeft) - ) - ) - && ( - this.NumFaxPagesLeft == input.NumFaxPagesLeft - || ( - this.NumFaxPagesLeft != null - && this.NumFaxPagesLeft.Equals(input.NumFaxPagesLeft) - ) + return + ( + this.ApiSignatureRequestsLeft == input.ApiSignatureRequestsLeft || + (this.ApiSignatureRequestsLeft != null && + this.ApiSignatureRequestsLeft.Equals(input.ApiSignatureRequestsLeft)) + ) && + ( + this.DocumentsLeft == input.DocumentsLeft || + (this.DocumentsLeft != null && + this.DocumentsLeft.Equals(input.DocumentsLeft)) + ) && + ( + this.TemplatesTotal == input.TemplatesTotal || + (this.TemplatesTotal != null && + this.TemplatesTotal.Equals(input.TemplatesTotal)) + ) && + ( + this.TemplatesLeft == input.TemplatesLeft || + (this.TemplatesLeft != null && + this.TemplatesLeft.Equals(input.TemplatesLeft)) + ) && + ( + this.SmsVerificationsLeft == input.SmsVerificationsLeft || + (this.SmsVerificationsLeft != null && + this.SmsVerificationsLeft.Equals(input.SmsVerificationsLeft)) + ) && + ( + this.NumFaxPagesLeft == input.NumFaxPagesLeft || + (this.NumFaxPagesLeft != null && + this.NumFaxPagesLeft.Equals(input.NumFaxPagesLeft)) ); } @@ -262,9 +245,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -272,62 +253,45 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "api_signature_requests_left", - Property = "ApiSignatureRequestsLeft", - Type = "int?", - Value = ApiSignatureRequestsLeft, - } - ); - types.Add( - new OpenApiType() - { - Name = "documents_left", - Property = "DocumentsLeft", - Type = "int?", - Value = DocumentsLeft, - } - ); - types.Add( - new OpenApiType() - { - Name = "templates_total", - Property = "TemplatesTotal", - Type = "int?", - Value = TemplatesTotal, - } - ); - types.Add( - new OpenApiType() - { - Name = "templates_left", - Property = "TemplatesLeft", - Type = "int?", - Value = TemplatesLeft, - } - ); - types.Add( - new OpenApiType() - { - Name = "sms_verifications_left", - Property = "SmsVerificationsLeft", - Type = "int?", - Value = SmsVerificationsLeft, - } - ); - types.Add( - new OpenApiType() - { - Name = "num_fax_pages_left", - Property = "NumFaxPagesLeft", - Type = "int?", - Value = NumFaxPagesLeft, - } - ); + types.Add(new OpenApiType(){ + Name = "api_signature_requests_left", + Property = "ApiSignatureRequestsLeft", + Type = "int?", + Value = ApiSignatureRequestsLeft, + }); + types.Add(new OpenApiType(){ + Name = "documents_left", + Property = "DocumentsLeft", + Type = "int?", + Value = DocumentsLeft, + }); + types.Add(new OpenApiType(){ + Name = "templates_total", + Property = "TemplatesTotal", + Type = "int?", + Value = TemplatesTotal, + }); + types.Add(new OpenApiType(){ + Name = "templates_left", + Property = "TemplatesLeft", + Type = "int?", + Value = TemplatesLeft, + }); + types.Add(new OpenApiType(){ + Name = "sms_verifications_left", + Property = "SmsVerificationsLeft", + Type = "int?", + Value = SmsVerificationsLeft, + }); + types.Add(new OpenApiType(){ + Name = "num_fax_pages_left", + Property = "NumFaxPagesLeft", + Type = "int?", + Value = NumFaxPagesLeft, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs index aded85e1a..7da9c698a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class AccountResponseUsage : IEquatable, IV /// [JsonConstructorAttribute] protected AccountResponseUsage() { } - /// /// Initializes a new instance of the class. /// /// Number of fax pages sent. public AccountResponseUsage(int? faxPagesSent = default(int?)) { + this.FaxPagesSent = faxPagesSent; } @@ -58,9 +58,7 @@ public static AccountResponseUsage Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of AccountResponseUsage" - ); + throw new Exception("Unable to deserialize JSON to instance of AccountResponseUsage"); } return obj; @@ -72,6 +70,7 @@ public static AccountResponseUsage Init(string jsonData) /// Number of fax pages sent [DataMember(Name = "fax_pages_sent", EmitDefaultValue = true)] public int? FaxPagesSent { get; set; } + /// /// Returns the string presentation of the object @@ -92,10 +91,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -119,10 +115,12 @@ public bool Equals(AccountResponseUsage input) { return false; } - return ( - this.FaxPagesSent == input.FaxPagesSent - || (this.FaxPagesSent != null && this.FaxPagesSent.Equals(input.FaxPagesSent)) - ); + return + ( + this.FaxPagesSent == input.FaxPagesSent || + (this.FaxPagesSent != null && + this.FaxPagesSent.Equals(input.FaxPagesSent)) + ); } /// @@ -147,9 +145,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -157,17 +153,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "fax_pages_sent", - Property = "FaxPagesSent", - Type = "int?", - Value = FaxPagesSent, - } - ); + types.Add(new OpenApiType(){ + Name = "fax_pages_sent", + Property = "FaxPagesSent", + Type = "int?", + Value = FaxPagesSent, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs index f8d6307fc..8d5e501f7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,15 @@ public partial class AccountUpdateRequest : IEquatable, IV /// [JsonConstructorAttribute] protected AccountUpdateRequest() { } - /// /// Initializes a new instance of the class. /// /// The ID of the Account. /// The URL that Dropbox Sign should POST events to.. /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values.. - public AccountUpdateRequest( - string accountId = default(string), - string callbackUrl = default(string), - string locale = default(string) - ) + public AccountUpdateRequest(string accountId = default(string), string callbackUrl = default(string), string locale = default(string)) { + this.AccountId = accountId; this.CallbackUrl = callbackUrl; this.Locale = locale; @@ -66,9 +62,7 @@ public static AccountUpdateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of AccountUpdateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of AccountUpdateRequest"); } return obj; @@ -80,6 +74,7 @@ public static AccountUpdateRequest Init(string jsonData) /// The ID of the Account [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The URL that Dropbox Sign should POST events to. @@ -87,6 +82,7 @@ public static AccountUpdateRequest Init(string jsonData) /// The URL that Dropbox Sign should POST events to. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. @@ -94,6 +90,7 @@ public static AccountUpdateRequest Init(string jsonData) /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } + /// /// Returns the string presentation of the object @@ -116,10 +113,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -143,17 +137,21 @@ public bool Equals(AccountUpdateRequest input) { return false; } - return ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.CallbackUrl == input.CallbackUrl - || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) - ) - && ( - this.Locale == input.Locale - || (this.Locale != null && this.Locale.Equals(input.Locale)) + return + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.CallbackUrl == input.CallbackUrl || + (this.CallbackUrl != null && + this.CallbackUrl.Equals(input.CallbackUrl)) + ) && + ( + this.Locale == input.Locale || + (this.Locale != null && + this.Locale.Equals(input.Locale)) ); } @@ -187,9 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -197,35 +193,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "locale", - Property = "Locale", - Type = "string", - Value = Locale, - } - ); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + }); + types.Add(new OpenApiType(){ + Name = "locale", + Property = "Locale", + Type = "string", + Value = Locale, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs index 1672379f0..ffa2d3fba 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,17 @@ public partial class AccountVerifyRequest : IEquatable, IV /// [JsonConstructorAttribute] protected AccountVerifyRequest() { } - /// /// Initializes a new instance of the class. /// /// Email address to run the verification for. (required). public AccountVerifyRequest(string emailAddress = default(string)) { + // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException( - "emailAddress is a required property for AccountVerifyRequest and cannot be null" - ); + throw new ArgumentNullException("emailAddress is a required property for AccountVerifyRequest and cannot be null"); } this.EmailAddress = emailAddress; } @@ -65,9 +63,7 @@ public static AccountVerifyRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of AccountVerifyRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of AccountVerifyRequest"); } return obj; @@ -79,6 +75,7 @@ public static AccountVerifyRequest Init(string jsonData) /// Email address to run the verification for. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -99,10 +96,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -126,10 +120,12 @@ public bool Equals(AccountVerifyRequest input) { return false; } - return ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ); + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ); } /// @@ -154,9 +150,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -164,17 +158,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs index 0dbd9854e..53cd768c8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountVerifyResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountVerifyResponse - : IEquatable, - IValidatableObject + public partial class AccountVerifyResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected AccountVerifyResponse() { } - /// /// Initializes a new instance of the class. /// /// account. /// A list of warnings.. - public AccountVerifyResponse( - AccountVerifyResponseAccount account = default(AccountVerifyResponseAccount), - List warnings = default(List) - ) + public AccountVerifyResponse(AccountVerifyResponseAccount account = default(AccountVerifyResponseAccount), List warnings = default(List)) { + this.Account = account; this.Warnings = warnings; } @@ -65,9 +60,7 @@ public static AccountVerifyResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of AccountVerifyResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of AccountVerifyResponse"); } return obj; @@ -78,6 +71,7 @@ public static AccountVerifyResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountVerifyResponseAccount Account { get; set; } + /// /// A list of warnings. @@ -85,6 +79,7 @@ public static AccountVerifyResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -106,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -133,15 +125,17 @@ public bool Equals(AccountVerifyResponse input) { return false; } - return ( - this.Account == input.Account - || (this.Account != null && this.Account.Equals(input.Account)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Account == input.Account || + (this.Account != null && + this.Account.Equals(input.Account)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -171,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -181,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account", - Property = "Account", - Type = "AccountVerifyResponseAccount", - Value = Account, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "account", + Property = "Account", + Type = "AccountVerifyResponseAccount", + Value = Account, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs index 8f2197953..5b38e8ce5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,22 +31,20 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "AccountVerifyResponseAccount")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class AccountVerifyResponseAccount - : IEquatable, - IValidatableObject + public partial class AccountVerifyResponseAccount : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected AccountVerifyResponseAccount() { } - /// /// Initializes a new instance of the class. /// /// The email address associated with the Account.. public AccountVerifyResponseAccount(string emailAddress = default(string)) { + this.EmailAddress = emailAddress; } @@ -60,9 +58,7 @@ public static AccountVerifyResponseAccount Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of AccountVerifyResponseAccount" - ); + throw new Exception("Unable to deserialize JSON to instance of AccountVerifyResponseAccount"); } return obj; @@ -74,6 +70,7 @@ public static AccountVerifyResponseAccount Init(string jsonData) /// The email address associated with the Account. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -94,10 +91,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -121,10 +115,12 @@ public bool Equals(AccountVerifyResponseAccount input) { return false; } - return ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ); + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ); } /// @@ -149,9 +145,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -159,17 +153,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs index b57e80621..8e6d4818e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class ApiAppCreateRequest : IEquatable, IVal /// [JsonConstructorAttribute] protected ApiAppCreateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -49,30 +48,19 @@ protected ApiAppCreateRequest() { } /// oauth. /// options. /// whiteLabelingOptions. - public ApiAppCreateRequest( - string callbackUrl = default(string), - System.IO.Stream customLogoFile = default(System.IO.Stream), - List domains = default(List), - string name = default(string), - SubOAuth oauth = default(SubOAuth), - SubOptions options = default(SubOptions), - SubWhiteLabelingOptions whiteLabelingOptions = default(SubWhiteLabelingOptions) - ) + public ApiAppCreateRequest(string callbackUrl = default(string), System.IO.Stream customLogoFile = default(System.IO.Stream), List domains = default(List), string name = default(string), SubOAuth oauth = default(SubOAuth), SubOptions options = default(SubOptions), SubWhiteLabelingOptions whiteLabelingOptions = default(SubWhiteLabelingOptions)) { + // to ensure "domains" is required (not null) if (domains == null) { - throw new ArgumentNullException( - "domains is a required property for ApiAppCreateRequest and cannot be null" - ); + throw new ArgumentNullException("domains is a required property for ApiAppCreateRequest and cannot be null"); } this.Domains = domains; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for ApiAppCreateRequest and cannot be null" - ); + throw new ArgumentNullException("name is a required property for ApiAppCreateRequest and cannot be null"); } this.Name = name; this.CallbackUrl = callbackUrl; @@ -92,9 +80,7 @@ public static ApiAppCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of ApiAppCreateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of ApiAppCreateRequest"); } return obj; @@ -106,6 +92,7 @@ public static ApiAppCreateRequest Init(string jsonData) /// The domain names the ApiApp will be associated with. [DataMember(Name = "domains", IsRequired = true, EmitDefaultValue = true)] public List Domains { get; set; } + /// /// The name you want to assign to the ApiApp. @@ -113,6 +100,7 @@ public static ApiAppCreateRequest Init(string jsonData) /// The name you want to assign to the ApiApp. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The URL at which the ApiApp should receive event callbacks. @@ -120,6 +108,7 @@ public static ApiAppCreateRequest Init(string jsonData) /// The URL at which the ApiApp should receive event callbacks. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) @@ -127,24 +116,28 @@ public static ApiAppCreateRequest Init(string jsonData) /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) [DataMember(Name = "custom_logo_file", EmitDefaultValue = true)] public System.IO.Stream CustomLogoFile { get; set; } + /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public SubOAuth Oauth { get; set; } + /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public SubOptions Options { get; set; } + /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public SubWhiteLabelingOptions WhiteLabelingOptions { get; set; } + /// /// Returns the string presentation of the object @@ -171,10 +164,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -198,38 +188,42 @@ public bool Equals(ApiAppCreateRequest input) { return false; } - return ( - this.Domains == input.Domains - || this.Domains != null - && input.Domains != null - && this.Domains.SequenceEqual(input.Domains) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.CallbackUrl == input.CallbackUrl - || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) - ) - && ( - this.CustomLogoFile == input.CustomLogoFile - || ( - this.CustomLogoFile != null - && this.CustomLogoFile.Equals(input.CustomLogoFile) - ) - ) - && ( - this.Oauth == input.Oauth - || (this.Oauth != null && this.Oauth.Equals(input.Oauth)) - ) - && ( - this.Options == input.Options - || (this.Options != null && this.Options.Equals(input.Options)) - ) - && ( - this.WhiteLabelingOptions == input.WhiteLabelingOptions - || ( - this.WhiteLabelingOptions != null - && this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions) - ) + return + ( + this.Domains == input.Domains || + this.Domains != null && + input.Domains != null && + this.Domains.SequenceEqual(input.Domains) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.CallbackUrl == input.CallbackUrl || + (this.CallbackUrl != null && + this.CallbackUrl.Equals(input.CallbackUrl)) + ) && + ( + this.CustomLogoFile == input.CustomLogoFile || + (this.CustomLogoFile != null && + this.CustomLogoFile.Equals(input.CustomLogoFile)) + ) && + ( + this.Oauth == input.Oauth || + (this.Oauth != null && + this.Oauth.Equals(input.Oauth)) + ) && + ( + this.Options == input.Options || + (this.Options != null && + this.Options.Equals(input.Options)) + ) && + ( + this.WhiteLabelingOptions == input.WhiteLabelingOptions || + (this.WhiteLabelingOptions != null && + this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions)) ); } @@ -279,9 +273,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -289,71 +281,51 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "domains", - Property = "Domains", - Type = "List", - Value = Domains, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_logo_file", - Property = "CustomLogoFile", - Type = "System.IO.Stream", - Value = CustomLogoFile, - } - ); - types.Add( - new OpenApiType() - { - Name = "oauth", - Property = "Oauth", - Type = "SubOAuth", - Value = Oauth, - } - ); - types.Add( - new OpenApiType() - { - Name = "options", - Property = "Options", - Type = "SubOptions", - Value = Options, - } - ); - types.Add( - new OpenApiType() - { - Name = "white_labeling_options", - Property = "WhiteLabelingOptions", - Type = "SubWhiteLabelingOptions", - Value = WhiteLabelingOptions, - } - ); + types.Add(new OpenApiType(){ + Name = "domains", + Property = "Domains", + Type = "List", + Value = Domains, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + }); + types.Add(new OpenApiType(){ + Name = "custom_logo_file", + Property = "CustomLogoFile", + Type = "System.IO.Stream", + Value = CustomLogoFile, + }); + types.Add(new OpenApiType(){ + Name = "oauth", + Property = "Oauth", + Type = "SubOAuth", + Value = Oauth, + }); + types.Add(new OpenApiType(){ + Name = "options", + Property = "Options", + Type = "SubOptions", + Value = Options, + }); + types.Add(new OpenApiType(){ + Name = "white_labeling_options", + Property = "WhiteLabelingOptions", + Type = "SubWhiteLabelingOptions", + Value = WhiteLabelingOptions, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs index e27cf8152..8489b05b2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,14 @@ public partial class ApiAppGetResponse : IEquatable, IValidat /// [JsonConstructorAttribute] protected ApiAppGetResponse() { } - /// /// Initializes a new instance of the class. /// /// apiApp. /// A list of warnings.. - public ApiAppGetResponse( - ApiAppResponse apiApp = default(ApiAppResponse), - List warnings = default(List) - ) + public ApiAppGetResponse(ApiAppResponse apiApp = default(ApiAppResponse), List warnings = default(List)) { + this.ApiApp = apiApp; this.Warnings = warnings; } @@ -74,6 +71,7 @@ public static ApiAppGetResponse Init(string jsonData) /// [DataMember(Name = "api_app", EmitDefaultValue = true)] public ApiAppResponse ApiApp { get; set; } + /// /// A list of warnings. @@ -81,6 +79,7 @@ public static ApiAppGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -102,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -129,15 +125,17 @@ public bool Equals(ApiAppGetResponse input) { return false; } - return ( - this.ApiApp == input.ApiApp - || (this.ApiApp != null && this.ApiApp.Equals(input.ApiApp)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.ApiApp == input.ApiApp || + (this.ApiApp != null && + this.ApiApp.Equals(input.ApiApp)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -167,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -177,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "api_app", - Property = "ApiApp", - Type = "ApiAppResponse", - Value = ApiApp, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "api_app", + Property = "ApiApp", + Type = "ApiAppResponse", + Value = ApiApp, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs index b5b96a18f..10fce699c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,15 @@ public partial class ApiAppListResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected ApiAppListResponse() { } - /// /// Initializes a new instance of the class. /// /// Contains information about API Apps.. /// listInfo. /// A list of warnings.. - public ApiAppListResponse( - List apiApps = default(List), - ListInfoResponse listInfo = default(ListInfoResponse), - List warnings = default(List) - ) + public ApiAppListResponse(List apiApps = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { + this.ApiApps = apiApps; this.ListInfo = listInfo; this.Warnings = warnings; @@ -78,12 +74,14 @@ public static ApiAppListResponse Init(string jsonData) /// Contains information about API Apps. [DataMember(Name = "api_apps", EmitDefaultValue = true)] public List ApiApps { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// A list of warnings. @@ -91,6 +89,7 @@ public static ApiAppListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -113,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -140,21 +136,23 @@ public bool Equals(ApiAppListResponse input) { return false; } - return ( - this.ApiApps == input.ApiApps - || this.ApiApps != null - && input.ApiApps != null - && this.ApiApps.SequenceEqual(input.ApiApps) - ) - && ( - this.ListInfo == input.ListInfo - || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.ApiApps == input.ApiApps || + this.ApiApps != null && + input.ApiApps != null && + this.ApiApps.SequenceEqual(input.ApiApps) + ) && + ( + this.ListInfo == input.ListInfo || + (this.ListInfo != null && + this.ListInfo.Equals(input.ListInfo)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -188,9 +186,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -198,35 +194,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "api_apps", - Property = "ApiApps", - Type = "List", - Value = ApiApps, - } - ); - types.Add( - new OpenApiType() - { - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "api_apps", + Property = "ApiApps", + Type = "List", + Value = ApiApps, + }); + types.Add(new OpenApiType(){ + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs index 108e297c6..a27044b2f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class ApiAppResponse : IEquatable, IValidatableOb /// [JsonConstructorAttribute] protected ApiAppResponse() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +51,9 @@ protected ApiAppResponse() { } /// options. /// ownerAccount. /// whiteLabelingOptions. - public ApiAppResponse( - string callbackUrl = default(string), - string clientId = default(string), - int createdAt = default(int), - List domains = default(List), - string name = default(string), - bool isApproved = default(bool), - ApiAppResponseOAuth oauth = default(ApiAppResponseOAuth), - ApiAppResponseOptions options = default(ApiAppResponseOptions), - ApiAppResponseOwnerAccount ownerAccount = default(ApiAppResponseOwnerAccount), - ApiAppResponseWhiteLabelingOptions whiteLabelingOptions = - default(ApiAppResponseWhiteLabelingOptions) - ) + public ApiAppResponse(string callbackUrl = default(string), string clientId = default(string), int createdAt = default(int), List domains = default(List), string name = default(string), bool isApproved = default(bool), ApiAppResponseOAuth oauth = default(ApiAppResponseOAuth), ApiAppResponseOptions options = default(ApiAppResponseOptions), ApiAppResponseOwnerAccount ownerAccount = default(ApiAppResponseOwnerAccount), ApiAppResponseWhiteLabelingOptions whiteLabelingOptions = default(ApiAppResponseWhiteLabelingOptions)) { + this.CallbackUrl = callbackUrl; this.ClientId = clientId; this.CreatedAt = createdAt; @@ -100,6 +88,7 @@ public static ApiAppResponse Init(string jsonData) /// The app's callback URL (for events) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// The app's client id @@ -107,6 +96,7 @@ public static ApiAppResponse Init(string jsonData) /// The app's client id [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// The time that the app was created @@ -114,6 +104,7 @@ public static ApiAppResponse Init(string jsonData) /// The time that the app was created [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// The domain name(s) associated with the app @@ -121,6 +112,7 @@ public static ApiAppResponse Init(string jsonData) /// The domain name(s) associated with the app [DataMember(Name = "domains", EmitDefaultValue = true)] public List Domains { get; set; } + /// /// The name of the app @@ -128,6 +120,7 @@ public static ApiAppResponse Init(string jsonData) /// The name of the app [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Boolean to indicate if the app has been approved @@ -135,30 +128,35 @@ public static ApiAppResponse Init(string jsonData) /// Boolean to indicate if the app has been approved [DataMember(Name = "is_approved", EmitDefaultValue = true)] public bool IsApproved { get; set; } + /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public ApiAppResponseOAuth Oauth { get; set; } + /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public ApiAppResponseOptions Options { get; set; } + /// /// Gets or Sets OwnerAccount /// [DataMember(Name = "owner_account", EmitDefaultValue = true)] public ApiAppResponseOwnerAccount OwnerAccount { get; set; } + /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public ApiAppResponseWhiteLabelingOptions WhiteLabelingOptions { get; set; } + /// /// Returns the string presentation of the object @@ -188,10 +186,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -215,41 +210,55 @@ public bool Equals(ApiAppResponse input) { return false; } - return ( - this.CallbackUrl == input.CallbackUrl - || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)) - && ( - this.Domains == input.Domains - || this.Domains != null - && input.Domains != null - && this.Domains.SequenceEqual(input.Domains) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.IsApproved == input.IsApproved || this.IsApproved.Equals(input.IsApproved)) - && ( - this.Oauth == input.Oauth - || (this.Oauth != null && this.Oauth.Equals(input.Oauth)) - ) - && ( - this.Options == input.Options - || (this.Options != null && this.Options.Equals(input.Options)) - ) - && ( - this.OwnerAccount == input.OwnerAccount - || (this.OwnerAccount != null && this.OwnerAccount.Equals(input.OwnerAccount)) - ) - && ( - this.WhiteLabelingOptions == input.WhiteLabelingOptions - || ( - this.WhiteLabelingOptions != null - && this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions) - ) + return + ( + this.CallbackUrl == input.CallbackUrl || + (this.CallbackUrl != null && + this.CallbackUrl.Equals(input.CallbackUrl)) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + this.CreatedAt.Equals(input.CreatedAt) + ) && + ( + this.Domains == input.Domains || + this.Domains != null && + input.Domains != null && + this.Domains.SequenceEqual(input.Domains) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.IsApproved == input.IsApproved || + this.IsApproved.Equals(input.IsApproved) + ) && + ( + this.Oauth == input.Oauth || + (this.Oauth != null && + this.Oauth.Equals(input.Oauth)) + ) && + ( + this.Options == input.Options || + (this.Options != null && + this.Options.Equals(input.Options)) + ) && + ( + this.OwnerAccount == input.OwnerAccount || + (this.OwnerAccount != null && + this.OwnerAccount.Equals(input.OwnerAccount)) + ) && + ( + this.WhiteLabelingOptions == input.WhiteLabelingOptions || + (this.WhiteLabelingOptions != null && + this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions)) ); } @@ -305,9 +314,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -315,98 +322,69 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "domains", - Property = "Domains", - Type = "List", - Value = Domains, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_approved", - Property = "IsApproved", - Type = "bool", - Value = IsApproved, - } - ); - types.Add( - new OpenApiType() - { - Name = "oauth", - Property = "Oauth", - Type = "ApiAppResponseOAuth", - Value = Oauth, - } - ); - types.Add( - new OpenApiType() - { - Name = "options", - Property = "Options", - Type = "ApiAppResponseOptions", - Value = Options, - } - ); - types.Add( - new OpenApiType() - { - Name = "owner_account", - Property = "OwnerAccount", - Type = "ApiAppResponseOwnerAccount", - Value = OwnerAccount, - } - ); - types.Add( - new OpenApiType() - { - Name = "white_labeling_options", - Property = "WhiteLabelingOptions", - Type = "ApiAppResponseWhiteLabelingOptions", - Value = WhiteLabelingOptions, - } - ); + types.Add(new OpenApiType(){ + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + }); + types.Add(new OpenApiType(){ + Name = "domains", + Property = "Domains", + Type = "List", + Value = Domains, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "is_approved", + Property = "IsApproved", + Type = "bool", + Value = IsApproved, + }); + types.Add(new OpenApiType(){ + Name = "oauth", + Property = "Oauth", + Type = "ApiAppResponseOAuth", + Value = Oauth, + }); + types.Add(new OpenApiType(){ + Name = "options", + Property = "Options", + Type = "ApiAppResponseOptions", + Value = Options, + }); + types.Add(new OpenApiType(){ + Name = "owner_account", + Property = "OwnerAccount", + Type = "ApiAppResponseOwnerAccount", + Value = OwnerAccount, + }); + types.Add(new OpenApiType(){ + Name = "white_labeling_options", + Property = "WhiteLabelingOptions", + Type = "ApiAppResponseWhiteLabelingOptions", + Value = WhiteLabelingOptions, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs index 592520115..70695cab8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class ApiAppResponseOAuth : IEquatable, IVal /// [JsonConstructorAttribute] protected ApiAppResponseOAuth() { } - /// /// Initializes a new instance of the class. /// @@ -46,13 +45,9 @@ protected ApiAppResponseOAuth() { } /// The app's OAuth secret, or null if the app does not belong to user.. /// Array of OAuth scopes used by the app.. /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests.. - public ApiAppResponseOAuth( - string callbackUrl = default(string), - string secret = default(string), - List scopes = default(List), - bool chargesUsers = default(bool) - ) + public ApiAppResponseOAuth(string callbackUrl = default(string), string secret = default(string), List scopes = default(List), bool chargesUsers = default(bool)) { + this.CallbackUrl = callbackUrl; this.Secret = secret; this.Scopes = scopes; @@ -69,9 +64,7 @@ public static ApiAppResponseOAuth Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of ApiAppResponseOAuth" - ); + throw new Exception("Unable to deserialize JSON to instance of ApiAppResponseOAuth"); } return obj; @@ -83,6 +76,7 @@ public static ApiAppResponseOAuth Init(string jsonData) /// The app's OAuth callback URL. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// The app's OAuth secret, or null if the app does not belong to user. @@ -90,6 +84,7 @@ public static ApiAppResponseOAuth Init(string jsonData) /// The app's OAuth secret, or null if the app does not belong to user. [DataMember(Name = "secret", EmitDefaultValue = true)] public string Secret { get; set; } + /// /// Array of OAuth scopes used by the app. @@ -97,6 +92,7 @@ public static ApiAppResponseOAuth Init(string jsonData) /// Array of OAuth scopes used by the app. [DataMember(Name = "scopes", EmitDefaultValue = true)] public List Scopes { get; set; } + /// /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. @@ -104,6 +100,7 @@ public static ApiAppResponseOAuth Init(string jsonData) /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. [DataMember(Name = "charges_users", EmitDefaultValue = true)] public bool ChargesUsers { get; set; } + /// /// Returns the string presentation of the object @@ -127,10 +124,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -154,23 +148,26 @@ public bool Equals(ApiAppResponseOAuth input) { return false; } - return ( - this.CallbackUrl == input.CallbackUrl - || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) - ) - && ( - this.Secret == input.Secret - || (this.Secret != null && this.Secret.Equals(input.Secret)) - ) - && ( - this.Scopes == input.Scopes - || this.Scopes != null - && input.Scopes != null - && this.Scopes.SequenceEqual(input.Scopes) - ) - && ( - this.ChargesUsers == input.ChargesUsers - || this.ChargesUsers.Equals(input.ChargesUsers) + return + ( + this.CallbackUrl == input.CallbackUrl || + (this.CallbackUrl != null && + this.CallbackUrl.Equals(input.CallbackUrl)) + ) && + ( + this.Secret == input.Secret || + (this.Secret != null && + this.Secret.Equals(input.Secret)) + ) && + ( + this.Scopes == input.Scopes || + this.Scopes != null && + input.Scopes != null && + this.Scopes.SequenceEqual(input.Scopes) + ) && + ( + this.ChargesUsers == input.ChargesUsers || + this.ChargesUsers.Equals(input.ChargesUsers) ); } @@ -205,9 +202,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -215,44 +210,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "secret", - Property = "Secret", - Type = "string", - Value = Secret, - } - ); - types.Add( - new OpenApiType() - { - Name = "scopes", - Property = "Scopes", - Type = "List", - Value = Scopes, - } - ); - types.Add( - new OpenApiType() - { - Name = "charges_users", - Property = "ChargesUsers", - Type = "bool", - Value = ChargesUsers, - } - ); + types.Add(new OpenApiType(){ + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + }); + types.Add(new OpenApiType(){ + Name = "secret", + Property = "Secret", + Type = "string", + Value = Secret, + }); + types.Add(new OpenApiType(){ + Name = "scopes", + Property = "Scopes", + Type = "List", + Value = Scopes, + }); + types.Add(new OpenApiType(){ + Name = "charges_users", + Property = "ChargesUsers", + Type = "bool", + Value = ChargesUsers, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs index d7dee805c..b662fbe2a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,22 +31,20 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseOptions - : IEquatable, - IValidatableObject + public partial class ApiAppResponseOptions : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected ApiAppResponseOptions() { } - /// /// Initializes a new instance of the class. /// /// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document. public ApiAppResponseOptions(bool canInsertEverywhere = default(bool)) { + this.CanInsertEverywhere = canInsertEverywhere; } @@ -60,9 +58,7 @@ public static ApiAppResponseOptions Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of ApiAppResponseOptions" - ); + throw new Exception("Unable to deserialize JSON to instance of ApiAppResponseOptions"); } return obj; @@ -74,6 +70,7 @@ public static ApiAppResponseOptions Init(string jsonData) /// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document [DataMember(Name = "can_insert_everywhere", EmitDefaultValue = true)] public bool CanInsertEverywhere { get; set; } + /// /// Returns the string presentation of the object @@ -94,10 +91,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -121,10 +115,11 @@ public bool Equals(ApiAppResponseOptions input) { return false; } - return ( - this.CanInsertEverywhere == input.CanInsertEverywhere - || this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) - ); + return + ( + this.CanInsertEverywhere == input.CanInsertEverywhere || + this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) + ); } /// @@ -146,9 +141,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -156,17 +149,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "can_insert_everywhere", - Property = "CanInsertEverywhere", - Type = "bool", - Value = CanInsertEverywhere, - } - ); + types.Add(new OpenApiType(){ + Name = "can_insert_everywhere", + Property = "CanInsertEverywhere", + Type = "bool", + Value = CanInsertEverywhere, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs index 052fa24b5..7f2adb90f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseOwnerAccount")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseOwnerAccount - : IEquatable, - IValidatableObject + public partial class ApiAppResponseOwnerAccount : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected ApiAppResponseOwnerAccount() { } - /// /// Initializes a new instance of the class. /// /// The owner account's ID. /// The owner account's email address. - public ApiAppResponseOwnerAccount( - string accountId = default(string), - string emailAddress = default(string) - ) + public ApiAppResponseOwnerAccount(string accountId = default(string), string emailAddress = default(string)) { + this.AccountId = accountId; this.EmailAddress = emailAddress; } @@ -65,9 +60,7 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of ApiAppResponseOwnerAccount" - ); + throw new Exception("Unable to deserialize JSON to instance of ApiAppResponseOwnerAccount"); } return obj; @@ -79,6 +72,7 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) /// The owner account's ID [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The owner account's email address @@ -86,6 +80,7 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) /// The owner account's email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -107,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -134,13 +126,16 @@ public bool Equals(ApiAppResponseOwnerAccount input) { return false; } - return ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + return + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -170,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -180,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs index 6a3466359..9f53b68ed 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "ApiAppResponseWhiteLabelingOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class ApiAppResponseWhiteLabelingOptions - : IEquatable, - IValidatableObject + public partial class ApiAppResponseWhiteLabelingOptions : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected ApiAppResponseWhiteLabelingOptions() { } - /// /// Initializes a new instance of the class. /// @@ -58,23 +55,9 @@ protected ApiAppResponseWhiteLabelingOptions() { } /// secondaryButtonTextColorHover. /// textColor1. /// textColor2. - public ApiAppResponseWhiteLabelingOptions( - string headerBackgroundColor = default(string), - string legalVersion = default(string), - string linkColor = default(string), - string pageBackgroundColor = default(string), - string primaryButtonColor = default(string), - string primaryButtonColorHover = default(string), - string primaryButtonTextColor = default(string), - string primaryButtonTextColorHover = default(string), - string secondaryButtonColor = default(string), - string secondaryButtonColorHover = default(string), - string secondaryButtonTextColor = default(string), - string secondaryButtonTextColorHover = default(string), - string textColor1 = default(string), - string textColor2 = default(string) - ) + public ApiAppResponseWhiteLabelingOptions(string headerBackgroundColor = default(string), string legalVersion = default(string), string linkColor = default(string), string pageBackgroundColor = default(string), string primaryButtonColor = default(string), string primaryButtonColorHover = default(string), string primaryButtonTextColor = default(string), string primaryButtonTextColorHover = default(string), string secondaryButtonColor = default(string), string secondaryButtonColorHover = default(string), string secondaryButtonTextColor = default(string), string secondaryButtonTextColorHover = default(string), string textColor1 = default(string), string textColor2 = default(string)) { + this.HeaderBackgroundColor = headerBackgroundColor; this.LegalVersion = legalVersion; this.LinkColor = linkColor; @@ -101,9 +84,7 @@ public static ApiAppResponseWhiteLabelingOptions Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of ApiAppResponseWhiteLabelingOptions" - ); + throw new Exception("Unable to deserialize JSON to instance of ApiAppResponseWhiteLabelingOptions"); } return obj; @@ -114,84 +95,98 @@ public static ApiAppResponseWhiteLabelingOptions Init(string jsonData) /// [DataMember(Name = "header_background_color", EmitDefaultValue = true)] public string HeaderBackgroundColor { get; set; } + /// /// Gets or Sets LegalVersion /// [DataMember(Name = "legal_version", EmitDefaultValue = true)] public string LegalVersion { get; set; } + /// /// Gets or Sets LinkColor /// [DataMember(Name = "link_color", EmitDefaultValue = true)] public string LinkColor { get; set; } + /// /// Gets or Sets PageBackgroundColor /// [DataMember(Name = "page_background_color", EmitDefaultValue = true)] public string PageBackgroundColor { get; set; } + /// /// Gets or Sets PrimaryButtonColor /// [DataMember(Name = "primary_button_color", EmitDefaultValue = true)] public string PrimaryButtonColor { get; set; } + /// /// Gets or Sets PrimaryButtonColorHover /// [DataMember(Name = "primary_button_color_hover", EmitDefaultValue = true)] public string PrimaryButtonColorHover { get; set; } + /// /// Gets or Sets PrimaryButtonTextColor /// [DataMember(Name = "primary_button_text_color", EmitDefaultValue = true)] public string PrimaryButtonTextColor { get; set; } + /// /// Gets or Sets PrimaryButtonTextColorHover /// [DataMember(Name = "primary_button_text_color_hover", EmitDefaultValue = true)] public string PrimaryButtonTextColorHover { get; set; } + /// /// Gets or Sets SecondaryButtonColor /// [DataMember(Name = "secondary_button_color", EmitDefaultValue = true)] public string SecondaryButtonColor { get; set; } + /// /// Gets or Sets SecondaryButtonColorHover /// [DataMember(Name = "secondary_button_color_hover", EmitDefaultValue = true)] public string SecondaryButtonColorHover { get; set; } + /// /// Gets or Sets SecondaryButtonTextColor /// [DataMember(Name = "secondary_button_text_color", EmitDefaultValue = true)] public string SecondaryButtonTextColor { get; set; } + /// /// Gets or Sets SecondaryButtonTextColorHover /// [DataMember(Name = "secondary_button_text_color_hover", EmitDefaultValue = true)] public string SecondaryButtonTextColorHover { get; set; } + /// /// Gets or Sets TextColor1 /// [DataMember(Name = "text_color1", EmitDefaultValue = true)] public string TextColor1 { get; set; } + /// /// Gets or Sets TextColor2 /// [DataMember(Name = "text_color2", EmitDefaultValue = true)] public string TextColor2 { get; set; } + /// /// Returns the string presentation of the object @@ -208,17 +203,11 @@ public override string ToString() sb.Append(" PrimaryButtonColor: ").Append(PrimaryButtonColor).Append("\n"); sb.Append(" PrimaryButtonColorHover: ").Append(PrimaryButtonColorHover).Append("\n"); sb.Append(" PrimaryButtonTextColor: ").Append(PrimaryButtonTextColor).Append("\n"); - sb.Append(" PrimaryButtonTextColorHover: ") - .Append(PrimaryButtonTextColorHover) - .Append("\n"); + sb.Append(" PrimaryButtonTextColorHover: ").Append(PrimaryButtonTextColorHover).Append("\n"); sb.Append(" SecondaryButtonColor: ").Append(SecondaryButtonColor).Append("\n"); - sb.Append(" SecondaryButtonColorHover: ") - .Append(SecondaryButtonColorHover) - .Append("\n"); + sb.Append(" SecondaryButtonColorHover: ").Append(SecondaryButtonColorHover).Append("\n"); sb.Append(" SecondaryButtonTextColor: ").Append(SecondaryButtonTextColor).Append("\n"); - sb.Append(" SecondaryButtonTextColorHover: ") - .Append(SecondaryButtonTextColorHover) - .Append("\n"); + sb.Append(" SecondaryButtonTextColorHover: ").Append(SecondaryButtonTextColorHover).Append("\n"); sb.Append(" TextColor1: ").Append(TextColor1).Append("\n"); sb.Append(" TextColor2: ").Append(TextColor2).Append("\n"); sb.Append("}\n"); @@ -231,10 +220,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -258,95 +244,76 @@ public bool Equals(ApiAppResponseWhiteLabelingOptions input) { return false; } - return ( - this.HeaderBackgroundColor == input.HeaderBackgroundColor - || ( - this.HeaderBackgroundColor != null - && this.HeaderBackgroundColor.Equals(input.HeaderBackgroundColor) - ) - ) - && ( - this.LegalVersion == input.LegalVersion - || (this.LegalVersion != null && this.LegalVersion.Equals(input.LegalVersion)) - ) - && ( - this.LinkColor == input.LinkColor - || (this.LinkColor != null && this.LinkColor.Equals(input.LinkColor)) - ) - && ( - this.PageBackgroundColor == input.PageBackgroundColor - || ( - this.PageBackgroundColor != null - && this.PageBackgroundColor.Equals(input.PageBackgroundColor) - ) - ) - && ( - this.PrimaryButtonColor == input.PrimaryButtonColor - || ( - this.PrimaryButtonColor != null - && this.PrimaryButtonColor.Equals(input.PrimaryButtonColor) - ) - ) - && ( - this.PrimaryButtonColorHover == input.PrimaryButtonColorHover - || ( - this.PrimaryButtonColorHover != null - && this.PrimaryButtonColorHover.Equals(input.PrimaryButtonColorHover) - ) - ) - && ( - this.PrimaryButtonTextColor == input.PrimaryButtonTextColor - || ( - this.PrimaryButtonTextColor != null - && this.PrimaryButtonTextColor.Equals(input.PrimaryButtonTextColor) - ) - ) - && ( - this.PrimaryButtonTextColorHover == input.PrimaryButtonTextColorHover - || ( - this.PrimaryButtonTextColorHover != null - && this.PrimaryButtonTextColorHover.Equals( - input.PrimaryButtonTextColorHover - ) - ) - ) - && ( - this.SecondaryButtonColor == input.SecondaryButtonColor - || ( - this.SecondaryButtonColor != null - && this.SecondaryButtonColor.Equals(input.SecondaryButtonColor) - ) - ) - && ( - this.SecondaryButtonColorHover == input.SecondaryButtonColorHover - || ( - this.SecondaryButtonColorHover != null - && this.SecondaryButtonColorHover.Equals(input.SecondaryButtonColorHover) - ) - ) - && ( - this.SecondaryButtonTextColor == input.SecondaryButtonTextColor - || ( - this.SecondaryButtonTextColor != null - && this.SecondaryButtonTextColor.Equals(input.SecondaryButtonTextColor) - ) - ) - && ( - this.SecondaryButtonTextColorHover == input.SecondaryButtonTextColorHover - || ( - this.SecondaryButtonTextColorHover != null - && this.SecondaryButtonTextColorHover.Equals( - input.SecondaryButtonTextColorHover - ) - ) - ) - && ( - this.TextColor1 == input.TextColor1 - || (this.TextColor1 != null && this.TextColor1.Equals(input.TextColor1)) - ) - && ( - this.TextColor2 == input.TextColor2 - || (this.TextColor2 != null && this.TextColor2.Equals(input.TextColor2)) + return + ( + this.HeaderBackgroundColor == input.HeaderBackgroundColor || + (this.HeaderBackgroundColor != null && + this.HeaderBackgroundColor.Equals(input.HeaderBackgroundColor)) + ) && + ( + this.LegalVersion == input.LegalVersion || + (this.LegalVersion != null && + this.LegalVersion.Equals(input.LegalVersion)) + ) && + ( + this.LinkColor == input.LinkColor || + (this.LinkColor != null && + this.LinkColor.Equals(input.LinkColor)) + ) && + ( + this.PageBackgroundColor == input.PageBackgroundColor || + (this.PageBackgroundColor != null && + this.PageBackgroundColor.Equals(input.PageBackgroundColor)) + ) && + ( + this.PrimaryButtonColor == input.PrimaryButtonColor || + (this.PrimaryButtonColor != null && + this.PrimaryButtonColor.Equals(input.PrimaryButtonColor)) + ) && + ( + this.PrimaryButtonColorHover == input.PrimaryButtonColorHover || + (this.PrimaryButtonColorHover != null && + this.PrimaryButtonColorHover.Equals(input.PrimaryButtonColorHover)) + ) && + ( + this.PrimaryButtonTextColor == input.PrimaryButtonTextColor || + (this.PrimaryButtonTextColor != null && + this.PrimaryButtonTextColor.Equals(input.PrimaryButtonTextColor)) + ) && + ( + this.PrimaryButtonTextColorHover == input.PrimaryButtonTextColorHover || + (this.PrimaryButtonTextColorHover != null && + this.PrimaryButtonTextColorHover.Equals(input.PrimaryButtonTextColorHover)) + ) && + ( + this.SecondaryButtonColor == input.SecondaryButtonColor || + (this.SecondaryButtonColor != null && + this.SecondaryButtonColor.Equals(input.SecondaryButtonColor)) + ) && + ( + this.SecondaryButtonColorHover == input.SecondaryButtonColorHover || + (this.SecondaryButtonColorHover != null && + this.SecondaryButtonColorHover.Equals(input.SecondaryButtonColorHover)) + ) && + ( + this.SecondaryButtonTextColor == input.SecondaryButtonTextColor || + (this.SecondaryButtonTextColor != null && + this.SecondaryButtonTextColor.Equals(input.SecondaryButtonTextColor)) + ) && + ( + this.SecondaryButtonTextColorHover == input.SecondaryButtonTextColorHover || + (this.SecondaryButtonTextColorHover != null && + this.SecondaryButtonTextColorHover.Equals(input.SecondaryButtonTextColorHover)) + ) && + ( + this.TextColor1 == input.TextColor1 || + (this.TextColor1 != null && + this.TextColor1.Equals(input.TextColor1)) + ) && + ( + this.TextColor2 == input.TextColor2 || + (this.TextColor2 != null && + this.TextColor2.Equals(input.TextColor2)) ); } @@ -424,9 +391,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -434,134 +399,93 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "header_background_color", - Property = "HeaderBackgroundColor", - Type = "string", - Value = HeaderBackgroundColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "legal_version", - Property = "LegalVersion", - Type = "string", - Value = LegalVersion, - } - ); - types.Add( - new OpenApiType() - { - Name = "link_color", - Property = "LinkColor", - Type = "string", - Value = LinkColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "page_background_color", - Property = "PageBackgroundColor", - Type = "string", - Value = PageBackgroundColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "primary_button_color", - Property = "PrimaryButtonColor", - Type = "string", - Value = PrimaryButtonColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "primary_button_color_hover", - Property = "PrimaryButtonColorHover", - Type = "string", - Value = PrimaryButtonColorHover, - } - ); - types.Add( - new OpenApiType() - { - Name = "primary_button_text_color", - Property = "PrimaryButtonTextColor", - Type = "string", - Value = PrimaryButtonTextColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "primary_button_text_color_hover", - Property = "PrimaryButtonTextColorHover", - Type = "string", - Value = PrimaryButtonTextColorHover, - } - ); - types.Add( - new OpenApiType() - { - Name = "secondary_button_color", - Property = "SecondaryButtonColor", - Type = "string", - Value = SecondaryButtonColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "secondary_button_color_hover", - Property = "SecondaryButtonColorHover", - Type = "string", - Value = SecondaryButtonColorHover, - } - ); - types.Add( - new OpenApiType() - { - Name = "secondary_button_text_color", - Property = "SecondaryButtonTextColor", - Type = "string", - Value = SecondaryButtonTextColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "secondary_button_text_color_hover", - Property = "SecondaryButtonTextColorHover", - Type = "string", - Value = SecondaryButtonTextColorHover, - } - ); - types.Add( - new OpenApiType() - { - Name = "text_color1", - Property = "TextColor1", - Type = "string", - Value = TextColor1, - } - ); - types.Add( - new OpenApiType() - { - Name = "text_color2", - Property = "TextColor2", - Type = "string", - Value = TextColor2, - } - ); + types.Add(new OpenApiType(){ + Name = "header_background_color", + Property = "HeaderBackgroundColor", + Type = "string", + Value = HeaderBackgroundColor, + }); + types.Add(new OpenApiType(){ + Name = "legal_version", + Property = "LegalVersion", + Type = "string", + Value = LegalVersion, + }); + types.Add(new OpenApiType(){ + Name = "link_color", + Property = "LinkColor", + Type = "string", + Value = LinkColor, + }); + types.Add(new OpenApiType(){ + Name = "page_background_color", + Property = "PageBackgroundColor", + Type = "string", + Value = PageBackgroundColor, + }); + types.Add(new OpenApiType(){ + Name = "primary_button_color", + Property = "PrimaryButtonColor", + Type = "string", + Value = PrimaryButtonColor, + }); + types.Add(new OpenApiType(){ + Name = "primary_button_color_hover", + Property = "PrimaryButtonColorHover", + Type = "string", + Value = PrimaryButtonColorHover, + }); + types.Add(new OpenApiType(){ + Name = "primary_button_text_color", + Property = "PrimaryButtonTextColor", + Type = "string", + Value = PrimaryButtonTextColor, + }); + types.Add(new OpenApiType(){ + Name = "primary_button_text_color_hover", + Property = "PrimaryButtonTextColorHover", + Type = "string", + Value = PrimaryButtonTextColorHover, + }); + types.Add(new OpenApiType(){ + Name = "secondary_button_color", + Property = "SecondaryButtonColor", + Type = "string", + Value = SecondaryButtonColor, + }); + types.Add(new OpenApiType(){ + Name = "secondary_button_color_hover", + Property = "SecondaryButtonColorHover", + Type = "string", + Value = SecondaryButtonColorHover, + }); + types.Add(new OpenApiType(){ + Name = "secondary_button_text_color", + Property = "SecondaryButtonTextColor", + Type = "string", + Value = SecondaryButtonTextColor, + }); + types.Add(new OpenApiType(){ + Name = "secondary_button_text_color_hover", + Property = "SecondaryButtonTextColorHover", + Type = "string", + Value = SecondaryButtonTextColorHover, + }); + types.Add(new OpenApiType(){ + Name = "text_color1", + Property = "TextColor1", + Type = "string", + Value = TextColor1, + }); + types.Add(new OpenApiType(){ + Name = "text_color2", + Property = "TextColor2", + Type = "string", + Value = TextColor2, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs index 46a621a4b..12c9ae00e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class ApiAppUpdateRequest : IEquatable, IVal /// [JsonConstructorAttribute] protected ApiAppUpdateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -49,16 +48,9 @@ protected ApiAppUpdateRequest() { } /// oauth. /// options. /// whiteLabelingOptions. - public ApiAppUpdateRequest( - string callbackUrl = default(string), - System.IO.Stream customLogoFile = default(System.IO.Stream), - List domains = default(List), - string name = default(string), - SubOAuth oauth = default(SubOAuth), - SubOptions options = default(SubOptions), - SubWhiteLabelingOptions whiteLabelingOptions = default(SubWhiteLabelingOptions) - ) + public ApiAppUpdateRequest(string callbackUrl = default(string), System.IO.Stream customLogoFile = default(System.IO.Stream), List domains = default(List), string name = default(string), SubOAuth oauth = default(SubOAuth), SubOptions options = default(SubOptions), SubWhiteLabelingOptions whiteLabelingOptions = default(SubWhiteLabelingOptions)) { + this.CallbackUrl = callbackUrl; this.CustomLogoFile = customLogoFile; this.Domains = domains; @@ -78,9 +70,7 @@ public static ApiAppUpdateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of ApiAppUpdateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of ApiAppUpdateRequest"); } return obj; @@ -92,6 +82,7 @@ public static ApiAppUpdateRequest Init(string jsonData) /// The URL at which the API App should receive event callbacks. [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) @@ -99,6 +90,7 @@ public static ApiAppUpdateRequest Init(string jsonData) /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) [DataMember(Name = "custom_logo_file", EmitDefaultValue = true)] public System.IO.Stream CustomLogoFile { get; set; } + /// /// The domain names the ApiApp will be associated with. @@ -106,6 +98,7 @@ public static ApiAppUpdateRequest Init(string jsonData) /// The domain names the ApiApp will be associated with. [DataMember(Name = "domains", EmitDefaultValue = true)] public List Domains { get; set; } + /// /// The name you want to assign to the ApiApp. @@ -113,24 +106,28 @@ public static ApiAppUpdateRequest Init(string jsonData) /// The name you want to assign to the ApiApp. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public SubOAuth Oauth { get; set; } + /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public SubOptions Options { get; set; } + /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public SubWhiteLabelingOptions WhiteLabelingOptions { get; set; } + /// /// Returns the string presentation of the object @@ -157,10 +154,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -184,38 +178,42 @@ public bool Equals(ApiAppUpdateRequest input) { return false; } - return ( - this.CallbackUrl == input.CallbackUrl - || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) - ) - && ( - this.CustomLogoFile == input.CustomLogoFile - || ( - this.CustomLogoFile != null - && this.CustomLogoFile.Equals(input.CustomLogoFile) - ) - ) - && ( - this.Domains == input.Domains - || this.Domains != null - && input.Domains != null - && this.Domains.SequenceEqual(input.Domains) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.Oauth == input.Oauth - || (this.Oauth != null && this.Oauth.Equals(input.Oauth)) - ) - && ( - this.Options == input.Options - || (this.Options != null && this.Options.Equals(input.Options)) - ) - && ( - this.WhiteLabelingOptions == input.WhiteLabelingOptions - || ( - this.WhiteLabelingOptions != null - && this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions) - ) + return + ( + this.CallbackUrl == input.CallbackUrl || + (this.CallbackUrl != null && + this.CallbackUrl.Equals(input.CallbackUrl)) + ) && + ( + this.CustomLogoFile == input.CustomLogoFile || + (this.CustomLogoFile != null && + this.CustomLogoFile.Equals(input.CustomLogoFile)) + ) && + ( + this.Domains == input.Domains || + this.Domains != null && + input.Domains != null && + this.Domains.SequenceEqual(input.Domains) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Oauth == input.Oauth || + (this.Oauth != null && + this.Oauth.Equals(input.Oauth)) + ) && + ( + this.Options == input.Options || + (this.Options != null && + this.Options.Equals(input.Options)) + ) && + ( + this.WhiteLabelingOptions == input.WhiteLabelingOptions || + (this.WhiteLabelingOptions != null && + this.WhiteLabelingOptions.Equals(input.WhiteLabelingOptions)) ); } @@ -265,9 +263,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -275,71 +271,51 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_logo_file", - Property = "CustomLogoFile", - Type = "System.IO.Stream", - Value = CustomLogoFile, - } - ); - types.Add( - new OpenApiType() - { - Name = "domains", - Property = "Domains", - Type = "List", - Value = Domains, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "oauth", - Property = "Oauth", - Type = "SubOAuth", - Value = Oauth, - } - ); - types.Add( - new OpenApiType() - { - Name = "options", - Property = "Options", - Type = "SubOptions", - Value = Options, - } - ); - types.Add( - new OpenApiType() - { - Name = "white_labeling_options", - Property = "WhiteLabelingOptions", - Type = "SubWhiteLabelingOptions", - Value = WhiteLabelingOptions, - } - ); + types.Add(new OpenApiType(){ + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + }); + types.Add(new OpenApiType(){ + Name = "custom_logo_file", + Property = "CustomLogoFile", + Type = "System.IO.Stream", + Value = CustomLogoFile, + }); + types.Add(new OpenApiType(){ + Name = "domains", + Property = "Domains", + Type = "List", + Value = Domains, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "oauth", + Property = "Oauth", + Type = "SubOAuth", + Value = Oauth, + }); + types.Add(new OpenApiType(){ + Name = "options", + Property = "Options", + Type = "SubOptions", + Value = Options, + }); + types.Add(new OpenApiType(){ + Name = "white_labeling_options", + Property = "WhiteLabelingOptions", + Type = "SubWhiteLabelingOptions", + Value = WhiteLabelingOptions, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs index c6ed0aaed..55bac37aa 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobGetResponse - : IEquatable, - IValidatableObject + public partial class BulkSendJobGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected BulkSendJobGetResponse() { } - /// /// Initializes a new instance of the class. /// @@ -48,14 +45,9 @@ protected BulkSendJobGetResponse() { } /// listInfo. /// Contains information about the Signature Requests sent in bulk.. /// A list of warnings.. - public BulkSendJobGetResponse( - BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), - ListInfoResponse listInfo = default(ListInfoResponse), - List signatureRequests = - default(List), - List warnings = default(List) - ) + public BulkSendJobGetResponse(BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), ListInfoResponse listInfo = default(ListInfoResponse), List signatureRequests = default(List), List warnings = default(List)) { + this.BulkSendJob = bulkSendJob; this.ListInfo = listInfo; this.SignatureRequests = signatureRequests; @@ -72,9 +64,7 @@ public static BulkSendJobGetResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of BulkSendJobGetResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of BulkSendJobGetResponse"); } return obj; @@ -85,12 +75,14 @@ public static BulkSendJobGetResponse Init(string jsonData) /// [DataMember(Name = "bulk_send_job", EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// Contains information about the Signature Requests sent in bulk. @@ -98,6 +90,7 @@ public static BulkSendJobGetResponse Init(string jsonData) /// Contains information about the Signature Requests sent in bulk. [DataMember(Name = "signature_requests", EmitDefaultValue = true)] public List SignatureRequests { get; set; } + /// /// A list of warnings. @@ -105,6 +98,7 @@ public static BulkSendJobGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -128,10 +122,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -155,25 +146,28 @@ public bool Equals(BulkSendJobGetResponse input) { return false; } - return ( - this.BulkSendJob == input.BulkSendJob - || (this.BulkSendJob != null && this.BulkSendJob.Equals(input.BulkSendJob)) - ) - && ( - this.ListInfo == input.ListInfo - || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) - ) - && ( - this.SignatureRequests == input.SignatureRequests - || this.SignatureRequests != null - && input.SignatureRequests != null - && this.SignatureRequests.SequenceEqual(input.SignatureRequests) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.BulkSendJob == input.BulkSendJob || + (this.BulkSendJob != null && + this.BulkSendJob.Equals(input.BulkSendJob)) + ) && + ( + this.ListInfo == input.ListInfo || + (this.ListInfo != null && + this.ListInfo.Equals(input.ListInfo)) + ) && + ( + this.SignatureRequests == input.SignatureRequests || + this.SignatureRequests != null && + input.SignatureRequests != null && + this.SignatureRequests.SequenceEqual(input.SignatureRequests) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -211,9 +205,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -221,44 +213,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "bulk_send_job", - Property = "BulkSendJob", - Type = "BulkSendJobResponse", - Value = BulkSendJob, - } - ); - types.Add( - new OpenApiType() - { - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - } - ); - types.Add( - new OpenApiType() - { - Name = "signature_requests", - Property = "SignatureRequests", - Type = "List", - Value = SignatureRequests, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "bulk_send_job", + Property = "BulkSendJob", + Type = "BulkSendJobResponse", + Value = BulkSendJob, + }); + types.Add(new OpenApiType(){ + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + }); + types.Add(new OpenApiType(){ + Name = "signature_requests", + Property = "SignatureRequests", + Type = "List", + Value = SignatureRequests, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index a93697137..de4b96fe1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobGetResponseSignatureRequests")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobGetResponseSignatureRequests - : IEquatable, - IValidatableObject + public partial class BulkSendJobGetResponseSignatureRequests : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected BulkSendJobGetResponseSignatureRequests() { } - /// /// Initializes a new instance of the class. /// @@ -69,38 +66,9 @@ protected BulkSendJobGetResponseSignatureRequests() { } /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers.. /// An array of signature objects, 1 for each signer.. /// The id of the BulkSendJob.. - public BulkSendJobGetResponseSignatureRequests( - bool? testMode = false, - string signatureRequestId = default(string), - string requesterEmailAddress = default(string), - string title = default(string), - string originalTitle = default(string), - string subject = default(string), - string message = default(string), - Object metadata = default(Object), - int createdAt = default(int), - int expiresAt = default(int), - bool isComplete = default(bool), - bool isDeclined = default(bool), - bool hasError = default(bool), - string filesUrl = default(string), - string signingUrl = default(string), - string detailsUrl = default(string), - List ccEmailAddresses = default(List), - string signingRedirectUrl = default(string), - string finalCopyUri = default(string), - List templateIds = default(List), - List customFields = - default(List), - List attachments = - default(List), - List responseData = - default(List), - List signatures = - default(List), - string bulkSendJobId = default(string) - ) + public BulkSendJobGetResponseSignatureRequests(bool? testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Object metadata = default(Object), int createdAt = default(int), int expiresAt = default(int), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) { + // use default value if no "testMode" provided this.TestMode = testMode ?? false; this.SignatureRequestId = signatureRequestId; @@ -135,15 +103,11 @@ public BulkSendJobGetResponseSignatureRequests( /// String of JSON data representing target object public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of BulkSendJobGetResponseSignatureRequests" - ); + throw new Exception("Unable to deserialize JSON to instance of BulkSendJobGetResponseSignatureRequests"); } return obj; @@ -155,6 +119,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool? TestMode { get; set; } + /// /// The id of the SignatureRequest. @@ -162,6 +127,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The id of the SignatureRequest. [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } + /// /// The email address of the initiator of the SignatureRequest. @@ -169,6 +135,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The email address of the initiator of the SignatureRequest. [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// The title the specified Account uses for the SignatureRequest. @@ -176,6 +143,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The title the specified Account uses for the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Default Label for account. @@ -183,6 +151,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Default Label for account. [DataMember(Name = "original_title", EmitDefaultValue = true)] public string OriginalTitle { get; set; } + /// /// The subject in the email that was initially sent to the signers. @@ -190,6 +159,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The subject in the email that was initially sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// The custom message in the email that was initially sent to the signers. @@ -197,6 +167,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The custom message in the email that was initially sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// The metadata attached to the signature request. @@ -204,6 +175,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } + /// /// Time the signature request was created. @@ -211,6 +183,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Time the signature request was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -218,6 +191,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -225,6 +199,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether or not the SignatureRequest has been fully executed by all signers. [DataMember(Name = "is_complete", EmitDefaultValue = true)] public bool IsComplete { get; set; } + /// /// Whether or not the SignatureRequest has been declined by a signer. @@ -232,6 +207,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether or not the SignatureRequest has been declined by a signer. [DataMember(Name = "is_declined", EmitDefaultValue = true)] public bool IsDeclined { get; set; } + /// /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). @@ -239,6 +215,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). [DataMember(Name = "has_error", EmitDefaultValue = true)] public bool HasError { get; set; } + /// /// The URL where a copy of the request's documents can be downloaded. @@ -246,6 +223,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL where a copy of the request's documents can be downloaded. [DataMember(Name = "files_url", EmitDefaultValue = true)] public string FilesUrl { get; set; } + /// /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. @@ -253,6 +231,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. [DataMember(Name = "signing_url", EmitDefaultValue = true)] public string SigningUrl { get; set; } + /// /// The URL where the requester and the signers can view the current status of the SignatureRequest. @@ -260,6 +239,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL where the requester and the signers can view the current status of the SignatureRequest. [DataMember(Name = "details_url", EmitDefaultValue = true)] public string DetailsUrl { get; set; } + /// /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. @@ -267,6 +247,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// The URL you want the signer redirected to after they successfully sign. @@ -274,6 +255,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The URL you want the signer redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The path where the completed document can be downloaded @@ -281,6 +263,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The path where the completed document can be downloaded [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] public string FinalCopyUri { get; set; } + /// /// Templates IDs used in this SignatureRequest (if any). @@ -288,6 +271,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Templates IDs used in this SignatureRequest (if any). [DataMember(Name = "template_ids", EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` @@ -295,6 +279,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Signer attachments. @@ -302,6 +287,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// Signer attachments. [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. @@ -309,6 +295,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. [DataMember(Name = "response_data", EmitDefaultValue = true)] public List ResponseData { get; set; } + /// /// An array of signature objects, 1 for each signer. @@ -316,6 +303,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// An array of signature objects, 1 for each signer. [DataMember(Name = "signatures", EmitDefaultValue = true)] public List Signatures { get; set; } + /// /// The id of the BulkSendJob. @@ -323,6 +311,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// The id of the BulkSendJob. [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } + /// /// Returns the string presentation of the object @@ -367,10 +356,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -394,115 +380,132 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) { return false; } - return ( - this.TestMode == input.TestMode - || (this.TestMode != null && this.TestMode.Equals(input.TestMode)) - ) - && ( - this.SignatureRequestId == input.SignatureRequestId - || ( - this.SignatureRequestId != null - && this.SignatureRequestId.Equals(input.SignatureRequestId) - ) - ) - && ( - this.RequesterEmailAddress == input.RequesterEmailAddress - || ( - this.RequesterEmailAddress != null - && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) - ) - ) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.OriginalTitle == input.OriginalTitle - || ( - this.OriginalTitle != null && this.OriginalTitle.Equals(input.OriginalTitle) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || (this.Metadata != null && this.Metadata.Equals(input.Metadata)) - ) - && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)) - && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)) - && (this.IsComplete == input.IsComplete || this.IsComplete.Equals(input.IsComplete)) - && (this.IsDeclined == input.IsDeclined || this.IsDeclined.Equals(input.IsDeclined)) - && (this.HasError == input.HasError || this.HasError.Equals(input.HasError)) - && ( - this.FilesUrl == input.FilesUrl - || (this.FilesUrl != null && this.FilesUrl.Equals(input.FilesUrl)) - ) - && ( - this.SigningUrl == input.SigningUrl - || (this.SigningUrl != null && this.SigningUrl.Equals(input.SigningUrl)) - ) - && ( - this.DetailsUrl == input.DetailsUrl - || (this.DetailsUrl != null && this.DetailsUrl.Equals(input.DetailsUrl)) - ) - && ( - this.CcEmailAddresses == input.CcEmailAddresses - || this.CcEmailAddresses != null - && input.CcEmailAddresses != null - && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.FinalCopyUri == input.FinalCopyUri - || (this.FinalCopyUri != null && this.FinalCopyUri.Equals(input.FinalCopyUri)) - ) - && ( - this.TemplateIds == input.TemplateIds - || this.TemplateIds != null - && input.TemplateIds != null - && this.TemplateIds.SequenceEqual(input.TemplateIds) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.ResponseData == input.ResponseData - || this.ResponseData != null - && input.ResponseData != null - && this.ResponseData.SequenceEqual(input.ResponseData) - ) - && ( - this.Signatures == input.Signatures - || this.Signatures != null - && input.Signatures != null - && this.Signatures.SequenceEqual(input.Signatures) - ) - && ( - this.BulkSendJobId == input.BulkSendJobId - || ( - this.BulkSendJobId != null && this.BulkSendJobId.Equals(input.BulkSendJobId) - ) + return + ( + this.TestMode == input.TestMode || + (this.TestMode != null && + this.TestMode.Equals(input.TestMode)) + ) && + ( + this.SignatureRequestId == input.SignatureRequestId || + (this.SignatureRequestId != null && + this.SignatureRequestId.Equals(input.SignatureRequestId)) + ) && + ( + this.RequesterEmailAddress == input.RequesterEmailAddress || + (this.RequesterEmailAddress != null && + this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.OriginalTitle == input.OriginalTitle || + (this.OriginalTitle != null && + this.OriginalTitle.Equals(input.OriginalTitle)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + (this.Metadata != null && + this.Metadata.Equals(input.Metadata)) + ) && + ( + this.CreatedAt == input.CreatedAt || + this.CreatedAt.Equals(input.CreatedAt) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + this.ExpiresAt.Equals(input.ExpiresAt) + ) && + ( + this.IsComplete == input.IsComplete || + this.IsComplete.Equals(input.IsComplete) + ) && + ( + this.IsDeclined == input.IsDeclined || + this.IsDeclined.Equals(input.IsDeclined) + ) && + ( + this.HasError == input.HasError || + this.HasError.Equals(input.HasError) + ) && + ( + this.FilesUrl == input.FilesUrl || + (this.FilesUrl != null && + this.FilesUrl.Equals(input.FilesUrl)) + ) && + ( + this.SigningUrl == input.SigningUrl || + (this.SigningUrl != null && + this.SigningUrl.Equals(input.SigningUrl)) + ) && + ( + this.DetailsUrl == input.DetailsUrl || + (this.DetailsUrl != null && + this.DetailsUrl.Equals(input.DetailsUrl)) + ) && + ( + this.CcEmailAddresses == input.CcEmailAddresses || + this.CcEmailAddresses != null && + input.CcEmailAddresses != null && + this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.FinalCopyUri == input.FinalCopyUri || + (this.FinalCopyUri != null && + this.FinalCopyUri.Equals(input.FinalCopyUri)) + ) && + ( + this.TemplateIds == input.TemplateIds || + this.TemplateIds != null && + input.TemplateIds != null && + this.TemplateIds.SequenceEqual(input.TemplateIds) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.ResponseData == input.ResponseData || + this.ResponseData != null && + input.ResponseData != null && + this.ResponseData.SequenceEqual(input.ResponseData) + ) && + ( + this.Signatures == input.Signatures || + this.Signatures != null && + input.Signatures != null && + this.Signatures.SequenceEqual(input.Signatures) + ) && + ( + this.BulkSendJobId == input.BulkSendJobId || + (this.BulkSendJobId != null && + this.BulkSendJobId.Equals(input.BulkSendJobId)) ); } @@ -609,9 +612,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -619,233 +620,159 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool?", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "signature_request_id", - Property = "SignatureRequestId", - Type = "string", - Value = SignatureRequestId, - } - ); - types.Add( - new OpenApiType() - { - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "original_title", - Property = "OriginalTitle", - Type = "string", - Value = OriginalTitle, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Object", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_complete", - Property = "IsComplete", - Type = "bool", - Value = IsComplete, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_declined", - Property = "IsDeclined", - Type = "bool", - Value = IsDeclined, - } - ); - types.Add( - new OpenApiType() - { - Name = "has_error", - Property = "HasError", - Type = "bool", - Value = HasError, - } - ); - types.Add( - new OpenApiType() - { - Name = "files_url", - Property = "FilesUrl", - Type = "string", - Value = FilesUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_url", - Property = "SigningUrl", - Type = "string", - Value = SigningUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "details_url", - Property = "DetailsUrl", - Type = "string", - Value = DetailsUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "final_copy_uri", - Property = "FinalCopyUri", - Type = "string", - Value = FinalCopyUri, - } - ); - types.Add( - new OpenApiType() - { - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "response_data", - Property = "ResponseData", - Type = "List", - Value = ResponseData, - } - ); - types.Add( - new OpenApiType() - { - Name = "signatures", - Property = "Signatures", - Type = "List", - Value = Signatures, - } - ); - types.Add( - new OpenApiType() - { - Name = "bulk_send_job_id", - Property = "BulkSendJobId", - Type = "string", - Value = BulkSendJobId, - } - ); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool?", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "signature_request_id", + Property = "SignatureRequestId", + Type = "string", + Value = SignatureRequestId, + }); + types.Add(new OpenApiType(){ + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "original_title", + Property = "OriginalTitle", + Type = "string", + Value = OriginalTitle, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Object", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + }); + types.Add(new OpenApiType(){ + Name = "is_complete", + Property = "IsComplete", + Type = "bool", + Value = IsComplete, + }); + types.Add(new OpenApiType(){ + Name = "is_declined", + Property = "IsDeclined", + Type = "bool", + Value = IsDeclined, + }); + types.Add(new OpenApiType(){ + Name = "has_error", + Property = "HasError", + Type = "bool", + Value = HasError, + }); + types.Add(new OpenApiType(){ + Name = "files_url", + Property = "FilesUrl", + Type = "string", + Value = FilesUrl, + }); + types.Add(new OpenApiType(){ + Name = "signing_url", + Property = "SigningUrl", + Type = "string", + Value = SigningUrl, + }); + types.Add(new OpenApiType(){ + Name = "details_url", + Property = "DetailsUrl", + Type = "string", + Value = DetailsUrl, + }); + types.Add(new OpenApiType(){ + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "final_copy_uri", + Property = "FinalCopyUri", + Type = "string", + Value = FinalCopyUri, + }); + types.Add(new OpenApiType(){ + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "response_data", + Property = "ResponseData", + Type = "List", + Value = ResponseData, + }); + types.Add(new OpenApiType(){ + Name = "signatures", + Property = "Signatures", + Type = "List", + Value = Signatures, + }); + types.Add(new OpenApiType(){ + Name = "bulk_send_job_id", + Property = "BulkSendJobId", + Type = "string", + Value = BulkSendJobId, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs index a29a91943..3494c14c8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,28 +31,22 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobListResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobListResponse - : IEquatable, - IValidatableObject + public partial class BulkSendJobListResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected BulkSendJobListResponse() { } - /// /// Initializes a new instance of the class. /// /// Contains a list of BulkSendJobs that the API caller has access to.. /// listInfo. /// A list of warnings.. - public BulkSendJobListResponse( - List bulkSendJobs = default(List), - ListInfoResponse listInfo = default(ListInfoResponse), - List warnings = default(List) - ) + public BulkSendJobListResponse(List bulkSendJobs = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { + this.BulkSendJobs = bulkSendJobs; this.ListInfo = listInfo; this.Warnings = warnings; @@ -68,9 +62,7 @@ public static BulkSendJobListResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of BulkSendJobListResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of BulkSendJobListResponse"); } return obj; @@ -82,12 +74,14 @@ public static BulkSendJobListResponse Init(string jsonData) /// Contains a list of BulkSendJobs that the API caller has access to. [DataMember(Name = "bulk_send_jobs", EmitDefaultValue = true)] public List BulkSendJobs { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// A list of warnings. @@ -95,6 +89,7 @@ public static BulkSendJobListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -117,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -144,21 +136,23 @@ public bool Equals(BulkSendJobListResponse input) { return false; } - return ( - this.BulkSendJobs == input.BulkSendJobs - || this.BulkSendJobs != null - && input.BulkSendJobs != null - && this.BulkSendJobs.SequenceEqual(input.BulkSendJobs) - ) - && ( - this.ListInfo == input.ListInfo - || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.BulkSendJobs == input.BulkSendJobs || + this.BulkSendJobs != null && + input.BulkSendJobs != null && + this.BulkSendJobs.SequenceEqual(input.BulkSendJobs) + ) && + ( + this.ListInfo == input.ListInfo || + (this.ListInfo != null && + this.ListInfo.Equals(input.ListInfo)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -192,9 +186,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -202,35 +194,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "bulk_send_jobs", - Property = "BulkSendJobs", - Type = "List", - Value = BulkSendJobs, - } - ); - types.Add( - new OpenApiType() - { - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "bulk_send_jobs", + Property = "BulkSendJobs", + Type = "List", + Value = BulkSendJobs, + }); + types.Add(new OpenApiType(){ + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs index 29eea4fd7..e61d3015a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class BulkSendJobResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected BulkSendJobResponse() { } - /// /// Initializes a new instance of the class. /// @@ -46,13 +45,9 @@ protected BulkSendJobResponse() { } /// The total amount of Signature Requests queued for sending.. /// True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member.. /// Time that the BulkSendJob was created.. - public BulkSendJobResponse( - string bulkSendJobId = default(string), - int total = default(int), - bool isCreator = default(bool), - int createdAt = default(int) - ) + public BulkSendJobResponse(string bulkSendJobId = default(string), int total = default(int), bool isCreator = default(bool), int createdAt = default(int)) { + this.BulkSendJobId = bulkSendJobId; this.Total = total; this.IsCreator = isCreator; @@ -69,9 +64,7 @@ public static BulkSendJobResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of BulkSendJobResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of BulkSendJobResponse"); } return obj; @@ -83,6 +76,7 @@ public static BulkSendJobResponse Init(string jsonData) /// The id of the BulkSendJob. [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } + /// /// The total amount of Signature Requests queued for sending. @@ -90,6 +84,7 @@ public static BulkSendJobResponse Init(string jsonData) /// The total amount of Signature Requests queued for sending. [DataMember(Name = "total", EmitDefaultValue = true)] public int Total { get; set; } + /// /// True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. @@ -97,6 +92,7 @@ public static BulkSendJobResponse Init(string jsonData) /// True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. [DataMember(Name = "is_creator", EmitDefaultValue = true)] public bool IsCreator { get; set; } + /// /// Time that the BulkSendJob was created. @@ -104,6 +100,7 @@ public static BulkSendJobResponse Init(string jsonData) /// Time that the BulkSendJob was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// Returns the string presentation of the object @@ -127,10 +124,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -154,15 +148,24 @@ public bool Equals(BulkSendJobResponse input) { return false; } - return ( - this.BulkSendJobId == input.BulkSendJobId - || ( - this.BulkSendJobId != null && this.BulkSendJobId.Equals(input.BulkSendJobId) - ) - ) - && (this.Total == input.Total || this.Total.Equals(input.Total)) - && (this.IsCreator == input.IsCreator || this.IsCreator.Equals(input.IsCreator)) - && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)); + return + ( + this.BulkSendJobId == input.BulkSendJobId || + (this.BulkSendJobId != null && + this.BulkSendJobId.Equals(input.BulkSendJobId)) + ) && + ( + this.Total == input.Total || + this.Total.Equals(input.Total) + ) && + ( + this.IsCreator == input.IsCreator || + this.IsCreator.Equals(input.IsCreator) + ) && + ( + this.CreatedAt == input.CreatedAt || + this.CreatedAt.Equals(input.CreatedAt) + ); } /// @@ -190,9 +193,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -200,44 +201,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "bulk_send_job_id", - Property = "BulkSendJobId", - Type = "string", - Value = BulkSendJobId, - } - ); - types.Add( - new OpenApiType() - { - Name = "total", - Property = "Total", - Type = "int", - Value = Total, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_creator", - Property = "IsCreator", - Type = "bool", - Value = IsCreator, - } - ); - types.Add( - new OpenApiType() - { - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - } - ); + types.Add(new OpenApiType(){ + Name = "bulk_send_job_id", + Property = "BulkSendJobId", + Type = "string", + Value = BulkSendJobId, + }); + types.Add(new OpenApiType(){ + Name = "total", + Property = "Total", + Type = "int", + Value = Total, + }); + types.Add(new OpenApiType(){ + Name = "is_creator", + Property = "IsCreator", + Type = "bool", + Value = IsCreator, + }); + types.Add(new OpenApiType(){ + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs index 962614584..48677a1c9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "BulkSendJobSendResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class BulkSendJobSendResponse - : IEquatable, - IValidatableObject + public partial class BulkSendJobSendResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected BulkSendJobSendResponse() { } - /// /// Initializes a new instance of the class. /// /// bulkSendJob. /// A list of warnings.. - public BulkSendJobSendResponse( - BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), - List warnings = default(List) - ) + public BulkSendJobSendResponse(BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), List warnings = default(List)) { + this.BulkSendJob = bulkSendJob; this.Warnings = warnings; } @@ -65,9 +60,7 @@ public static BulkSendJobSendResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of BulkSendJobSendResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of BulkSendJobSendResponse"); } return obj; @@ -78,6 +71,7 @@ public static BulkSendJobSendResponse Init(string jsonData) /// [DataMember(Name = "bulk_send_job", EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } + /// /// A list of warnings. @@ -85,6 +79,7 @@ public static BulkSendJobSendResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -106,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -133,15 +125,17 @@ public bool Equals(BulkSendJobSendResponse input) { return false; } - return ( - this.BulkSendJob == input.BulkSendJob - || (this.BulkSendJob != null && this.BulkSendJob.Equals(input.BulkSendJob)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.BulkSendJob == input.BulkSendJob || + (this.BulkSendJob != null && + this.BulkSendJob.Equals(input.BulkSendJob)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -171,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -181,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "bulk_send_job", - Property = "BulkSendJob", - Type = "BulkSendJobResponse", - Value = BulkSendJob, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "bulk_send_job", + Property = "BulkSendJob", + Type = "BulkSendJobResponse", + Value = BulkSendJob, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs index fb34f05d2..7854b27ec 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedEditUrlRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedEditUrlRequest - : IEquatable, - IValidatableObject + public partial class EmbeddedEditUrlRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedEditUrlRequest() { } - /// /// Initializes a new instance of the class. /// @@ -54,19 +51,9 @@ protected EmbeddedEditUrlRequest() { } /// This allows the requester to enable the editor/preview experience. (default to false). /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. (default to true). /// Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. (default to false). - public EmbeddedEditUrlRequest( - bool allowEditCcs = false, - List ccRoles = default(List), - SubEditorOptions editorOptions = default(SubEditorOptions), - bool forceSignerRoles = false, - bool forceSubjectMessage = false, - List mergeFields = default(List), - bool previewOnly = false, - bool showPreview = false, - bool showProgressStepper = true, - bool testMode = false - ) + public EmbeddedEditUrlRequest(bool allowEditCcs = false, List ccRoles = default(List), SubEditorOptions editorOptions = default(SubEditorOptions), bool forceSignerRoles = false, bool forceSubjectMessage = false, List mergeFields = default(List), bool previewOnly = false, bool showPreview = false, bool showProgressStepper = true, bool testMode = false) { + this.AllowEditCcs = allowEditCcs; this.CcRoles = ccRoles; this.EditorOptions = editorOptions; @@ -89,9 +76,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of EmbeddedEditUrlRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of EmbeddedEditUrlRequest"); } return obj; @@ -103,6 +88,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// This allows the requester to enable/disable to add or change CC roles when editing the template. [DataMember(Name = "allow_edit_ccs", EmitDefaultValue = true)] public bool AllowEditCcs { get; set; } + /// /// The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. @@ -110,12 +96,14 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// Provide users the ability to review/edit the template signer roles. @@ -123,6 +111,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Provide users the ability to review/edit the template signer roles. [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } + /// /// Provide users the ability to review/edit the template subject and message. @@ -130,6 +119,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Provide users the ability to review/edit the template subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } + /// /// Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template. Remove all merge fields on the template by passing an empty array `[]`. @@ -137,6 +127,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template. Remove all merge fields on the template by passing an empty array `[]`. [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } + /// /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). **NOTE:** This parameter overwrites `show_preview=true` (if set). @@ -144,6 +135,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). **NOTE:** This parameter overwrites `show_preview=true` (if set). [DataMember(Name = "preview_only", EmitDefaultValue = true)] public bool PreviewOnly { get; set; } + /// /// This allows the requester to enable the editor/preview experience. @@ -151,6 +143,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// This allows the requester to enable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -158,6 +151,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. @@ -165,6 +159,7 @@ public static EmbeddedEditUrlRequest Init(string jsonData) /// Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Returns the string presentation of the object @@ -194,10 +189,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -221,49 +213,52 @@ public bool Equals(EmbeddedEditUrlRequest input) { return false; } - return ( - this.AllowEditCcs == input.AllowEditCcs - || this.AllowEditCcs.Equals(input.AllowEditCcs) - ) - && ( - this.CcRoles == input.CcRoles - || this.CcRoles != null - && input.CcRoles != null - && this.CcRoles.SequenceEqual(input.CcRoles) - ) - && ( - this.EditorOptions == input.EditorOptions - || ( - this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) - ) - ) - && ( - this.ForceSignerRoles == input.ForceSignerRoles - || this.ForceSignerRoles.Equals(input.ForceSignerRoles) - ) - && ( - this.ForceSubjectMessage == input.ForceSubjectMessage - || this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) - ) - && ( - this.MergeFields == input.MergeFields - || this.MergeFields != null - && input.MergeFields != null - && this.MergeFields.SequenceEqual(input.MergeFields) - ) - && ( - this.PreviewOnly == input.PreviewOnly - || this.PreviewOnly.Equals(input.PreviewOnly) - ) - && ( - this.ShowPreview == input.ShowPreview - || this.ShowPreview.Equals(input.ShowPreview) - ) - && ( - this.ShowProgressStepper == input.ShowProgressStepper - || this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)); + return + ( + this.AllowEditCcs == input.AllowEditCcs || + this.AllowEditCcs.Equals(input.AllowEditCcs) + ) && + ( + this.CcRoles == input.CcRoles || + this.CcRoles != null && + input.CcRoles != null && + this.CcRoles.SequenceEqual(input.CcRoles) + ) && + ( + this.EditorOptions == input.EditorOptions || + (this.EditorOptions != null && + this.EditorOptions.Equals(input.EditorOptions)) + ) && + ( + this.ForceSignerRoles == input.ForceSignerRoles || + this.ForceSignerRoles.Equals(input.ForceSignerRoles) + ) && + ( + this.ForceSubjectMessage == input.ForceSubjectMessage || + this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) + ) && + ( + this.MergeFields == input.MergeFields || + this.MergeFields != null && + input.MergeFields != null && + this.MergeFields.SequenceEqual(input.MergeFields) + ) && + ( + this.PreviewOnly == input.PreviewOnly || + this.PreviewOnly.Equals(input.PreviewOnly) + ) && + ( + this.ShowPreview == input.ShowPreview || + this.ShowPreview.Equals(input.ShowPreview) + ) && + ( + this.ShowProgressStepper == input.ShowProgressStepper || + this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ); } /// @@ -303,9 +298,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -313,98 +306,69 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "allow_edit_ccs", - Property = "AllowEditCcs", - Type = "bool", - Value = AllowEditCcs, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_roles", - Property = "CcRoles", - Type = "List", - Value = CcRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "force_signer_roles", - Property = "ForceSignerRoles", - Type = "bool", - Value = ForceSignerRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "force_subject_message", - Property = "ForceSubjectMessage", - Type = "bool", - Value = ForceSubjectMessage, - } - ); - types.Add( - new OpenApiType() - { - Name = "merge_fields", - Property = "MergeFields", - Type = "List", - Value = MergeFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "preview_only", - Property = "PreviewOnly", - Type = "bool", - Value = PreviewOnly, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_preview", - Property = "ShowPreview", - Type = "bool", - Value = ShowPreview, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); + types.Add(new OpenApiType(){ + Name = "allow_edit_ccs", + Property = "AllowEditCcs", + Type = "bool", + Value = AllowEditCcs, + }); + types.Add(new OpenApiType(){ + Name = "cc_roles", + Property = "CcRoles", + Type = "List", + Value = CcRoles, + }); + types.Add(new OpenApiType(){ + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + }); + types.Add(new OpenApiType(){ + Name = "force_signer_roles", + Property = "ForceSignerRoles", + Type = "bool", + Value = ForceSignerRoles, + }); + types.Add(new OpenApiType(){ + Name = "force_subject_message", + Property = "ForceSubjectMessage", + Type = "bool", + Value = ForceSubjectMessage, + }); + types.Add(new OpenApiType(){ + Name = "merge_fields", + Property = "MergeFields", + Type = "List", + Value = MergeFields, + }); + types.Add(new OpenApiType(){ + Name = "preview_only", + Property = "PreviewOnly", + Type = "bool", + Value = PreviewOnly, + }); + types.Add(new OpenApiType(){ + Name = "show_preview", + Property = "ShowPreview", + Type = "bool", + Value = ShowPreview, + }); + types.Add(new OpenApiType(){ + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs index d0954501c..9b6ac92d8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedEditUrlResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedEditUrlResponse - : IEquatable, - IValidatableObject + public partial class EmbeddedEditUrlResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedEditUrlResponse() { } - /// /// Initializes a new instance of the class. /// /// embedded. /// A list of warnings.. - public EmbeddedEditUrlResponse( - EmbeddedEditUrlResponseEmbedded embedded = default(EmbeddedEditUrlResponseEmbedded), - List warnings = default(List) - ) + public EmbeddedEditUrlResponse(EmbeddedEditUrlResponseEmbedded embedded = default(EmbeddedEditUrlResponseEmbedded), List warnings = default(List)) { + this.Embedded = embedded; this.Warnings = warnings; } @@ -65,9 +60,7 @@ public static EmbeddedEditUrlResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of EmbeddedEditUrlResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of EmbeddedEditUrlResponse"); } return obj; @@ -78,6 +71,7 @@ public static EmbeddedEditUrlResponse Init(string jsonData) /// [DataMember(Name = "embedded", EmitDefaultValue = true)] public EmbeddedEditUrlResponseEmbedded Embedded { get; set; } + /// /// A list of warnings. @@ -85,6 +79,7 @@ public static EmbeddedEditUrlResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -106,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -133,15 +125,17 @@ public bool Equals(EmbeddedEditUrlResponse input) { return false; } - return ( - this.Embedded == input.Embedded - || (this.Embedded != null && this.Embedded.Equals(input.Embedded)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Embedded == input.Embedded || + (this.Embedded != null && + this.Embedded.Equals(input.Embedded)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -171,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -181,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "embedded", - Property = "Embedded", - Type = "EmbeddedEditUrlResponseEmbedded", - Value = Embedded, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "embedded", + Property = "Embedded", + Type = "EmbeddedEditUrlResponseEmbedded", + Value = Embedded, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs index 33293e4f8..26da981f8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedEditUrlResponseEmbedded")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedEditUrlResponseEmbedded - : IEquatable, - IValidatableObject + public partial class EmbeddedEditUrlResponseEmbedded : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedEditUrlResponseEmbedded() { } - /// /// Initializes a new instance of the class. /// /// A template url that can be opened in an iFrame.. /// The specific time that the the `edit_url` link expires, in epoch.. - public EmbeddedEditUrlResponseEmbedded( - string editUrl = default(string), - int expiresAt = default(int) - ) + public EmbeddedEditUrlResponseEmbedded(string editUrl = default(string), int expiresAt = default(int)) { + this.EditUrl = editUrl; this.ExpiresAt = expiresAt; } @@ -65,9 +60,7 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of EmbeddedEditUrlResponseEmbedded" - ); + throw new Exception("Unable to deserialize JSON to instance of EmbeddedEditUrlResponseEmbedded"); } return obj; @@ -79,6 +72,7 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) /// A template url that can be opened in an iFrame. [DataMember(Name = "edit_url", EmitDefaultValue = true)] public string EditUrl { get; set; } + /// /// The specific time that the the `edit_url` link expires, in epoch. @@ -86,6 +80,7 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) /// The specific time that the the `edit_url` link expires, in epoch. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -107,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -134,10 +126,16 @@ public bool Equals(EmbeddedEditUrlResponseEmbedded input) { return false; } - return ( - this.EditUrl == input.EditUrl - || (this.EditUrl != null && this.EditUrl.Equals(input.EditUrl)) - ) && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)); + return + ( + this.EditUrl == input.EditUrl || + (this.EditUrl != null && + this.EditUrl.Equals(input.EditUrl)) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + this.ExpiresAt.Equals(input.ExpiresAt) + ); } /// @@ -163,9 +161,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -173,26 +169,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "edit_url", - Property = "EditUrl", - Type = "string", - Value = EditUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "edit_url", + Property = "EditUrl", + Type = "string", + Value = EditUrl, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs index 6fd755393..df9fb1ac6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedSignUrlResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedSignUrlResponse - : IEquatable, - IValidatableObject + public partial class EmbeddedSignUrlResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedSignUrlResponse() { } - /// /// Initializes a new instance of the class. /// /// embedded. /// A list of warnings.. - public EmbeddedSignUrlResponse( - EmbeddedSignUrlResponseEmbedded embedded = default(EmbeddedSignUrlResponseEmbedded), - List warnings = default(List) - ) + public EmbeddedSignUrlResponse(EmbeddedSignUrlResponseEmbedded embedded = default(EmbeddedSignUrlResponseEmbedded), List warnings = default(List)) { + this.Embedded = embedded; this.Warnings = warnings; } @@ -65,9 +60,7 @@ public static EmbeddedSignUrlResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of EmbeddedSignUrlResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of EmbeddedSignUrlResponse"); } return obj; @@ -78,6 +71,7 @@ public static EmbeddedSignUrlResponse Init(string jsonData) /// [DataMember(Name = "embedded", EmitDefaultValue = true)] public EmbeddedSignUrlResponseEmbedded Embedded { get; set; } + /// /// A list of warnings. @@ -85,6 +79,7 @@ public static EmbeddedSignUrlResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -106,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -133,15 +125,17 @@ public bool Equals(EmbeddedSignUrlResponse input) { return false; } - return ( - this.Embedded == input.Embedded - || (this.Embedded != null && this.Embedded.Equals(input.Embedded)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Embedded == input.Embedded || + (this.Embedded != null && + this.Embedded.Equals(input.Embedded)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -171,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -181,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "embedded", - Property = "Embedded", - Type = "EmbeddedSignUrlResponseEmbedded", - Value = Embedded, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "embedded", + Property = "Embedded", + Type = "EmbeddedSignUrlResponseEmbedded", + Value = Embedded, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs index 7248de1b7..e87b0268d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EmbeddedSignUrlResponseEmbedded")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EmbeddedSignUrlResponseEmbedded - : IEquatable, - IValidatableObject + public partial class EmbeddedSignUrlResponseEmbedded : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EmbeddedSignUrlResponseEmbedded() { } - /// /// Initializes a new instance of the class. /// /// A signature url that can be opened in an iFrame.. /// The specific time that the the `sign_url` link expires, in epoch.. - public EmbeddedSignUrlResponseEmbedded( - string signUrl = default(string), - int expiresAt = default(int) - ) + public EmbeddedSignUrlResponseEmbedded(string signUrl = default(string), int expiresAt = default(int)) { + this.SignUrl = signUrl; this.ExpiresAt = expiresAt; } @@ -65,9 +60,7 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of EmbeddedSignUrlResponseEmbedded" - ); + throw new Exception("Unable to deserialize JSON to instance of EmbeddedSignUrlResponseEmbedded"); } return obj; @@ -79,6 +72,7 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) /// A signature url that can be opened in an iFrame. [DataMember(Name = "sign_url", EmitDefaultValue = true)] public string SignUrl { get; set; } + /// /// The specific time that the the `sign_url` link expires, in epoch. @@ -86,6 +80,7 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) /// The specific time that the the `sign_url` link expires, in epoch. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -107,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -134,10 +126,16 @@ public bool Equals(EmbeddedSignUrlResponseEmbedded input) { return false; } - return ( - this.SignUrl == input.SignUrl - || (this.SignUrl != null && this.SignUrl.Equals(input.SignUrl)) - ) && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)); + return + ( + this.SignUrl == input.SignUrl || + (this.SignUrl != null && + this.SignUrl.Equals(input.SignUrl)) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + this.ExpiresAt.Equals(input.ExpiresAt) + ); } /// @@ -163,9 +161,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -173,26 +169,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "sign_url", - Property = "SignUrl", - Type = "string", - Value = SignUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "sign_url", + Property = "SignUrl", + Type = "string", + Value = SignUrl, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs index db04d1a77..01adc8eee 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,17 @@ public partial class ErrorResponse : IEquatable, IValidatableObje /// [JsonConstructorAttribute] protected ErrorResponse() { } - /// /// Initializes a new instance of the class. /// /// error (required). public ErrorResponse(ErrorResponseError error = default(ErrorResponseError)) { + // to ensure "error" is required (not null) if (error == null) { - throw new ArgumentNullException( - "error is a required property for ErrorResponse and cannot be null" - ); + throw new ArgumentNullException("error is a required property for ErrorResponse and cannot be null"); } this.Error = error; } @@ -76,6 +74,7 @@ public static ErrorResponse Init(string jsonData) /// [DataMember(Name = "error", IsRequired = true, EmitDefaultValue = true)] public ErrorResponseError Error { get; set; } + /// /// Returns the string presentation of the object @@ -96,10 +95,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -123,9 +119,12 @@ public bool Equals(ErrorResponse input) { return false; } - return ( - this.Error == input.Error || (this.Error != null && this.Error.Equals(input.Error)) - ); + return + ( + this.Error == input.Error || + (this.Error != null && + this.Error.Equals(input.Error)) + ); } /// @@ -150,9 +149,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -160,17 +157,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "error", - Property = "Error", - Type = "ErrorResponseError", - Value = Error, - } - ); + types.Add(new OpenApiType(){ + Name = "error", + Property = "Error", + Type = "ErrorResponseError", + Value = Error, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs index dc924acc3..6cb22d019 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,33 +38,25 @@ public partial class ErrorResponseError : IEquatable, IValid /// [JsonConstructorAttribute] protected ErrorResponseError() { } - /// /// Initializes a new instance of the class. /// /// Message describing an error. (required). /// Path at which an error occurred.. /// Name of the error. (required). - public ErrorResponseError( - string errorMsg = default(string), - string errorPath = default(string), - string errorName = default(string) - ) + public ErrorResponseError(string errorMsg = default(string), string errorPath = default(string), string errorName = default(string)) { + // to ensure "errorMsg" is required (not null) if (errorMsg == null) { - throw new ArgumentNullException( - "errorMsg is a required property for ErrorResponseError and cannot be null" - ); + throw new ArgumentNullException("errorMsg is a required property for ErrorResponseError and cannot be null"); } this.ErrorMsg = errorMsg; // to ensure "errorName" is required (not null) if (errorName == null) { - throw new ArgumentNullException( - "errorName is a required property for ErrorResponseError and cannot be null" - ); + throw new ArgumentNullException("errorName is a required property for ErrorResponseError and cannot be null"); } this.ErrorName = errorName; this.ErrorPath = errorPath; @@ -92,6 +84,7 @@ public static ErrorResponseError Init(string jsonData) /// Message describing an error. [DataMember(Name = "error_msg", IsRequired = true, EmitDefaultValue = true)] public string ErrorMsg { get; set; } + /// /// Name of the error. @@ -99,6 +92,7 @@ public static ErrorResponseError Init(string jsonData) /// Name of the error. [DataMember(Name = "error_name", IsRequired = true, EmitDefaultValue = true)] public string ErrorName { get; set; } + /// /// Path at which an error occurred. @@ -106,6 +100,7 @@ public static ErrorResponseError Init(string jsonData) /// Path at which an error occurred. [DataMember(Name = "error_path", EmitDefaultValue = true)] public string ErrorPath { get; set; } + /// /// Returns the string presentation of the object @@ -128,10 +123,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -155,17 +147,21 @@ public bool Equals(ErrorResponseError input) { return false; } - return ( - this.ErrorMsg == input.ErrorMsg - || (this.ErrorMsg != null && this.ErrorMsg.Equals(input.ErrorMsg)) - ) - && ( - this.ErrorName == input.ErrorName - || (this.ErrorName != null && this.ErrorName.Equals(input.ErrorName)) - ) - && ( - this.ErrorPath == input.ErrorPath - || (this.ErrorPath != null && this.ErrorPath.Equals(input.ErrorPath)) + return + ( + this.ErrorMsg == input.ErrorMsg || + (this.ErrorMsg != null && + this.ErrorMsg.Equals(input.ErrorMsg)) + ) && + ( + this.ErrorName == input.ErrorName || + (this.ErrorName != null && + this.ErrorName.Equals(input.ErrorName)) + ) && + ( + this.ErrorPath == input.ErrorPath || + (this.ErrorPath != null && + this.ErrorPath.Equals(input.ErrorPath)) ); } @@ -199,9 +195,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -209,35 +203,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "error_msg", - Property = "ErrorMsg", - Type = "string", - Value = ErrorMsg, - } - ); - types.Add( - new OpenApiType() - { - Name = "error_name", - Property = "ErrorName", - Type = "string", - Value = ErrorName, - } - ); - types.Add( - new OpenApiType() - { - Name = "error_path", - Property = "ErrorPath", - Type = "string", - Value = ErrorPath, - } - ); + types.Add(new OpenApiType(){ + Name = "error_msg", + Property = "ErrorMsg", + Type = "string", + Value = ErrorMsg, + }); + types.Add(new OpenApiType(){ + Name = "error_name", + Property = "ErrorName", + Type = "string", + Value = ErrorName, + }); + types.Add(new OpenApiType(){ + Name = "error_path", + Property = "ErrorPath", + Type = "string", + Value = ErrorPath, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs index e869d2cfe..e293104a0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class EventCallbackRequest : IEquatable, IV /// [JsonConstructorAttribute] protected EventCallbackRequest() { } - /// /// Initializes a new instance of the class. /// @@ -46,19 +45,13 @@ protected EventCallbackRequest() { } /// account. /// signatureRequest. /// template. - public EventCallbackRequest( - EventCallbackRequestEvent varEvent = default(EventCallbackRequestEvent), - AccountResponse account = default(AccountResponse), - SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), - TemplateResponse template = default(TemplateResponse) - ) + public EventCallbackRequest(EventCallbackRequestEvent varEvent = default(EventCallbackRequestEvent), AccountResponse account = default(AccountResponse), SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), TemplateResponse template = default(TemplateResponse)) { + // to ensure "varEvent" is required (not null) if (varEvent == null) { - throw new ArgumentNullException( - "varEvent is a required property for EventCallbackRequest and cannot be null" - ); + throw new ArgumentNullException("varEvent is a required property for EventCallbackRequest and cannot be null"); } this.Event = varEvent; this.Account = account; @@ -76,9 +69,7 @@ public static EventCallbackRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of EventCallbackRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of EventCallbackRequest"); } return obj; @@ -89,24 +80,28 @@ public static EventCallbackRequest Init(string jsonData) /// [DataMember(Name = "event", IsRequired = true, EmitDefaultValue = true)] public EventCallbackRequestEvent Event { get; set; } + /// /// Gets or Sets Account /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } + /// /// Gets or Sets SignatureRequest /// [DataMember(Name = "signature_request", EmitDefaultValue = true)] public SignatureRequestResponse SignatureRequest { get; set; } + /// /// Gets or Sets Template /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateResponse Template { get; set; } + /// /// Returns the string presentation of the object @@ -130,10 +125,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -157,24 +149,26 @@ public bool Equals(EventCallbackRequest input) { return false; } - return ( - this.Event == input.Event - || (this.Event != null && this.Event.Equals(input.Event)) - ) - && ( - this.Account == input.Account - || (this.Account != null && this.Account.Equals(input.Account)) - ) - && ( - this.SignatureRequest == input.SignatureRequest - || ( - this.SignatureRequest != null - && this.SignatureRequest.Equals(input.SignatureRequest) - ) - ) - && ( - this.Template == input.Template - || (this.Template != null && this.Template.Equals(input.Template)) + return + ( + this.Event == input.Event || + (this.Event != null && + this.Event.Equals(input.Event)) + ) && + ( + this.Account == input.Account || + (this.Account != null && + this.Account.Equals(input.Account)) + ) && + ( + this.SignatureRequest == input.SignatureRequest || + (this.SignatureRequest != null && + this.SignatureRequest.Equals(input.SignatureRequest)) + ) && + ( + this.Template == input.Template || + (this.Template != null && + this.Template.Equals(input.Template)) ); } @@ -212,9 +206,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -222,44 +214,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "event", - Property = "Event", - Type = "EventCallbackRequestEvent", - Value = Event, - } - ); - types.Add( - new OpenApiType() - { - Name = "account", - Property = "Account", - Type = "AccountResponse", - Value = Account, - } - ); - types.Add( - new OpenApiType() - { - Name = "signature_request", - Property = "SignatureRequest", - Type = "SignatureRequestResponse", - Value = SignatureRequest, - } - ); - types.Add( - new OpenApiType() - { - Name = "template", - Property = "Template", - Type = "TemplateResponse", - Value = Template, - } - ); + types.Add(new OpenApiType(){ + Name = "event", + Property = "Event", + Type = "EventCallbackRequestEvent", + Value = Event, + }); + types.Add(new OpenApiType(){ + Name = "account", + Property = "Account", + Type = "AccountResponse", + Value = Account, + }); + types.Add(new OpenApiType(){ + Name = "signature_request", + Property = "SignatureRequest", + Type = "SignatureRequestResponse", + Value = SignatureRequest, + }); + types.Add(new OpenApiType(){ + Name = "template", + Property = "Template", + Type = "TemplateResponse", + Value = Template, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs index f7af4d663..8208b889c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,9 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EventCallbackRequestEvent")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EventCallbackRequestEvent - : IEquatable, - IValidatableObject + public partial class EventCallbackRequestEvent : IEquatable, IValidatableObject { /// /// Type of callback event that was triggered. @@ -178,22 +176,21 @@ public enum EventTypeEnum /// Enum SignatureRequestSignerRemoved for value: signature_request_signer_removed /// [EnumMember(Value = "signature_request_signer_removed")] - SignatureRequestSignerRemoved = 23, + SignatureRequestSignerRemoved = 23 } + /// /// Type of callback event that was triggered. /// /// Type of callback event that was triggered. [DataMember(Name = "event_type", IsRequired = true, EmitDefaultValue = true)] public EventTypeEnum EventType { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EventCallbackRequestEvent() { } - /// /// Initializes a new instance of the class. /// @@ -201,29 +198,20 @@ protected EventCallbackRequestEvent() { } /// Type of callback event that was triggered. (required). /// Generated hash used to verify source of event data. (required). /// eventMetadata. - public EventCallbackRequestEvent( - string eventTime = default(string), - EventTypeEnum eventType = default(EventTypeEnum), - string eventHash = default(string), - EventCallbackRequestEventMetadata eventMetadata = - default(EventCallbackRequestEventMetadata) - ) + public EventCallbackRequestEvent(string eventTime = default(string), EventTypeEnum eventType = default(EventTypeEnum), string eventHash = default(string), EventCallbackRequestEventMetadata eventMetadata = default(EventCallbackRequestEventMetadata)) { + // to ensure "eventTime" is required (not null) if (eventTime == null) { - throw new ArgumentNullException( - "eventTime is a required property for EventCallbackRequestEvent and cannot be null" - ); + throw new ArgumentNullException("eventTime is a required property for EventCallbackRequestEvent and cannot be null"); } this.EventTime = eventTime; this.EventType = eventType; // to ensure "eventHash" is required (not null) if (eventHash == null) { - throw new ArgumentNullException( - "eventHash is a required property for EventCallbackRequestEvent and cannot be null" - ); + throw new ArgumentNullException("eventHash is a required property for EventCallbackRequestEvent and cannot be null"); } this.EventHash = eventHash; this.EventMetadata = eventMetadata; @@ -239,9 +227,7 @@ public static EventCallbackRequestEvent Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of EventCallbackRequestEvent" - ); + throw new Exception("Unable to deserialize JSON to instance of EventCallbackRequestEvent"); } return obj; @@ -253,6 +239,7 @@ public static EventCallbackRequestEvent Init(string jsonData) /// Time the event was created (using Unix time). [DataMember(Name = "event_time", IsRequired = true, EmitDefaultValue = true)] public string EventTime { get; set; } + /// /// Generated hash used to verify source of event data. @@ -260,12 +247,14 @@ public static EventCallbackRequestEvent Init(string jsonData) /// Generated hash used to verify source of event data. [DataMember(Name = "event_hash", IsRequired = true, EmitDefaultValue = true)] public string EventHash { get; set; } + /// /// Gets or Sets EventMetadata /// [DataMember(Name = "event_metadata", EmitDefaultValue = true)] public EventCallbackRequestEventMetadata EventMetadata { get; set; } + /// /// Returns the string presentation of the object @@ -289,10 +278,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -316,20 +302,25 @@ public bool Equals(EventCallbackRequestEvent input) { return false; } - return ( - this.EventTime == input.EventTime - || (this.EventTime != null && this.EventTime.Equals(input.EventTime)) - ) - && (this.EventType == input.EventType || this.EventType.Equals(input.EventType)) - && ( - this.EventHash == input.EventHash - || (this.EventHash != null && this.EventHash.Equals(input.EventHash)) - ) - && ( - this.EventMetadata == input.EventMetadata - || ( - this.EventMetadata != null && this.EventMetadata.Equals(input.EventMetadata) - ) + return + ( + this.EventTime == input.EventTime || + (this.EventTime != null && + this.EventTime.Equals(input.EventTime)) + ) && + ( + this.EventType == input.EventType || + this.EventType.Equals(input.EventType) + ) && + ( + this.EventHash == input.EventHash || + (this.EventHash != null && + this.EventHash.Equals(input.EventHash)) + ) && + ( + this.EventMetadata == input.EventMetadata || + (this.EventMetadata != null && + this.EventMetadata.Equals(input.EventMetadata)) ); } @@ -364,9 +355,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -374,44 +363,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "event_time", - Property = "EventTime", - Type = "string", - Value = EventTime, - } - ); - types.Add( - new OpenApiType() - { - Name = "event_type", - Property = "EventType", - Type = "string", - Value = EventType, - } - ); - types.Add( - new OpenApiType() - { - Name = "event_hash", - Property = "EventHash", - Type = "string", - Value = EventHash, - } - ); - types.Add( - new OpenApiType() - { - Name = "event_metadata", - Property = "EventMetadata", - Type = "EventCallbackRequestEventMetadata", - Value = EventMetadata, - } - ); + types.Add(new OpenApiType(){ + Name = "event_time", + Property = "EventTime", + Type = "string", + Value = EventTime, + }); + types.Add(new OpenApiType(){ + Name = "event_type", + Property = "EventType", + Type = "string", + Value = EventType, + }); + types.Add(new OpenApiType(){ + Name = "event_hash", + Property = "EventHash", + Type = "string", + Value = EventHash, + }); + types.Add(new OpenApiType(){ + Name = "event_metadata", + Property = "EventMetadata", + Type = "EventCallbackRequestEventMetadata", + Value = EventMetadata, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs index 379e22905..e8b39f5d8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "EventCallbackRequestEventMetadata")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class EventCallbackRequestEventMetadata - : IEquatable, - IValidatableObject + public partial class EventCallbackRequestEventMetadata : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected EventCallbackRequestEventMetadata() { } - /// /// Initializes a new instance of the class. /// @@ -48,13 +45,9 @@ protected EventCallbackRequestEventMetadata() { } /// Account ID the event was reported for.. /// App ID the event was reported for.. /// Message about a declined or failed (due to error) signature flow.. - public EventCallbackRequestEventMetadata( - string relatedSignatureId = default(string), - string reportedForAccountId = default(string), - string reportedForAppId = default(string), - string eventMessage = default(string) - ) + public EventCallbackRequestEventMetadata(string relatedSignatureId = default(string), string reportedForAccountId = default(string), string reportedForAppId = default(string), string eventMessage = default(string)) { + this.RelatedSignatureId = relatedSignatureId; this.ReportedForAccountId = reportedForAccountId; this.ReportedForAppId = reportedForAppId; @@ -71,9 +64,7 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of EventCallbackRequestEventMetadata" - ); + throw new Exception("Unable to deserialize JSON to instance of EventCallbackRequestEventMetadata"); } return obj; @@ -85,6 +76,7 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// Signature ID for a specific signer. Applicable to `signature_request_signed` and `signature_request_viewed` events. [DataMember(Name = "related_signature_id", EmitDefaultValue = true)] public string RelatedSignatureId { get; set; } + /// /// Account ID the event was reported for. @@ -92,6 +84,7 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// Account ID the event was reported for. [DataMember(Name = "reported_for_account_id", EmitDefaultValue = true)] public string ReportedForAccountId { get; set; } + /// /// App ID the event was reported for. @@ -99,6 +92,7 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// App ID the event was reported for. [DataMember(Name = "reported_for_app_id", EmitDefaultValue = true)] public string ReportedForAppId { get; set; } + /// /// Message about a declined or failed (due to error) signature flow. @@ -106,6 +100,7 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) /// Message about a declined or failed (due to error) signature flow. [DataMember(Name = "event_message", EmitDefaultValue = true)] public string EventMessage { get; set; } + /// /// Returns the string presentation of the object @@ -129,10 +124,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -156,30 +148,26 @@ public bool Equals(EventCallbackRequestEventMetadata input) { return false; } - return ( - this.RelatedSignatureId == input.RelatedSignatureId - || ( - this.RelatedSignatureId != null - && this.RelatedSignatureId.Equals(input.RelatedSignatureId) - ) - ) - && ( - this.ReportedForAccountId == input.ReportedForAccountId - || ( - this.ReportedForAccountId != null - && this.ReportedForAccountId.Equals(input.ReportedForAccountId) - ) - ) - && ( - this.ReportedForAppId == input.ReportedForAppId - || ( - this.ReportedForAppId != null - && this.ReportedForAppId.Equals(input.ReportedForAppId) - ) - ) - && ( - this.EventMessage == input.EventMessage - || (this.EventMessage != null && this.EventMessage.Equals(input.EventMessage)) + return + ( + this.RelatedSignatureId == input.RelatedSignatureId || + (this.RelatedSignatureId != null && + this.RelatedSignatureId.Equals(input.RelatedSignatureId)) + ) && + ( + this.ReportedForAccountId == input.ReportedForAccountId || + (this.ReportedForAccountId != null && + this.ReportedForAccountId.Equals(input.ReportedForAccountId)) + ) && + ( + this.ReportedForAppId == input.ReportedForAppId || + (this.ReportedForAppId != null && + this.ReportedForAppId.Equals(input.ReportedForAppId)) + ) && + ( + this.EventMessage == input.EventMessage || + (this.EventMessage != null && + this.EventMessage.Equals(input.EventMessage)) ); } @@ -217,9 +205,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -227,44 +213,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "related_signature_id", - Property = "RelatedSignatureId", - Type = "string", - Value = RelatedSignatureId, - } - ); - types.Add( - new OpenApiType() - { - Name = "reported_for_account_id", - Property = "ReportedForAccountId", - Type = "string", - Value = ReportedForAccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "reported_for_app_id", - Property = "ReportedForAppId", - Type = "string", - Value = ReportedForAppId, - } - ); - types.Add( - new OpenApiType() - { - Name = "event_message", - Property = "EventMessage", - Type = "string", - Value = EventMessage, - } - ); + types.Add(new OpenApiType(){ + Name = "related_signature_id", + Property = "RelatedSignatureId", + Type = "string", + Value = RelatedSignatureId, + }); + types.Add(new OpenApiType(){ + Name = "reported_for_account_id", + Property = "ReportedForAccountId", + Type = "string", + Value = ReportedForAccountId, + }); + types.Add(new OpenApiType(){ + Name = "reported_for_app_id", + Property = "ReportedForAppId", + Type = "string", + Value = ReportedForAppId, + }); + types.Add(new OpenApiType(){ + Name = "event_message", + Property = "EventMessage", + Type = "string", + Value = EventMessage, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs index e2379f0a6..8ded1b15c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLine.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class FaxLine : IOpenApiTyped, IEquatable, IValidatableO /// [JsonConstructorAttribute] protected FaxLine() { } - /// /// Initializes a new instance of the class. /// @@ -46,13 +45,9 @@ protected FaxLine() { } /// Created at. /// Updated at. /// accounts. - public FaxLine( - string number = default(string), - string createdAt = default(string), - string updatedAt = default(string), - List accounts = default(List) - ) + public FaxLine(string number = default(string), string createdAt = default(string), string updatedAt = default(string), List accounts = default(List)) { + this.Number = number; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; @@ -124,10 +119,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -151,23 +143,27 @@ public bool Equals(FaxLine input) { return false; } - return ( - this.Number == input.Number - || (this.Number != null && this.Number.Equals(input.Number)) - ) - && ( - this.CreatedAt == input.CreatedAt - || (this.CreatedAt != null && this.CreatedAt.Equals(input.CreatedAt)) - ) - && ( - this.UpdatedAt == input.UpdatedAt - || (this.UpdatedAt != null && this.UpdatedAt.Equals(input.UpdatedAt)) - ) - && ( - this.Accounts == input.Accounts - || this.Accounts != null - && input.Accounts != null - && this.Accounts.SequenceEqual(input.Accounts) + return + ( + this.Number == input.Number || + (this.Number != null && + this.Number.Equals(input.Number)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Accounts == input.Accounts || + this.Accounts != null && + input.Accounts != null && + this.Accounts.SequenceEqual(input.Accounts) ); } @@ -203,42 +199,30 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - } - ); - types.Add( - new OpenApiType() - { - Name = "created_at", - Property = "CreatedAt", - Type = "string", - Value = CreatedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "updated_at", - Property = "UpdatedAt", - Type = "string", - Value = UpdatedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "accounts", - Property = "Accounts", - Type = "List", - Value = Accounts, - } - ); + types.Add(new OpenApiType(){ + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + }); + types.Add(new OpenApiType(){ + Name = "created_at", + Property = "CreatedAt", + Type = "string", + Value = CreatedAt, + }); + types.Add(new OpenApiType(){ + Name = "updated_at", + Property = "UpdatedAt", + Type = "string", + Value = UpdatedAt, + }); + types.Add(new OpenApiType(){ + Name = "accounts", + Property = "Accounts", + Type = "List", + Value = Accounts, + }); return types; } @@ -248,11 +232,10 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs index 8b0bac10e..bb774265a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,34 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineAddUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineAddUserRequest - : IEquatable, - IValidatableObject + public partial class FaxLineAddUserRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineAddUserRequest() { } - /// /// Initializes a new instance of the class. /// /// The Fax Line number. (required). /// Account ID. /// Email address. - public FaxLineAddUserRequest( - string number = default(string), - string accountId = default(string), - string emailAddress = default(string) - ) + public FaxLineAddUserRequest(string number = default(string), string accountId = default(string), string emailAddress = default(string)) { + // to ensure "number" is required (not null) if (number == null) { - throw new ArgumentNullException( - "number is a required property for FaxLineAddUserRequest and cannot be null" - ); + throw new ArgumentNullException("number is a required property for FaxLineAddUserRequest and cannot be null"); } this.Number = number; this.AccountId = accountId; @@ -75,9 +67,7 @@ public static FaxLineAddUserRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of FaxLineAddUserRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of FaxLineAddUserRequest"); } return obj; @@ -89,6 +79,7 @@ public static FaxLineAddUserRequest Init(string jsonData) /// The Fax Line number. [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } + /// /// Account ID @@ -97,6 +88,7 @@ public static FaxLineAddUserRequest Init(string jsonData) /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// Email address @@ -104,6 +96,7 @@ public static FaxLineAddUserRequest Init(string jsonData) /// Email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +119,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,17 +143,21 @@ public bool Equals(FaxLineAddUserRequest input) { return false; } - return ( - this.Number == input.Number - || (this.Number != null && this.Number.Equals(input.Number)) - ) - && ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + return + ( + this.Number == input.Number || + (this.Number != null && + this.Number.Equals(input.Number)) + ) && + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -197,9 +191,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -207,35 +199,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - } - ); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); + types.Add(new OpenApiType(){ + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + }); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs index 60f538258..bf41606e5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -48,6 +48,7 @@ public enum FaxLineAreaCodeGetCountryEnum /// Enum UK for value: UK /// [EnumMember(Value = "UK")] - UK = 3, + UK = 3 } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs index de4b4bb26..1179ce049 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -108,6 +108,7 @@ public enum FaxLineAreaCodeGetProvinceEnum /// Enum YT for value: YT /// [EnumMember(Value = "YT")] - YT = 13, + YT = 13 } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs index c5adac73a..5136ad865 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,22 +31,20 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineAreaCodeGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineAreaCodeGetResponse - : IEquatable, - IValidatableObject + public partial class FaxLineAreaCodeGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineAreaCodeGetResponse() { } - /// /// Initializes a new instance of the class. /// /// areaCodes. public FaxLineAreaCodeGetResponse(List areaCodes = default(List)) { + this.AreaCodes = areaCodes; } @@ -60,9 +58,7 @@ public static FaxLineAreaCodeGetResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of FaxLineAreaCodeGetResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of FaxLineAreaCodeGetResponse"); } return obj; @@ -73,6 +69,7 @@ public static FaxLineAreaCodeGetResponse Init(string jsonData) /// [DataMember(Name = "area_codes", EmitDefaultValue = true)] public List AreaCodes { get; set; } + /// /// Returns the string presentation of the object @@ -93,10 +90,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -120,12 +114,13 @@ public bool Equals(FaxLineAreaCodeGetResponse input) { return false; } - return ( - this.AreaCodes == input.AreaCodes - || this.AreaCodes != null - && input.AreaCodes != null - && this.AreaCodes.SequenceEqual(input.AreaCodes) - ); + return + ( + this.AreaCodes == input.AreaCodes || + this.AreaCodes != null && + input.AreaCodes != null && + this.AreaCodes.SequenceEqual(input.AreaCodes) + ); } /// @@ -150,9 +145,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -160,17 +153,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "area_codes", - Property = "AreaCodes", - Type = "List", - Value = AreaCodes, - } - ); + types.Add(new OpenApiType(){ + Name = "area_codes", + Property = "AreaCodes", + Type = "List", + Value = AreaCodes, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs index 10fa57811..c62661b55 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -336,6 +336,7 @@ public enum FaxLineAreaCodeGetStateEnum /// Enum WY for value: WY /// [EnumMember(Value = "WY")] - WY = 51, + WY = 51 } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs index 5c540cee4..42717e772 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -56,22 +56,21 @@ public enum CountryEnum /// Enum UK for value: UK /// [EnumMember(Value = "UK")] - UK = 3, + UK = 3 } + /// /// Country /// /// Country [DataMember(Name = "country", IsRequired = true, EmitDefaultValue = true)] public CountryEnum Country { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineCreateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -79,13 +78,9 @@ protected FaxLineCreateRequest() { } /// Country (required). /// City. /// Account ID. - public FaxLineCreateRequest( - int areaCode = default(int), - CountryEnum country = default(CountryEnum), - string city = default(string), - string accountId = default(string) - ) + public FaxLineCreateRequest(int areaCode = default(int), CountryEnum country = default(CountryEnum), string city = default(string), string accountId = default(string)) { + this.AreaCode = areaCode; this.Country = country; this.City = city; @@ -102,9 +97,7 @@ public static FaxLineCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of FaxLineCreateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of FaxLineCreateRequest"); } return obj; @@ -116,6 +109,7 @@ public static FaxLineCreateRequest Init(string jsonData) /// Area code [DataMember(Name = "area_code", IsRequired = true, EmitDefaultValue = true)] public int AreaCode { get; set; } + /// /// City @@ -123,6 +117,7 @@ public static FaxLineCreateRequest Init(string jsonData) /// City [DataMember(Name = "city", EmitDefaultValue = true)] public string City { get; set; } + /// /// Account ID @@ -131,6 +126,7 @@ public static FaxLineCreateRequest Init(string jsonData) /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// Returns the string presentation of the object @@ -154,10 +150,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -181,12 +174,24 @@ public bool Equals(FaxLineCreateRequest input) { return false; } - return (this.AreaCode == input.AreaCode || this.AreaCode.Equals(input.AreaCode)) - && (this.Country == input.Country || this.Country.Equals(input.Country)) - && (this.City == input.City || (this.City != null && this.City.Equals(input.City))) - && ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) + return + ( + this.AreaCode == input.AreaCode || + this.AreaCode.Equals(input.AreaCode) + ) && + ( + this.Country == input.Country || + this.Country.Equals(input.Country) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) ); } @@ -218,9 +223,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -228,44 +231,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "area_code", - Property = "AreaCode", - Type = "int", - Value = AreaCode, - } - ); - types.Add( - new OpenApiType() - { - Name = "country", - Property = "Country", - Type = "string", - Value = Country, - } - ); - types.Add( - new OpenApiType() - { - Name = "city", - Property = "City", - Type = "string", - Value = City, - } - ); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); + types.Add(new OpenApiType(){ + Name = "area_code", + Property = "AreaCode", + Type = "int", + Value = AreaCode, + }); + types.Add(new OpenApiType(){ + Name = "country", + Property = "Country", + Type = "string", + Value = Country, + }); + types.Add(new OpenApiType(){ + Name = "city", + Property = "City", + Type = "string", + Value = City, + }); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs index 27ee3b54c..576797ef7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,17 @@ public partial class FaxLineDeleteRequest : IEquatable, IV /// [JsonConstructorAttribute] protected FaxLineDeleteRequest() { } - /// /// Initializes a new instance of the class. /// /// The Fax Line number. (required). public FaxLineDeleteRequest(string number = default(string)) { + // to ensure "number" is required (not null) if (number == null) { - throw new ArgumentNullException( - "number is a required property for FaxLineDeleteRequest and cannot be null" - ); + throw new ArgumentNullException("number is a required property for FaxLineDeleteRequest and cannot be null"); } this.Number = number; } @@ -65,9 +63,7 @@ public static FaxLineDeleteRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of FaxLineDeleteRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of FaxLineDeleteRequest"); } return obj; @@ -79,6 +75,7 @@ public static FaxLineDeleteRequest Init(string jsonData) /// The Fax Line number. [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } + /// /// Returns the string presentation of the object @@ -99,10 +96,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -126,10 +120,12 @@ public bool Equals(FaxLineDeleteRequest input) { return false; } - return ( - this.Number == input.Number - || (this.Number != null && this.Number.Equals(input.Number)) - ); + return + ( + this.Number == input.Number || + (this.Number != null && + this.Number.Equals(input.Number)) + ); } /// @@ -154,9 +150,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -164,17 +158,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - } - ); + types.Add(new OpenApiType(){ + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs index e33920e6f..383e9a7e7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,15 @@ public partial class FaxLineListResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected FaxLineListResponse() { } - /// /// Initializes a new instance of the class. /// /// listInfo. /// faxLines. /// warnings. - public FaxLineListResponse( - ListInfoResponse listInfo = default(ListInfoResponse), - List faxLines = default(List), - WarningResponse warnings = default(WarningResponse) - ) + public FaxLineListResponse(ListInfoResponse listInfo = default(ListInfoResponse), List faxLines = default(List), WarningResponse warnings = default(WarningResponse)) { + this.ListInfo = listInfo; this.FaxLines = faxLines; this.Warnings = warnings; @@ -66,9 +62,7 @@ public static FaxLineListResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of FaxLineListResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of FaxLineListResponse"); } return obj; @@ -79,18 +73,21 @@ public static FaxLineListResponse Init(string jsonData) /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// Gets or Sets FaxLines /// [DataMember(Name = "fax_lines", EmitDefaultValue = true)] public List FaxLines { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public WarningResponse Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -113,10 +110,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -140,19 +134,22 @@ public bool Equals(FaxLineListResponse input) { return false; } - return ( - this.ListInfo == input.ListInfo - || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) - ) - && ( - this.FaxLines == input.FaxLines - || this.FaxLines != null - && input.FaxLines != null - && this.FaxLines.SequenceEqual(input.FaxLines) - ) - && ( - this.Warnings == input.Warnings - || (this.Warnings != null && this.Warnings.Equals(input.Warnings)) + return + ( + this.ListInfo == input.ListInfo || + (this.ListInfo != null && + this.ListInfo.Equals(input.ListInfo)) + ) && + ( + this.FaxLines == input.FaxLines || + this.FaxLines != null && + input.FaxLines != null && + this.FaxLines.SequenceEqual(input.FaxLines) + ) && + ( + this.Warnings == input.Warnings || + (this.Warnings != null && + this.Warnings.Equals(input.Warnings)) ); } @@ -186,9 +183,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -196,35 +191,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - } - ); - types.Add( - new OpenApiType() - { - Name = "fax_lines", - Property = "FaxLines", - Type = "List", - Value = FaxLines, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "WarningResponse", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + }); + types.Add(new OpenApiType(){ + Name = "fax_lines", + Property = "FaxLines", + Type = "List", + Value = FaxLines, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "WarningResponse", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs index 98817a342..49ef2d4b8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,34 +31,26 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineRemoveUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineRemoveUserRequest - : IEquatable, - IValidatableObject + public partial class FaxLineRemoveUserRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineRemoveUserRequest() { } - /// /// Initializes a new instance of the class. /// /// The Fax Line number. (required). /// Account ID. /// Email address. - public FaxLineRemoveUserRequest( - string number = default(string), - string accountId = default(string), - string emailAddress = default(string) - ) + public FaxLineRemoveUserRequest(string number = default(string), string accountId = default(string), string emailAddress = default(string)) { + // to ensure "number" is required (not null) if (number == null) { - throw new ArgumentNullException( - "number is a required property for FaxLineRemoveUserRequest and cannot be null" - ); + throw new ArgumentNullException("number is a required property for FaxLineRemoveUserRequest and cannot be null"); } this.Number = number; this.AccountId = accountId; @@ -75,9 +67,7 @@ public static FaxLineRemoveUserRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of FaxLineRemoveUserRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of FaxLineRemoveUserRequest"); } return obj; @@ -89,6 +79,7 @@ public static FaxLineRemoveUserRequest Init(string jsonData) /// The Fax Line number. [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } + /// /// Account ID @@ -97,6 +88,7 @@ public static FaxLineRemoveUserRequest Init(string jsonData) /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// Email address @@ -104,6 +96,7 @@ public static FaxLineRemoveUserRequest Init(string jsonData) /// Email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +119,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,17 +143,21 @@ public bool Equals(FaxLineRemoveUserRequest input) { return false; } - return ( - this.Number == input.Number - || (this.Number != null && this.Number.Equals(input.Number)) - ) - && ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + return + ( + this.Number == input.Number || + (this.Number != null && + this.Number.Equals(input.Number)) + ) && + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -197,9 +191,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -207,35 +199,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - } - ); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); + types.Add(new OpenApiType(){ + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + }); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs index 13c6f89e9..a281d57a1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,14 @@ public partial class FaxLineResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected FaxLineResponse() { } - /// /// Initializes a new instance of the class. /// /// faxLine. /// warnings. - public FaxLineResponse( - FaxLineResponseFaxLine faxLine = default(FaxLineResponseFaxLine), - WarningResponse warnings = default(WarningResponse) - ) + public FaxLineResponse(FaxLineResponseFaxLine faxLine = default(FaxLineResponseFaxLine), WarningResponse warnings = default(WarningResponse)) { + this.FaxLine = faxLine; this.Warnings = warnings; } @@ -74,12 +71,14 @@ public static FaxLineResponse Init(string jsonData) /// [DataMember(Name = "fax_line", EmitDefaultValue = true)] public FaxLineResponseFaxLine FaxLine { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public WarningResponse Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -101,10 +100,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -128,13 +124,16 @@ public bool Equals(FaxLineResponse input) { return false; } - return ( - this.FaxLine == input.FaxLine - || (this.FaxLine != null && this.FaxLine.Equals(input.FaxLine)) - ) - && ( - this.Warnings == input.Warnings - || (this.Warnings != null && this.Warnings.Equals(input.Warnings)) + return + ( + this.FaxLine == input.FaxLine || + (this.FaxLine != null && + this.FaxLine.Equals(input.FaxLine)) + ) && + ( + this.Warnings == input.Warnings || + (this.Warnings != null && + this.Warnings.Equals(input.Warnings)) ); } @@ -164,9 +163,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -174,26 +171,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "fax_line", - Property = "FaxLine", - Type = "FaxLineResponseFaxLine", - Value = FaxLine, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "WarningResponse", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "fax_line", + Property = "FaxLine", + Type = "FaxLineResponseFaxLine", + Value = FaxLine, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "WarningResponse", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs index ee5ea520d..52a0b0ca0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "FaxLineResponseFaxLine")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class FaxLineResponseFaxLine - : IEquatable, - IValidatableObject + public partial class FaxLineResponseFaxLine : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected FaxLineResponseFaxLine() { } - /// /// Initializes a new instance of the class. /// @@ -48,13 +45,9 @@ protected FaxLineResponseFaxLine() { } /// Created at. /// Updated at. /// accounts. - public FaxLineResponseFaxLine( - string number = default(string), - int createdAt = default(int), - int updatedAt = default(int), - List accounts = default(List) - ) + public FaxLineResponseFaxLine(string number = default(string), int createdAt = default(int), int updatedAt = default(int), List accounts = default(List)) { + this.Number = number; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; @@ -71,9 +64,7 @@ public static FaxLineResponseFaxLine Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of FaxLineResponseFaxLine" - ); + throw new Exception("Unable to deserialize JSON to instance of FaxLineResponseFaxLine"); } return obj; @@ -85,6 +76,7 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Number [DataMember(Name = "number", EmitDefaultValue = true)] public string Number { get; set; } + /// /// Created at @@ -92,6 +84,7 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Created at [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// Updated at @@ -99,12 +92,14 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Updated at [DataMember(Name = "updated_at", EmitDefaultValue = true)] public int UpdatedAt { get; set; } + /// /// Gets or Sets Accounts /// [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } + /// /// Returns the string presentation of the object @@ -128,10 +123,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -155,17 +147,25 @@ public bool Equals(FaxLineResponseFaxLine input) { return false; } - return ( - this.Number == input.Number - || (this.Number != null && this.Number.Equals(input.Number)) - ) - && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)) - && (this.UpdatedAt == input.UpdatedAt || this.UpdatedAt.Equals(input.UpdatedAt)) - && ( - this.Accounts == input.Accounts - || this.Accounts != null - && input.Accounts != null - && this.Accounts.SequenceEqual(input.Accounts) + return + ( + this.Number == input.Number || + (this.Number != null && + this.Number.Equals(input.Number)) + ) && + ( + this.CreatedAt == input.CreatedAt || + this.CreatedAt.Equals(input.CreatedAt) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + this.UpdatedAt.Equals(input.UpdatedAt) + ) && + ( + this.Accounts == input.Accounts || + this.Accounts != null && + input.Accounts != null && + this.Accounts.SequenceEqual(input.Accounts) ); } @@ -197,9 +197,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -207,44 +205,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "number", - Property = "Number", - Type = "string", - Value = Number, - } - ); - types.Add( - new OpenApiType() - { - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "updated_at", - Property = "UpdatedAt", - Type = "int", - Value = UpdatedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "accounts", - Property = "Accounts", - Type = "List", - Value = Accounts, - } - ); + types.Add(new OpenApiType(){ + Name = "number", + Property = "Number", + Type = "string", + Value = Number, + }); + types.Add(new OpenApiType(){ + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + }); + types.Add(new OpenApiType(){ + Name = "updated_at", + Property = "UpdatedAt", + Type = "int", + Value = UpdatedAt, + }); + types.Add(new OpenApiType(){ + Name = "accounts", + Property = "Accounts", + Type = "List", + Value = Accounts, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs index fb0188b76..e8381f689 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class FileResponse : IEquatable, IValidatableObject /// [JsonConstructorAttribute] protected FileResponse() { } - /// /// Initializes a new instance of the class. /// @@ -46,6 +45,7 @@ protected FileResponse() { } /// When the link expires.. public FileResponse(string fileUrl = default(string), int expiresAt = default(int)) { + this.FileUrl = fileUrl; this.ExpiresAt = expiresAt; } @@ -72,6 +72,7 @@ public static FileResponse Init(string jsonData) /// URL to the file. [DataMember(Name = "file_url", EmitDefaultValue = true)] public string FileUrl { get; set; } + /// /// When the link expires. @@ -79,6 +80,7 @@ public static FileResponse Init(string jsonData) /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -100,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -127,10 +126,16 @@ public bool Equals(FileResponse input) { return false; } - return ( - this.FileUrl == input.FileUrl - || (this.FileUrl != null && this.FileUrl.Equals(input.FileUrl)) - ) && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)); + return + ( + this.FileUrl == input.FileUrl || + (this.FileUrl != null && + this.FileUrl.Equals(input.FileUrl)) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + this.ExpiresAt.Equals(input.ExpiresAt) + ); } /// @@ -156,9 +161,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -166,26 +169,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "file_url", - Property = "FileUrl", - Type = "string", - Value = FileUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "file_url", + Property = "FileUrl", + Type = "string", + Value = FileUrl, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs index aea83a1da..7d359e8c5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class FileResponseDataUri : IEquatable, IVal /// [JsonConstructorAttribute] protected FileResponseDataUri() { } - /// /// Initializes a new instance of the class. /// /// File as base64 encoded string.. public FileResponseDataUri(string dataUri = default(string)) { + this.DataUri = dataUri; } @@ -58,9 +58,7 @@ public static FileResponseDataUri Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of FileResponseDataUri" - ); + throw new Exception("Unable to deserialize JSON to instance of FileResponseDataUri"); } return obj; @@ -72,6 +70,7 @@ public static FileResponseDataUri Init(string jsonData) /// File as base64 encoded string. [DataMember(Name = "data_uri", EmitDefaultValue = true)] public string DataUri { get; set; } + /// /// Returns the string presentation of the object @@ -92,10 +91,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -119,10 +115,12 @@ public bool Equals(FileResponseDataUri input) { return false; } - return ( - this.DataUri == input.DataUri - || (this.DataUri != null && this.DataUri.Equals(input.DataUri)) - ); + return + ( + this.DataUri == input.DataUri || + (this.DataUri != null && + this.DataUri.Equals(input.DataUri)) + ); } /// @@ -147,9 +145,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -157,17 +153,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "data_uri", - Property = "DataUri", - Type = "string", - Value = DataUri, - } - ); + types.Add(new OpenApiType(){ + Name = "data_uri", + Property = "DataUri", + Type = "string", + Value = DataUri, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs index 223deff0a..8597e03a9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class ListInfoResponse : IEquatable, IValidatab /// [JsonConstructorAttribute] protected ListInfoResponse() { } - /// /// Initializes a new instance of the class. /// @@ -46,13 +45,9 @@ protected ListInfoResponse() { } /// Total number of objects available.. /// Number of the page being returned.. /// Objects returned per page.. - public ListInfoResponse( - int numPages = default(int), - int? numResults = default(int?), - int page = default(int), - int pageSize = default(int) - ) + public ListInfoResponse(int numPages = default(int), int? numResults = default(int?), int page = default(int), int pageSize = default(int)) { + this.NumPages = numPages; this.NumResults = numResults; this.Page = page; @@ -81,6 +76,7 @@ public static ListInfoResponse Init(string jsonData) /// Total number of pages available. [DataMember(Name = "num_pages", EmitDefaultValue = true)] public int NumPages { get; set; } + /// /// Total number of objects available. @@ -88,6 +84,7 @@ public static ListInfoResponse Init(string jsonData) /// Total number of objects available. [DataMember(Name = "num_results", EmitDefaultValue = true)] public int? NumResults { get; set; } + /// /// Number of the page being returned. @@ -95,6 +92,7 @@ public static ListInfoResponse Init(string jsonData) /// Number of the page being returned. [DataMember(Name = "page", EmitDefaultValue = true)] public int Page { get; set; } + /// /// Objects returned per page. @@ -102,6 +100,7 @@ public static ListInfoResponse Init(string jsonData) /// Objects returned per page. [DataMember(Name = "page_size", EmitDefaultValue = true)] public int PageSize { get; set; } + /// /// Returns the string presentation of the object @@ -125,10 +124,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -152,13 +148,24 @@ public bool Equals(ListInfoResponse input) { return false; } - return (this.NumPages == input.NumPages || this.NumPages.Equals(input.NumPages)) - && ( - this.NumResults == input.NumResults - || (this.NumResults != null && this.NumResults.Equals(input.NumResults)) - ) - && (this.Page == input.Page || this.Page.Equals(input.Page)) - && (this.PageSize == input.PageSize || this.PageSize.Equals(input.PageSize)); + return + ( + this.NumPages == input.NumPages || + this.NumPages.Equals(input.NumPages) + ) && + ( + this.NumResults == input.NumResults || + (this.NumResults != null && + this.NumResults.Equals(input.NumResults)) + ) && + ( + this.Page == input.Page || + this.Page.Equals(input.Page) + ) && + ( + this.PageSize == input.PageSize || + this.PageSize.Equals(input.PageSize) + ); } /// @@ -186,9 +193,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -196,44 +201,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "num_pages", - Property = "NumPages", - Type = "int", - Value = NumPages, - } - ); - types.Add( - new OpenApiType() - { - Name = "num_results", - Property = "NumResults", - Type = "int?", - Value = NumResults, - } - ); - types.Add( - new OpenApiType() - { - Name = "page", - Property = "Page", - Type = "int", - Value = Page, - } - ); - types.Add( - new OpenApiType() - { - Name = "page_size", - Property = "PageSize", - Type = "int", - Value = PageSize, - } - ); + types.Add(new OpenApiType(){ + Name = "num_pages", + Property = "NumPages", + Type = "int", + Value = NumPages, + }); + types.Add(new OpenApiType(){ + Name = "num_results", + Property = "NumResults", + Type = "int?", + Value = NumResults, + }); + types.Add(new OpenApiType(){ + Name = "page", + Property = "Page", + Type = "int", + Value = Page, + }); + types.Add(new OpenApiType(){ + Name = "page_size", + Property = "PageSize", + Type = "int", + Value = PageSize, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs index 2a7ddbb11..872a93b07 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "OAuthTokenGenerateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class OAuthTokenGenerateRequest - : IEquatable, - IValidatableObject + public partial class OAuthTokenGenerateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected OAuthTokenGenerateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -49,52 +46,37 @@ protected OAuthTokenGenerateRequest() { } /// The code passed to your callback when the user granted access. (required). /// When generating a new token use `authorization_code`. (required) (default to "authorization_code"). /// Same as the state you specified earlier. (required). - public OAuthTokenGenerateRequest( - string clientId = default(string), - string clientSecret = default(string), - string code = default(string), - string grantType = @"authorization_code", - string state = default(string) - ) + public OAuthTokenGenerateRequest(string clientId = default(string), string clientSecret = default(string), string code = default(string), string grantType = @"authorization_code", string state = default(string)) { + // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for OAuthTokenGenerateRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for OAuthTokenGenerateRequest and cannot be null"); } this.ClientId = clientId; // to ensure "clientSecret" is required (not null) if (clientSecret == null) { - throw new ArgumentNullException( - "clientSecret is a required property for OAuthTokenGenerateRequest and cannot be null" - ); + throw new ArgumentNullException("clientSecret is a required property for OAuthTokenGenerateRequest and cannot be null"); } this.ClientSecret = clientSecret; // to ensure "code" is required (not null) if (code == null) { - throw new ArgumentNullException( - "code is a required property for OAuthTokenGenerateRequest and cannot be null" - ); + throw new ArgumentNullException("code is a required property for OAuthTokenGenerateRequest and cannot be null"); } this.Code = code; // to ensure "grantType" is required (not null) if (grantType == null) { - throw new ArgumentNullException( - "grantType is a required property for OAuthTokenGenerateRequest and cannot be null" - ); + throw new ArgumentNullException("grantType is a required property for OAuthTokenGenerateRequest and cannot be null"); } this.GrantType = grantType; // to ensure "state" is required (not null) if (state == null) { - throw new ArgumentNullException( - "state is a required property for OAuthTokenGenerateRequest and cannot be null" - ); + throw new ArgumentNullException("state is a required property for OAuthTokenGenerateRequest and cannot be null"); } this.State = state; } @@ -109,9 +91,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of OAuthTokenGenerateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of OAuthTokenGenerateRequest"); } return obj; @@ -123,6 +103,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// The client id of the app requesting authorization. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// The secret token of your app. @@ -130,6 +111,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// The secret token of your app. [DataMember(Name = "client_secret", IsRequired = true, EmitDefaultValue = true)] public string ClientSecret { get; set; } + /// /// The code passed to your callback when the user granted access. @@ -137,6 +119,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// The code passed to your callback when the user granted access. [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] public string Code { get; set; } + /// /// When generating a new token use `authorization_code`. @@ -144,6 +127,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// When generating a new token use `authorization_code`. [DataMember(Name = "grant_type", IsRequired = true, EmitDefaultValue = true)] public string GrantType { get; set; } + /// /// Same as the state you specified earlier. @@ -151,6 +135,7 @@ public static OAuthTokenGenerateRequest Init(string jsonData) /// Same as the state you specified earlier. [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] public string State { get; set; } + /// /// Returns the string presentation of the object @@ -175,10 +160,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -202,22 +184,31 @@ public bool Equals(OAuthTokenGenerateRequest input) { return false; } - return ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.ClientSecret == input.ClientSecret - || (this.ClientSecret != null && this.ClientSecret.Equals(input.ClientSecret)) - ) - && (this.Code == input.Code || (this.Code != null && this.Code.Equals(input.Code))) - && ( - this.GrantType == input.GrantType - || (this.GrantType != null && this.GrantType.Equals(input.GrantType)) - ) - && ( - this.State == input.State - || (this.State != null && this.State.Equals(input.State)) + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.ClientSecret == input.ClientSecret || + (this.ClientSecret != null && + this.ClientSecret.Equals(input.ClientSecret)) + ) && + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.GrantType == input.GrantType || + (this.GrantType != null && + this.GrantType.Equals(input.GrantType)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) ); } @@ -259,9 +250,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -269,53 +258,39 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_secret", - Property = "ClientSecret", - Type = "string", - Value = ClientSecret, - } - ); - types.Add( - new OpenApiType() - { - Name = "code", - Property = "Code", - Type = "string", - Value = Code, - } - ); - types.Add( - new OpenApiType() - { - Name = "grant_type", - Property = "GrantType", - Type = "string", - Value = GrantType, - } - ); - types.Add( - new OpenApiType() - { - Name = "state", - Property = "State", - Type = "string", - Value = State, - } - ); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "client_secret", + Property = "ClientSecret", + Type = "string", + Value = ClientSecret, + }); + types.Add(new OpenApiType(){ + Name = "code", + Property = "Code", + Type = "string", + Value = Code, + }); + types.Add(new OpenApiType(){ + Name = "grant_type", + Property = "GrantType", + Type = "string", + Value = GrantType, + }); + types.Add(new OpenApiType(){ + Name = "state", + Property = "State", + Type = "string", + Value = State, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs index b8dea853c..805664337 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,40 +31,31 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "OAuthTokenRefreshRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class OAuthTokenRefreshRequest - : IEquatable, - IValidatableObject + public partial class OAuthTokenRefreshRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected OAuthTokenRefreshRequest() { } - /// /// Initializes a new instance of the class. /// /// When refreshing an existing token use `refresh_token`. (required) (default to "refresh_token"). /// The token provided when you got the expired access token. (required). - public OAuthTokenRefreshRequest( - string grantType = @"refresh_token", - string refreshToken = default(string) - ) + public OAuthTokenRefreshRequest(string grantType = @"refresh_token", string refreshToken = default(string)) { + // to ensure "grantType" is required (not null) if (grantType == null) { - throw new ArgumentNullException( - "grantType is a required property for OAuthTokenRefreshRequest and cannot be null" - ); + throw new ArgumentNullException("grantType is a required property for OAuthTokenRefreshRequest and cannot be null"); } this.GrantType = grantType; // to ensure "refreshToken" is required (not null) if (refreshToken == null) { - throw new ArgumentNullException( - "refreshToken is a required property for OAuthTokenRefreshRequest and cannot be null" - ); + throw new ArgumentNullException("refreshToken is a required property for OAuthTokenRefreshRequest and cannot be null"); } this.RefreshToken = refreshToken; } @@ -79,9 +70,7 @@ public static OAuthTokenRefreshRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of OAuthTokenRefreshRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of OAuthTokenRefreshRequest"); } return obj; @@ -93,6 +82,7 @@ public static OAuthTokenRefreshRequest Init(string jsonData) /// When refreshing an existing token use `refresh_token`. [DataMember(Name = "grant_type", IsRequired = true, EmitDefaultValue = true)] public string GrantType { get; set; } + /// /// The token provided when you got the expired access token. @@ -100,6 +90,7 @@ public static OAuthTokenRefreshRequest Init(string jsonData) /// The token provided when you got the expired access token. [DataMember(Name = "refresh_token", IsRequired = true, EmitDefaultValue = true)] public string RefreshToken { get; set; } + /// /// Returns the string presentation of the object @@ -121,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -148,13 +136,16 @@ public bool Equals(OAuthTokenRefreshRequest input) { return false; } - return ( - this.GrantType == input.GrantType - || (this.GrantType != null && this.GrantType.Equals(input.GrantType)) - ) - && ( - this.RefreshToken == input.RefreshToken - || (this.RefreshToken != null && this.RefreshToken.Equals(input.RefreshToken)) + return + ( + this.GrantType == input.GrantType || + (this.GrantType != null && + this.GrantType.Equals(input.GrantType)) + ) && + ( + this.RefreshToken == input.RefreshToken || + (this.RefreshToken != null && + this.RefreshToken.Equals(input.RefreshToken)) ); } @@ -184,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -194,26 +183,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "grant_type", - Property = "GrantType", - Type = "string", - Value = GrantType, - } - ); - types.Add( - new OpenApiType() - { - Name = "refresh_token", - Property = "RefreshToken", - Type = "string", - Value = RefreshToken, - } - ); + types.Add(new OpenApiType(){ + Name = "grant_type", + Property = "GrantType", + Type = "string", + Value = GrantType, + }); + types.Add(new OpenApiType(){ + Name = "refresh_token", + Property = "RefreshToken", + Type = "string", + Value = RefreshToken, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs index 0c468bf58..785fe808f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class OAuthTokenResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected OAuthTokenResponse() { } - /// /// Initializes a new instance of the class. /// @@ -47,14 +46,9 @@ protected OAuthTokenResponse() { } /// refreshToken. /// Number of seconds until the `access_token` expires. Uses epoch time.. /// state. - public OAuthTokenResponse( - string accessToken = default(string), - string tokenType = default(string), - string refreshToken = default(string), - int expiresIn = default(int), - string state = default(string) - ) + public OAuthTokenResponse(string accessToken = default(string), string tokenType = default(string), string refreshToken = default(string), int expiresIn = default(int), string state = default(string)) { + this.AccessToken = accessToken; this.TokenType = tokenType; this.RefreshToken = refreshToken; @@ -83,18 +77,21 @@ public static OAuthTokenResponse Init(string jsonData) /// [DataMember(Name = "access_token", EmitDefaultValue = true)] public string AccessToken { get; set; } + /// /// Gets or Sets TokenType /// [DataMember(Name = "token_type", EmitDefaultValue = true)] public string TokenType { get; set; } + /// /// Gets or Sets RefreshToken /// [DataMember(Name = "refresh_token", EmitDefaultValue = true)] public string RefreshToken { get; set; } + /// /// Number of seconds until the `access_token` expires. Uses epoch time. @@ -102,12 +99,14 @@ public static OAuthTokenResponse Init(string jsonData) /// Number of seconds until the `access_token` expires. Uses epoch time. [DataMember(Name = "expires_in", EmitDefaultValue = true)] public int ExpiresIn { get; set; } + /// /// Gets or Sets State /// [DataMember(Name = "state", EmitDefaultValue = true)] public string State { get; set; } + /// /// Returns the string presentation of the object @@ -132,10 +131,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -159,22 +155,30 @@ public bool Equals(OAuthTokenResponse input) { return false; } - return ( - this.AccessToken == input.AccessToken - || (this.AccessToken != null && this.AccessToken.Equals(input.AccessToken)) - ) - && ( - this.TokenType == input.TokenType - || (this.TokenType != null && this.TokenType.Equals(input.TokenType)) - ) - && ( - this.RefreshToken == input.RefreshToken - || (this.RefreshToken != null && this.RefreshToken.Equals(input.RefreshToken)) - ) - && (this.ExpiresIn == input.ExpiresIn || this.ExpiresIn.Equals(input.ExpiresIn)) - && ( - this.State == input.State - || (this.State != null && this.State.Equals(input.State)) + return + ( + this.AccessToken == input.AccessToken || + (this.AccessToken != null && + this.AccessToken.Equals(input.AccessToken)) + ) && + ( + this.TokenType == input.TokenType || + (this.TokenType != null && + this.TokenType.Equals(input.TokenType)) + ) && + ( + this.RefreshToken == input.RefreshToken || + (this.RefreshToken != null && + this.RefreshToken.Equals(input.RefreshToken)) + ) && + ( + this.ExpiresIn == input.ExpiresIn || + this.ExpiresIn.Equals(input.ExpiresIn) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) ); } @@ -213,9 +217,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -223,53 +225,39 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "access_token", - Property = "AccessToken", - Type = "string", - Value = AccessToken, - } - ); - types.Add( - new OpenApiType() - { - Name = "token_type", - Property = "TokenType", - Type = "string", - Value = TokenType, - } - ); - types.Add( - new OpenApiType() - { - Name = "refresh_token", - Property = "RefreshToken", - Type = "string", - Value = RefreshToken, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_in", - Property = "ExpiresIn", - Type = "int", - Value = ExpiresIn, - } - ); - types.Add( - new OpenApiType() - { - Name = "state", - Property = "State", - Type = "string", - Value = State, - } - ); + types.Add(new OpenApiType(){ + Name = "access_token", + Property = "AccessToken", + Type = "string", + Value = AccessToken, + }); + types.Add(new OpenApiType(){ + Name = "token_type", + Property = "TokenType", + Type = "string", + Value = TokenType, + }); + types.Add(new OpenApiType(){ + Name = "refresh_token", + Property = "RefreshToken", + Type = "string", + Value = RefreshToken, + }); + types.Add(new OpenApiType(){ + Name = "expires_in", + Property = "ExpiresIn", + Type = "int", + Value = ExpiresIn, + }); + types.Add(new OpenApiType(){ + Name = "state", + Property = "State", + Type = "string", + Value = State, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs index f1b5d5437..8c0f5945f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -49,7 +49,7 @@ public enum ReportTypeEnum /// Enum DocumentStatus for value: document_status /// [EnumMember(Value = "document_status")] - DocumentStatus = 2, + DocumentStatus = 2 } /// @@ -57,41 +57,31 @@ public enum ReportTypeEnum /// [JsonConstructorAttribute] protected ReportCreateRequest() { } - /// /// Initializes a new instance of the class. /// /// The (inclusive) end date for the report data in `MM/DD/YYYY` format. (required). /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). (required). /// The (inclusive) start date for the report data in `MM/DD/YYYY` format. (required). - public ReportCreateRequest( - string endDate = default(string), - List reportType = default(List), - string startDate = default(string) - ) + public ReportCreateRequest(string endDate = default(string), List reportType = default(List), string startDate = default(string)) { + // to ensure "endDate" is required (not null) if (endDate == null) { - throw new ArgumentNullException( - "endDate is a required property for ReportCreateRequest and cannot be null" - ); + throw new ArgumentNullException("endDate is a required property for ReportCreateRequest and cannot be null"); } this.EndDate = endDate; // to ensure "reportType" is required (not null) if (reportType == null) { - throw new ArgumentNullException( - "reportType is a required property for ReportCreateRequest and cannot be null" - ); + throw new ArgumentNullException("reportType is a required property for ReportCreateRequest and cannot be null"); } this.ReportType = reportType; // to ensure "startDate" is required (not null) if (startDate == null) { - throw new ArgumentNullException( - "startDate is a required property for ReportCreateRequest and cannot be null" - ); + throw new ArgumentNullException("startDate is a required property for ReportCreateRequest and cannot be null"); } this.StartDate = startDate; } @@ -106,9 +96,7 @@ public static ReportCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of ReportCreateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of ReportCreateRequest"); } return obj; @@ -120,6 +108,7 @@ public static ReportCreateRequest Init(string jsonData) /// The (inclusive) end date for the report data in `MM/DD/YYYY` format. [DataMember(Name = "end_date", IsRequired = true, EmitDefaultValue = true)] public string EndDate { get; set; } + /// /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). @@ -127,6 +116,7 @@ public static ReportCreateRequest Init(string jsonData) /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). [DataMember(Name = "report_type", IsRequired = true, EmitDefaultValue = true)] public List ReportType { get; set; } + /// /// The (inclusive) start date for the report data in `MM/DD/YYYY` format. @@ -134,6 +124,7 @@ public static ReportCreateRequest Init(string jsonData) /// The (inclusive) start date for the report data in `MM/DD/YYYY` format. [DataMember(Name = "start_date", IsRequired = true, EmitDefaultValue = true)] public string StartDate { get; set; } + /// /// Returns the string presentation of the object @@ -156,10 +147,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -183,19 +171,22 @@ public bool Equals(ReportCreateRequest input) { return false; } - return ( - this.EndDate == input.EndDate - || (this.EndDate != null && this.EndDate.Equals(input.EndDate)) - ) - && ( - this.ReportType == input.ReportType - || this.ReportType != null - && input.ReportType != null - && this.ReportType.SequenceEqual(input.ReportType) - ) - && ( - this.StartDate == input.StartDate - || (this.StartDate != null && this.StartDate.Equals(input.StartDate)) + return + ( + this.EndDate == input.EndDate || + (this.EndDate != null && + this.EndDate.Equals(input.EndDate)) + ) && + ( + this.ReportType == input.ReportType || + this.ReportType != null && + input.ReportType != null && + this.ReportType.SequenceEqual(input.ReportType) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) ); } @@ -229,9 +220,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -239,35 +228,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "end_date", - Property = "EndDate", - Type = "string", - Value = EndDate, - } - ); - types.Add( - new OpenApiType() - { - Name = "report_type", - Property = "ReportType", - Type = "List", - Value = ReportType, - } - ); - types.Add( - new OpenApiType() - { - Name = "start_date", - Property = "StartDate", - Type = "string", - Value = StartDate, - } - ); + types.Add(new OpenApiType(){ + Name = "end_date", + Property = "EndDate", + Type = "string", + Value = EndDate, + }); + types.Add(new OpenApiType(){ + Name = "report_type", + Property = "ReportType", + Type = "List", + Value = ReportType, + }); + types.Add(new OpenApiType(){ + Name = "start_date", + Property = "StartDate", + Type = "string", + Value = StartDate, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs index 4916d6d9e..e361b4ecb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,14 @@ public partial class ReportCreateResponse : IEquatable, IV /// [JsonConstructorAttribute] protected ReportCreateResponse() { } - /// /// Initializes a new instance of the class. /// /// report. /// A list of warnings.. - public ReportCreateResponse( - ReportResponse report = default(ReportResponse), - List warnings = default(List) - ) + public ReportCreateResponse(ReportResponse report = default(ReportResponse), List warnings = default(List)) { + this.Report = report; this.Warnings = warnings; } @@ -63,9 +60,7 @@ public static ReportCreateResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of ReportCreateResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of ReportCreateResponse"); } return obj; @@ -76,6 +71,7 @@ public static ReportCreateResponse Init(string jsonData) /// [DataMember(Name = "report", EmitDefaultValue = true)] public ReportResponse Report { get; set; } + /// /// A list of warnings. @@ -83,6 +79,7 @@ public static ReportCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -104,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -131,15 +125,17 @@ public bool Equals(ReportCreateResponse input) { return false; } - return ( - this.Report == input.Report - || (this.Report != null && this.Report.Equals(input.Report)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Report == input.Report || + (this.Report != null && + this.Report.Equals(input.Report)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -169,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -179,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "report", - Property = "Report", - Type = "ReportResponse", - Value = Report, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "report", + Property = "Report", + Type = "ReportResponse", + Value = Report, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs index eac3cefa7..02759c3ff 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -49,7 +49,7 @@ public enum ReportTypeEnum /// Enum DocumentStatus for value: document_status /// [EnumMember(Value = "document_status")] - DocumentStatus = 2, + DocumentStatus = 2 } /// @@ -57,7 +57,6 @@ public enum ReportTypeEnum /// [JsonConstructorAttribute] protected ReportResponse() { } - /// /// Initializes a new instance of the class. /// @@ -65,13 +64,9 @@ protected ReportResponse() { } /// The (inclusive) start date for the report data in MM/DD/YYYY format.. /// The (inclusive) end date for the report data in MM/DD/YYYY format.. /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status).. - public ReportResponse( - string success = default(string), - string startDate = default(string), - string endDate = default(string), - List reportType = default(List) - ) + public ReportResponse(string success = default(string), string startDate = default(string), string endDate = default(string), List reportType = default(List)) { + this.Success = success; this.StartDate = startDate; this.EndDate = endDate; @@ -100,6 +95,7 @@ public static ReportResponse Init(string jsonData) /// A message indicating the requested operation's success [DataMember(Name = "success", EmitDefaultValue = true)] public string Success { get; set; } + /// /// The (inclusive) start date for the report data in MM/DD/YYYY format. @@ -107,6 +103,7 @@ public static ReportResponse Init(string jsonData) /// The (inclusive) start date for the report data in MM/DD/YYYY format. [DataMember(Name = "start_date", EmitDefaultValue = true)] public string StartDate { get; set; } + /// /// The (inclusive) end date for the report data in MM/DD/YYYY format. @@ -114,6 +111,7 @@ public static ReportResponse Init(string jsonData) /// The (inclusive) end date for the report data in MM/DD/YYYY format. [DataMember(Name = "end_date", EmitDefaultValue = true)] public string EndDate { get; set; } + /// /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). @@ -121,6 +119,7 @@ public static ReportResponse Init(string jsonData) /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). [DataMember(Name = "report_type", EmitDefaultValue = true)] public List ReportType { get; set; } + /// /// Returns the string presentation of the object @@ -144,10 +143,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -171,23 +167,27 @@ public bool Equals(ReportResponse input) { return false; } - return ( - this.Success == input.Success - || (this.Success != null && this.Success.Equals(input.Success)) - ) - && ( - this.StartDate == input.StartDate - || (this.StartDate != null && this.StartDate.Equals(input.StartDate)) - ) - && ( - this.EndDate == input.EndDate - || (this.EndDate != null && this.EndDate.Equals(input.EndDate)) - ) - && ( - this.ReportType == input.ReportType - || this.ReportType != null - && input.ReportType != null - && this.ReportType.SequenceEqual(input.ReportType) + return + ( + this.Success == input.Success || + (this.Success != null && + this.Success.Equals(input.Success)) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.EndDate == input.EndDate || + (this.EndDate != null && + this.EndDate.Equals(input.EndDate)) + ) && + ( + this.ReportType == input.ReportType || + this.ReportType != null && + input.ReportType != null && + this.ReportType.SequenceEqual(input.ReportType) ); } @@ -225,9 +225,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -235,44 +233,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "success", - Property = "Success", - Type = "string", - Value = Success, - } - ); - types.Add( - new OpenApiType() - { - Name = "start_date", - Property = "StartDate", - Type = "string", - Value = StartDate, - } - ); - types.Add( - new OpenApiType() - { - Name = "end_date", - Property = "EndDate", - Type = "string", - Value = EndDate, - } - ); - types.Add( - new OpenApiType() - { - Name = "report_type", - Property = "ReportType", - Type = "List", - Value = ReportType, - } - ); + types.Add(new OpenApiType(){ + Name = "success", + Property = "Success", + Type = "string", + Value = Success, + }); + types.Add(new OpenApiType(){ + Name = "start_date", + Property = "StartDate", + Type = "string", + Value = StartDate, + }); + types.Add(new OpenApiType(){ + Name = "end_date", + Property = "EndDate", + Type = "string", + Value = EndDate, + }); + types.Add(new OpenApiType(){ + Name = "report_type", + Property = "ReportType", + Type = "List", + Value = ReportType, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs index fc987c5bb..65fa89808 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestBulkCreateEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestBulkCreateEmbeddedWithTemplateRequest - : IEquatable, - IValidatableObject + public partial class SignatureRequestBulkCreateEmbeddedWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestBulkCreateEmbeddedWithTemplateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -57,36 +54,19 @@ protected SignatureRequestBulkCreateEmbeddedWithTemplateRequest() { } /// The subject in the email that will be sent to the signers.. /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest( - List templateIds = default(List), - System.IO.Stream signerFile = default(System.IO.Stream), - List signerList = default(List), - bool allowDecline = false, - List ccs = default(List), - string clientId = default(string), - List customFields = default(List), - string message = default(string), - Dictionary metadata = default(Dictionary), - string signingRedirectUrl = default(string), - string subject = default(string), - bool testMode = false, - string title = default(string) - ) + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest(List templateIds = default(List), System.IO.Stream signerFile = default(System.IO.Stream), List signerList = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), string message = default(string), Dictionary metadata = default(Dictionary), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string)) { + // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException( - "templateIds is a required property for SignatureRequestBulkCreateEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("templateIds is a required property for SignatureRequestBulkCreateEmbeddedWithTemplateRequest and cannot be null"); } this.TemplateIds = templateIds; // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for SignatureRequestBulkCreateEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for SignatureRequestBulkCreateEmbeddedWithTemplateRequest and cannot be null"); } this.ClientId = clientId; this.SignerFile = signerFile; @@ -108,16 +88,11 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest( /// String of JSON data representing target object public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string jsonData) { - var obj = - JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestBulkCreateEmbeddedWithTemplateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestBulkCreateEmbeddedWithTemplateRequest"); } return obj; @@ -129,6 +104,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// Client id of the app you're using to create this embedded signature request. Used for security purposes. @@ -136,6 +112,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Client id of the app you're using to create this embedded signature request. Used for security purposes. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` @@ -143,6 +120,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` [DataMember(Name = "signer_file", EmitDefaultValue = true)] public System.IO.Stream SignerFile { get; set; } + /// /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. @@ -150,6 +128,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. [DataMember(Name = "signer_list", EmitDefaultValue = true)] public List SignerList { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -157,6 +136,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -164,6 +144,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -171,6 +152,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -178,6 +160,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -185,6 +168,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -192,6 +176,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -199,6 +184,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -206,6 +192,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -213,6 +200,7 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Returns the string presentation of the object @@ -245,10 +233,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -272,65 +257,74 @@ public bool Equals(SignatureRequestBulkCreateEmbeddedWithTemplateRequest input) { return false; } - return ( - this.TemplateIds == input.TemplateIds - || this.TemplateIds != null - && input.TemplateIds != null - && this.TemplateIds.SequenceEqual(input.TemplateIds) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.SignerFile == input.SignerFile - || (this.SignerFile != null && this.SignerFile.Equals(input.SignerFile)) - ) - && ( - this.SignerList == input.SignerList - || this.SignerList != null - && input.SignerList != null - && this.SignerList.SequenceEqual(input.SignerList) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.Ccs == input.Ccs - || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) + return + ( + this.TemplateIds == input.TemplateIds || + this.TemplateIds != null && + input.TemplateIds != null && + this.TemplateIds.SequenceEqual(input.TemplateIds) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.SignerFile == input.SignerFile || + (this.SignerFile != null && + this.SignerFile.Equals(input.SignerFile)) + ) && + ( + this.SignerList == input.SignerList || + this.SignerList != null && + input.SignerList != null && + this.SignerList.SequenceEqual(input.SignerList) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.Ccs == input.Ccs || + this.Ccs != null && + input.Ccs != null && + this.Ccs.SequenceEqual(input.Ccs) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) ); } @@ -398,35 +392,24 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; @@ -435,125 +418,87 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_file", - Property = "SignerFile", - Type = "System.IO.Stream", - Value = SignerFile, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_list", - Property = "SignerList", - Type = "List", - Value = SignerList, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); + types.Add(new OpenApiType(){ + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "signer_file", + Property = "SignerFile", + Type = "System.IO.Stream", + Value = SignerFile, + }); + types.Add(new OpenApiType(){ + Name = "signer_list", + Property = "SignerList", + Type = "List", + Value = SignerList, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs index 248c529af..7542ae15d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestBulkSendWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestBulkSendWithTemplateRequest - : IEquatable, - IValidatableObject + public partial class SignatureRequestBulkSendWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestBulkSendWithTemplateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -57,28 +54,13 @@ protected SignatureRequestBulkSendWithTemplateRequest() { } /// The subject in the email that will be sent to the signers.. /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. - public SignatureRequestBulkSendWithTemplateRequest( - List templateIds = default(List), - System.IO.Stream signerFile = default(System.IO.Stream), - List signerList = default(List), - bool allowDecline = false, - List ccs = default(List), - string clientId = default(string), - List customFields = default(List), - string message = default(string), - Dictionary metadata = default(Dictionary), - string signingRedirectUrl = default(string), - string subject = default(string), - bool testMode = false, - string title = default(string) - ) + public SignatureRequestBulkSendWithTemplateRequest(List templateIds = default(List), System.IO.Stream signerFile = default(System.IO.Stream), List signerList = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), string message = default(string), Dictionary metadata = default(Dictionary), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string)) { + // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException( - "templateIds is a required property for SignatureRequestBulkSendWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("templateIds is a required property for SignatureRequestBulkSendWithTemplateRequest and cannot be null"); } this.TemplateIds = templateIds; this.SignerFile = signerFile; @@ -101,15 +83,11 @@ public SignatureRequestBulkSendWithTemplateRequest( /// String of JSON data representing target object public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestBulkSendWithTemplateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestBulkSendWithTemplateRequest"); } return obj; @@ -121,6 +99,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` @@ -128,6 +107,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` [DataMember(Name = "signer_file", EmitDefaultValue = true)] public System.IO.Stream SignerFile { get; set; } + /// /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. @@ -135,6 +115,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. [DataMember(Name = "signer_list", EmitDefaultValue = true)] public List SignerList { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -142,6 +123,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -149,6 +131,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. @@ -156,6 +139,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -163,6 +147,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -170,6 +155,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -177,6 +163,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -184,6 +171,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -191,6 +179,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -198,6 +187,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -205,6 +195,7 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Returns the string presentation of the object @@ -237,10 +228,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -264,65 +252,74 @@ public bool Equals(SignatureRequestBulkSendWithTemplateRequest input) { return false; } - return ( - this.TemplateIds == input.TemplateIds - || this.TemplateIds != null - && input.TemplateIds != null - && this.TemplateIds.SequenceEqual(input.TemplateIds) - ) - && ( - this.SignerFile == input.SignerFile - || (this.SignerFile != null && this.SignerFile.Equals(input.SignerFile)) - ) - && ( - this.SignerList == input.SignerList - || this.SignerList != null - && input.SignerList != null - && this.SignerList.SequenceEqual(input.SignerList) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.Ccs == input.Ccs - || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) + return + ( + this.TemplateIds == input.TemplateIds || + this.TemplateIds != null && + input.TemplateIds != null && + this.TemplateIds.SequenceEqual(input.TemplateIds) + ) && + ( + this.SignerFile == input.SignerFile || + (this.SignerFile != null && + this.SignerFile.Equals(input.SignerFile)) + ) && + ( + this.SignerList == input.SignerList || + this.SignerList != null && + input.SignerList != null && + this.SignerList.SequenceEqual(input.SignerList) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.Ccs == input.Ccs || + this.Ccs != null && + input.Ccs != null && + this.Ccs.SequenceEqual(input.Ccs) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) ); } @@ -390,35 +387,24 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; @@ -427,125 +413,87 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_file", - Property = "SignerFile", - Type = "System.IO.Stream", - Value = SignerFile, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_list", - Property = "SignerList", - Type = "List", - Value = SignerList, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); + types.Add(new OpenApiType(){ + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + }); + types.Add(new OpenApiType(){ + Name = "signer_file", + Property = "SignerFile", + Type = "System.IO.Stream", + Value = SignerFile, + }); + types.Add(new OpenApiType(){ + Name = "signer_list", + Property = "SignerList", + Type = "List", + Value = SignerList, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs index e1fdf06ab..bfe4e51d3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestCreateEmbeddedRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestCreateEmbeddedRequest - : IEquatable, - IValidatableObject + public partial class SignatureRequestCreateEmbeddedRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestCreateEmbeddedRequest() { } - /// /// Initializes a new instance of the class. /// @@ -68,41 +65,13 @@ protected SignatureRequestCreateEmbeddedRequest() { } /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. (default to false). /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestCreateEmbeddedRequest( - List files = default(List), - List fileUrls = default(List), - List signers = default(List), - List groupedSigners = - default(List), - bool allowDecline = false, - bool allowReassign = false, - List attachments = default(List), - List ccEmailAddresses = default(List), - string clientId = default(string), - List customFields = default(List), - SubFieldOptions fieldOptions = default(SubFieldOptions), - List formFieldGroups = default(List), - List formFieldRules = default(List), - List formFieldsPerDocument = - default(List), - bool hideTextTags = false, - string message = default(string), - Dictionary metadata = default(Dictionary), - SubSigningOptions signingOptions = default(SubSigningOptions), - string subject = default(string), - bool testMode = false, - string title = default(string), - bool useTextTags = false, - bool populateAutoFillFields = false, - int? expiresAt = default(int?) - ) + public SignatureRequestCreateEmbeddedRequest(List files = default(List), List fileUrls = default(List), List signers = default(List), List groupedSigners = default(List), bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, string message = default(string), Dictionary metadata = default(Dictionary), SubSigningOptions signingOptions = default(SubSigningOptions), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, bool populateAutoFillFields = false, int? expiresAt = default(int?)) { + // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for SignatureRequestCreateEmbeddedRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for SignatureRequestCreateEmbeddedRequest and cannot be null"); } this.ClientId = clientId; this.Files = files; @@ -136,15 +105,11 @@ public SignatureRequestCreateEmbeddedRequest( /// String of JSON data representing target object public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestCreateEmbeddedRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestCreateEmbeddedRequest"); } return obj; @@ -156,6 +121,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Client id of the app you're using to create this embedded signature request. Used for security purposes. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -163,6 +129,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -170,6 +137,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -177,6 +145,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -184,6 +153,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "grouped_signers", EmitDefaultValue = true)] public List GroupedSigners { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -191,6 +161,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan. @@ -198,6 +169,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -205,6 +177,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The email addresses that should be CCed. @@ -212,6 +185,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -219,12 +193,14 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -232,6 +208,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -239,6 +216,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -246,6 +224,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. @@ -253,6 +232,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -260,6 +240,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -267,12 +248,14 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -280,6 +263,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -287,6 +271,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -294,6 +279,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. @@ -301,6 +287,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } + /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -308,6 +295,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } + /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -315,6 +303,7 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -358,10 +347,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -385,123 +371,131 @@ public bool Equals(SignatureRequestCreateEmbeddedRequest input) { return false; } - return ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.GroupedSigners == input.GroupedSigners - || this.GroupedSigners != null - && input.GroupedSigners != null - && this.GroupedSigners.SequenceEqual(input.GroupedSigners) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.AllowReassign == input.AllowReassign - || this.AllowReassign.Equals(input.AllowReassign) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.CcEmailAddresses == input.CcEmailAddresses - || this.CcEmailAddresses != null - && input.CcEmailAddresses != null - && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.FieldOptions == input.FieldOptions - || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) - ) - && ( - this.FormFieldGroups == input.FormFieldGroups - || this.FormFieldGroups != null - && input.FormFieldGroups != null - && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) - && ( - this.FormFieldRules == input.FormFieldRules - || this.FormFieldRules != null - && input.FormFieldRules != null - && this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) - && ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument - || this.FormFieldsPerDocument != null - && input.FormFieldsPerDocument != null - && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) - && ( - this.HideTextTags == input.HideTextTags - || this.HideTextTags.Equals(input.HideTextTags) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.UseTextTags == input.UseTextTags - || this.UseTextTags.Equals(input.UseTextTags) - ) - && ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields - || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) - ) - && ( - this.ExpiresAt == input.ExpiresAt - || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.GroupedSigners == input.GroupedSigners || + this.GroupedSigners != null && + input.GroupedSigners != null && + this.GroupedSigners.SequenceEqual(input.GroupedSigners) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.AllowReassign == input.AllowReassign || + this.AllowReassign.Equals(input.AllowReassign) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.CcEmailAddresses == input.CcEmailAddresses || + this.CcEmailAddresses != null && + input.CcEmailAddresses != null && + this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.FieldOptions == input.FieldOptions || + (this.FieldOptions != null && + this.FieldOptions.Equals(input.FieldOptions)) + ) && + ( + this.FormFieldGroups == input.FormFieldGroups || + this.FormFieldGroups != null && + input.FormFieldGroups != null && + this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) && + ( + this.FormFieldRules == input.FormFieldRules || + this.FormFieldRules != null && + input.FormFieldRules != null && + this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) && + ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument || + this.FormFieldsPerDocument != null && + input.FormFieldsPerDocument != null && + this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) && + ( + this.HideTextTags == input.HideTextTags || + this.HideTextTags.Equals(input.HideTextTags) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.UseTextTags == input.UseTextTags || + this.UseTextTags.Equals(input.UseTextTags) + ) && + ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields || + this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -601,35 +595,24 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; @@ -638,224 +621,153 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "grouped_signers", - Property = "GroupedSigners", - Type = "List", - Value = GroupedSigners, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - } - ); - types.Add( - new OpenApiType() - { - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "grouped_signers", + Property = "GroupedSigners", + Type = "List", + Value = GroupedSigners, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + }); + types.Add(new OpenApiType(){ + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + }); + types.Add(new OpenApiType(){ + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + }); + types.Add(new OpenApiType(){ + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + }); + types.Add(new OpenApiType(){ + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + }); + types.Add(new OpenApiType(){ + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs index 84ea9c036..682c38df4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestCreateEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestCreateEmbeddedWithTemplateRequest - : IEquatable, - IValidatableObject + public partial class SignatureRequestCreateEmbeddedWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestCreateEmbeddedWithTemplateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -59,47 +56,25 @@ protected SignatureRequestCreateEmbeddedWithTemplateRequest() { } /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). - public SignatureRequestCreateEmbeddedWithTemplateRequest( - List templateIds = default(List), - bool allowDecline = false, - List ccs = default(List), - string clientId = default(string), - List customFields = default(List), - List files = default(List), - List fileUrls = default(List), - string message = default(string), - Dictionary metadata = default(Dictionary), - List signers = - default(List), - SubSigningOptions signingOptions = default(SubSigningOptions), - string subject = default(string), - bool testMode = false, - string title = default(string), - bool populateAutoFillFields = false - ) + public SignatureRequestCreateEmbeddedWithTemplateRequest(List templateIds = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), List files = default(List), List fileUrls = default(List), string message = default(string), Dictionary metadata = default(Dictionary), List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string subject = default(string), bool testMode = false, string title = default(string), bool populateAutoFillFields = false) { + // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException( - "templateIds is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("templateIds is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null"); } this.TemplateIds = templateIds; // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null"); } this.ClientId = clientId; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException( - "signers is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("signers is a required property for SignatureRequestCreateEmbeddedWithTemplateRequest and cannot be null"); } this.Signers = signers; this.AllowDecline = allowDecline; @@ -122,16 +97,11 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest( /// String of JSON data representing target object public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string jsonData) { - var obj = - JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestCreateEmbeddedWithTemplateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestCreateEmbeddedWithTemplateRequest"); } return obj; @@ -143,6 +113,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// Client id of the app you're using to create this embedded signature request. Used for security purposes. @@ -150,6 +121,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Client id of the app you're using to create this embedded signature request. Used for security purposes. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Add Signers to your Templated-based Signature Request. @@ -157,6 +129,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Add Signers to your Templated-based Signature Request. [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -164,6 +137,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -171,6 +145,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. @@ -178,6 +153,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// An array defining values and options for custom fields. Required when a custom field exists in the Template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -185,6 +161,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -192,6 +169,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -199,6 +177,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -206,12 +185,14 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -219,6 +200,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -226,6 +208,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -233,6 +216,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -240,6 +224,7 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } + /// /// Returns the string presentation of the object @@ -274,10 +259,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -301,77 +283,85 @@ public bool Equals(SignatureRequestCreateEmbeddedWithTemplateRequest input) { return false; } - return ( - this.TemplateIds == input.TemplateIds - || this.TemplateIds != null - && input.TemplateIds != null - && this.TemplateIds.SequenceEqual(input.TemplateIds) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.Ccs == input.Ccs - || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields - || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + return + ( + this.TemplateIds == input.TemplateIds || + this.TemplateIds != null && + input.TemplateIds != null && + this.TemplateIds.SequenceEqual(input.TemplateIds) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.Ccs == input.Ccs || + this.Ccs != null && + input.Ccs != null && + this.Ccs.SequenceEqual(input.Ccs) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields || + this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) ); } @@ -444,35 +434,24 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; @@ -481,143 +460,99 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - } - ); + types.Add(new OpenApiType(){ + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs index a44d62c8d..8f9595f2d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,17 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestEditEmbeddedRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestEditEmbeddedRequest - : IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestEditEmbeddedRequest : IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestEditEmbeddedRequest() { } - /// /// Initializes a new instance of the class. /// @@ -69,41 +65,13 @@ protected SignatureRequestEditEmbeddedRequest() { } /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. (default to false). /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestEditEmbeddedRequest( - List files = default(List), - List fileUrls = default(List), - List signers = default(List), - List groupedSigners = - default(List), - bool allowDecline = false, - bool allowReassign = false, - List attachments = default(List), - List ccEmailAddresses = default(List), - string clientId = default(string), - List customFields = default(List), - SubFieldOptions fieldOptions = default(SubFieldOptions), - List formFieldGroups = default(List), - List formFieldRules = default(List), - List formFieldsPerDocument = - default(List), - bool hideTextTags = false, - string message = default(string), - Dictionary metadata = default(Dictionary), - SubSigningOptions signingOptions = default(SubSigningOptions), - string subject = default(string), - bool testMode = false, - string title = default(string), - bool useTextTags = false, - bool populateAutoFillFields = false, - int? expiresAt = default(int?) - ) + public SignatureRequestEditEmbeddedRequest(List files = default(List), List fileUrls = default(List), List signers = default(List), List groupedSigners = default(List), bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, string message = default(string), Dictionary metadata = default(Dictionary), SubSigningOptions signingOptions = default(SubSigningOptions), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, bool populateAutoFillFields = false, int? expiresAt = default(int?)) { + // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for SignatureRequestEditEmbeddedRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for SignatureRequestEditEmbeddedRequest and cannot be null"); } this.ClientId = clientId; this.Files = files; @@ -141,9 +109,7 @@ public static SignatureRequestEditEmbeddedRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestEditEmbeddedRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestEditEmbeddedRequest"); } return obj; @@ -357,10 +323,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -384,123 +347,131 @@ public bool Equals(SignatureRequestEditEmbeddedRequest input) { return false; } - return ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.GroupedSigners == input.GroupedSigners - || this.GroupedSigners != null - && input.GroupedSigners != null - && this.GroupedSigners.SequenceEqual(input.GroupedSigners) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.AllowReassign == input.AllowReassign - || this.AllowReassign.Equals(input.AllowReassign) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.CcEmailAddresses == input.CcEmailAddresses - || this.CcEmailAddresses != null - && input.CcEmailAddresses != null - && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.FieldOptions == input.FieldOptions - || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) - ) - && ( - this.FormFieldGroups == input.FormFieldGroups - || this.FormFieldGroups != null - && input.FormFieldGroups != null - && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) - && ( - this.FormFieldRules == input.FormFieldRules - || this.FormFieldRules != null - && input.FormFieldRules != null - && this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) - && ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument - || this.FormFieldsPerDocument != null - && input.FormFieldsPerDocument != null - && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) - && ( - this.HideTextTags == input.HideTextTags - || this.HideTextTags.Equals(input.HideTextTags) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.UseTextTags == input.UseTextTags - || this.UseTextTags.Equals(input.UseTextTags) - ) - && ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields - || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) - ) - && ( - this.ExpiresAt == input.ExpiresAt - || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.GroupedSigners == input.GroupedSigners || + this.GroupedSigners != null && + input.GroupedSigners != null && + this.GroupedSigners.SequenceEqual(input.GroupedSigners) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.AllowReassign == input.AllowReassign || + this.AllowReassign.Equals(input.AllowReassign) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.CcEmailAddresses == input.CcEmailAddresses || + this.CcEmailAddresses != null && + input.CcEmailAddresses != null && + this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.FieldOptions == input.FieldOptions || + (this.FieldOptions != null && + this.FieldOptions.Equals(input.FieldOptions)) + ) && + ( + this.FormFieldGroups == input.FormFieldGroups || + this.FormFieldGroups != null && + input.FormFieldGroups != null && + this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) && + ( + this.FormFieldRules == input.FormFieldRules || + this.FormFieldRules != null && + input.FormFieldRules != null && + this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) && + ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument || + this.FormFieldsPerDocument != null && + input.FormFieldsPerDocument != null && + this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) && + ( + this.HideTextTags == input.HideTextTags || + this.HideTextTags.Equals(input.HideTextTags) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.UseTextTags == input.UseTextTags || + this.UseTextTags.Equals(input.UseTextTags) + ) && + ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields || + this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -598,222 +569,150 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "grouped_signers", - Property = "GroupedSigners", - Type = "List", - Value = GroupedSigners, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - } - ); - types.Add( - new OpenApiType() - { - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "grouped_signers", + Property = "GroupedSigners", + Type = "List", + Value = GroupedSigners, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + }); + types.Add(new OpenApiType(){ + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + }); + types.Add(new OpenApiType(){ + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + }); + types.Add(new OpenApiType(){ + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + }); + types.Add(new OpenApiType(){ + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + }); + types.Add(new OpenApiType(){ + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + }); return types; } @@ -823,38 +722,28 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs index d0f172099..f39ecc06d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,17 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestEditEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestEditEmbeddedWithTemplateRequest - : IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestEditEmbeddedWithTemplateRequest : IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestEditEmbeddedWithTemplateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -60,47 +56,25 @@ protected SignatureRequestEditEmbeddedWithTemplateRequest() { } /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). - public SignatureRequestEditEmbeddedWithTemplateRequest( - List templateIds = default(List), - bool allowDecline = false, - List ccs = default(List), - string clientId = default(string), - List customFields = default(List), - List files = default(List), - List fileUrls = default(List), - string message = default(string), - Dictionary metadata = default(Dictionary), - List signers = - default(List), - SubSigningOptions signingOptions = default(SubSigningOptions), - string subject = default(string), - bool testMode = false, - string title = default(string), - bool populateAutoFillFields = false - ) + public SignatureRequestEditEmbeddedWithTemplateRequest(List templateIds = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), List files = default(List), List fileUrls = default(List), string message = default(string), Dictionary metadata = default(Dictionary), List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string subject = default(string), bool testMode = false, string title = default(string), bool populateAutoFillFields = false) { + // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException( - "templateIds is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("templateIds is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null"); } this.TemplateIds = templateIds; // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null"); } this.ClientId = clientId; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException( - "signers is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("signers is a required property for SignatureRequestEditEmbeddedWithTemplateRequest and cannot be null"); } this.Signers = signers; this.AllowDecline = allowDecline; @@ -123,16 +97,11 @@ public SignatureRequestEditEmbeddedWithTemplateRequest( /// String of JSON data representing target object public static SignatureRequestEditEmbeddedWithTemplateRequest Init(string jsonData) { - var obj = - JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestEditEmbeddedWithTemplateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestEditEmbeddedWithTemplateRequest"); } return obj; @@ -275,10 +244,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -302,77 +268,85 @@ public bool Equals(SignatureRequestEditEmbeddedWithTemplateRequest input) { return false; } - return ( - this.TemplateIds == input.TemplateIds - || this.TemplateIds != null - && input.TemplateIds != null - && this.TemplateIds.SequenceEqual(input.TemplateIds) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.Ccs == input.Ccs - || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields - || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + return + ( + this.TemplateIds == input.TemplateIds || + this.TemplateIds != null && + input.TemplateIds != null && + this.TemplateIds.SequenceEqual(input.TemplateIds) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.Ccs == input.Ccs || + this.Ccs != null && + input.Ccs != null && + this.Ccs.SequenceEqual(input.Ccs) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields || + this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) ); } @@ -443,141 +417,96 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - } - ); + types.Add(new OpenApiType(){ + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + }); return types; } @@ -587,38 +516,28 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs index aaf6f65d6..c2b13b0d2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,17 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestEditRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestEditRequest - : IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestEditRequest : IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestEditRequest() { } - /// /// Initializes a new instance of the class. /// @@ -71,37 +67,9 @@ protected SignatureRequestEditRequest() { } /// The title you want to assign to the SignatureRequest.. /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestEditRequest( - List files = default(List), - List fileUrls = default(List), - List signers = default(List), - List groupedSigners = - default(List), - bool allowDecline = false, - bool allowReassign = false, - List attachments = default(List), - List ccEmailAddresses = default(List), - string clientId = default(string), - List customFields = default(List), - SubFieldOptions fieldOptions = default(SubFieldOptions), - List formFieldGroups = default(List), - List formFieldRules = default(List), - List formFieldsPerDocument = - default(List), - bool hideTextTags = false, - bool isQualifiedSignature = false, - bool isEid = false, - string message = default(string), - Dictionary metadata = default(Dictionary), - SubSigningOptions signingOptions = default(SubSigningOptions), - string signingRedirectUrl = default(string), - string subject = default(string), - bool testMode = false, - string title = default(string), - bool useTextTags = false, - int? expiresAt = default(int?) - ) + public SignatureRequestEditRequest(List files = default(List), List fileUrls = default(List), List signers = default(List), List groupedSigners = default(List), bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary metadata = default(Dictionary), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, int? expiresAt = default(int?)) { + this.Files = files; this.FileUrls = fileUrls; this.Signers = signers; @@ -140,9 +108,7 @@ public static SignatureRequestEditRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestEditRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestEditRequest"); } return obj; @@ -373,10 +339,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -400,131 +363,140 @@ public bool Equals(SignatureRequestEditRequest input) { return false; } - return ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.GroupedSigners == input.GroupedSigners - || this.GroupedSigners != null - && input.GroupedSigners != null - && this.GroupedSigners.SequenceEqual(input.GroupedSigners) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.AllowReassign == input.AllowReassign - || this.AllowReassign.Equals(input.AllowReassign) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.CcEmailAddresses == input.CcEmailAddresses - || this.CcEmailAddresses != null - && input.CcEmailAddresses != null - && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.FieldOptions == input.FieldOptions - || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) - ) - && ( - this.FormFieldGroups == input.FormFieldGroups - || this.FormFieldGroups != null - && input.FormFieldGroups != null - && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) - && ( - this.FormFieldRules == input.FormFieldRules - || this.FormFieldRules != null - && input.FormFieldRules != null - && this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) - && ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument - || this.FormFieldsPerDocument != null - && input.FormFieldsPerDocument != null - && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) - && ( - this.HideTextTags == input.HideTextTags - || this.HideTextTags.Equals(input.HideTextTags) - ) - && ( - this.IsQualifiedSignature == input.IsQualifiedSignature - || this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) - ) - && (this.IsEid == input.IsEid || this.IsEid.Equals(input.IsEid)) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.UseTextTags == input.UseTextTags - || this.UseTextTags.Equals(input.UseTextTags) - ) - && ( - this.ExpiresAt == input.ExpiresAt - || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) + return + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.GroupedSigners == input.GroupedSigners || + this.GroupedSigners != null && + input.GroupedSigners != null && + this.GroupedSigners.SequenceEqual(input.GroupedSigners) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.AllowReassign == input.AllowReassign || + this.AllowReassign.Equals(input.AllowReassign) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.CcEmailAddresses == input.CcEmailAddresses || + this.CcEmailAddresses != null && + input.CcEmailAddresses != null && + this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.FieldOptions == input.FieldOptions || + (this.FieldOptions != null && + this.FieldOptions.Equals(input.FieldOptions)) + ) && + ( + this.FormFieldGroups == input.FormFieldGroups || + this.FormFieldGroups != null && + input.FormFieldGroups != null && + this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) && + ( + this.FormFieldRules == input.FormFieldRules || + this.FormFieldRules != null && + input.FormFieldRules != null && + this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) && + ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument || + this.FormFieldsPerDocument != null && + input.FormFieldsPerDocument != null && + this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) && + ( + this.HideTextTags == input.HideTextTags || + this.HideTextTags.Equals(input.HideTextTags) + ) && + ( + this.IsQualifiedSignature == input.IsQualifiedSignature || + this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) + ) && + ( + this.IsEid == input.IsEid || + this.IsEid.Equals(input.IsEid) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.UseTextTags == input.UseTextTags || + this.UseTextTags.Equals(input.UseTextTags) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -627,240 +599,162 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "grouped_signers", - Property = "GroupedSigners", - Type = "List", - Value = GroupedSigners, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - } - ); - types.Add( - new OpenApiType() - { - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_qualified_signature", - Property = "IsQualifiedSignature", - Type = "bool", - Value = IsQualifiedSignature, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_eid", - Property = "IsEid", - Type = "bool", - Value = IsEid, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "grouped_signers", + Property = "GroupedSigners", + Type = "List", + Value = GroupedSigners, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + }); + types.Add(new OpenApiType(){ + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + }); + types.Add(new OpenApiType(){ + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + }); + types.Add(new OpenApiType(){ + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + }); + types.Add(new OpenApiType(){ + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + }); + types.Add(new OpenApiType(){ + Name = "is_qualified_signature", + Property = "IsQualifiedSignature", + Type = "bool", + Value = IsQualifiedSignature, + }); + types.Add(new OpenApiType(){ + Name = "is_eid", + Property = "IsEid", + Type = "bool", + Value = IsEid, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + }); return types; } @@ -870,38 +764,28 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs index 2f1941916..44674918d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,17 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestEditWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestEditWithTemplateRequest - : IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestEditWithTemplateRequest : IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestEditWithTemplateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -62,41 +58,19 @@ protected SignatureRequestEditWithTemplateRequest() { } /// The subject in the email that will be sent to the signers.. /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. - public SignatureRequestEditWithTemplateRequest( - List templateIds = default(List), - bool allowDecline = false, - List ccs = default(List), - string clientId = default(string), - List customFields = default(List), - List files = default(List), - List fileUrls = default(List), - bool isQualifiedSignature = false, - bool isEid = false, - string message = default(string), - Dictionary metadata = default(Dictionary), - List signers = - default(List), - SubSigningOptions signingOptions = default(SubSigningOptions), - string signingRedirectUrl = default(string), - string subject = default(string), - bool testMode = false, - string title = default(string) - ) + public SignatureRequestEditWithTemplateRequest(List templateIds = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), List files = default(List), List fileUrls = default(List), bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary metadata = default(Dictionary), List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string)) { + // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException( - "templateIds is a required property for SignatureRequestEditWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("templateIds is a required property for SignatureRequestEditWithTemplateRequest and cannot be null"); } this.TemplateIds = templateIds; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException( - "signers is a required property for SignatureRequestEditWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("signers is a required property for SignatureRequestEditWithTemplateRequest and cannot be null"); } this.Signers = signers; this.AllowDecline = allowDecline; @@ -122,15 +96,11 @@ public SignatureRequestEditWithTemplateRequest( /// String of JSON data representing target object public static SignatureRequestEditWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestEditWithTemplateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestEditWithTemplateRequest"); } return obj; @@ -290,10 +260,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -317,85 +284,94 @@ public bool Equals(SignatureRequestEditWithTemplateRequest input) { return false; } - return ( - this.TemplateIds == input.TemplateIds - || this.TemplateIds != null - && input.TemplateIds != null - && this.TemplateIds.SequenceEqual(input.TemplateIds) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.Ccs == input.Ccs - || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.IsQualifiedSignature == input.IsQualifiedSignature - || this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) - ) - && (this.IsEid == input.IsEid || this.IsEid.Equals(input.IsEid)) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) + return + ( + this.TemplateIds == input.TemplateIds || + this.TemplateIds != null && + input.TemplateIds != null && + this.TemplateIds.SequenceEqual(input.TemplateIds) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.Ccs == input.Ccs || + this.Ccs != null && + input.Ccs != null && + this.Ccs.SequenceEqual(input.Ccs) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.IsQualifiedSignature == input.IsQualifiedSignature || + this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) + ) && + ( + this.IsEid == input.IsEid || + this.IsEid.Equals(input.IsEid) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) ); } @@ -471,159 +447,108 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_qualified_signature", - Property = "IsQualifiedSignature", - Type = "bool", - Value = IsQualifiedSignature, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_eid", - Property = "IsEid", - Type = "bool", - Value = IsEid, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); + types.Add(new OpenApiType(){ + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "is_qualified_signature", + Property = "IsQualifiedSignature", + Type = "bool", + Value = IsQualifiedSignature, + }); + types.Add(new OpenApiType(){ + Name = "is_eid", + Property = "IsEid", + Type = "bool", + Value = IsEid, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); return types; } @@ -633,38 +558,28 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs index 7d330f00c..2b6c6d163 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestGetResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestGetResponse - : IEquatable, - IValidatableObject + public partial class SignatureRequestGetResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestGetResponse() { } - /// /// Initializes a new instance of the class. /// /// signatureRequest. /// A list of warnings.. - public SignatureRequestGetResponse( - SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), - List warnings = default(List) - ) + public SignatureRequestGetResponse(SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), List warnings = default(List)) { + this.SignatureRequest = signatureRequest; this.Warnings = warnings; } @@ -65,9 +60,7 @@ public static SignatureRequestGetResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestGetResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestGetResponse"); } return obj; @@ -78,6 +71,7 @@ public static SignatureRequestGetResponse Init(string jsonData) /// [DataMember(Name = "signature_request", EmitDefaultValue = true)] public SignatureRequestResponse SignatureRequest { get; set; } + /// /// A list of warnings. @@ -85,6 +79,7 @@ public static SignatureRequestGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -106,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -133,18 +125,17 @@ public bool Equals(SignatureRequestGetResponse input) { return false; } - return ( - this.SignatureRequest == input.SignatureRequest - || ( - this.SignatureRequest != null - && this.SignatureRequest.Equals(input.SignatureRequest) - ) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.SignatureRequest == input.SignatureRequest || + (this.SignatureRequest != null && + this.SignatureRequest.Equals(input.SignatureRequest)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -174,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -184,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "signature_request", - Property = "SignatureRequest", - Type = "SignatureRequestResponse", - Value = SignatureRequest, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "signature_request", + Property = "SignatureRequest", + Type = "SignatureRequestResponse", + Value = SignatureRequest, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs index 6800f1360..05a74cfca 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,29 +31,22 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestListResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestListResponse - : IEquatable, - IValidatableObject + public partial class SignatureRequestListResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestListResponse() { } - /// /// Initializes a new instance of the class. /// /// Contains information about signature requests.. /// listInfo. /// A list of warnings.. - public SignatureRequestListResponse( - List signatureRequests = - default(List), - ListInfoResponse listInfo = default(ListInfoResponse), - List warnings = default(List) - ) + public SignatureRequestListResponse(List signatureRequests = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { + this.SignatureRequests = signatureRequests; this.ListInfo = listInfo; this.Warnings = warnings; @@ -69,9 +62,7 @@ public static SignatureRequestListResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestListResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestListResponse"); } return obj; @@ -83,12 +74,14 @@ public static SignatureRequestListResponse Init(string jsonData) /// Contains information about signature requests. [DataMember(Name = "signature_requests", EmitDefaultValue = true)] public List SignatureRequests { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// A list of warnings. @@ -96,6 +89,7 @@ public static SignatureRequestListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -118,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -145,21 +136,23 @@ public bool Equals(SignatureRequestListResponse input) { return false; } - return ( - this.SignatureRequests == input.SignatureRequests - || this.SignatureRequests != null - && input.SignatureRequests != null - && this.SignatureRequests.SequenceEqual(input.SignatureRequests) - ) - && ( - this.ListInfo == input.ListInfo - || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.SignatureRequests == input.SignatureRequests || + this.SignatureRequests != null && + input.SignatureRequests != null && + this.SignatureRequests.SequenceEqual(input.SignatureRequests) + ) && + ( + this.ListInfo == input.ListInfo || + (this.ListInfo != null && + this.ListInfo.Equals(input.ListInfo)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -193,9 +186,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -203,35 +194,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "signature_requests", - Property = "SignatureRequests", - Type = "List", - Value = SignatureRequests, - } - ); - types.Add( - new OpenApiType() - { - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "signature_requests", + Property = "SignatureRequests", + Type = "List", + Value = SignatureRequests, + }); + types.Add(new OpenApiType(){ + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs index 950d99662..ab313fc4e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,32 +31,25 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestRemindRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestRemindRequest - : IEquatable, - IValidatableObject + public partial class SignatureRequestRemindRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestRemindRequest() { } - /// /// Initializes a new instance of the class. /// /// The email address of the signer to send a reminder to. (required). /// The name of the signer to send a reminder to. Include if two or more signers share an email address.. - public SignatureRequestRemindRequest( - string emailAddress = default(string), - string name = default(string) - ) + public SignatureRequestRemindRequest(string emailAddress = default(string), string name = default(string)) { + // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException( - "emailAddress is a required property for SignatureRequestRemindRequest and cannot be null" - ); + throw new ArgumentNullException("emailAddress is a required property for SignatureRequestRemindRequest and cannot be null"); } this.EmailAddress = emailAddress; this.Name = name; @@ -72,9 +65,7 @@ public static SignatureRequestRemindRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestRemindRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestRemindRequest"); } return obj; @@ -86,6 +77,7 @@ public static SignatureRequestRemindRequest Init(string jsonData) /// The email address of the signer to send a reminder to. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The name of the signer to send a reminder to. Include if two or more signers share an email address. @@ -93,6 +85,7 @@ public static SignatureRequestRemindRequest Init(string jsonData) /// The name of the signer to send a reminder to. Include if two or more signers share an email address. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -114,10 +107,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -141,11 +131,17 @@ public bool Equals(SignatureRequestRemindRequest input) { return false; } - return ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); } /// @@ -174,9 +170,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -184,26 +178,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index ebdbdb4e0..bc12bed71 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponse - : IEquatable, - IValidatableObject + public partial class SignatureRequestResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponse() { } - /// /// Initializes a new instance of the class. /// @@ -69,38 +66,9 @@ protected SignatureRequestResponse() { } /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers.. /// An array of signature objects, 1 for each signer.. /// The ID of the Bulk Send job which sent the signature request, if applicable.. - public SignatureRequestResponse( - bool? testMode = false, - string signatureRequestId = default(string), - string requesterEmailAddress = default(string), - string title = default(string), - string originalTitle = default(string), - string subject = default(string), - string message = default(string), - Object metadata = default(Object), - int createdAt = default(int), - int expiresAt = default(int), - bool isComplete = default(bool), - bool isDeclined = default(bool), - bool hasError = default(bool), - string filesUrl = default(string), - string signingUrl = default(string), - string detailsUrl = default(string), - List ccEmailAddresses = default(List), - string signingRedirectUrl = default(string), - string finalCopyUri = default(string), - List templateIds = default(List), - List customFields = - default(List), - List attachments = - default(List), - List responseData = - default(List), - List signatures = - default(List), - string bulkSendJobId = default(string) - ) + public SignatureRequestResponse(bool? testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Object metadata = default(Object), int createdAt = default(int), int expiresAt = default(int), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) { + // use default value if no "testMode" provided this.TestMode = testMode ?? false; this.SignatureRequestId = signatureRequestId; @@ -139,9 +107,7 @@ public static SignatureRequestResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponse"); } return obj; @@ -153,6 +119,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool? TestMode { get; set; } + /// /// The id of the SignatureRequest. @@ -160,6 +127,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The id of the SignatureRequest. [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } + /// /// The email address of the initiator of the SignatureRequest. @@ -167,6 +135,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The email address of the initiator of the SignatureRequest. [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// The title the specified Account uses for the SignatureRequest. @@ -174,6 +143,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The title the specified Account uses for the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Default Label for account. @@ -181,6 +151,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Default Label for account. [DataMember(Name = "original_title", EmitDefaultValue = true)] public string OriginalTitle { get; set; } + /// /// The subject in the email that was initially sent to the signers. @@ -188,6 +159,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The subject in the email that was initially sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// The custom message in the email that was initially sent to the signers. @@ -195,6 +167,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The custom message in the email that was initially sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// The metadata attached to the signature request. @@ -202,6 +175,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } + /// /// Time the signature request was created. @@ -209,6 +183,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Time the signature request was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } + /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -216,6 +191,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -223,6 +199,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether or not the SignatureRequest has been fully executed by all signers. [DataMember(Name = "is_complete", EmitDefaultValue = true)] public bool IsComplete { get; set; } + /// /// Whether or not the SignatureRequest has been declined by a signer. @@ -230,6 +207,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether or not the SignatureRequest has been declined by a signer. [DataMember(Name = "is_declined", EmitDefaultValue = true)] public bool IsDeclined { get; set; } + /// /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). @@ -237,6 +215,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). [DataMember(Name = "has_error", EmitDefaultValue = true)] public bool HasError { get; set; } + /// /// The URL where a copy of the request's documents can be downloaded. @@ -244,6 +223,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL where a copy of the request's documents can be downloaded. [DataMember(Name = "files_url", EmitDefaultValue = true)] public string FilesUrl { get; set; } + /// /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. @@ -251,6 +231,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. [DataMember(Name = "signing_url", EmitDefaultValue = true)] public string SigningUrl { get; set; } + /// /// The URL where the requester and the signers can view the current status of the SignatureRequest. @@ -258,6 +239,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL where the requester and the signers can view the current status of the SignatureRequest. [DataMember(Name = "details_url", EmitDefaultValue = true)] public string DetailsUrl { get; set; } + /// /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. @@ -265,6 +247,7 @@ public static SignatureRequestResponse Init(string jsonData) /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// The URL you want the signer redirected to after they successfully sign. @@ -272,6 +255,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The URL you want the signer redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The path where the completed document can be downloaded @@ -279,6 +263,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The path where the completed document can be downloaded [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] public string FinalCopyUri { get; set; } + /// /// Templates IDs used in this SignatureRequest (if any). @@ -286,6 +271,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Templates IDs used in this SignatureRequest (if any). [DataMember(Name = "template_ids", EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` @@ -293,6 +279,7 @@ public static SignatureRequestResponse Init(string jsonData) /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Signer attachments. @@ -300,6 +287,7 @@ public static SignatureRequestResponse Init(string jsonData) /// Signer attachments. [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. @@ -307,6 +295,7 @@ public static SignatureRequestResponse Init(string jsonData) /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. [DataMember(Name = "response_data", EmitDefaultValue = true)] public List ResponseData { get; set; } + /// /// An array of signature objects, 1 for each signer. @@ -314,6 +303,7 @@ public static SignatureRequestResponse Init(string jsonData) /// An array of signature objects, 1 for each signer. [DataMember(Name = "signatures", EmitDefaultValue = true)] public List Signatures { get; set; } + /// /// The ID of the Bulk Send job which sent the signature request, if applicable. @@ -321,6 +311,7 @@ public static SignatureRequestResponse Init(string jsonData) /// The ID of the Bulk Send job which sent the signature request, if applicable. [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } + /// /// Returns the string presentation of the object @@ -365,10 +356,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -392,115 +380,132 @@ public bool Equals(SignatureRequestResponse input) { return false; } - return ( - this.TestMode == input.TestMode - || (this.TestMode != null && this.TestMode.Equals(input.TestMode)) - ) - && ( - this.SignatureRequestId == input.SignatureRequestId - || ( - this.SignatureRequestId != null - && this.SignatureRequestId.Equals(input.SignatureRequestId) - ) - ) - && ( - this.RequesterEmailAddress == input.RequesterEmailAddress - || ( - this.RequesterEmailAddress != null - && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) - ) - ) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.OriginalTitle == input.OriginalTitle - || ( - this.OriginalTitle != null && this.OriginalTitle.Equals(input.OriginalTitle) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || (this.Metadata != null && this.Metadata.Equals(input.Metadata)) - ) - && (this.CreatedAt == input.CreatedAt || this.CreatedAt.Equals(input.CreatedAt)) - && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)) - && (this.IsComplete == input.IsComplete || this.IsComplete.Equals(input.IsComplete)) - && (this.IsDeclined == input.IsDeclined || this.IsDeclined.Equals(input.IsDeclined)) - && (this.HasError == input.HasError || this.HasError.Equals(input.HasError)) - && ( - this.FilesUrl == input.FilesUrl - || (this.FilesUrl != null && this.FilesUrl.Equals(input.FilesUrl)) - ) - && ( - this.SigningUrl == input.SigningUrl - || (this.SigningUrl != null && this.SigningUrl.Equals(input.SigningUrl)) - ) - && ( - this.DetailsUrl == input.DetailsUrl - || (this.DetailsUrl != null && this.DetailsUrl.Equals(input.DetailsUrl)) - ) - && ( - this.CcEmailAddresses == input.CcEmailAddresses - || this.CcEmailAddresses != null - && input.CcEmailAddresses != null - && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.FinalCopyUri == input.FinalCopyUri - || (this.FinalCopyUri != null && this.FinalCopyUri.Equals(input.FinalCopyUri)) - ) - && ( - this.TemplateIds == input.TemplateIds - || this.TemplateIds != null - && input.TemplateIds != null - && this.TemplateIds.SequenceEqual(input.TemplateIds) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.ResponseData == input.ResponseData - || this.ResponseData != null - && input.ResponseData != null - && this.ResponseData.SequenceEqual(input.ResponseData) - ) - && ( - this.Signatures == input.Signatures - || this.Signatures != null - && input.Signatures != null - && this.Signatures.SequenceEqual(input.Signatures) - ) - && ( - this.BulkSendJobId == input.BulkSendJobId - || ( - this.BulkSendJobId != null && this.BulkSendJobId.Equals(input.BulkSendJobId) - ) + return + ( + this.TestMode == input.TestMode || + (this.TestMode != null && + this.TestMode.Equals(input.TestMode)) + ) && + ( + this.SignatureRequestId == input.SignatureRequestId || + (this.SignatureRequestId != null && + this.SignatureRequestId.Equals(input.SignatureRequestId)) + ) && + ( + this.RequesterEmailAddress == input.RequesterEmailAddress || + (this.RequesterEmailAddress != null && + this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.OriginalTitle == input.OriginalTitle || + (this.OriginalTitle != null && + this.OriginalTitle.Equals(input.OriginalTitle)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + (this.Metadata != null && + this.Metadata.Equals(input.Metadata)) + ) && + ( + this.CreatedAt == input.CreatedAt || + this.CreatedAt.Equals(input.CreatedAt) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + this.ExpiresAt.Equals(input.ExpiresAt) + ) && + ( + this.IsComplete == input.IsComplete || + this.IsComplete.Equals(input.IsComplete) + ) && + ( + this.IsDeclined == input.IsDeclined || + this.IsDeclined.Equals(input.IsDeclined) + ) && + ( + this.HasError == input.HasError || + this.HasError.Equals(input.HasError) + ) && + ( + this.FilesUrl == input.FilesUrl || + (this.FilesUrl != null && + this.FilesUrl.Equals(input.FilesUrl)) + ) && + ( + this.SigningUrl == input.SigningUrl || + (this.SigningUrl != null && + this.SigningUrl.Equals(input.SigningUrl)) + ) && + ( + this.DetailsUrl == input.DetailsUrl || + (this.DetailsUrl != null && + this.DetailsUrl.Equals(input.DetailsUrl)) + ) && + ( + this.CcEmailAddresses == input.CcEmailAddresses || + this.CcEmailAddresses != null && + input.CcEmailAddresses != null && + this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.FinalCopyUri == input.FinalCopyUri || + (this.FinalCopyUri != null && + this.FinalCopyUri.Equals(input.FinalCopyUri)) + ) && + ( + this.TemplateIds == input.TemplateIds || + this.TemplateIds != null && + input.TemplateIds != null && + this.TemplateIds.SequenceEqual(input.TemplateIds) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.ResponseData == input.ResponseData || + this.ResponseData != null && + input.ResponseData != null && + this.ResponseData.SequenceEqual(input.ResponseData) + ) && + ( + this.Signatures == input.Signatures || + this.Signatures != null && + input.Signatures != null && + this.Signatures.SequenceEqual(input.Signatures) + ) && + ( + this.BulkSendJobId == input.BulkSendJobId || + (this.BulkSendJobId != null && + this.BulkSendJobId.Equals(input.BulkSendJobId)) ); } @@ -607,9 +612,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -617,233 +620,159 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool?", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "signature_request_id", - Property = "SignatureRequestId", - Type = "string", - Value = SignatureRequestId, - } - ); - types.Add( - new OpenApiType() - { - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "original_title", - Property = "OriginalTitle", - Type = "string", - Value = OriginalTitle, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Object", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "created_at", - Property = "CreatedAt", - Type = "int", - Value = CreatedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_complete", - Property = "IsComplete", - Type = "bool", - Value = IsComplete, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_declined", - Property = "IsDeclined", - Type = "bool", - Value = IsDeclined, - } - ); - types.Add( - new OpenApiType() - { - Name = "has_error", - Property = "HasError", - Type = "bool", - Value = HasError, - } - ); - types.Add( - new OpenApiType() - { - Name = "files_url", - Property = "FilesUrl", - Type = "string", - Value = FilesUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_url", - Property = "SigningUrl", - Type = "string", - Value = SigningUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "details_url", - Property = "DetailsUrl", - Type = "string", - Value = DetailsUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "final_copy_uri", - Property = "FinalCopyUri", - Type = "string", - Value = FinalCopyUri, - } - ); - types.Add( - new OpenApiType() - { - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "response_data", - Property = "ResponseData", - Type = "List", - Value = ResponseData, - } - ); - types.Add( - new OpenApiType() - { - Name = "signatures", - Property = "Signatures", - Type = "List", - Value = Signatures, - } - ); - types.Add( - new OpenApiType() - { - Name = "bulk_send_job_id", - Property = "BulkSendJobId", - Type = "string", - Value = BulkSendJobId, - } - ); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool?", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "signature_request_id", + Property = "SignatureRequestId", + Type = "string", + Value = SignatureRequestId, + }); + types.Add(new OpenApiType(){ + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "original_title", + Property = "OriginalTitle", + Type = "string", + Value = OriginalTitle, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Object", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "created_at", + Property = "CreatedAt", + Type = "int", + Value = CreatedAt, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + }); + types.Add(new OpenApiType(){ + Name = "is_complete", + Property = "IsComplete", + Type = "bool", + Value = IsComplete, + }); + types.Add(new OpenApiType(){ + Name = "is_declined", + Property = "IsDeclined", + Type = "bool", + Value = IsDeclined, + }); + types.Add(new OpenApiType(){ + Name = "has_error", + Property = "HasError", + Type = "bool", + Value = HasError, + }); + types.Add(new OpenApiType(){ + Name = "files_url", + Property = "FilesUrl", + Type = "string", + Value = FilesUrl, + }); + types.Add(new OpenApiType(){ + Name = "signing_url", + Property = "SigningUrl", + Type = "string", + Value = SigningUrl, + }); + types.Add(new OpenApiType(){ + Name = "details_url", + Property = "DetailsUrl", + Type = "string", + Value = DetailsUrl, + }); + types.Add(new OpenApiType(){ + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "final_copy_uri", + Property = "FinalCopyUri", + Type = "string", + Value = FinalCopyUri, + }); + types.Add(new OpenApiType(){ + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "response_data", + Property = "ResponseData", + Type = "List", + Value = ResponseData, + }); + types.Add(new OpenApiType(){ + Name = "signatures", + Property = "Signatures", + Type = "List", + Value = Signatures, + }); + types.Add(new OpenApiType(){ + Name = "bulk_send_job_id", + Property = "BulkSendJobId", + Type = "string", + Value = BulkSendJobId, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs index a20f1ec33..757001c70 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseAttachment")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseAttachment - : IEquatable, - IValidatableObject + public partial class SignatureRequestResponseAttachment : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseAttachment() { } - /// /// Initializes a new instance of the class. /// @@ -50,37 +47,25 @@ protected SignatureRequestResponseAttachment() { } /// A boolean value denoting if this attachment is required. (required). /// Instructions for Signer.. /// Timestamp when attachment was uploaded by Signer.. - public SignatureRequestResponseAttachment( - string id = default(string), - string signer = default(string), - string name = default(string), - bool required = default(bool), - string instructions = default(string), - int? uploadedAt = default(int?) - ) + public SignatureRequestResponseAttachment(string id = default(string), string signer = default(string), string name = default(string), bool required = default(bool), string instructions = default(string), int? uploadedAt = default(int?)) { + // to ensure "id" is required (not null) if (id == null) { - throw new ArgumentNullException( - "id is a required property for SignatureRequestResponseAttachment and cannot be null" - ); + throw new ArgumentNullException("id is a required property for SignatureRequestResponseAttachment and cannot be null"); } this.Id = id; // to ensure "signer" is required (not null) if (signer == null) { - throw new ArgumentNullException( - "signer is a required property for SignatureRequestResponseAttachment and cannot be null" - ); + throw new ArgumentNullException("signer is a required property for SignatureRequestResponseAttachment and cannot be null"); } this.Signer = signer; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SignatureRequestResponseAttachment and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SignatureRequestResponseAttachment and cannot be null"); } this.Name = name; this.Required = required; @@ -98,9 +83,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseAttachment" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseAttachment"); } return obj; @@ -112,6 +95,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// The unique ID for this attachment. [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } + /// /// The Signer this attachment is assigned to. @@ -119,6 +103,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// The Signer this attachment is assigned to. [DataMember(Name = "signer", IsRequired = true, EmitDefaultValue = true)] public string Signer { get; set; } + /// /// The name of this attachment. @@ -126,6 +111,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// The name of this attachment. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// A boolean value denoting if this attachment is required. @@ -133,6 +119,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// A boolean value denoting if this attachment is required. [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] public bool Required { get; set; } + /// /// Instructions for Signer. @@ -140,6 +127,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// Instructions for Signer. [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } + /// /// Timestamp when attachment was uploaded by Signer. @@ -147,6 +135,7 @@ public static SignatureRequestResponseAttachment Init(string jsonData) /// Timestamp when attachment was uploaded by Signer. [DataMember(Name = "uploaded_at", EmitDefaultValue = true)] public int? UploadedAt { get; set; } + /// /// Returns the string presentation of the object @@ -172,10 +161,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -199,20 +185,35 @@ public bool Equals(SignatureRequestResponseAttachment input) { return false; } - return (this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id))) - && ( - this.Signer == input.Signer - || (this.Signer != null && this.Signer.Equals(input.Signer)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.Instructions == input.Instructions - || (this.Instructions != null && this.Instructions.Equals(input.Instructions)) - ) - && ( - this.UploadedAt == input.UploadedAt - || (this.UploadedAt != null && this.UploadedAt.Equals(input.UploadedAt)) + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Signer == input.Signer || + (this.Signer != null && + this.Signer.Equals(input.Signer)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.Instructions == input.Instructions || + (this.Instructions != null && + this.Instructions.Equals(input.Instructions)) + ) && + ( + this.UploadedAt == input.UploadedAt || + (this.UploadedAt != null && + this.UploadedAt.Equals(input.UploadedAt)) ); } @@ -255,9 +256,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -265,62 +264,45 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "id", - Property = "Id", - Type = "string", - Value = Id, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "instructions", - Property = "Instructions", - Type = "string", - Value = Instructions, - } - ); - types.Add( - new OpenApiType() - { - Name = "uploaded_at", - Property = "UploadedAt", - Type = "int?", - Value = UploadedAt, - } - ); + types.Add(new OpenApiType(){ + Name = "id", + Property = "Id", + Type = "string", + Value = Id, + }); + types.Add(new OpenApiType(){ + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "instructions", + Property = "Instructions", + Type = "string", + Value = Instructions, + }); + types.Add(new OpenApiType(){ + Name = "uploaded_at", + Property = "UploadedAt", + Type = "int?", + Value = UploadedAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs index 4da3b6b3c..0b45e5aa3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -35,16 +35,13 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseCustomFieldBase - : IEquatable, - IValidatableObject + public partial class SignatureRequestResponseCustomFieldBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseCustomFieldBase() { } - /// /// Initializes a new instance of the class. /// @@ -53,28 +50,19 @@ protected SignatureRequestResponseCustomFieldBase() { } /// A boolean value denoting if this field is required.. /// The unique ID for this field.. /// The name of the Role that is able to edit this field.. - public SignatureRequestResponseCustomFieldBase( - string type = default(string), - string name = default(string), - bool required = default(bool), - string apiId = default(string), - string editor = default(string) - ) + public SignatureRequestResponseCustomFieldBase(string type = default(string), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) { + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SignatureRequestResponseCustomFieldBase and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SignatureRequestResponseCustomFieldBase and cannot be null"); } this.Type = type; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SignatureRequestResponseCustomFieldBase and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SignatureRequestResponseCustomFieldBase and cannot be null"); } this.Name = name; this.Required = required; @@ -88,15 +76,11 @@ public SignatureRequestResponseCustomFieldBase( /// String of JSON data representing target object public static SignatureRequestResponseCustomFieldBase Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldBase" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldBase"); } return obj; @@ -108,6 +92,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// The name of the Custom Field. @@ -115,6 +100,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The name of the Custom Field. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// A boolean value denoting if this field is required. @@ -122,6 +108,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// A boolean value denoting if this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The unique ID for this field. @@ -129,6 +116,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The name of the Role that is able to edit this field. @@ -136,6 +124,7 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) /// The name of the Role that is able to edit this field. [DataMember(Name = "editor", EmitDefaultValue = true)] public string Editor { get; set; } + /// /// Returns the string presentation of the object @@ -160,10 +149,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -187,16 +173,30 @@ public bool Equals(SignatureRequestResponseCustomFieldBase input) { return false; } - return (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && ( - this.Editor == input.Editor - || (this.Editor != null && this.Editor.Equals(input.Editor)) + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Editor == input.Editor || + (this.Editor != null && + this.Editor.Equals(input.Editor)) ); } @@ -235,9 +235,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -255,53 +253,39 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "editor", - Property = "Editor", - Type = "string", - Value = Editor, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "editor", + Property = "Editor", + Type = "string", + Value = Editor, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs index 4126e608b..1e69eed13 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseCustomFieldCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseCustomFieldCheckbox - : SignatureRequestResponseCustomFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseCustomFieldCheckbox : SignatureRequestResponseCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseCustomFieldCheckbox() { } - /// /// Initializes a new instance of the class. /// @@ -52,26 +47,17 @@ protected SignatureRequestResponseCustomFieldCheckbox() { } /// A boolean value denoting if this field is required.. /// The unique ID for this field.. /// The name of the Role that is able to edit this field.. - public SignatureRequestResponseCustomFieldCheckbox( - string type = @"checkbox", - bool value = default(bool), - string name = default(string), - bool required = default(bool), - string apiId = default(string), - string editor = default(string) - ) + public SignatureRequestResponseCustomFieldCheckbox(string type = @"checkbox", bool value = default(bool), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) { this.Name = name; this.Required = required; this.ApiId = apiId; this.Editor = editor; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SignatureRequestResponseCustomFieldCheckbox and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SignatureRequestResponseCustomFieldCheckbox and cannot be null"); } this.Type = type; this.Value = value; @@ -83,15 +69,11 @@ public SignatureRequestResponseCustomFieldCheckbox( /// String of JSON data representing target object public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldCheckbox" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldCheckbox"); } return obj; @@ -103,6 +85,7 @@ public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) /// The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// A true/false for checkbox fields @@ -110,6 +93,7 @@ public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) /// A true/false for checkbox fields [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } + /// /// Returns the string presentation of the object @@ -132,10 +116,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -159,10 +140,16 @@ public bool Equals(SignatureRequestResponseCustomFieldCheckbox input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && (this.Value == input.Value || this.Value.Equals(input.Value)); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + this.Value.Equals(input.Value) + ); } /// @@ -188,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -212,26 +197,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "bool", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "bool", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs index 037ae8fec..b037de58a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseCustomFieldText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseCustomFieldText - : SignatureRequestResponseCustomFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseCustomFieldText : SignatureRequestResponseCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseCustomFieldText() { } - /// /// Initializes a new instance of the class. /// @@ -52,26 +47,17 @@ protected SignatureRequestResponseCustomFieldText() { } /// A boolean value denoting if this field is required.. /// The unique ID for this field.. /// The name of the Role that is able to edit this field.. - public SignatureRequestResponseCustomFieldText( - string type = @"text", - string value = default(string), - string name = default(string), - bool required = default(bool), - string apiId = default(string), - string editor = default(string) - ) + public SignatureRequestResponseCustomFieldText(string type = @"text", string value = default(string), string name = default(string), bool required = default(bool), string apiId = default(string), string editor = default(string)) { this.Name = name; this.Required = required; this.ApiId = apiId; this.Editor = editor; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SignatureRequestResponseCustomFieldText and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SignatureRequestResponseCustomFieldText and cannot be null"); } this.Type = type; this.Value = value; @@ -83,15 +69,11 @@ public SignatureRequestResponseCustomFieldText( /// String of JSON data representing target object public static SignatureRequestResponseCustomFieldText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldText" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseCustomFieldText"); } return obj; @@ -103,6 +85,7 @@ public static SignatureRequestResponseCustomFieldText Init(string jsonData) /// The type of this Custom Field. Only 'text' and 'checkbox' are currently supported. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// A text string for text fields @@ -110,6 +93,7 @@ public static SignatureRequestResponseCustomFieldText Init(string jsonData) /// A text string for text fields [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -132,10 +116,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -159,12 +140,16 @@ public bool Equals(SignatureRequestResponseCustomFieldText input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -194,9 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -218,26 +201,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs index 98f612ae8..fc25c94fb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -42,6 +42,7 @@ public enum SignatureRequestResponseCustomFieldTypeEnum /// Enum Checkbox for value: checkbox /// [EnumMember(Value = "checkbox")] - Checkbox = 2, + Checkbox = 2 } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs index c442bc338..c1846dcc4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -33,10 +33,7 @@ namespace Dropbox.Sign.Model [DataContract(Name = "SignatureRequestResponseDataBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType( - typeof(SignatureRequestResponseDataValueCheckboxMerge), - "checkbox-merge" - )] + [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueCheckboxMerge), "checkbox-merge")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDateSigned), "date_signed")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueDropdown), "dropdown")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueInitials), "initials")] @@ -45,16 +42,13 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueText), "text")] [JsonSubtypes.KnownSubType(typeof(SignatureRequestResponseDataValueTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataBase - : IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataBase() { } - /// /// Initializes a new instance of the class. /// @@ -63,14 +57,9 @@ protected SignatureRequestResponseDataBase() { } /// The name of the form field.. /// A boolean value denoting if this field is required.. /// type. - public SignatureRequestResponseDataBase( - string apiId = default(string), - string signatureId = default(string), - string name = default(string), - bool required = default(bool), - string type = default(string) - ) + public SignatureRequestResponseDataBase(string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool), string type = default(string)) { + this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; @@ -88,9 +77,7 @@ public static SignatureRequestResponseDataBase Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataBase" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataBase"); } return obj; @@ -102,6 +89,7 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The ID of the signature to which this response is linked. @@ -109,6 +97,7 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// The ID of the signature to which this response is linked. [DataMember(Name = "signature_id", EmitDefaultValue = true)] public string SignatureId { get; set; } + /// /// The name of the form field. @@ -116,6 +105,7 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// The name of the form field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// A boolean value denoting if this field is required. @@ -123,12 +113,14 @@ public static SignatureRequestResponseDataBase Init(string jsonData) /// A boolean value denoting if this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// Gets or Sets Type /// [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -153,10 +145,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -180,17 +169,31 @@ public bool Equals(SignatureRequestResponseDataBase input) { return false; } - return ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && ( - this.SignatureId == input.SignatureId - || (this.SignatureId != null && this.SignatureId.Equals(input.SignatureId)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.SignatureId == input.SignatureId || + (this.SignatureId != null && + this.SignatureId.Equals(input.SignatureId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -228,9 +231,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -248,53 +249,39 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "signature_id", - Property = "SignatureId", - Type = "string", - Value = SignatureId, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "signature_id", + Property = "SignatureId", + Type = "string", + Value = SignatureId, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs index 79e95d946..25f045437 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -84,6 +84,7 @@ public enum SignatureRequestResponseDataTypeEnum /// Enum CheckboxMerge for value: checkbox-merge /// [EnumMember(Value = "checkbox-merge")] - CheckboxMerge = 9, + CheckboxMerge = 9 } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs index 282a115be..56a568383 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueCheckbox - : SignatureRequestResponseDataBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataValueCheckbox : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueCheckbox() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +47,13 @@ protected SignatureRequestResponseDataValueCheckbox() { } /// 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 SignatureRequestResponseDataValueCheckbox( - string type = @"checkbox", - bool value = default(bool), - string apiId = default(string), - string signatureId = default(string), - string name = default(string), - bool required = default(bool) - ) + public SignatureRequestResponseDataValueCheckbox(string type = @"checkbox", bool value = default(bool), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "checkbox"; this.Value = value; @@ -77,15 +65,11 @@ public SignatureRequestResponseDataValueCheckbox( /// String of JSON data representing target object public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueCheckbox" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueCheckbox"); } return obj; @@ -97,6 +81,7 @@ public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) /// A yes/no checkbox [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -104,6 +89,7 @@ public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,10 +136,16 @@ public bool Equals(SignatureRequestResponseDataValueCheckbox input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && (this.Value == input.Value || this.Value.Equals(input.Value)); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + this.Value.Equals(input.Value) + ); } /// @@ -182,9 +171,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -206,26 +193,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "bool", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "bool", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs index 384b0bcc1..209028568 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueCheckboxMerge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueCheckboxMerge - : SignatureRequestResponseDataBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataValueCheckboxMerge : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueCheckboxMerge() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +47,13 @@ protected SignatureRequestResponseDataValueCheckboxMerge() { } /// 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 SignatureRequestResponseDataValueCheckboxMerge( - string type = @"checkbox-merge", - string value = default(string), - string apiId = default(string), - string signatureId = default(string), - string name = default(string), - bool required = default(bool) - ) + public SignatureRequestResponseDataValueCheckboxMerge(string type = @"checkbox-merge", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "checkbox-merge"; this.Value = value; @@ -77,15 +65,11 @@ public SignatureRequestResponseDataValueCheckboxMerge( /// String of JSON data representing target object public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueCheckboxMerge" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueCheckboxMerge"); } return obj; @@ -97,6 +81,7 @@ public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonDat /// A checkbox field that has default value set by the api [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -104,6 +89,7 @@ public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonDat /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,12 +136,16 @@ public bool Equals(SignatureRequestResponseDataValueCheckboxMerge input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -188,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -212,26 +197,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs index 88cec3189..1229c2424 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueDateSigned")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueDateSigned - : SignatureRequestResponseDataBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataValueDateSigned : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueDateSigned() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +47,13 @@ protected SignatureRequestResponseDataValueDateSigned() { } /// 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 SignatureRequestResponseDataValueDateSigned( - string type = @"date_signed", - string value = default(string), - string apiId = default(string), - string signatureId = default(string), - string name = default(string), - bool required = default(bool) - ) + public SignatureRequestResponseDataValueDateSigned(string type = @"date_signed", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "date_signed"; this.Value = value; @@ -77,15 +65,11 @@ public SignatureRequestResponseDataValueDateSigned( /// String of JSON data representing target object public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueDateSigned" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueDateSigned"); } return obj; @@ -97,6 +81,7 @@ public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) /// A date [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -104,6 +89,7 @@ public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,12 +136,16 @@ public bool Equals(SignatureRequestResponseDataValueDateSigned input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -188,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -212,26 +197,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs index 2bf613724..d6061231a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueDropdown")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueDropdown - : SignatureRequestResponseDataBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataValueDropdown : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueDropdown() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +47,13 @@ protected SignatureRequestResponseDataValueDropdown() { } /// 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 SignatureRequestResponseDataValueDropdown( - string type = @"dropdown", - string value = default(string), - string apiId = default(string), - string signatureId = default(string), - string name = default(string), - bool required = default(bool) - ) + public SignatureRequestResponseDataValueDropdown(string type = @"dropdown", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "dropdown"; this.Value = value; @@ -77,15 +65,11 @@ public SignatureRequestResponseDataValueDropdown( /// String of JSON data representing target object public static SignatureRequestResponseDataValueDropdown Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueDropdown" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueDropdown"); } return obj; @@ -97,6 +81,7 @@ public static SignatureRequestResponseDataValueDropdown Init(string jsonData) /// An input field for dropdowns [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -104,6 +89,7 @@ public static SignatureRequestResponseDataValueDropdown Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,12 +136,16 @@ public bool Equals(SignatureRequestResponseDataValueDropdown input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -188,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -212,26 +197,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index e5053afe6..92a7b8fd7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueInitials")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueInitials - : SignatureRequestResponseDataBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataValueInitials : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueInitials() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +47,13 @@ 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), - 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), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "initials"; this.Value = value; @@ -77,15 +65,11 @@ public SignatureRequestResponseDataValueInitials( /// String of JSON data representing target object public static SignatureRequestResponseDataValueInitials Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueInitials" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueInitials"); } return obj; @@ -97,6 +81,7 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) /// An input field for initials [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -104,6 +89,7 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,12 +136,16 @@ public bool Equals(SignatureRequestResponseDataValueInitials input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -188,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -212,26 +197,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs index 8ce6ec55c..565377f5b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueRadio")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueRadio - : SignatureRequestResponseDataBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataValueRadio : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueRadio() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +47,13 @@ protected SignatureRequestResponseDataValueRadio() { } /// 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 SignatureRequestResponseDataValueRadio( - string type = @"radio", - bool value = default(bool), - string apiId = default(string), - string signatureId = default(string), - string name = default(string), - bool required = default(bool) - ) + public SignatureRequestResponseDataValueRadio(string type = @"radio", bool value = default(bool), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "radio"; this.Value = value; @@ -77,15 +65,11 @@ public SignatureRequestResponseDataValueRadio( /// String of JSON data representing target object public static SignatureRequestResponseDataValueRadio Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueRadio" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueRadio"); } return obj; @@ -97,6 +81,7 @@ public static SignatureRequestResponseDataValueRadio Init(string jsonData) /// An input field for radios [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -104,6 +89,7 @@ public static SignatureRequestResponseDataValueRadio Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,10 +136,16 @@ public bool Equals(SignatureRequestResponseDataValueRadio input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && (this.Value == input.Value || this.Value.Equals(input.Value)); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + this.Value.Equals(input.Value) + ); } /// @@ -182,9 +171,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -206,26 +193,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "bool", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "bool", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index 8fe0ffd6a..28b9e5a03 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueSignature")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueSignature - : SignatureRequestResponseDataBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataValueSignature : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueSignature() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +47,13 @@ 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), - 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), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "signature"; this.Value = value; @@ -77,15 +65,11 @@ public SignatureRequestResponseDataValueSignature( /// String of JSON data representing target object public static SignatureRequestResponseDataValueSignature Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueSignature" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueSignature"); } return obj; @@ -97,6 +81,7 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) /// A signature input field [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -104,6 +89,7 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,12 +136,16 @@ public bool Equals(SignatureRequestResponseDataValueSignature input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -188,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -212,26 +197,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs index 651ca8c90..84a9330af 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueText - : SignatureRequestResponseDataBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataValueText : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueText() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +47,13 @@ protected SignatureRequestResponseDataValueText() { } /// 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 SignatureRequestResponseDataValueText( - string type = @"text", - string value = default(string), - string apiId = default(string), - string signatureId = default(string), - string name = default(string), - bool required = default(bool) - ) + public SignatureRequestResponseDataValueText(string type = @"text", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "text"; this.Value = value; @@ -77,15 +65,11 @@ public SignatureRequestResponseDataValueText( /// String of JSON data representing target object public static SignatureRequestResponseDataValueText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueText" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueText"); } return obj; @@ -97,6 +81,7 @@ public static SignatureRequestResponseDataValueText Init(string jsonData) /// A text input field [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -104,6 +89,7 @@ public static SignatureRequestResponseDataValueText Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,12 +136,16 @@ public bool Equals(SignatureRequestResponseDataValueText input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -188,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -212,26 +197,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs index 9338cb57e..fa93108e2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseDataValueTextMerge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseDataValueTextMerge - : SignatureRequestResponseDataBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SignatureRequestResponseDataValueTextMerge : SignatureRequestResponseDataBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseDataValueTextMerge() { } - /// /// Initializes a new instance of the class. /// @@ -52,20 +47,13 @@ protected SignatureRequestResponseDataValueTextMerge() { } /// 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 SignatureRequestResponseDataValueTextMerge( - string type = @"text-merge", - string value = default(string), - string apiId = default(string), - string signatureId = default(string), - string name = default(string), - bool required = default(bool) - ) + public SignatureRequestResponseDataValueTextMerge(string type = @"text-merge", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "text-merge"; this.Value = value; @@ -77,15 +65,11 @@ public SignatureRequestResponseDataValueTextMerge( /// String of JSON data representing target object public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseDataValueTextMerge" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseDataValueTextMerge"); } return obj; @@ -97,6 +81,7 @@ public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) /// A text field that has default text set by the api [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } + /// /// The value of the form field. @@ -104,6 +89,7 @@ public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -126,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -153,12 +136,16 @@ public bool Equals(SignatureRequestResponseDataValueTextMerge input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -188,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -212,26 +197,21 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs index 902aea4ad..ddb7c147b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestResponseSignatures")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestResponseSignatures - : IEquatable, - IValidatableObject + public partial class SignatureRequestResponseSignatures : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestResponseSignatures() { } - /// /// Initializes a new instance of the class. /// @@ -63,28 +60,9 @@ protected SignatureRequestResponseSignatures() { } /// Reason provided by original signer who reassigned to this signer.. /// Previous signature identifier.. /// Error message pertaining to this signer, or null.. - public SignatureRequestResponseSignatures( - string signatureId = default(string), - string signerGroupGuid = default(string), - string signerEmailAddress = default(string), - string signerName = default(string), - string signerRole = default(string), - int? order = default(int?), - string statusCode = default(string), - string declineReason = default(string), - int? signedAt = default(int?), - int? lastViewedAt = default(int?), - int? lastRemindedAt = default(int?), - bool hasPin = default(bool), - bool? hasSmsAuth = default(bool?), - bool? hasSmsDelivery = default(bool?), - string smsPhoneNumber = default(string), - string reassignedBy = default(string), - string reassignmentReason = default(string), - string reassignedFrom = default(string), - string error = default(string) - ) + public SignatureRequestResponseSignatures(string signatureId = default(string), string signerGroupGuid = default(string), string signerEmailAddress = default(string), string signerName = default(string), string signerRole = default(string), int? order = default(int?), string statusCode = default(string), string declineReason = default(string), int? signedAt = default(int?), int? lastViewedAt = default(int?), int? lastRemindedAt = default(int?), bool hasPin = default(bool), bool? hasSmsAuth = default(bool?), bool? hasSmsDelivery = default(bool?), string smsPhoneNumber = default(string), string reassignedBy = default(string), string reassignmentReason = default(string), string reassignedFrom = default(string), string error = default(string)) { + this.SignatureId = signatureId; this.SignerGroupGuid = signerGroupGuid; this.SignerEmailAddress = signerEmailAddress; @@ -116,9 +94,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestResponseSignatures" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestResponseSignatures"); } return obj; @@ -130,6 +106,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Signature identifier. [DataMember(Name = "signature_id", EmitDefaultValue = true)] public string SignatureId { get; set; } + /// /// Signer Group GUID @@ -137,6 +114,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Signer Group GUID [DataMember(Name = "signer_group_guid", EmitDefaultValue = true)] public string SignerGroupGuid { get; set; } + /// /// The email address of the signer. @@ -144,6 +122,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The email address of the signer. [DataMember(Name = "signer_email_address", EmitDefaultValue = true)] public string SignerEmailAddress { get; set; } + /// /// The name of the signer. @@ -151,6 +130,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The name of the signer. [DataMember(Name = "signer_name", EmitDefaultValue = true)] public string SignerName { get; set; } + /// /// The role of the signer. @@ -158,6 +138,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The role of the signer. [DataMember(Name = "signer_role", EmitDefaultValue = true)] public string SignerRole { get; set; } + /// /// If signer order is assigned this is the 0-based index for this signer. @@ -165,6 +146,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// If signer order is assigned this is the 0-based index for this signer. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// The current status of the signature. eg: awaiting_signature, signed, declined. @@ -172,6 +154,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The current status of the signature. eg: awaiting_signature, signed, declined. [DataMember(Name = "status_code", EmitDefaultValue = true)] public string StatusCode { get; set; } + /// /// The reason provided by the signer for declining the request. @@ -179,6 +162,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The reason provided by the signer for declining the request. [DataMember(Name = "decline_reason", EmitDefaultValue = true)] public string DeclineReason { get; set; } + /// /// Time that the document was signed or null. @@ -186,6 +170,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Time that the document was signed or null. [DataMember(Name = "signed_at", EmitDefaultValue = true)] public int? SignedAt { get; set; } + /// /// The time that the document was last viewed by this signer or null. @@ -193,6 +178,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The time that the document was last viewed by this signer or null. [DataMember(Name = "last_viewed_at", EmitDefaultValue = true)] public int? LastViewedAt { get; set; } + /// /// The time the last reminder email was sent to the signer or null. @@ -200,6 +186,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The time the last reminder email was sent to the signer or null. [DataMember(Name = "last_reminded_at", EmitDefaultValue = true)] public int? LastRemindedAt { get; set; } + /// /// Boolean to indicate whether this signature requires a PIN to access. @@ -207,6 +194,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Boolean to indicate whether this signature requires a PIN to access. [DataMember(Name = "has_pin", EmitDefaultValue = true)] public bool HasPin { get; set; } + /// /// Boolean to indicate whether this signature has SMS authentication enabled. @@ -214,6 +202,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Boolean to indicate whether this signature has SMS authentication enabled. [DataMember(Name = "has_sms_auth", EmitDefaultValue = true)] public bool? HasSmsAuth { get; set; } + /// /// Boolean to indicate whether this signature has SMS delivery enabled. @@ -221,6 +210,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Boolean to indicate whether this signature has SMS delivery enabled. [DataMember(Name = "has_sms_delivery", EmitDefaultValue = true)] public bool? HasSmsDelivery { get; set; } + /// /// The SMS phone number used for authentication or signature request delivery. @@ -228,6 +218,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// The SMS phone number used for authentication or signature request delivery. [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } + /// /// Email address of original signer who reassigned to this signer. @@ -235,6 +226,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Email address of original signer who reassigned to this signer. [DataMember(Name = "reassigned_by", EmitDefaultValue = true)] public string ReassignedBy { get; set; } + /// /// Reason provided by original signer who reassigned to this signer. @@ -242,6 +234,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Reason provided by original signer who reassigned to this signer. [DataMember(Name = "reassignment_reason", EmitDefaultValue = true)] public string ReassignmentReason { get; set; } + /// /// Previous signature identifier. @@ -249,6 +242,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Previous signature identifier. [DataMember(Name = "reassigned_from", EmitDefaultValue = true)] public string ReassignedFrom { get; set; } + /// /// Error message pertaining to this signer, or null. @@ -256,6 +250,7 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Error message pertaining to this signer, or null. [DataMember(Name = "error", EmitDefaultValue = true)] public string Error { get; set; } + /// /// Returns the string presentation of the object @@ -294,10 +289,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -321,101 +313,100 @@ public bool Equals(SignatureRequestResponseSignatures input) { return false; } - return ( - this.SignatureId == input.SignatureId - || (this.SignatureId != null && this.SignatureId.Equals(input.SignatureId)) - ) - && ( - this.SignerGroupGuid == input.SignerGroupGuid - || ( - this.SignerGroupGuid != null - && this.SignerGroupGuid.Equals(input.SignerGroupGuid) - ) - ) - && ( - this.SignerEmailAddress == input.SignerEmailAddress - || ( - this.SignerEmailAddress != null - && this.SignerEmailAddress.Equals(input.SignerEmailAddress) - ) - ) - && ( - this.SignerName == input.SignerName - || (this.SignerName != null && this.SignerName.Equals(input.SignerName)) - ) - && ( - this.SignerRole == input.SignerRole - || (this.SignerRole != null && this.SignerRole.Equals(input.SignerRole)) - ) - && ( - this.Order == input.Order - || (this.Order != null && this.Order.Equals(input.Order)) - ) - && ( - this.StatusCode == input.StatusCode - || (this.StatusCode != null && this.StatusCode.Equals(input.StatusCode)) - ) - && ( - this.DeclineReason == input.DeclineReason - || ( - this.DeclineReason != null && this.DeclineReason.Equals(input.DeclineReason) - ) - ) - && ( - this.SignedAt == input.SignedAt - || (this.SignedAt != null && this.SignedAt.Equals(input.SignedAt)) - ) - && ( - this.LastViewedAt == input.LastViewedAt - || (this.LastViewedAt != null && this.LastViewedAt.Equals(input.LastViewedAt)) - ) - && ( - this.LastRemindedAt == input.LastRemindedAt - || ( - this.LastRemindedAt != null - && this.LastRemindedAt.Equals(input.LastRemindedAt) - ) - ) - && (this.HasPin == input.HasPin || this.HasPin.Equals(input.HasPin)) - && ( - this.HasSmsAuth == input.HasSmsAuth - || (this.HasSmsAuth != null && this.HasSmsAuth.Equals(input.HasSmsAuth)) - ) - && ( - this.HasSmsDelivery == input.HasSmsDelivery - || ( - this.HasSmsDelivery != null - && this.HasSmsDelivery.Equals(input.HasSmsDelivery) - ) - ) - && ( - this.SmsPhoneNumber == input.SmsPhoneNumber - || ( - this.SmsPhoneNumber != null - && this.SmsPhoneNumber.Equals(input.SmsPhoneNumber) - ) - ) - && ( - this.ReassignedBy == input.ReassignedBy - || (this.ReassignedBy != null && this.ReassignedBy.Equals(input.ReassignedBy)) - ) - && ( - this.ReassignmentReason == input.ReassignmentReason - || ( - this.ReassignmentReason != null - && this.ReassignmentReason.Equals(input.ReassignmentReason) - ) - ) - && ( - this.ReassignedFrom == input.ReassignedFrom - || ( - this.ReassignedFrom != null - && this.ReassignedFrom.Equals(input.ReassignedFrom) - ) - ) - && ( - this.Error == input.Error - || (this.Error != null && this.Error.Equals(input.Error)) + return + ( + this.SignatureId == input.SignatureId || + (this.SignatureId != null && + this.SignatureId.Equals(input.SignatureId)) + ) && + ( + this.SignerGroupGuid == input.SignerGroupGuid || + (this.SignerGroupGuid != null && + this.SignerGroupGuid.Equals(input.SignerGroupGuid)) + ) && + ( + this.SignerEmailAddress == input.SignerEmailAddress || + (this.SignerEmailAddress != null && + this.SignerEmailAddress.Equals(input.SignerEmailAddress)) + ) && + ( + this.SignerName == input.SignerName || + (this.SignerName != null && + this.SignerName.Equals(input.SignerName)) + ) && + ( + this.SignerRole == input.SignerRole || + (this.SignerRole != null && + this.SignerRole.Equals(input.SignerRole)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.StatusCode == input.StatusCode || + (this.StatusCode != null && + this.StatusCode.Equals(input.StatusCode)) + ) && + ( + this.DeclineReason == input.DeclineReason || + (this.DeclineReason != null && + this.DeclineReason.Equals(input.DeclineReason)) + ) && + ( + this.SignedAt == input.SignedAt || + (this.SignedAt != null && + this.SignedAt.Equals(input.SignedAt)) + ) && + ( + this.LastViewedAt == input.LastViewedAt || + (this.LastViewedAt != null && + this.LastViewedAt.Equals(input.LastViewedAt)) + ) && + ( + this.LastRemindedAt == input.LastRemindedAt || + (this.LastRemindedAt != null && + this.LastRemindedAt.Equals(input.LastRemindedAt)) + ) && + ( + this.HasPin == input.HasPin || + this.HasPin.Equals(input.HasPin) + ) && + ( + this.HasSmsAuth == input.HasSmsAuth || + (this.HasSmsAuth != null && + this.HasSmsAuth.Equals(input.HasSmsAuth)) + ) && + ( + this.HasSmsDelivery == input.HasSmsDelivery || + (this.HasSmsDelivery != null && + this.HasSmsDelivery.Equals(input.HasSmsDelivery)) + ) && + ( + this.SmsPhoneNumber == input.SmsPhoneNumber || + (this.SmsPhoneNumber != null && + this.SmsPhoneNumber.Equals(input.SmsPhoneNumber)) + ) && + ( + this.ReassignedBy == input.ReassignedBy || + (this.ReassignedBy != null && + this.ReassignedBy.Equals(input.ReassignedBy)) + ) && + ( + this.ReassignmentReason == input.ReassignmentReason || + (this.ReassignmentReason != null && + this.ReassignmentReason.Equals(input.ReassignmentReason)) + ) && + ( + this.ReassignedFrom == input.ReassignedFrom || + (this.ReassignedFrom != null && + this.ReassignedFrom.Equals(input.ReassignedFrom)) + ) && + ( + this.Error == input.Error || + (this.Error != null && + this.Error.Equals(input.Error)) ); } @@ -510,9 +501,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -520,179 +509,123 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "signature_id", - Property = "SignatureId", - Type = "string", - Value = SignatureId, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_group_guid", - Property = "SignerGroupGuid", - Type = "string", - Value = SignerGroupGuid, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_email_address", - Property = "SignerEmailAddress", - Type = "string", - Value = SignerEmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_name", - Property = "SignerName", - Type = "string", - Value = SignerName, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_role", - Property = "SignerRole", - Type = "string", - Value = SignerRole, - } - ); - types.Add( - new OpenApiType() - { - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - } - ); - types.Add( - new OpenApiType() - { - Name = "status_code", - Property = "StatusCode", - Type = "string", - Value = StatusCode, - } - ); - types.Add( - new OpenApiType() - { - Name = "decline_reason", - Property = "DeclineReason", - Type = "string", - Value = DeclineReason, - } - ); - types.Add( - new OpenApiType() - { - Name = "signed_at", - Property = "SignedAt", - Type = "int?", - Value = SignedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "last_viewed_at", - Property = "LastViewedAt", - Type = "int?", - Value = LastViewedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "last_reminded_at", - Property = "LastRemindedAt", - Type = "int?", - Value = LastRemindedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "has_pin", - Property = "HasPin", - Type = "bool", - Value = HasPin, - } - ); - types.Add( - new OpenApiType() - { - Name = "has_sms_auth", - Property = "HasSmsAuth", - Type = "bool?", - Value = HasSmsAuth, - } - ); - types.Add( - new OpenApiType() - { - Name = "has_sms_delivery", - Property = "HasSmsDelivery", - Type = "bool?", - Value = HasSmsDelivery, - } - ); - types.Add( - new OpenApiType() - { - Name = "sms_phone_number", - Property = "SmsPhoneNumber", - Type = "string", - Value = SmsPhoneNumber, - } - ); - types.Add( - new OpenApiType() - { - Name = "reassigned_by", - Property = "ReassignedBy", - Type = "string", - Value = ReassignedBy, - } - ); - types.Add( - new OpenApiType() - { - Name = "reassignment_reason", - Property = "ReassignmentReason", - Type = "string", - Value = ReassignmentReason, - } - ); - types.Add( - new OpenApiType() - { - Name = "reassigned_from", - Property = "ReassignedFrom", - Type = "string", - Value = ReassignedFrom, - } - ); - types.Add( - new OpenApiType() - { - Name = "error", - Property = "Error", - Type = "string", - Value = Error, - } - ); + types.Add(new OpenApiType(){ + Name = "signature_id", + Property = "SignatureId", + Type = "string", + Value = SignatureId, + }); + types.Add(new OpenApiType(){ + Name = "signer_group_guid", + Property = "SignerGroupGuid", + Type = "string", + Value = SignerGroupGuid, + }); + types.Add(new OpenApiType(){ + Name = "signer_email_address", + Property = "SignerEmailAddress", + Type = "string", + Value = SignerEmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "signer_name", + Property = "SignerName", + Type = "string", + Value = SignerName, + }); + types.Add(new OpenApiType(){ + Name = "signer_role", + Property = "SignerRole", + Type = "string", + Value = SignerRole, + }); + types.Add(new OpenApiType(){ + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + }); + types.Add(new OpenApiType(){ + Name = "status_code", + Property = "StatusCode", + Type = "string", + Value = StatusCode, + }); + types.Add(new OpenApiType(){ + Name = "decline_reason", + Property = "DeclineReason", + Type = "string", + Value = DeclineReason, + }); + types.Add(new OpenApiType(){ + Name = "signed_at", + Property = "SignedAt", + Type = "int?", + Value = SignedAt, + }); + types.Add(new OpenApiType(){ + Name = "last_viewed_at", + Property = "LastViewedAt", + Type = "int?", + Value = LastViewedAt, + }); + types.Add(new OpenApiType(){ + Name = "last_reminded_at", + Property = "LastRemindedAt", + Type = "int?", + Value = LastRemindedAt, + }); + types.Add(new OpenApiType(){ + Name = "has_pin", + Property = "HasPin", + Type = "bool", + Value = HasPin, + }); + types.Add(new OpenApiType(){ + Name = "has_sms_auth", + Property = "HasSmsAuth", + Type = "bool?", + Value = HasSmsAuth, + }); + types.Add(new OpenApiType(){ + Name = "has_sms_delivery", + Property = "HasSmsDelivery", + Type = "bool?", + Value = HasSmsDelivery, + }); + types.Add(new OpenApiType(){ + Name = "sms_phone_number", + Property = "SmsPhoneNumber", + Type = "string", + Value = SmsPhoneNumber, + }); + types.Add(new OpenApiType(){ + Name = "reassigned_by", + Property = "ReassignedBy", + Type = "string", + Value = ReassignedBy, + }); + types.Add(new OpenApiType(){ + Name = "reassignment_reason", + Property = "ReassignmentReason", + Type = "string", + Value = ReassignmentReason, + }); + types.Add(new OpenApiType(){ + Name = "reassigned_from", + Property = "ReassignedFrom", + Type = "string", + Value = ReassignedFrom, + }); + types.Add(new OpenApiType(){ + Name = "error", + Property = "Error", + Type = "string", + Value = Error, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs index 670e0444c..815366e24 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestSendRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestSendRequest - : IEquatable, - IValidatableObject + public partial class SignatureRequestSendRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestSendRequest() { } - /// /// Initializes a new instance of the class. /// @@ -70,37 +67,9 @@ protected SignatureRequestSendRequest() { } /// The title you want to assign to the SignatureRequest.. /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestSendRequest( - List files = default(List), - List fileUrls = default(List), - List signers = default(List), - List groupedSigners = - default(List), - bool allowDecline = false, - bool allowReassign = false, - List attachments = default(List), - List ccEmailAddresses = default(List), - string clientId = default(string), - List customFields = default(List), - SubFieldOptions fieldOptions = default(SubFieldOptions), - List formFieldGroups = default(List), - List formFieldRules = default(List), - List formFieldsPerDocument = - default(List), - bool hideTextTags = false, - bool isQualifiedSignature = false, - bool isEid = false, - string message = default(string), - Dictionary metadata = default(Dictionary), - SubSigningOptions signingOptions = default(SubSigningOptions), - string signingRedirectUrl = default(string), - string subject = default(string), - bool testMode = false, - string title = default(string), - bool useTextTags = false, - int? expiresAt = default(int?) - ) + public SignatureRequestSendRequest(List files = default(List), List fileUrls = default(List), List signers = default(List), List groupedSigners = default(List), bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary metadata = default(Dictionary), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, int? expiresAt = default(int?)) { + this.Files = files; this.FileUrls = fileUrls; this.Signers = signers; @@ -139,9 +108,7 @@ public static SignatureRequestSendRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestSendRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestSendRequest"); } return obj; @@ -153,6 +120,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -160,6 +128,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -167,6 +136,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. @@ -174,6 +144,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. [DataMember(Name = "grouped_signers", EmitDefaultValue = true)] public List GroupedSigners { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -181,6 +152,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -188,6 +160,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -195,6 +168,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The email addresses that should be CCed. @@ -202,6 +176,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. @@ -209,6 +184,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -216,12 +192,14 @@ public static SignatureRequestSendRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -229,6 +207,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -236,6 +215,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -243,6 +223,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. @@ -250,6 +231,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } + /// /// Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br> **NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -258,6 +240,7 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "is_qualified_signature", EmitDefaultValue = true)] [Obsolete] public bool IsQualifiedSignature { get; set; } + /// /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -265,6 +248,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. [DataMember(Name = "is_eid", EmitDefaultValue = true)] public bool IsEid { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -272,6 +256,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -279,12 +264,14 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -292,6 +279,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -299,6 +287,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -306,6 +295,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -313,6 +303,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. @@ -320,6 +311,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } + /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -327,6 +319,7 @@ public static SignatureRequestSendRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -372,10 +365,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -399,131 +389,140 @@ public bool Equals(SignatureRequestSendRequest input) { return false; } - return ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.GroupedSigners == input.GroupedSigners - || this.GroupedSigners != null - && input.GroupedSigners != null - && this.GroupedSigners.SequenceEqual(input.GroupedSigners) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.AllowReassign == input.AllowReassign - || this.AllowReassign.Equals(input.AllowReassign) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.CcEmailAddresses == input.CcEmailAddresses - || this.CcEmailAddresses != null - && input.CcEmailAddresses != null - && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.FieldOptions == input.FieldOptions - || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) - ) - && ( - this.FormFieldGroups == input.FormFieldGroups - || this.FormFieldGroups != null - && input.FormFieldGroups != null - && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) - && ( - this.FormFieldRules == input.FormFieldRules - || this.FormFieldRules != null - && input.FormFieldRules != null - && this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) - && ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument - || this.FormFieldsPerDocument != null - && input.FormFieldsPerDocument != null - && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) - && ( - this.HideTextTags == input.HideTextTags - || this.HideTextTags.Equals(input.HideTextTags) - ) - && ( - this.IsQualifiedSignature == input.IsQualifiedSignature - || this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) - ) - && (this.IsEid == input.IsEid || this.IsEid.Equals(input.IsEid)) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.UseTextTags == input.UseTextTags - || this.UseTextTags.Equals(input.UseTextTags) - ) - && ( - this.ExpiresAt == input.ExpiresAt - || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) + return + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.GroupedSigners == input.GroupedSigners || + this.GroupedSigners != null && + input.GroupedSigners != null && + this.GroupedSigners.SequenceEqual(input.GroupedSigners) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.AllowReassign == input.AllowReassign || + this.AllowReassign.Equals(input.AllowReassign) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.CcEmailAddresses == input.CcEmailAddresses || + this.CcEmailAddresses != null && + input.CcEmailAddresses != null && + this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.FieldOptions == input.FieldOptions || + (this.FieldOptions != null && + this.FieldOptions.Equals(input.FieldOptions)) + ) && + ( + this.FormFieldGroups == input.FormFieldGroups || + this.FormFieldGroups != null && + input.FormFieldGroups != null && + this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) && + ( + this.FormFieldRules == input.FormFieldRules || + this.FormFieldRules != null && + input.FormFieldRules != null && + this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) && + ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument || + this.FormFieldsPerDocument != null && + input.FormFieldsPerDocument != null && + this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) && + ( + this.HideTextTags == input.HideTextTags || + this.HideTextTags.Equals(input.HideTextTags) + ) && + ( + this.IsQualifiedSignature == input.IsQualifiedSignature || + this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) + ) && + ( + this.IsEid == input.IsEid || + this.IsEid.Equals(input.IsEid) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.UseTextTags == input.UseTextTags || + this.UseTextTags.Equals(input.UseTextTags) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -628,35 +627,24 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; @@ -665,242 +653,165 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "grouped_signers", - Property = "GroupedSigners", - Type = "List", - Value = GroupedSigners, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - } - ); - types.Add( - new OpenApiType() - { - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_qualified_signature", - Property = "IsQualifiedSignature", - Type = "bool", - Value = IsQualifiedSignature, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_eid", - Property = "IsEid", - Type = "bool", - Value = IsEid, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "grouped_signers", + Property = "GroupedSigners", + Type = "List", + Value = GroupedSigners, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + }); + types.Add(new OpenApiType(){ + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + }); + types.Add(new OpenApiType(){ + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + }); + types.Add(new OpenApiType(){ + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + }); + types.Add(new OpenApiType(){ + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + }); + types.Add(new OpenApiType(){ + Name = "is_qualified_signature", + Property = "IsQualifiedSignature", + Type = "bool", + Value = IsQualifiedSignature, + }); + types.Add(new OpenApiType(){ + Name = "is_eid", + Property = "IsEid", + Type = "bool", + Value = IsEid, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs index 322b3aa43..181c4a721 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestSendWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestSendWithTemplateRequest - : IEquatable, - IValidatableObject + public partial class SignatureRequestSendWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestSendWithTemplateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -61,41 +58,19 @@ protected SignatureRequestSendWithTemplateRequest() { } /// The subject in the email that will be sent to the signers.. /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. - public SignatureRequestSendWithTemplateRequest( - List templateIds = default(List), - bool allowDecline = false, - List ccs = default(List), - string clientId = default(string), - List customFields = default(List), - List files = default(List), - List fileUrls = default(List), - bool isQualifiedSignature = false, - bool isEid = false, - string message = default(string), - Dictionary metadata = default(Dictionary), - List signers = - default(List), - SubSigningOptions signingOptions = default(SubSigningOptions), - string signingRedirectUrl = default(string), - string subject = default(string), - bool testMode = false, - string title = default(string) - ) + public SignatureRequestSendWithTemplateRequest(List templateIds = default(List), bool allowDecline = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), List files = default(List), List fileUrls = default(List), bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary metadata = default(Dictionary), List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string)) { + // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException( - "templateIds is a required property for SignatureRequestSendWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("templateIds is a required property for SignatureRequestSendWithTemplateRequest and cannot be null"); } this.TemplateIds = templateIds; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException( - "signers is a required property for SignatureRequestSendWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("signers is a required property for SignatureRequestSendWithTemplateRequest and cannot be null"); } this.Signers = signers; this.AllowDecline = allowDecline; @@ -121,15 +96,11 @@ public SignatureRequestSendWithTemplateRequest( /// String of JSON data representing target object public static SignatureRequestSendWithTemplateRequest Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestSendWithTemplateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestSendWithTemplateRequest"); } return obj; @@ -141,6 +112,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// Add Signers to your Templated-based Signature Request. @@ -148,6 +120,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Add Signers to your Templated-based Signature Request. [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -155,6 +128,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -162,6 +136,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. @@ -169,6 +144,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. @@ -176,6 +152,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// An array defining values and options for custom fields. Required when a custom field exists in the Template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -183,6 +160,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -190,6 +168,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br> **NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -198,6 +177,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "is_qualified_signature", EmitDefaultValue = true)] [Obsolete] public bool IsQualifiedSignature { get; set; } + /// /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. @@ -205,6 +185,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. [DataMember(Name = "is_eid", EmitDefaultValue = true)] public bool IsEid { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -212,6 +193,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -219,12 +201,14 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -232,6 +216,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -239,6 +224,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. @@ -246,6 +232,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -253,6 +240,7 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Returns the string presentation of the object @@ -289,10 +277,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -316,85 +301,94 @@ public bool Equals(SignatureRequestSendWithTemplateRequest input) { return false; } - return ( - this.TemplateIds == input.TemplateIds - || this.TemplateIds != null - && input.TemplateIds != null - && this.TemplateIds.SequenceEqual(input.TemplateIds) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.Ccs == input.Ccs - || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.IsQualifiedSignature == input.IsQualifiedSignature - || this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) - ) - && (this.IsEid == input.IsEid || this.IsEid.Equals(input.IsEid)) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) + return + ( + this.TemplateIds == input.TemplateIds || + this.TemplateIds != null && + input.TemplateIds != null && + this.TemplateIds.SequenceEqual(input.TemplateIds) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.Ccs == input.Ccs || + this.Ccs != null && + input.Ccs != null && + this.Ccs.SequenceEqual(input.Ccs) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.IsQualifiedSignature == input.IsQualifiedSignature || + this.IsQualifiedSignature.Equals(input.IsQualifiedSignature) + ) && + ( + this.IsEid == input.IsEid || + this.IsEid.Equals(input.IsEid) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) ); } @@ -472,35 +466,24 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; @@ -509,161 +492,111 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_qualified_signature", - Property = "IsQualifiedSignature", - Type = "bool", - Value = IsQualifiedSignature, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_eid", - Property = "IsEid", - Type = "bool", - Value = IsEid, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); + types.Add(new OpenApiType(){ + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "is_qualified_signature", + Property = "IsQualifiedSignature", + Type = "bool", + Value = IsQualifiedSignature, + }); + types.Add(new OpenApiType(){ + Name = "is_eid", + Property = "IsEid", + Type = "bool", + Value = IsEid, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs index 84c22e54f..8f9d4a916 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SignatureRequestUpdateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestUpdateRequest - : IEquatable, - IValidatableObject + public partial class SignatureRequestUpdateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SignatureRequestUpdateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -48,19 +45,13 @@ protected SignatureRequestUpdateRequest() { } /// The new name for the recipient. **NOTE:** Optional if `email_address` is provided.. /// The signature ID for the recipient. (required). /// The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.. - public SignatureRequestUpdateRequest( - string emailAddress = default(string), - string name = default(string), - string signatureId = default(string), - int? expiresAt = default(int?) - ) + public SignatureRequestUpdateRequest(string emailAddress = default(string), string name = default(string), string signatureId = default(string), int? expiresAt = default(int?)) { + // to ensure "signatureId" is required (not null) if (signatureId == null) { - throw new ArgumentNullException( - "signatureId is a required property for SignatureRequestUpdateRequest and cannot be null" - ); + throw new ArgumentNullException("signatureId is a required property for SignatureRequestUpdateRequest and cannot be null"); } this.SignatureId = signatureId; this.EmailAddress = emailAddress; @@ -78,9 +69,7 @@ public static SignatureRequestUpdateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SignatureRequestUpdateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of SignatureRequestUpdateRequest"); } return obj; @@ -92,6 +81,7 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The signature ID for the recipient. [DataMember(Name = "signature_id", IsRequired = true, EmitDefaultValue = true)] public string SignatureId { get; set; } + /// /// The new email address for the recipient. This will generate a new `signature_id` value. **NOTE:** Optional if `name` is provided. @@ -99,6 +89,7 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The new email address for the recipient. This will generate a new `signature_id` value. **NOTE:** Optional if `name` is provided. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The new name for the recipient. **NOTE:** Optional if `email_address` is provided. @@ -106,6 +97,7 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The new name for the recipient. **NOTE:** Optional if `email_address` is provided. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -113,6 +105,7 @@ public static SignatureRequestUpdateRequest Init(string jsonData) /// The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +129,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,18 +153,26 @@ public bool Equals(SignatureRequestUpdateRequest input) { return false; } - return ( - this.SignatureId == input.SignatureId - || (this.SignatureId != null && this.SignatureId.Equals(input.SignatureId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.ExpiresAt == input.ExpiresAt - || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) + return + ( + this.SignatureId == input.SignatureId || + (this.SignatureId != null && + this.SignatureId.Equals(input.SignatureId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -212,9 +210,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -222,44 +218,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "signature_id", - Property = "SignatureId", - Type = "string", - Value = SignatureId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "signature_id", + Property = "SignatureId", + Type = "string", + Value = SignatureId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs index b5aff52c3..458d8d43d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class SubAttachment : IEquatable, IValidatableObje /// [JsonConstructorAttribute] protected SubAttachment() { } - /// /// Initializes a new instance of the class. /// @@ -46,19 +45,13 @@ protected SubAttachment() { } /// The name of attachment. (required). /// Determines if the attachment must be uploaded. (default to false). /// The signer's index in the `signers` parameter (0-based indexing). **NOTE:** Only one signer can be assigned per attachment. (required). - public SubAttachment( - string instructions = default(string), - string name = default(string), - bool required = false, - int signerIndex = default(int) - ) + public SubAttachment(string instructions = default(string), string name = default(string), bool required = false, int signerIndex = default(int)) { + // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SubAttachment and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SubAttachment and cannot be null"); } this.Name = name; this.SignerIndex = signerIndex; @@ -88,6 +81,7 @@ public static SubAttachment Init(string jsonData) /// The name of attachment. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The signer's index in the `signers` parameter (0-based indexing). **NOTE:** Only one signer can be assigned per attachment. @@ -95,6 +89,7 @@ public static SubAttachment Init(string jsonData) /// The signer's index in the `signers` parameter (0-based indexing). **NOTE:** Only one signer can be assigned per attachment. [DataMember(Name = "signer_index", IsRequired = true, EmitDefaultValue = true)] public int SignerIndex { get; set; } + /// /// The instructions for uploading the attachment. @@ -102,6 +97,7 @@ public static SubAttachment Init(string jsonData) /// The instructions for uploading the attachment. [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } + /// /// Determines if the attachment must be uploaded. @@ -109,6 +105,7 @@ public static SubAttachment Init(string jsonData) /// Determines if the attachment must be uploaded. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// Returns the string presentation of the object @@ -132,10 +129,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -159,16 +153,25 @@ public bool Equals(SubAttachment input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.SignerIndex == input.SignerIndex - || this.SignerIndex.Equals(input.SignerIndex) - ) - && ( - this.Instructions == input.Instructions - || (this.Instructions != null && this.Instructions.Equals(input.Instructions)) - ) - && (this.Required == input.Required || this.Required.Equals(input.Required)); + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.SignerIndex == input.SignerIndex || + this.SignerIndex.Equals(input.SignerIndex) + ) && + ( + this.Instructions == input.Instructions || + (this.Instructions != null && + this.Instructions.Equals(input.Instructions)) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ); } /// @@ -199,9 +202,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -209,44 +210,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_index", - Property = "SignerIndex", - Type = "int", - Value = SignerIndex, - } - ); - types.Add( - new OpenApiType() - { - Name = "instructions", - Property = "Instructions", - Type = "string", - Value = Instructions, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "signer_index", + Property = "SignerIndex", + Type = "int", + Value = SignerIndex, + }); + types.Add(new OpenApiType(){ + Name = "instructions", + Property = "Instructions", + Type = "string", + Value = Instructions, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs index 925c5645c..6cb0453c4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,14 @@ public partial class SubBulkSignerList : IEquatable, IValidat /// [JsonConstructorAttribute] protected SubBulkSignerList() { } - /// /// Initializes a new instance of the class. /// /// An array of custom field values.. /// Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. Currently only templates with a single role are supported. All signers must have the same `role` value.. - public SubBulkSignerList( - List customFields = - default(List), - List signers = - default(List) - ) + public SubBulkSignerList(List customFields = default(List), List signers = default(List)) { + this.CustomFields = customFields; this.Signers = signers; } @@ -77,6 +72,7 @@ public static SubBulkSignerList Init(string jsonData) /// An array of custom field values. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. Currently only templates with a single role are supported. All signers must have the same `role` value. @@ -84,6 +80,7 @@ public static SubBulkSignerList Init(string jsonData) /// Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. Currently only templates with a single role are supported. All signers must have the same `role` value. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Returns the string presentation of the object @@ -105,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -132,17 +126,18 @@ public bool Equals(SubBulkSignerList input) { return false; } - return ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) + return + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) ); } @@ -172,9 +167,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -182,26 +175,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs index cb754f1d7..b03715cf8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,40 +31,31 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubBulkSignerListCustomField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubBulkSignerListCustomField - : IEquatable, - IValidatableObject + public partial class SubBulkSignerListCustomField : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubBulkSignerListCustomField() { } - /// /// Initializes a new instance of the class. /// /// The name of the custom field. Must be the field's `name` or `api_id`. (required). /// The value of the custom field. (required). - public SubBulkSignerListCustomField( - string name = default(string), - string value = default(string) - ) + public SubBulkSignerListCustomField(string name = default(string), string value = default(string)) { + // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SubBulkSignerListCustomField and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SubBulkSignerListCustomField and cannot be null"); } this.Name = name; // to ensure "value" is required (not null) if (value == null) { - throw new ArgumentNullException( - "value is a required property for SubBulkSignerListCustomField and cannot be null" - ); + throw new ArgumentNullException("value is a required property for SubBulkSignerListCustomField and cannot be null"); } this.Value = value; } @@ -79,9 +70,7 @@ public static SubBulkSignerListCustomField Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubBulkSignerListCustomField" - ); + throw new Exception("Unable to deserialize JSON to instance of SubBulkSignerListCustomField"); } return obj; @@ -93,6 +82,7 @@ public static SubBulkSignerListCustomField Init(string jsonData) /// The name of the custom field. Must be the field's `name` or `api_id`. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The value of the custom field. @@ -100,6 +90,7 @@ public static SubBulkSignerListCustomField Init(string jsonData) /// The value of the custom field. [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -121,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -148,10 +136,16 @@ public bool Equals(SubBulkSignerListCustomField input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -181,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -191,26 +183,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs index 51ecc85f2..152097511 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class SubCC : IEquatable, IValidatableObject /// [JsonConstructorAttribute] protected SubCC() { } - /// /// Initializes a new instance of the class. /// @@ -46,20 +45,17 @@ protected SubCC() { } /// The email address of the CC recipient. (required). public SubCC(string role = default(string), string emailAddress = default(string)) { + // to ensure "role" is required (not null) if (role == null) { - throw new ArgumentNullException( - "role is a required property for SubCC and cannot be null" - ); + throw new ArgumentNullException("role is a required property for SubCC and cannot be null"); } this.Role = role; // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException( - "emailAddress is a required property for SubCC and cannot be null" - ); + throw new ArgumentNullException("emailAddress is a required property for SubCC and cannot be null"); } this.EmailAddress = emailAddress; } @@ -86,6 +82,7 @@ public static SubCC Init(string jsonData) /// Must match an existing CC role in chosen Template(s). Multiple CC recipients cannot share the same CC role. [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } + /// /// The email address of the CC recipient. @@ -93,6 +90,7 @@ public static SubCC Init(string jsonData) /// The email address of the CC recipient. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -114,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -141,10 +136,16 @@ public bool Equals(SubCC input) { return false; } - return (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + return + ( + this.Role == input.Role || + (this.Role != null && + this.Role.Equals(input.Role)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -174,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -184,26 +183,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); + types.Add(new OpenApiType(){ + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs index 16dd9f3d5..b2ef09c4e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class SubCustomField : IEquatable, IValidatableOb /// [JsonConstructorAttribute] protected SubCustomField() { } - /// /// Initializes a new instance of the class. /// @@ -46,19 +45,13 @@ protected SubCustomField() { } /// The name of a custom field. When working with pre-filled data, the custom field's name must have a matching merge field name or the field will remain empty on the document during signing. (required). /// Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. (default to false). /// The string that resolves (aka \"pre-fills\") to the merge field on the final document(s) used for signing.. - public SubCustomField( - string editor = default(string), - string name = default(string), - bool required = false, - string value = default(string) - ) + public SubCustomField(string editor = default(string), string name = default(string), bool required = false, string value = default(string)) { + // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SubCustomField and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SubCustomField and cannot be null"); } this.Name = name; this.Editor = editor; @@ -88,6 +81,7 @@ public static SubCustomField Init(string jsonData) /// The name of a custom field. When working with pre-filled data, the custom field's name must have a matching merge field name or the field will remain empty on the document during signing. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`. **NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. @@ -95,6 +89,7 @@ public static SubCustomField Init(string jsonData) /// Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`. **NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. [DataMember(Name = "editor", EmitDefaultValue = true)] public string Editor { get; set; } + /// /// Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. @@ -102,6 +97,7 @@ public static SubCustomField Init(string jsonData) /// Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The string that resolves (aka \"pre-fills\") to the merge field on the final document(s) used for signing. @@ -109,6 +105,7 @@ public static SubCustomField Init(string jsonData) /// The string that resolves (aka \"pre-fills\") to the merge field on the final document(s) used for signing. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// Returns the string presentation of the object @@ -132,10 +129,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -159,15 +153,25 @@ public bool Equals(SubCustomField input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.Editor == input.Editor - || (this.Editor != null && this.Editor.Equals(input.Editor)) - ) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Editor == input.Editor || + (this.Editor != null && + this.Editor.Equals(input.Editor)) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) ); } @@ -202,9 +206,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -212,44 +214,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "editor", - Property = "Editor", - Type = "string", - Value = Editor, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "editor", + Property = "Editor", + Type = "string", + Value = Editor, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs index 8853c7083..584230378 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class SubEditorOptions : IEquatable, IValidatab /// [JsonConstructorAttribute] protected SubEditorOptions() { } - /// /// Initializes a new instance of the class. /// @@ -46,6 +45,7 @@ protected SubEditorOptions() { } /// Allows requesters to edit documents, including delete and add (default to false). public SubEditorOptions(bool allowEditSigners = false, bool allowEditDocuments = false) { + this.AllowEditSigners = allowEditSigners; this.AllowEditDocuments = allowEditDocuments; } @@ -72,6 +72,7 @@ public static SubEditorOptions Init(string jsonData) /// Allows requesters to edit the list of signers [DataMember(Name = "allow_edit_signers", EmitDefaultValue = true)] public bool AllowEditSigners { get; set; } + /// /// Allows requesters to edit documents, including delete and add @@ -79,6 +80,7 @@ public static SubEditorOptions Init(string jsonData) /// Allows requesters to edit documents, including delete and add [DataMember(Name = "allow_edit_documents", EmitDefaultValue = true)] public bool AllowEditDocuments { get; set; } + /// /// Returns the string presentation of the object @@ -100,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -127,13 +126,14 @@ public bool Equals(SubEditorOptions input) { return false; } - return ( - this.AllowEditSigners == input.AllowEditSigners - || this.AllowEditSigners.Equals(input.AllowEditSigners) - ) - && ( - this.AllowEditDocuments == input.AllowEditDocuments - || this.AllowEditDocuments.Equals(input.AllowEditDocuments) + return + ( + this.AllowEditSigners == input.AllowEditSigners || + this.AllowEditSigners.Equals(input.AllowEditSigners) + ) && + ( + this.AllowEditDocuments == input.AllowEditDocuments || + this.AllowEditDocuments.Equals(input.AllowEditDocuments) ); } @@ -157,9 +157,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -167,26 +165,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "allow_edit_signers", - Property = "AllowEditSigners", - Type = "bool", - Value = AllowEditSigners, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_edit_documents", - Property = "AllowEditDocuments", - Type = "bool", - Value = AllowEditDocuments, - } - ); + types.Add(new OpenApiType(){ + Name = "allow_edit_signers", + Property = "AllowEditSigners", + Type = "bool", + Value = AllowEditSigners, + }); + types.Add(new OpenApiType(){ + Name = "allow_edit_documents", + Property = "AllowEditDocuments", + Type = "bool", + Value = AllowEditDocuments, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs index 2265daa0b..deefc0ed6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -74,28 +74,28 @@ public enum DateFormatEnum /// Enum YYYY_MM_DD for value: YYYY - MM - DD /// [EnumMember(Value = "YYYY - MM - DD")] - YYYY_MM_DD = 6, + YYYY_MM_DD = 6 } + /// /// Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) **NOTE:** Only available for Premium and higher. /// /// Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) **NOTE:** Only available for Premium and higher. [DataMember(Name = "date_format", IsRequired = true, EmitDefaultValue = true)] public DateFormatEnum DateFormat { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFieldOptions() { } - /// /// Initializes a new instance of the class. /// /// Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) **NOTE:** Only available for Premium and higher. (required). public SubFieldOptions(DateFormatEnum dateFormat = default(DateFormatEnum)) { + this.DateFormat = dateFormat; } @@ -134,10 +134,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -161,9 +158,11 @@ public bool Equals(SubFieldOptions input) { return false; } - return ( - this.DateFormat == input.DateFormat || this.DateFormat.Equals(input.DateFormat) - ); + return + ( + this.DateFormat == input.DateFormat || + this.DateFormat.Equals(input.DateFormat) + ); } /// @@ -185,9 +184,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -195,17 +192,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "date_format", - Property = "DateFormat", - Type = "string", - Value = DateFormat, - } - ); + types.Add(new OpenApiType(){ + Name = "date_format", + Property = "DateFormat", + Type = "string", + Value = DateFormat, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs index e05a55a81..47c5ba279 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,41 +38,31 @@ public partial class SubFormFieldGroup : IEquatable, IValidat /// [JsonConstructorAttribute] protected SubFormFieldGroup() { } - /// /// Initializes a new instance of the class. /// /// ID of group. Use this to reference a specific group from the `group` value in `form_fields_per_document`. (required). /// Name of the group (required). /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. (required). - public SubFormFieldGroup( - string groupId = default(string), - string groupLabel = default(string), - string requirement = default(string) - ) + public SubFormFieldGroup(string groupId = default(string), string groupLabel = default(string), string requirement = default(string)) { + // to ensure "groupId" is required (not null) if (groupId == null) { - throw new ArgumentNullException( - "groupId is a required property for SubFormFieldGroup and cannot be null" - ); + throw new ArgumentNullException("groupId is a required property for SubFormFieldGroup and cannot be null"); } this.GroupId = groupId; // to ensure "groupLabel" is required (not null) if (groupLabel == null) { - throw new ArgumentNullException( - "groupLabel is a required property for SubFormFieldGroup and cannot be null" - ); + throw new ArgumentNullException("groupLabel is a required property for SubFormFieldGroup and cannot be null"); } this.GroupLabel = groupLabel; // to ensure "requirement" is required (not null) if (requirement == null) { - throw new ArgumentNullException( - "requirement is a required property for SubFormFieldGroup and cannot be null" - ); + throw new ArgumentNullException("requirement is a required property for SubFormFieldGroup and cannot be null"); } this.Requirement = requirement; } @@ -99,6 +89,7 @@ public static SubFormFieldGroup Init(string jsonData) /// ID of group. Use this to reference a specific group from the `group` value in `form_fields_per_document`. [DataMember(Name = "group_id", IsRequired = true, EmitDefaultValue = true)] public string GroupId { get; set; } + /// /// Name of the group @@ -106,6 +97,7 @@ public static SubFormFieldGroup Init(string jsonData) /// Name of the group [DataMember(Name = "group_label", IsRequired = true, EmitDefaultValue = true)] public string GroupLabel { get; set; } + /// /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. @@ -113,6 +105,7 @@ public static SubFormFieldGroup Init(string jsonData) /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. [DataMember(Name = "requirement", IsRequired = true, EmitDefaultValue = true)] public string Requirement { get; set; } + /// /// Returns the string presentation of the object @@ -135,10 +128,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -162,17 +152,21 @@ public bool Equals(SubFormFieldGroup input) { return false; } - return ( - this.GroupId == input.GroupId - || (this.GroupId != null && this.GroupId.Equals(input.GroupId)) - ) - && ( - this.GroupLabel == input.GroupLabel - || (this.GroupLabel != null && this.GroupLabel.Equals(input.GroupLabel)) - ) - && ( - this.Requirement == input.Requirement - || (this.Requirement != null && this.Requirement.Equals(input.Requirement)) + return + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.GroupLabel == input.GroupLabel || + (this.GroupLabel != null && + this.GroupLabel.Equals(input.GroupLabel)) + ) && + ( + this.Requirement == input.Requirement || + (this.Requirement != null && + this.Requirement.Equals(input.Requirement)) ); } @@ -206,9 +200,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -216,35 +208,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "group_id", - Property = "GroupId", - Type = "string", - Value = GroupId, - } - ); - types.Add( - new OpenApiType() - { - Name = "group_label", - Property = "GroupLabel", - Type = "string", - Value = GroupLabel, - } - ); - types.Add( - new OpenApiType() - { - Name = "requirement", - Property = "Requirement", - Type = "string", - Value = Requirement, - } - ); + types.Add(new OpenApiType(){ + Name = "group_id", + Property = "GroupId", + Type = "string", + Value = GroupId, + }); + types.Add(new OpenApiType(){ + Name = "group_label", + Property = "GroupLabel", + Type = "string", + Value = GroupLabel, + }); + types.Add(new OpenApiType(){ + Name = "requirement", + Property = "Requirement", + Type = "string", + Value = Requirement, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs index 396f81f23..d214e456f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class SubFormFieldRule : IEquatable, IValidatab /// [JsonConstructorAttribute] protected SubFormFieldRule() { } - /// /// Initializes a new instance of the class. /// @@ -46,43 +45,31 @@ protected SubFormFieldRule() { } /// Currently only `AND` is supported. Support for `OR` is being worked on. (required) (default to "AND"). /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. (required). /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. (required). - public SubFormFieldRule( - string id = default(string), - string triggerOperator = @"AND", - List triggers = default(List), - List actions = default(List) - ) + public SubFormFieldRule(string id = default(string), string triggerOperator = @"AND", List triggers = default(List), List actions = default(List)) { + // to ensure "id" is required (not null) if (id == null) { - throw new ArgumentNullException( - "id is a required property for SubFormFieldRule and cannot be null" - ); + throw new ArgumentNullException("id is a required property for SubFormFieldRule and cannot be null"); } this.Id = id; // to ensure "triggerOperator" is required (not null) if (triggerOperator == null) { - throw new ArgumentNullException( - "triggerOperator is a required property for SubFormFieldRule and cannot be null" - ); + throw new ArgumentNullException("triggerOperator is a required property for SubFormFieldRule and cannot be null"); } this.TriggerOperator = triggerOperator; // to ensure "triggers" is required (not null) if (triggers == null) { - throw new ArgumentNullException( - "triggers is a required property for SubFormFieldRule and cannot be null" - ); + throw new ArgumentNullException("triggers is a required property for SubFormFieldRule and cannot be null"); } this.Triggers = triggers; // to ensure "actions" is required (not null) if (actions == null) { - throw new ArgumentNullException( - "actions is a required property for SubFormFieldRule and cannot be null" - ); + throw new ArgumentNullException("actions is a required property for SubFormFieldRule and cannot be null"); } this.Actions = actions; } @@ -109,6 +96,7 @@ public static SubFormFieldRule Init(string jsonData) /// Must be unique across all defined rules. [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } + /// /// Currently only `AND` is supported. Support for `OR` is being worked on. @@ -116,6 +104,7 @@ public static SubFormFieldRule Init(string jsonData) /// Currently only `AND` is supported. Support for `OR` is being worked on. [DataMember(Name = "trigger_operator", IsRequired = true, EmitDefaultValue = true)] public string TriggerOperator { get; set; } + /// /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. @@ -123,6 +112,7 @@ public static SubFormFieldRule Init(string jsonData) /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. [DataMember(Name = "triggers", IsRequired = true, EmitDefaultValue = true)] public List Triggers { get; set; } + /// /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. @@ -130,6 +120,7 @@ public static SubFormFieldRule Init(string jsonData) /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. [DataMember(Name = "actions", IsRequired = true, EmitDefaultValue = true)] public List Actions { get; set; } + /// /// Returns the string presentation of the object @@ -153,10 +144,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -180,25 +168,28 @@ public bool Equals(SubFormFieldRule input) { return false; } - return (this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id))) - && ( - this.TriggerOperator == input.TriggerOperator - || ( - this.TriggerOperator != null - && this.TriggerOperator.Equals(input.TriggerOperator) - ) - ) - && ( - this.Triggers == input.Triggers - || this.Triggers != null - && input.Triggers != null - && this.Triggers.SequenceEqual(input.Triggers) - ) - && ( - this.Actions == input.Actions - || this.Actions != null - && input.Actions != null - && this.Actions.SequenceEqual(input.Actions) + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.TriggerOperator == input.TriggerOperator || + (this.TriggerOperator != null && + this.TriggerOperator.Equals(input.TriggerOperator)) + ) && + ( + this.Triggers == input.Triggers || + this.Triggers != null && + input.Triggers != null && + this.Triggers.SequenceEqual(input.Triggers) + ) && + ( + this.Actions == input.Actions || + this.Actions != null && + input.Actions != null && + this.Actions.SequenceEqual(input.Actions) ); } @@ -236,9 +227,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -246,44 +235,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "id", - Property = "Id", - Type = "string", - Value = Id, - } - ); - types.Add( - new OpenApiType() - { - Name = "trigger_operator", - Property = "TriggerOperator", - Type = "string", - Value = TriggerOperator, - } - ); - types.Add( - new OpenApiType() - { - Name = "triggers", - Property = "Triggers", - Type = "List", - Value = Triggers, - } - ); - types.Add( - new OpenApiType() - { - Name = "actions", - Property = "Actions", - Type = "List", - Value = Actions, - } - ); + types.Add(new OpenApiType(){ + Name = "id", + Property = "Id", + Type = "string", + Value = Id, + }); + types.Add(new OpenApiType(){ + Name = "trigger_operator", + Property = "TriggerOperator", + Type = "string", + Value = TriggerOperator, + }); + types.Add(new OpenApiType(){ + Name = "triggers", + Property = "Triggers", + Type = "List", + Value = Triggers, + }); + types.Add(new OpenApiType(){ + Name = "actions", + Property = "Actions", + Type = "List", + Value = Actions, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs index 0c5a70164..e2350b07c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,9 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldRuleAction")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldRuleAction - : IEquatable, - IValidatableObject + public partial class SubFormFieldRuleAction : IEquatable, IValidatableObject { /// /// Defines Type @@ -51,21 +49,20 @@ public enum TypeEnum /// Enum GroupVisibility for value: change-group-visibility /// [EnumMember(Value = "change-group-visibility")] - GroupVisibility = 2, + GroupVisibility = 2 } + /// /// Gets or Sets Type /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public TypeEnum Type { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldRuleAction() { } - /// /// Initializes a new instance of the class. /// @@ -73,13 +70,9 @@ protected SubFormFieldRuleAction() { } /// **group_id** or **field_id** is required, but not both. Must reference the ID of an existing group defined within `form_field_groups`. Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer.. /// `true` to hide the target field when rule is satisfied, otherwise `false`. (required). /// type (required). - public SubFormFieldRuleAction( - string fieldId = default(string), - string groupId = default(string), - bool hidden = default(bool), - TypeEnum type = default(TypeEnum) - ) + public SubFormFieldRuleAction(string fieldId = default(string), string groupId = default(string), bool hidden = default(bool), TypeEnum type = default(TypeEnum)) { + this.Hidden = hidden; this.Type = type; this.FieldId = fieldId; @@ -96,9 +89,7 @@ public static SubFormFieldRuleAction Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldRuleAction" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldRuleAction"); } return obj; @@ -110,6 +101,7 @@ public static SubFormFieldRuleAction Init(string jsonData) /// `true` to hide the target field when rule is satisfied, otherwise `false`. [DataMember(Name = "hidden", IsRequired = true, EmitDefaultValue = true)] public bool Hidden { get; set; } + /// /// **field_id** or **group_id** is required, but not both. Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Cannot use with `group_id`. Trigger and action fields must belong to the same signer. @@ -117,6 +109,7 @@ public static SubFormFieldRuleAction Init(string jsonData) /// **field_id** or **group_id** is required, but not both. Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Cannot use with `group_id`. Trigger and action fields must belong to the same signer. [DataMember(Name = "field_id", EmitDefaultValue = true)] public string FieldId { get; set; } + /// /// **group_id** or **field_id** is required, but not both. Must reference the ID of an existing group defined within `form_field_groups`. Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. @@ -124,6 +117,7 @@ public static SubFormFieldRuleAction Init(string jsonData) /// **group_id** or **field_id** is required, but not both. Must reference the ID of an existing group defined within `form_field_groups`. Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. [DataMember(Name = "group_id", EmitDefaultValue = true)] public string GroupId { get; set; } + /// /// Returns the string presentation of the object @@ -147,10 +141,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -174,15 +165,24 @@ public bool Equals(SubFormFieldRuleAction input) { return false; } - return (this.Hidden == input.Hidden || this.Hidden.Equals(input.Hidden)) - && (this.Type == input.Type || this.Type.Equals(input.Type)) - && ( - this.FieldId == input.FieldId - || (this.FieldId != null && this.FieldId.Equals(input.FieldId)) - ) - && ( - this.GroupId == input.GroupId - || (this.GroupId != null && this.GroupId.Equals(input.GroupId)) + return + ( + this.Hidden == input.Hidden || + this.Hidden.Equals(input.Hidden) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.FieldId == input.FieldId || + (this.FieldId != null && + this.FieldId.Equals(input.FieldId)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) ); } @@ -214,9 +214,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -224,44 +222,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "hidden", - Property = "Hidden", - Type = "bool", - Value = Hidden, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_id", - Property = "FieldId", - Type = "string", - Value = FieldId, - } - ); - types.Add( - new OpenApiType() - { - Name = "group_id", - Property = "GroupId", - Type = "string", - Value = GroupId, - } - ); + types.Add(new OpenApiType(){ + Name = "hidden", + Property = "Hidden", + Type = "bool", + Value = Hidden, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "field_id", + Property = "FieldId", + Type = "string", + Value = FieldId, + }); + types.Add(new OpenApiType(){ + Name = "group_id", + Property = "GroupId", + Type = "string", + Value = GroupId, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs index a2ba2239b..5719dcb4f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,9 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldRuleTrigger")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldRuleTrigger - : IEquatable, - IValidatableObject + public partial class SubFormFieldRuleTrigger : IEquatable, IValidatableObject { /// /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value @@ -70,22 +68,21 @@ public enum OperatorEnum /// Enum Not for value: not /// [EnumMember(Value = "not")] - Not = 5, + Not = 5 } + /// /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value /// /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value [DataMember(Name = "operator", IsRequired = true, EmitDefaultValue = true)] public OperatorEnum Operator { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldRuleTrigger() { } - /// /// Initializes a new instance of the class. /// @@ -93,19 +90,13 @@ protected SubFormFieldRuleTrigger() { } /// Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value (required). /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1`. /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none`. - public SubFormFieldRuleTrigger( - string id = default(string), - OperatorEnum varOperator = default(OperatorEnum), - string value = default(string), - List values = default(List) - ) + public SubFormFieldRuleTrigger(string id = default(string), OperatorEnum varOperator = default(OperatorEnum), string value = default(string), List values = default(List)) { + // to ensure "id" is required (not null) if (id == null) { - throw new ArgumentNullException( - "id is a required property for SubFormFieldRuleTrigger and cannot be null" - ); + throw new ArgumentNullException("id is a required property for SubFormFieldRuleTrigger and cannot be null"); } this.Id = id; this.Operator = varOperator; @@ -123,9 +114,7 @@ public static SubFormFieldRuleTrigger Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldRuleTrigger" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldRuleTrigger"); } return obj; @@ -137,6 +126,7 @@ public static SubFormFieldRuleTrigger Init(string jsonData) /// Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Trigger and action fields and groups must belong to the same signer. [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } + /// /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1` @@ -144,6 +134,7 @@ public static SubFormFieldRuleTrigger Init(string jsonData) /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1` [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none` @@ -151,6 +142,7 @@ public static SubFormFieldRuleTrigger Init(string jsonData) /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none` [DataMember(Name = "values", EmitDefaultValue = true)] public List Values { get; set; } + /// /// Returns the string presentation of the object @@ -174,10 +166,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -201,17 +190,26 @@ public bool Equals(SubFormFieldRuleTrigger input) { return false; } - return (this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id))) - && (this.Operator == input.Operator || this.Operator.Equals(input.Operator)) - && ( - this.Value == input.Value - || (this.Value != null && this.Value.Equals(input.Value)) - ) - && ( - this.Values == input.Values - || this.Values != null - && input.Values != null - && this.Values.SequenceEqual(input.Values) + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Operator == input.Operator || + this.Operator.Equals(input.Operator) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.Values == input.Values || + this.Values != null && + input.Values != null && + this.Values.SequenceEqual(input.Values) ); } @@ -246,9 +244,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -256,44 +252,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "id", - Property = "Id", - Type = "string", - Value = Id, - } - ); - types.Add( - new OpenApiType() - { - Name = "operator", - Property = "Operator", - Type = "string", - Value = Operator, - } - ); - types.Add( - new OpenApiType() - { - Name = "value", - Property = "Value", - Type = "string", - Value = Value, - } - ); - types.Add( - new OpenApiType() - { - Name = "values", - Property = "Values", - Type = "List", - Value = Values, - } - ); + types.Add(new OpenApiType(){ + Name = "id", + Property = "Id", + Type = "string", + Value = Id, + }); + types.Add(new OpenApiType(){ + Name = "operator", + Property = "Operator", + Type = "string", + Value = Operator, + }); + types.Add(new OpenApiType(){ + Name = "value", + Property = "Value", + Type = "string", + Value = Value, + }); + types.Add(new OpenApiType(){ + Name = "values", + Property = "Values", + Type = "List", + Value = Values, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs index 9bcdfc354..2c4a31227 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -43,16 +43,13 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentText), "text")] [JsonSubtypes.KnownSubType(typeof(SubFormFieldsPerDocumentTextMerge), "text-merge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentBase - : IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentBase() { } - /// /// Initializes a new instance of the class. /// @@ -67,27 +64,14 @@ protected SubFormFieldsPerDocumentBase() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentBase( - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - string type = default(string), - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentBase(int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, string type = default(string), int width = default(int), int x = default(int), int y = default(int)) { + this.DocumentIndex = documentIndex; // to ensure "apiId" is required (not null) if (apiId == null) { - throw new ArgumentNullException( - "apiId is a required property for SubFormFieldsPerDocumentBase and cannot be null" - ); + throw new ArgumentNullException("apiId is a required property for SubFormFieldsPerDocumentBase and cannot be null"); } this.ApiId = apiId; this.Height = height; @@ -95,17 +79,13 @@ public SubFormFieldsPerDocumentBase( // to ensure "signer" is required (not null) if (signer == null) { - throw new ArgumentNullException( - "signer is a required property for SubFormFieldsPerDocumentBase and cannot be null" - ); + throw new ArgumentNullException("signer is a required property for SubFormFieldsPerDocumentBase and cannot be null"); } this.Signer = Convert.ToString(signer); // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentBase and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentBase and cannot be null"); } this.Type = type; this.Width = width; @@ -125,9 +105,7 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentBase" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentBase"); } return obj; @@ -139,6 +117,7 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// Represents the integer index of the `file` or `file_url` document the field should be attached to. [DataMember(Name = "document_index", IsRequired = true, EmitDefaultValue = true)] public int DocumentIndex { get; set; } + /// /// An identifier for the field that is unique across all documents in the request. @@ -146,6 +125,7 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// An identifier for the field that is unique across all documents in the request. [DataMember(Name = "api_id", IsRequired = true, EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// Size of the field in pixels. @@ -153,6 +133,7 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// Size of the field in pixels. [DataMember(Name = "height", IsRequired = true, EmitDefaultValue = true)] public int Height { get; set; } + /// /// Whether this field is required. @@ -160,14 +141,14 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) /// Whether this field is required. [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] public bool Required { get; set; } + /// /// Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. **NOTE:** To set the value of the field as the preparer you must set this to `me_now` **NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. /// /// Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. **NOTE:** To set the value of the field as the preparer you must set this to `me_now` **NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. [DataMember(Name = "signer", IsRequired = true, EmitDefaultValue = true)] - public object Signer - { + public object Signer { get => this._signer; set => this._signer = Convert.ToString(value); } @@ -179,6 +160,7 @@ public object Signer /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Size of the field in pixels. @@ -186,6 +168,7 @@ public object Signer /// Size of the field in pixels. [DataMember(Name = "width", IsRequired = true, EmitDefaultValue = true)] public int Width { get; set; } + /// /// Location coordinates of the field in pixels. @@ -193,6 +176,7 @@ public object Signer /// Location coordinates of the field in pixels. [DataMember(Name = "x", IsRequired = true, EmitDefaultValue = true)] public int X { get; set; } + /// /// Location coordinates of the field in pixels. @@ -200,6 +184,7 @@ public object Signer /// Location coordinates of the field in pixels. [DataMember(Name = "y", IsRequired = true, EmitDefaultValue = true)] public int Y { get; set; } + /// /// Display name for the field. @@ -207,6 +192,7 @@ public object Signer /// Display name for the field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Page in the document where the field should be placed (requires documents be PDF files). - When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. @@ -214,6 +200,7 @@ public object Signer /// Page in the document where the field should be placed (requires documents be PDF files). - When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. [DataMember(Name = "page", EmitDefaultValue = true)] public int? Page { get; set; } + /// /// Returns the string presentation of the object @@ -244,10 +231,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -271,26 +255,56 @@ public bool Equals(SubFormFieldsPerDocumentBase input) { return false; } - return ( - this.DocumentIndex == input.DocumentIndex - || this.DocumentIndex.Equals(input.DocumentIndex) - ) - && ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && (this.Height == input.Height || this.Height.Equals(input.Height)) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.Signer == input.Signer - || (this.Signer != null && this.Signer.Equals(input.Signer)) - ) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && (this.Width == input.Width || this.Width.Equals(input.Width)) - && (this.X == input.X || this.X.Equals(input.X)) - && (this.Y == input.Y || this.Y.Equals(input.Y)) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Page == input.Page || (this.Page != null && this.Page.Equals(input.Page))); + return + ( + this.DocumentIndex == input.DocumentIndex || + this.DocumentIndex.Equals(input.DocumentIndex) + ) && + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Height == input.Height || + this.Height.Equals(input.Height) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.Signer == input.Signer || + (this.Signer != null && + this.Signer.Equals(input.Signer)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Width == input.Width || + this.Width.Equals(input.Width) + ) && + ( + this.X == input.X || + this.X.Equals(input.X) + ) && + ( + this.Y == input.Y || + this.Y.Equals(input.Y) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ); } /// @@ -337,9 +351,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -357,107 +369,75 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "document_index", - Property = "DocumentIndex", - Type = "int", - Value = DocumentIndex, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - } - ); - types.Add( - new OpenApiType() - { - Name = "x", - Property = "X", - Type = "int", - Value = X, - } - ); - types.Add( - new OpenApiType() - { - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "page", - Property = "Page", - Type = "int?", - Value = Page, - } - ); + types.Add(new OpenApiType(){ + Name = "document_index", + Property = "DocumentIndex", + Type = "int", + Value = DocumentIndex, + }); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + }); + types.Add(new OpenApiType(){ + Name = "x", + Property = "X", + Type = "int", + Value = X, + }); + types.Add(new OpenApiType(){ + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "page", + Property = "Page", + Type = "int?", + Value = Page, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs index 630c17372..6bde5b7de 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentCheckbox - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentCheckbox : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentCheckbox() { } - /// /// Initializes a new instance of the class. /// @@ -59,21 +54,7 @@ protected SubFormFieldsPerDocumentCheckbox() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentCheckbox( - string type = @"checkbox", - string group = default(string), - bool isChecked = default(bool), - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentCheckbox(string type = @"checkbox", string group = default(string), bool isChecked = default(bool), int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -85,13 +66,11 @@ public SubFormFieldsPerDocumentCheckbox( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentCheckbox and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentCheckbox and cannot be null"); } this.Type = type; this.IsChecked = isChecked; @@ -108,9 +87,7 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentCheckbox" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentCheckbox"); } return obj; @@ -122,6 +99,7 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) /// A yes/no checkbox. Use the `SubFormFieldsPerDocumentCheckbox` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// `true` for checking the checkbox field by default, otherwise `false`. @@ -129,6 +107,7 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) /// `true` for checking the checkbox field by default, otherwise `false`. [DataMember(Name = "is_checked", IsRequired = true, EmitDefaultValue = true)] public bool IsChecked { get; set; } + /// /// String referencing group defined in `form_field_groups` parameter. @@ -136,6 +115,7 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) /// String referencing group defined in `form_field_groups` parameter. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// /// Returns the string presentation of the object @@ -159,10 +139,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -186,14 +163,20 @@ public bool Equals(SubFormFieldsPerDocumentCheckbox input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && (this.IsChecked == input.IsChecked || this.IsChecked.Equals(input.IsChecked)) - && base.Equals(input) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.IsChecked == input.IsChecked || + this.IsChecked.Equals(input.IsChecked) + ) && base.Equals(input) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) ); } @@ -224,9 +207,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -248,35 +229,27 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_checked", - Property = "IsChecked", - Type = "bool", - Value = IsChecked, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "is_checked", + Property = "IsChecked", + Type = "bool", + Value = IsChecked, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs index 7c2a3b2a5..3e4b9e569 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentCheckboxMerge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentCheckboxMerge - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentCheckboxMerge : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentCheckboxMerge() { } - /// /// Initializes a new instance of the class. /// @@ -57,19 +52,7 @@ protected SubFormFieldsPerDocumentCheckboxMerge() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentCheckboxMerge( - string type = @"checkbox-merge", - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentCheckboxMerge(string type = @"checkbox-merge", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -81,13 +64,11 @@ public SubFormFieldsPerDocumentCheckboxMerge( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentCheckboxMerge and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentCheckboxMerge and cannot be null"); } this.Type = type; } @@ -98,15 +79,11 @@ public SubFormFieldsPerDocumentCheckboxMerge( /// String of JSON data representing target object public static SubFormFieldsPerDocumentCheckboxMerge Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentCheckboxMerge" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentCheckboxMerge"); } return obj; @@ -118,6 +95,7 @@ public static SubFormFieldsPerDocumentCheckboxMerge Init(string jsonData) /// A checkbox field that has default value set using pre-filled data. Use the `SubFormFieldsPerDocumentCheckboxMerge` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -139,10 +117,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -166,8 +141,12 @@ public bool Equals(SubFormFieldsPerDocumentCheckboxMerge input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -192,9 +171,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -216,17 +193,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs index 98cba1033..c317ee776 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,11 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentDateSigned")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentDateSigned - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentDateSigned : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Font family for the field. @@ -138,22 +134,21 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16, + NotoSanThaiMerged = 16 } + /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentDateSigned() { } - /// /// Initializes a new instance of the class. /// @@ -170,21 +165,7 @@ protected SubFormFieldsPerDocumentDateSigned() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentDateSigned( - string type = @"date_signed", - FontFamilyEnum? fontFamily = default(FontFamilyEnum?), - int fontSize = 12, - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentDateSigned(string type = @"date_signed", FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -196,13 +177,11 @@ public SubFormFieldsPerDocumentDateSigned( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentDateSigned and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentDateSigned and cannot be null"); } this.Type = type; this.FontFamily = fontFamily; @@ -219,9 +198,7 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentDateSigned" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentDateSigned"); } return obj; @@ -233,6 +210,7 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) /// A date. Use the `SubFormFieldsPerDocumentDateSigned` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -240,6 +218,7 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -263,10 +242,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -290,12 +266,20 @@ public bool Equals(SubFormFieldsPerDocumentDateSigned input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) - && base.Equals(input) - && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.FontFamily == input.FontFamily || + this.FontFamily.Equals(input.FontFamily) + ) && base.Equals(input) && + ( + this.FontSize == input.FontSize || + this.FontSize.Equals(input.FontSize) + ); } /// @@ -322,9 +306,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -346,35 +328,27 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); + types.Add(new OpenApiType(){ + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs index 8328ee6e9..088afa90e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,11 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentDropdown")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentDropdown - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentDropdown : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Font family for the field. @@ -138,22 +134,21 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16, + NotoSanThaiMerged = 16 } + /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentDropdown() { } - /// /// Initializes a new instance of the class. /// @@ -172,23 +167,7 @@ protected SubFormFieldsPerDocumentDropdown() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentDropdown( - string type = @"dropdown", - List options = default(List), - string content = default(string), - FontFamilyEnum? fontFamily = default(FontFamilyEnum?), - int fontSize = 12, - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentDropdown(string type = @"dropdown", List options = default(List), string content = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -200,21 +179,17 @@ public SubFormFieldsPerDocumentDropdown( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentDropdown and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentDropdown and cannot be null"); } this.Type = type; // to ensure "options" is required (not null) if (options == null) { - throw new ArgumentNullException( - "options is a required property for SubFormFieldsPerDocumentDropdown and cannot be null" - ); + throw new ArgumentNullException("options is a required property for SubFormFieldsPerDocumentDropdown and cannot be null"); } this.Options = options; this.Content = content; @@ -232,9 +207,7 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentDropdown" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentDropdown"); } return obj; @@ -246,6 +219,7 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// An input field for dropdowns. Use the `SubFormFieldsPerDocumentDropdown` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Array of string values representing dropdown values. @@ -253,6 +227,7 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// Array of string values representing dropdown values. [DataMember(Name = "options", IsRequired = true, EmitDefaultValue = true)] public List Options { get; set; } + /// /// Selected value in `options` array. Value must exist in array. @@ -260,6 +235,7 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// Selected value in `options` array. Value must exist in array. [DataMember(Name = "content", EmitDefaultValue = true)] public string Content { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -267,6 +243,7 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -292,10 +269,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -319,24 +293,31 @@ public bool Equals(SubFormFieldsPerDocumentDropdown input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Options == input.Options - || this.Options != null - && input.Options != null - && this.Options.SequenceEqual(input.Options) - ) - && base.Equals(input) - && ( - this.Content == input.Content - || (this.Content != null && this.Content.Equals(input.Content)) - ) - && base.Equals(input) - && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) - && base.Equals(input) - && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Options == input.Options || + this.Options != null && + input.Options != null && + this.Options.SequenceEqual(input.Options) + ) && base.Equals(input) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ) && base.Equals(input) && + ( + this.FontFamily == input.FontFamily || + this.FontFamily.Equals(input.FontFamily) + ) && base.Equals(input) && + ( + this.FontSize == input.FontSize || + this.FontSize.Equals(input.FontSize) + ); } /// @@ -371,9 +352,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -395,53 +374,39 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "options", - Property = "Options", - Type = "List", - Value = Options, - } - ); - types.Add( - new OpenApiType() - { - Name = "content", - Property = "Content", - Type = "string", - Value = Content, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "options", + Property = "Options", + Type = "List", + Value = Options, + }); + types.Add(new OpenApiType(){ + Name = "content", + Property = "Content", + Type = "string", + Value = Content, + }); + types.Add(new OpenApiType(){ + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); + types.Add(new OpenApiType(){ + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs index 311174c1e..84b4ad0d7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -126,6 +126,7 @@ public enum SubFormFieldsPerDocumentFontEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16, + NotoSanThaiMerged = 16 } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs index 2508424e0..57e7080ef 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,11 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentHyperlink")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentHyperlink - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentHyperlink : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Font family for the field. @@ -138,22 +134,21 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16, + NotoSanThaiMerged = 16 } + /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentHyperlink() { } - /// /// Initializes a new instance of the class. /// @@ -172,23 +167,7 @@ protected SubFormFieldsPerDocumentHyperlink() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentHyperlink( - string type = @"hyperlink", - string content = default(string), - string contentUrl = default(string), - FontFamilyEnum? fontFamily = default(FontFamilyEnum?), - int fontSize = 12, - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentHyperlink(string type = @"hyperlink", string content = default(string), string contentUrl = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -200,29 +179,23 @@ public SubFormFieldsPerDocumentHyperlink( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null"); } this.Type = type; // to ensure "content" is required (not null) if (content == null) { - throw new ArgumentNullException( - "content is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null" - ); + throw new ArgumentNullException("content is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null"); } this.Content = content; // to ensure "contentUrl" is required (not null) if (contentUrl == null) { - throw new ArgumentNullException( - "contentUrl is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null" - ); + throw new ArgumentNullException("contentUrl is a required property for SubFormFieldsPerDocumentHyperlink and cannot be null"); } this.ContentUrl = contentUrl; this.FontFamily = fontFamily; @@ -239,9 +212,7 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentHyperlink" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentHyperlink"); } return obj; @@ -253,6 +224,7 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// A hyperlink field. Use the `SubFormFieldsPerDocumentHyperlink` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Link Text. @@ -260,6 +232,7 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// Link Text. [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] public string Content { get; set; } + /// /// Link URL. @@ -267,6 +240,7 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// Link URL. [DataMember(Name = "content_url", IsRequired = true, EmitDefaultValue = true)] public string ContentUrl { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -274,6 +248,7 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -299,10 +274,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -326,22 +298,30 @@ public bool Equals(SubFormFieldsPerDocumentHyperlink input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Content == input.Content - || (this.Content != null && this.Content.Equals(input.Content)) - ) - && base.Equals(input) - && ( - this.ContentUrl == input.ContentUrl - || (this.ContentUrl != null && this.ContentUrl.Equals(input.ContentUrl)) - ) - && base.Equals(input) - && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) - && base.Equals(input) - && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ) && base.Equals(input) && + ( + this.ContentUrl == input.ContentUrl || + (this.ContentUrl != null && + this.ContentUrl.Equals(input.ContentUrl)) + ) && base.Equals(input) && + ( + this.FontFamily == input.FontFamily || + this.FontFamily.Equals(input.FontFamily) + ) && base.Equals(input) && + ( + this.FontSize == input.FontSize || + this.FontSize.Equals(input.FontSize) + ); } /// @@ -376,9 +356,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -400,53 +378,39 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "content", - Property = "Content", - Type = "string", - Value = Content, - } - ); - types.Add( - new OpenApiType() - { - Name = "content_url", - Property = "ContentUrl", - Type = "string", - Value = ContentUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "content", + Property = "Content", + Type = "string", + Value = Content, + }); + types.Add(new OpenApiType(){ + Name = "content_url", + Property = "ContentUrl", + Type = "string", + Value = ContentUrl, + }); + types.Add(new OpenApiType(){ + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); + types.Add(new OpenApiType(){ + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs index 5ef52e724..6cb01dc29 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentInitials")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentInitials - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentInitials : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentInitials() { } - /// /// Initializes a new instance of the class. /// @@ -57,19 +52,7 @@ protected SubFormFieldsPerDocumentInitials() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentInitials( - string type = @"initials", - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentInitials(string type = @"initials", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -81,13 +64,11 @@ public SubFormFieldsPerDocumentInitials( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentInitials and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentInitials and cannot be null"); } this.Type = type; } @@ -102,9 +83,7 @@ public static SubFormFieldsPerDocumentInitials Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentInitials" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentInitials"); } return obj; @@ -116,6 +95,7 @@ public static SubFormFieldsPerDocumentInitials Init(string jsonData) /// An input field for initials. Use the `SubFormFieldsPerDocumentInitials` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -137,10 +117,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -164,8 +141,12 @@ public bool Equals(SubFormFieldsPerDocumentInitials input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -190,9 +171,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -214,17 +193,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs index a38ca54bc..8388b0554 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentRadio")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentRadio - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentRadio : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentRadio() { } - /// /// Initializes a new instance of the class. /// @@ -59,21 +54,7 @@ protected SubFormFieldsPerDocumentRadio() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentRadio( - string type = @"radio", - string group = default(string), - bool isChecked = default(bool), - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentRadio(string type = @"radio", string group = default(string), bool isChecked = default(bool), int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -85,21 +66,17 @@ public SubFormFieldsPerDocumentRadio( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentRadio and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentRadio and cannot be null"); } this.Type = type; // to ensure "group" is required (not null) if (group == null) { - throw new ArgumentNullException( - "group is a required property for SubFormFieldsPerDocumentRadio and cannot be null" - ); + throw new ArgumentNullException("group is a required property for SubFormFieldsPerDocumentRadio and cannot be null"); } this.Group = group; this.IsChecked = isChecked; @@ -115,9 +92,7 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentRadio" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentRadio"); } return obj; @@ -129,6 +104,7 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) /// An input field for radios. Use the `SubFormFieldsPerDocumentRadio` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// String referencing group defined in `form_field_groups` parameter. @@ -136,6 +112,7 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) /// String referencing group defined in `form_field_groups` parameter. [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] public string Group { get; set; } + /// /// `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. @@ -143,6 +120,7 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) /// `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. [DataMember(Name = "is_checked", IsRequired = true, EmitDefaultValue = true)] public bool IsChecked { get; set; } + /// /// Returns the string presentation of the object @@ -166,10 +144,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -193,15 +168,21 @@ public bool Equals(SubFormFieldsPerDocumentRadio input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) - ) - && base.Equals(input) - && (this.IsChecked == input.IsChecked || this.IsChecked.Equals(input.IsChecked)); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && base.Equals(input) && + ( + this.IsChecked == input.IsChecked || + this.IsChecked.Equals(input.IsChecked) + ); } /// @@ -231,9 +212,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -255,35 +234,27 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_checked", - Property = "IsChecked", - Type = "bool", - Value = IsChecked, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); + types.Add(new OpenApiType(){ + Name = "is_checked", + Property = "IsChecked", + Type = "bool", + Value = IsChecked, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs index d2fa137ec..366776a6f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentSignature")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentSignature - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentSignature : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentSignature() { } - /// /// Initializes a new instance of the class. /// @@ -57,19 +52,7 @@ protected SubFormFieldsPerDocumentSignature() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentSignature( - string type = @"signature", - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentSignature(string type = @"signature", int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -81,13 +64,11 @@ public SubFormFieldsPerDocumentSignature( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentSignature and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentSignature and cannot be null"); } this.Type = type; } @@ -102,9 +83,7 @@ public static SubFormFieldsPerDocumentSignature Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentSignature" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentSignature"); } return obj; @@ -116,6 +95,7 @@ public static SubFormFieldsPerDocumentSignature Init(string jsonData) /// A signature input field. Use the `SubFormFieldsPerDocumentSignature` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -137,10 +117,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -164,8 +141,12 @@ public bool Equals(SubFormFieldsPerDocumentSignature input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -190,9 +171,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -214,17 +193,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs index 02cfd184e..1dafc9d1c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,11 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentText - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentText : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. **NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. @@ -102,16 +98,16 @@ public enum ValidationTypeEnum /// Enum CustomRegex for value: custom_regex /// [EnumMember(Value = "custom_regex")] - CustomRegex = 10, + CustomRegex = 10 } + /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. **NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. **NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. [DataMember(Name = "validation_type", EmitDefaultValue = true)] public ValidationTypeEnum? ValidationType { get; set; } - /// /// Font family for the field. /// @@ -213,22 +209,21 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16, + NotoSanThaiMerged = 16 } + /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentText() { } - /// /// Initializes a new instance of the class. /// @@ -253,29 +248,7 @@ protected SubFormFieldsPerDocumentText() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentText( - string type = @"text", - string placeholder = default(string), - string autoFillType = default(string), - string linkId = default(string), - bool masked = default(bool), - ValidationTypeEnum? validationType = default(ValidationTypeEnum?), - string validationCustomRegex = default(string), - string validationCustomRegexFormatLabel = default(string), - string content = default(string), - FontFamilyEnum? fontFamily = default(FontFamilyEnum?), - int fontSize = 12, - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentText(string type = @"text", string placeholder = default(string), string autoFillType = default(string), string linkId = default(string), bool masked = default(bool), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string validationCustomRegex = default(string), string validationCustomRegexFormatLabel = default(string), string content = default(string), FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -287,13 +260,11 @@ public SubFormFieldsPerDocumentText( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentText and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentText and cannot be null"); } this.Type = type; this.Placeholder = placeholder; @@ -318,9 +289,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentText" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentText"); } return obj; @@ -332,6 +301,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// A text input field. Use the `SubFormFieldsPerDocumentText` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Placeholder value for text field. @@ -339,6 +309,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Placeholder value for text field. [DataMember(Name = "placeholder", EmitDefaultValue = true)] public string Placeholder { get; set; } + /// /// Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. @@ -346,6 +317,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. [DataMember(Name = "auto_fill_type", EmitDefaultValue = true)] public string AutoFillType { get; set; } + /// /// Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. @@ -353,6 +325,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. [DataMember(Name = "link_id", EmitDefaultValue = true)] public string LinkId { get; set; } + /// /// Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. @@ -360,18 +333,21 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. [DataMember(Name = "masked", EmitDefaultValue = true)] public bool Masked { get; set; } + /// /// Gets or Sets ValidationCustomRegex /// [DataMember(Name = "validation_custom_regex", EmitDefaultValue = true)] public string ValidationCustomRegex { get; set; } + /// /// Gets or Sets ValidationCustomRegexFormatLabel /// [DataMember(Name = "validation_custom_regex_format_label", EmitDefaultValue = true)] public string ValidationCustomRegexFormatLabel { get; set; } + /// /// Content of a `me_now` text field @@ -379,6 +355,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// Content of a `me_now` text field [DataMember(Name = "content", EmitDefaultValue = true)] public string Content { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -386,6 +363,7 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -403,9 +381,7 @@ public override string ToString() sb.Append(" Masked: ").Append(Masked).Append("\n"); sb.Append(" ValidationType: ").Append(ValidationType).Append("\n"); sb.Append(" ValidationCustomRegex: ").Append(ValidationCustomRegex).Append("\n"); - sb.Append(" ValidationCustomRegexFormatLabel: ") - .Append(ValidationCustomRegexFormatLabel) - .Append("\n"); + sb.Append(" ValidationCustomRegexFormatLabel: ").Append(ValidationCustomRegexFormatLabel).Append("\n"); sb.Append(" Content: ").Append(Content).Append("\n"); sb.Append(" FontFamily: ").Append(FontFamily).Append("\n"); sb.Append(" FontSize: ").Append(FontSize).Append("\n"); @@ -419,10 +395,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -446,57 +419,58 @@ public bool Equals(SubFormFieldsPerDocumentText input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.Placeholder == input.Placeholder - || (this.Placeholder != null && this.Placeholder.Equals(input.Placeholder)) - ) - && base.Equals(input) - && ( - this.AutoFillType == input.AutoFillType - || (this.AutoFillType != null && this.AutoFillType.Equals(input.AutoFillType)) - ) - && base.Equals(input) - && ( - this.LinkId == input.LinkId - || (this.LinkId != null && this.LinkId.Equals(input.LinkId)) - ) - && base.Equals(input) - && (this.Masked == input.Masked || this.Masked.Equals(input.Masked)) - && base.Equals(input) - && ( - this.ValidationType == input.ValidationType - || this.ValidationType.Equals(input.ValidationType) - ) - && base.Equals(input) - && ( - this.ValidationCustomRegex == input.ValidationCustomRegex - || ( - this.ValidationCustomRegex != null - && this.ValidationCustomRegex.Equals(input.ValidationCustomRegex) - ) - ) - && base.Equals(input) - && ( - this.ValidationCustomRegexFormatLabel == input.ValidationCustomRegexFormatLabel - || ( - this.ValidationCustomRegexFormatLabel != null - && this.ValidationCustomRegexFormatLabel.Equals( - input.ValidationCustomRegexFormatLabel - ) - ) - ) - && base.Equals(input) - && ( - this.Content == input.Content - || (this.Content != null && this.Content.Equals(input.Content)) - ) - && base.Equals(input) - && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) - && base.Equals(input) - && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.Placeholder == input.Placeholder || + (this.Placeholder != null && + this.Placeholder.Equals(input.Placeholder)) + ) && base.Equals(input) && + ( + this.AutoFillType == input.AutoFillType || + (this.AutoFillType != null && + this.AutoFillType.Equals(input.AutoFillType)) + ) && base.Equals(input) && + ( + this.LinkId == input.LinkId || + (this.LinkId != null && + this.LinkId.Equals(input.LinkId)) + ) && base.Equals(input) && + ( + this.Masked == input.Masked || + this.Masked.Equals(input.Masked) + ) && base.Equals(input) && + ( + this.ValidationType == input.ValidationType || + this.ValidationType.Equals(input.ValidationType) + ) && base.Equals(input) && + ( + this.ValidationCustomRegex == input.ValidationCustomRegex || + (this.ValidationCustomRegex != null && + this.ValidationCustomRegex.Equals(input.ValidationCustomRegex)) + ) && base.Equals(input) && + ( + this.ValidationCustomRegexFormatLabel == input.ValidationCustomRegexFormatLabel || + (this.ValidationCustomRegexFormatLabel != null && + this.ValidationCustomRegexFormatLabel.Equals(input.ValidationCustomRegexFormatLabel)) + ) && base.Equals(input) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ) && base.Equals(input) && + ( + this.FontFamily == input.FontFamily || + this.FontFamily.Equals(input.FontFamily) + ) && base.Equals(input) && + ( + this.FontSize == input.FontSize || + this.FontSize.Equals(input.FontSize) + ); } /// @@ -532,8 +506,7 @@ public override int GetHashCode() } if (this.ValidationCustomRegexFormatLabel != null) { - hashCode = - (hashCode * 59) + this.ValidationCustomRegexFormatLabel.GetHashCode(); + hashCode = (hashCode * 59) + this.ValidationCustomRegexFormatLabel.GetHashCode(); } if (this.Content != null) { @@ -550,9 +523,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -574,107 +545,75 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "placeholder", - Property = "Placeholder", - Type = "string", - Value = Placeholder, - } - ); - types.Add( - new OpenApiType() - { - Name = "auto_fill_type", - Property = "AutoFillType", - Type = "string", - Value = AutoFillType, - } - ); - types.Add( - new OpenApiType() - { - Name = "link_id", - Property = "LinkId", - Type = "string", - Value = LinkId, - } - ); - types.Add( - new OpenApiType() - { - Name = "masked", - Property = "Masked", - Type = "bool", - Value = Masked, - } - ); - types.Add( - new OpenApiType() - { - Name = "validation_type", - Property = "ValidationType", - Type = "string", - Value = ValidationType, - } - ); - types.Add( - new OpenApiType() - { - Name = "validation_custom_regex", - Property = "ValidationCustomRegex", - Type = "string", - Value = ValidationCustomRegex, - } - ); - types.Add( - new OpenApiType() - { - Name = "validation_custom_regex_format_label", - Property = "ValidationCustomRegexFormatLabel", - Type = "string", - Value = ValidationCustomRegexFormatLabel, - } - ); - types.Add( - new OpenApiType() - { - Name = "content", - Property = "Content", - Type = "string", - Value = Content, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "placeholder", + Property = "Placeholder", + Type = "string", + Value = Placeholder, + }); + types.Add(new OpenApiType(){ + Name = "auto_fill_type", + Property = "AutoFillType", + Type = "string", + Value = AutoFillType, + }); + types.Add(new OpenApiType(){ + Name = "link_id", + Property = "LinkId", + Type = "string", + Value = LinkId, + }); + types.Add(new OpenApiType(){ + Name = "masked", + Property = "Masked", + Type = "bool", + Value = Masked, + }); + types.Add(new OpenApiType(){ + Name = "validation_type", + Property = "ValidationType", + Type = "string", + Value = ValidationType, + }); + types.Add(new OpenApiType(){ + Name = "validation_custom_regex", + Property = "ValidationCustomRegex", + Type = "string", + Value = ValidationCustomRegex, + }); + types.Add(new OpenApiType(){ + Name = "validation_custom_regex_format_label", + Property = "ValidationCustomRegexFormatLabel", + Type = "string", + Value = ValidationCustomRegexFormatLabel, + }); + types.Add(new OpenApiType(){ + Name = "content", + Property = "Content", + Type = "string", + Value = Content, + }); + types.Add(new OpenApiType(){ + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); + types.Add(new OpenApiType(){ + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs index 4d46a6790..10010bae8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,11 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubFormFieldsPerDocumentTextMerge")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubFormFieldsPerDocumentTextMerge - : SubFormFieldsPerDocumentBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class SubFormFieldsPerDocumentTextMerge : SubFormFieldsPerDocumentBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Font family for the field. @@ -138,22 +134,21 @@ public enum FontFamilyEnum /// Enum NotoSanThaiMerged for value: notoSanThaiMerged /// [EnumMember(Value = "notoSanThaiMerged")] - NotoSanThaiMerged = 16, + NotoSanThaiMerged = 16 } + /// /// Font family for the field. /// /// Font family for the field. [DataMember(Name = "font_family", EmitDefaultValue = true)] public FontFamilyEnum? FontFamily { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubFormFieldsPerDocumentTextMerge() { } - /// /// Initializes a new instance of the class. /// @@ -170,21 +165,7 @@ protected SubFormFieldsPerDocumentTextMerge() { } /// Size of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). /// Location coordinates of the field in pixels. (required). - public SubFormFieldsPerDocumentTextMerge( - string type = @"text-merge", - FontFamilyEnum? fontFamily = default(FontFamilyEnum?), - int fontSize = 12, - int documentIndex = default(int), - string apiId = default(string), - int height = default(int), - string name = default(string), - int? page = default(int?), - bool required = default(bool), - Object signer = null, - int width = default(int), - int x = default(int), - int y = default(int) - ) + public SubFormFieldsPerDocumentTextMerge(string type = @"text-merge", FontFamilyEnum? fontFamily = default(FontFamilyEnum?), int fontSize = 12, int documentIndex = default(int), string apiId = default(string), int height = default(int), string name = default(string), int? page = default(int?), bool required = default(bool), Object signer = null, int width = default(int), int x = default(int), int y = default(int)) { this.DocumentIndex = documentIndex; this.ApiId = apiId; @@ -196,13 +177,11 @@ public SubFormFieldsPerDocumentTextMerge( this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for SubFormFieldsPerDocumentTextMerge and cannot be null" - ); + throw new ArgumentNullException("type is a required property for SubFormFieldsPerDocumentTextMerge and cannot be null"); } this.Type = type; this.FontFamily = fontFamily; @@ -219,9 +198,7 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubFormFieldsPerDocumentTextMerge" - ); + throw new Exception("Unable to deserialize JSON to instance of SubFormFieldsPerDocumentTextMerge"); } return obj; @@ -233,6 +210,7 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) /// A text field that has default text set using pre-filled data. Use the `SubFormFieldsPerDocumentTextMerge` class. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. @@ -240,6 +218,7 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } + /// /// Returns the string presentation of the object @@ -263,10 +242,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -290,12 +266,20 @@ public bool Equals(SubFormFieldsPerDocumentTextMerge input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && (this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily)) - && base.Equals(input) - && (this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize)); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.FontFamily == input.FontFamily || + this.FontFamily.Equals(input.FontFamily) + ) && base.Equals(input) && + ( + this.FontSize == input.FontSize || + this.FontSize.Equals(input.FontSize) + ); } /// @@ -322,9 +306,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -346,35 +328,27 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_family", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); - types.Add( - new OpenApiType() - { - Name = "font_size", - Property = "FontSize", - Type = "int", - Value = FontSize, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "font_family", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); + types.Add(new OpenApiType(){ + Name = "font_size", + Property = "FontSize", + Type = "int", + Value = FontSize, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs index b0d188af0..4a45ad866 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -90,6 +90,7 @@ public enum SubFormFieldsPerDocumentTypeEnum /// Enum TextMerge for value: text-merge /// [EnumMember(Value = "text-merge")] - TextMerge = 10, + TextMerge = 10 } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs index b79074f47..c47d6ac3a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -50,22 +50,21 @@ public enum TypeEnum /// Enum Checkbox for value: checkbox /// [EnumMember(Value = "checkbox")] - Checkbox = 2, + Checkbox = 2 } + /// /// The type of merge field. /// /// The type of merge field. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public TypeEnum Type { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubMergeField() { } - /// /// Initializes a new instance of the class. /// @@ -73,12 +72,11 @@ protected SubMergeField() { } /// The type of merge field. (required). public SubMergeField(string name = default(string), TypeEnum type = default(TypeEnum)) { + // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SubMergeField and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SubMergeField and cannot be null"); } this.Name = name; this.Type = type; @@ -106,6 +104,7 @@ public static SubMergeField Init(string jsonData) /// The name of the merge field. Must be unique. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -127,10 +126,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -154,8 +150,16 @@ public bool Equals(SubMergeField input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Type == input.Type || this.Type.Equals(input.Type)); + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ); } /// @@ -181,9 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -191,26 +193,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs index c5d57fa5a..891963667 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -82,10 +82,10 @@ public enum ScopesEnum ApiAppAccess = 7, /// - /// Enum Empty for value: + /// Enum Empty for value: /// [EnumMember(Value = "")] - Empty = 8, + Empty = 8 } /// @@ -93,17 +93,14 @@ public enum ScopesEnum /// [JsonConstructorAttribute] protected SubOAuth() { } - /// /// Initializes a new instance of the class. /// /// The callback URL to be used for OAuth flows. (Required if `oauth[scopes]` is provided). /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided).. - public SubOAuth( - string callbackUrl = default(string), - List scopes = default(List) - ) + public SubOAuth(string callbackUrl = default(string), List scopes = default(List)) { + this.CallbackUrl = callbackUrl; this.Scopes = scopes; } @@ -130,6 +127,7 @@ public static SubOAuth Init(string jsonData) /// The callback URL to be used for OAuth flows. (Required if `oauth[scopes]` is provided) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } + /// /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). @@ -137,6 +135,7 @@ public static SubOAuth Init(string jsonData) /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). [DataMember(Name = "scopes", EmitDefaultValue = true)] public List Scopes { get; set; } + /// /// Returns the string presentation of the object @@ -158,10 +157,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -185,15 +181,17 @@ public bool Equals(SubOAuth input) { return false; } - return ( - this.CallbackUrl == input.CallbackUrl - || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) - ) - && ( - this.Scopes == input.Scopes - || this.Scopes != null - && input.Scopes != null - && this.Scopes.SequenceEqual(input.Scopes) + return + ( + this.CallbackUrl == input.CallbackUrl || + (this.CallbackUrl != null && + this.CallbackUrl.Equals(input.CallbackUrl)) + ) && + ( + this.Scopes == input.Scopes || + this.Scopes != null && + input.Scopes != null && + this.Scopes.SequenceEqual(input.Scopes) ); } @@ -223,9 +221,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -233,26 +229,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "callback_url", - Property = "CallbackUrl", - Type = "string", - Value = CallbackUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "scopes", - Property = "Scopes", - Type = "List", - Value = Scopes, - } - ); + types.Add(new OpenApiType(){ + Name = "callback_url", + Property = "CallbackUrl", + Type = "string", + Value = CallbackUrl, + }); + types.Add(new OpenApiType(){ + Name = "scopes", + Property = "Scopes", + Type = "List", + Value = Scopes, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs index 04fcf6346..8e8e3fa40 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class SubOptions : IEquatable, IValidatableObject /// [JsonConstructorAttribute] protected SubOptions() { } - /// /// Initializes a new instance of the class. /// /// Determines if signers can use \"Insert Everywhere\" when signing a document. (default to false). public SubOptions(bool canInsertEverywhere = false) { + this.CanInsertEverywhere = canInsertEverywhere; } @@ -70,6 +70,7 @@ public static SubOptions Init(string jsonData) /// Determines if signers can use \"Insert Everywhere\" when signing a document. [DataMember(Name = "can_insert_everywhere", EmitDefaultValue = true)] public bool CanInsertEverywhere { get; set; } + /// /// Returns the string presentation of the object @@ -90,10 +91,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -117,10 +115,11 @@ public bool Equals(SubOptions input) { return false; } - return ( - this.CanInsertEverywhere == input.CanInsertEverywhere - || this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) - ); + return + ( + this.CanInsertEverywhere == input.CanInsertEverywhere || + this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) + ); } /// @@ -142,9 +141,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -152,17 +149,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "can_insert_everywhere", - Property = "CanInsertEverywhere", - Type = "bool", - Value = CanInsertEverywhere, - } - ); + types.Add(new OpenApiType(){ + Name = "can_insert_everywhere", + Property = "CanInsertEverywhere", + Type = "bool", + Value = CanInsertEverywhere, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs index 74571df93..ef20bc635 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,42 +31,32 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSignatureRequestGroupedSigners")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSignatureRequestGroupedSigners - : IEquatable, - IValidatableObject + public partial class SubSignatureRequestGroupedSigners : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubSignatureRequestGroupedSigners() { } - /// /// Initializes a new instance of the class. /// /// The name of the group. (required). /// The order the group is required to sign in. Use this instead of Signer-level `order`.. /// Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. (required). - public SubSignatureRequestGroupedSigners( - string group = default(string), - int? order = default(int?), - List signers = default(List) - ) + public SubSignatureRequestGroupedSigners(string group = default(string), int? order = default(int?), List signers = default(List)) { + // to ensure "group" is required (not null) if (group == null) { - throw new ArgumentNullException( - "group is a required property for SubSignatureRequestGroupedSigners and cannot be null" - ); + throw new ArgumentNullException("group is a required property for SubSignatureRequestGroupedSigners and cannot be null"); } this.Group = group; // to ensure "signers" is required (not null) if (signers == null) { - throw new ArgumentNullException( - "signers is a required property for SubSignatureRequestGroupedSigners and cannot be null" - ); + throw new ArgumentNullException("signers is a required property for SubSignatureRequestGroupedSigners and cannot be null"); } this.Signers = signers; this.Order = order; @@ -82,9 +72,7 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubSignatureRequestGroupedSigners" - ); + throw new Exception("Unable to deserialize JSON to instance of SubSignatureRequestGroupedSigners"); } return obj; @@ -96,6 +84,7 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) /// The name of the group. [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] public string Group { get; set; } + /// /// Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. @@ -103,6 +92,7 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) /// Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } + /// /// The order the group is required to sign in. Use this instead of Signer-level `order`. @@ -110,6 +100,7 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) /// The order the group is required to sign in. Use this instead of Signer-level `order`. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// Returns the string presentation of the object @@ -132,10 +123,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -159,19 +147,22 @@ public bool Equals(SubSignatureRequestGroupedSigners input) { return false; } - return ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.Order == input.Order - || (this.Order != null && this.Order.Equals(input.Order)) + return + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) ); } @@ -205,9 +196,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -215,35 +204,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - } - ); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs index 555b1b771..f82ed3d33 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,9 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSignatureRequestSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSignatureRequestSigner - : IEquatable, - IValidatableObject + public partial class SubSignatureRequestSigner : IEquatable, IValidatableObject { /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). @@ -52,22 +50,21 @@ public enum SmsPhoneNumberTypeEnum /// Enum Delivery for value: delivery /// [EnumMember(Value = "delivery")] - Delivery = 2, + Delivery = 2 } + /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). [DataMember(Name = "sms_phone_number_type", EmitDefaultValue = true)] public SmsPhoneNumberTypeEnum? SmsPhoneNumberType { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubSignatureRequestSigner() { } - /// /// Initializes a new instance of the class. /// @@ -77,29 +74,19 @@ protected SubSignatureRequestSigner() { } /// The 4- to 12-character access code that will secure this signer's signature page.. /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher.. /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email).. - public SubSignatureRequestSigner( - string name = default(string), - string emailAddress = default(string), - int? order = default(int?), - string pin = default(string), - string smsPhoneNumber = default(string), - SmsPhoneNumberTypeEnum? smsPhoneNumberType = default(SmsPhoneNumberTypeEnum?) - ) + public SubSignatureRequestSigner(string name = default(string), string emailAddress = default(string), int? order = default(int?), string pin = default(string), string smsPhoneNumber = default(string), SmsPhoneNumberTypeEnum? smsPhoneNumberType = default(SmsPhoneNumberTypeEnum?)) { + // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SubSignatureRequestSigner and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SubSignatureRequestSigner and cannot be null"); } this.Name = name; // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException( - "emailAddress is a required property for SubSignatureRequestSigner and cannot be null" - ); + throw new ArgumentNullException("emailAddress is a required property for SubSignatureRequestSigner and cannot be null"); } this.EmailAddress = emailAddress; this.Order = order; @@ -118,9 +105,7 @@ public static SubSignatureRequestSigner Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubSignatureRequestSigner" - ); + throw new Exception("Unable to deserialize JSON to instance of SubSignatureRequestSigner"); } return obj; @@ -132,6 +117,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The email address of the signer. @@ -139,6 +125,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The email address of the signer. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The order the signer is required to sign in. @@ -146,6 +133,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The order the signer is required to sign in. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// The 4- to 12-character access code that will secure this signer's signature page. @@ -153,6 +141,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// The 4- to 12-character access code that will secure this signer's signature page. [DataMember(Name = "pin", EmitDefaultValue = true)] public string Pin { get; set; } + /// /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. @@ -160,6 +149,7 @@ public static SubSignatureRequestSigner Init(string jsonData) /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } + /// /// Returns the string presentation of the object @@ -185,10 +175,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -212,26 +199,35 @@ public bool Equals(SubSignatureRequestSigner input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && ( - this.Order == input.Order - || (this.Order != null && this.Order.Equals(input.Order)) - ) - && (this.Pin == input.Pin || (this.Pin != null && this.Pin.Equals(input.Pin))) - && ( - this.SmsPhoneNumber == input.SmsPhoneNumber - || ( - this.SmsPhoneNumber != null - && this.SmsPhoneNumber.Equals(input.SmsPhoneNumber) - ) - ) - && ( - this.SmsPhoneNumberType == input.SmsPhoneNumberType - || this.SmsPhoneNumberType.Equals(input.SmsPhoneNumberType) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.Pin == input.Pin || + (this.Pin != null && + this.Pin.Equals(input.Pin)) + ) && + ( + this.SmsPhoneNumber == input.SmsPhoneNumber || + (this.SmsPhoneNumber != null && + this.SmsPhoneNumber.Equals(input.SmsPhoneNumber)) + ) && + ( + this.SmsPhoneNumberType == input.SmsPhoneNumberType || + this.SmsPhoneNumberType.Equals(input.SmsPhoneNumberType) ); } @@ -274,26 +270,18 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Pin (string) maxLength if (this.Pin != null && this.Pin.Length > 12) { - yield return new ValidationResult( - "Invalid value for Pin, length must be less than 12.", - new[] { "Pin" } - ); + yield return new ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); } // Pin (string) minLength if (this.Pin != null && this.Pin.Length < 4) { - yield return new ValidationResult( - "Invalid value for Pin, length must be greater than 4.", - new[] { "Pin" } - ); + yield return new ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); } yield break; @@ -302,62 +290,45 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - } - ); - types.Add( - new OpenApiType() - { - Name = "pin", - Property = "Pin", - Type = "string", - Value = Pin, - } - ); - types.Add( - new OpenApiType() - { - Name = "sms_phone_number", - Property = "SmsPhoneNumber", - Type = "string", - Value = SmsPhoneNumber, - } - ); - types.Add( - new OpenApiType() - { - Name = "sms_phone_number_type", - Property = "SmsPhoneNumberType", - Type = "string", - Value = SmsPhoneNumberType, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + }); + types.Add(new OpenApiType(){ + Name = "pin", + Property = "Pin", + Type = "string", + Value = Pin, + }); + types.Add(new OpenApiType(){ + Name = "sms_phone_number", + Property = "SmsPhoneNumber", + Type = "string", + Value = SmsPhoneNumber, + }); + types.Add(new OpenApiType(){ + Name = "sms_phone_number_type", + Property = "SmsPhoneNumberType", + Type = "string", + Value = SmsPhoneNumberType, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs index 18ba5c9d0..c6c7014e3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,9 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubSignatureRequestTemplateSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubSignatureRequestTemplateSigner - : IEquatable, - IValidatableObject + public partial class SubSignatureRequestTemplateSigner : IEquatable, IValidatableObject { /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). @@ -52,22 +50,21 @@ public enum SmsPhoneNumberTypeEnum /// Enum Delivery for value: delivery /// [EnumMember(Value = "delivery")] - Delivery = 2, + Delivery = 2 } + /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). /// /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). [DataMember(Name = "sms_phone_number_type", EmitDefaultValue = true)] public SmsPhoneNumberTypeEnum? SmsPhoneNumberType { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubSignatureRequestTemplateSigner() { } - /// /// Initializes a new instance of the class. /// @@ -77,37 +74,25 @@ protected SubSignatureRequestTemplateSigner() { } /// The 4- to 12-character access code that will secure this signer's signature page.. /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher.. /// Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email).. - public SubSignatureRequestTemplateSigner( - string role = default(string), - string name = default(string), - string emailAddress = default(string), - string pin = default(string), - string smsPhoneNumber = default(string), - SmsPhoneNumberTypeEnum? smsPhoneNumberType = default(SmsPhoneNumberTypeEnum?) - ) + public SubSignatureRequestTemplateSigner(string role = default(string), string name = default(string), string emailAddress = default(string), string pin = default(string), string smsPhoneNumber = default(string), SmsPhoneNumberTypeEnum? smsPhoneNumberType = default(SmsPhoneNumberTypeEnum?)) { + // to ensure "role" is required (not null) if (role == null) { - throw new ArgumentNullException( - "role is a required property for SubSignatureRequestTemplateSigner and cannot be null" - ); + throw new ArgumentNullException("role is a required property for SubSignatureRequestTemplateSigner and cannot be null"); } this.Role = role; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SubSignatureRequestTemplateSigner and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SubSignatureRequestTemplateSigner and cannot be null"); } this.Name = name; // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException( - "emailAddress is a required property for SubSignatureRequestTemplateSigner and cannot be null" - ); + throw new ArgumentNullException("emailAddress is a required property for SubSignatureRequestTemplateSigner and cannot be null"); } this.EmailAddress = emailAddress; this.Pin = pin; @@ -125,9 +110,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubSignatureRequestTemplateSigner" - ); + throw new Exception("Unable to deserialize JSON to instance of SubSignatureRequestTemplateSigner"); } return obj; @@ -139,6 +122,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// Must match an existing role in chosen Template(s). It's case-sensitive. [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } + /// /// The name of the signer. @@ -146,6 +130,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The email address of the signer. @@ -153,6 +138,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// The email address of the signer. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The 4- to 12-character access code that will secure this signer's signature page. @@ -160,6 +146,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// The 4- to 12-character access code that will secure this signer's signature page. [DataMember(Name = "pin", EmitDefaultValue = true)] public string Pin { get; set; } + /// /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. @@ -167,6 +154,7 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } + /// /// Returns the string presentation of the object @@ -192,10 +180,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -219,23 +204,35 @@ public bool Equals(SubSignatureRequestTemplateSigner input) { return false; } - return (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && (this.Pin == input.Pin || (this.Pin != null && this.Pin.Equals(input.Pin))) - && ( - this.SmsPhoneNumber == input.SmsPhoneNumber - || ( - this.SmsPhoneNumber != null - && this.SmsPhoneNumber.Equals(input.SmsPhoneNumber) - ) - ) - && ( - this.SmsPhoneNumberType == input.SmsPhoneNumberType - || this.SmsPhoneNumberType.Equals(input.SmsPhoneNumberType) + return + ( + this.Role == input.Role || + (this.Role != null && + this.Role.Equals(input.Role)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Pin == input.Pin || + (this.Pin != null && + this.Pin.Equals(input.Pin)) + ) && + ( + this.SmsPhoneNumber == input.SmsPhoneNumber || + (this.SmsPhoneNumber != null && + this.SmsPhoneNumber.Equals(input.SmsPhoneNumber)) + ) && + ( + this.SmsPhoneNumberType == input.SmsPhoneNumberType || + this.SmsPhoneNumberType.Equals(input.SmsPhoneNumberType) ); } @@ -278,26 +275,18 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Pin (string) maxLength if (this.Pin != null && this.Pin.Length > 12) { - yield return new ValidationResult( - "Invalid value for Pin, length must be less than 12.", - new[] { "Pin" } - ); + yield return new ValidationResult("Invalid value for Pin, length must be less than 12.", new [] { "Pin" }); } // Pin (string) minLength if (this.Pin != null && this.Pin.Length < 4) { - yield return new ValidationResult( - "Invalid value for Pin, length must be greater than 4.", - new[] { "Pin" } - ); + yield return new ValidationResult("Invalid value for Pin, length must be greater than 4.", new [] { "Pin" }); } yield break; @@ -306,62 +295,45 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "pin", - Property = "Pin", - Type = "string", - Value = Pin, - } - ); - types.Add( - new OpenApiType() - { - Name = "sms_phone_number", - Property = "SmsPhoneNumber", - Type = "string", - Value = SmsPhoneNumber, - } - ); - types.Add( - new OpenApiType() - { - Name = "sms_phone_number_type", - Property = "SmsPhoneNumberType", - Type = "string", - Value = SmsPhoneNumberType, - } - ); + types.Add(new OpenApiType(){ + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "pin", + Property = "Pin", + Type = "string", + Value = Pin, + }); + types.Add(new OpenApiType(){ + Name = "sms_phone_number", + Property = "SmsPhoneNumber", + Type = "string", + Value = SmsPhoneNumber, + }); + types.Add(new OpenApiType(){ + Name = "sms_phone_number_type", + Property = "SmsPhoneNumberType", + Type = "string", + Value = SmsPhoneNumberType, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs index 5ed1c128f..81b37ad05 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -62,22 +62,21 @@ public enum DefaultTypeEnum /// Enum Upload for value: upload /// [EnumMember(Value = "upload")] - Upload = 4, + Upload = 4 } + /// /// The default type shown (limited to the listed types) /// /// The default type shown (limited to the listed types) [DataMember(Name = "default_type", IsRequired = true, EmitDefaultValue = true)] public DefaultTypeEnum DefaultType { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubSigningOptions() { } - /// /// Initializes a new instance of the class. /// @@ -86,14 +85,9 @@ protected SubSigningOptions() { } /// Allows using a smartphone to email the signature (default to false). /// Allows typing the signature (default to false). /// Allows uploading the signature (default to false). - public SubSigningOptions( - DefaultTypeEnum defaultType = default(DefaultTypeEnum), - bool draw = false, - bool phone = false, - bool type = false, - bool upload = false - ) + public SubSigningOptions(DefaultTypeEnum defaultType = default(DefaultTypeEnum), bool draw = false, bool phone = false, bool type = false, bool upload = false) { + this.DefaultType = defaultType; this.Draw = draw; this.Phone = phone; @@ -123,6 +117,7 @@ public static SubSigningOptions Init(string jsonData) /// Allows drawing the signature [DataMember(Name = "draw", EmitDefaultValue = true)] public bool Draw { get; set; } + /// /// Allows using a smartphone to email the signature @@ -130,6 +125,7 @@ public static SubSigningOptions Init(string jsonData) /// Allows using a smartphone to email the signature [DataMember(Name = "phone", EmitDefaultValue = true)] public bool Phone { get; set; } + /// /// Allows typing the signature @@ -137,6 +133,7 @@ public static SubSigningOptions Init(string jsonData) /// Allows typing the signature [DataMember(Name = "type", EmitDefaultValue = true)] public bool Type { get; set; } + /// /// Allows uploading the signature @@ -144,6 +141,7 @@ public static SubSigningOptions Init(string jsonData) /// Allows uploading the signature [DataMember(Name = "upload", EmitDefaultValue = true)] public bool Upload { get; set; } + /// /// Returns the string presentation of the object @@ -168,10 +166,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -195,14 +190,27 @@ public bool Equals(SubSigningOptions input) { return false; } - return ( - this.DefaultType == input.DefaultType - || this.DefaultType.Equals(input.DefaultType) - ) - && (this.Draw == input.Draw || this.Draw.Equals(input.Draw)) - && (this.Phone == input.Phone || this.Phone.Equals(input.Phone)) - && (this.Type == input.Type || this.Type.Equals(input.Type)) - && (this.Upload == input.Upload || this.Upload.Equals(input.Upload)); + return + ( + this.DefaultType == input.DefaultType || + this.DefaultType.Equals(input.DefaultType) + ) && + ( + this.Draw == input.Draw || + this.Draw.Equals(input.Draw) + ) && + ( + this.Phone == input.Phone || + this.Phone.Equals(input.Phone) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Upload == input.Upload || + this.Upload.Equals(input.Upload) + ); } /// @@ -228,9 +236,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -238,53 +244,39 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "default_type", - Property = "DefaultType", - Type = "string", - Value = DefaultType, - } - ); - types.Add( - new OpenApiType() - { - Name = "draw", - Property = "Draw", - Type = "bool", - Value = Draw, - } - ); - types.Add( - new OpenApiType() - { - Name = "phone", - Property = "Phone", - Type = "bool", - Value = Phone, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "bool", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "upload", - Property = "Upload", - Type = "bool", - Value = Upload, - } - ); + types.Add(new OpenApiType(){ + Name = "default_type", + Property = "DefaultType", + Type = "string", + Value = DefaultType, + }); + types.Add(new OpenApiType(){ + Name = "draw", + Property = "Draw", + Type = "bool", + Value = Draw, + }); + types.Add(new OpenApiType(){ + Name = "phone", + Property = "Phone", + Type = "bool", + Value = Phone, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "bool", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "upload", + Property = "Upload", + Type = "bool", + Value = Upload, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs index 37e554d1e..4e662a311 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class SubTeamResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected SubTeamResponse() { } - /// /// Initializes a new instance of the class. /// @@ -46,6 +45,7 @@ protected SubTeamResponse() { } /// The name of a team. public SubTeamResponse(string teamId = default(string), string name = default(string)) { + this.TeamId = teamId; this.Name = name; } @@ -72,6 +72,7 @@ public static SubTeamResponse Init(string jsonData) /// The id of a team [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// The name of a team @@ -79,6 +80,7 @@ public static SubTeamResponse Init(string jsonData) /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -100,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -127,11 +126,17 @@ public bool Equals(SubTeamResponse input) { return false; } - return ( - this.TeamId == input.TeamId - || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); + return + ( + this.TeamId == input.TeamId || + (this.TeamId != null && + this.TeamId.Equals(input.TeamId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); } /// @@ -160,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -170,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); + types.Add(new OpenApiType(){ + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs index 27864d83d..a10e28c5f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class SubTemplateRole : IEquatable, IValidatable /// [JsonConstructorAttribute] protected SubTemplateRole() { } - /// /// Initializes a new instance of the class. /// @@ -46,6 +45,7 @@ protected SubTemplateRole() { } /// The order in which this signer role is required to sign.. public SubTemplateRole(string name = default(string), int? order = default(int?)) { + this.Name = name; this.Order = order; } @@ -72,6 +72,7 @@ public static SubTemplateRole Init(string jsonData) /// The role name of the signer that will be displayed when the template is used to create a signature request. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The order in which this signer role is required to sign. @@ -79,6 +80,7 @@ public static SubTemplateRole Init(string jsonData) /// The order in which this signer role is required to sign. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// Returns the string presentation of the object @@ -100,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -127,10 +126,16 @@ public bool Equals(SubTemplateRole input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.Order == input.Order - || (this.Order != null && this.Order.Equals(input.Order)) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) ); } @@ -160,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -170,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs index 867f19acc..8dd1243e4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,42 +31,32 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubUnclaimedDraftSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubUnclaimedDraftSigner - : IEquatable, - IValidatableObject + public partial class SubUnclaimedDraftSigner : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubUnclaimedDraftSigner() { } - /// /// Initializes a new instance of the class. /// /// The email address of the signer. (required). /// The name of the signer. (required). /// The order the signer is required to sign in.. - public SubUnclaimedDraftSigner( - string emailAddress = default(string), - string name = default(string), - int? order = default(int?) - ) + public SubUnclaimedDraftSigner(string emailAddress = default(string), string name = default(string), int? order = default(int?)) { + // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException( - "emailAddress is a required property for SubUnclaimedDraftSigner and cannot be null" - ); + throw new ArgumentNullException("emailAddress is a required property for SubUnclaimedDraftSigner and cannot be null"); } this.EmailAddress = emailAddress; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SubUnclaimedDraftSigner and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SubUnclaimedDraftSigner and cannot be null"); } this.Name = name; this.Order = order; @@ -82,9 +72,7 @@ public static SubUnclaimedDraftSigner Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubUnclaimedDraftSigner" - ); + throw new Exception("Unable to deserialize JSON to instance of SubUnclaimedDraftSigner"); } return obj; @@ -96,6 +84,7 @@ public static SubUnclaimedDraftSigner Init(string jsonData) /// The email address of the signer. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The name of the signer. @@ -103,6 +92,7 @@ public static SubUnclaimedDraftSigner Init(string jsonData) /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The order the signer is required to sign in. @@ -110,6 +100,7 @@ public static SubUnclaimedDraftSigner Init(string jsonData) /// The order the signer is required to sign in. [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } + /// /// Returns the string presentation of the object @@ -132,10 +123,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -159,14 +147,21 @@ public bool Equals(SubUnclaimedDraftSigner input) { return false; } - return ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.Order == input.Order - || (this.Order != null && this.Order.Equals(input.Order)) + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) ); } @@ -200,9 +195,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -210,35 +203,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "order", - Property = "Order", - Type = "int?", - Value = Order, - } - ); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "order", + Property = "Order", + Type = "int?", + Value = Order, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs index 53da4ffae..2d295102b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,50 +31,38 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubUnclaimedDraftTemplateSigner")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubUnclaimedDraftTemplateSigner - : IEquatable, - IValidatableObject + public partial class SubUnclaimedDraftTemplateSigner : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubUnclaimedDraftTemplateSigner() { } - /// /// Initializes a new instance of the class. /// /// Must match an existing role in chosen Template(s). (required). /// The name of the signer filling the role of `role`. (required). /// The email address of the signer filling the role of `role`. (required). - public SubUnclaimedDraftTemplateSigner( - string role = default(string), - string name = default(string), - string emailAddress = default(string) - ) + public SubUnclaimedDraftTemplateSigner(string role = default(string), string name = default(string), string emailAddress = default(string)) { + // to ensure "role" is required (not null) if (role == null) { - throw new ArgumentNullException( - "role is a required property for SubUnclaimedDraftTemplateSigner and cannot be null" - ); + throw new ArgumentNullException("role is a required property for SubUnclaimedDraftTemplateSigner and cannot be null"); } this.Role = role; // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException( - "name is a required property for SubUnclaimedDraftTemplateSigner and cannot be null" - ); + throw new ArgumentNullException("name is a required property for SubUnclaimedDraftTemplateSigner and cannot be null"); } this.Name = name; // to ensure "emailAddress" is required (not null) if (emailAddress == null) { - throw new ArgumentNullException( - "emailAddress is a required property for SubUnclaimedDraftTemplateSigner and cannot be null" - ); + throw new ArgumentNullException("emailAddress is a required property for SubUnclaimedDraftTemplateSigner and cannot be null"); } this.EmailAddress = emailAddress; } @@ -89,9 +77,7 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubUnclaimedDraftTemplateSigner" - ); + throw new Exception("Unable to deserialize JSON to instance of SubUnclaimedDraftTemplateSigner"); } return obj; @@ -103,6 +89,7 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) /// Must match an existing role in chosen Template(s). [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } + /// /// The name of the signer filling the role of `role`. @@ -110,6 +97,7 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) /// The name of the signer filling the role of `role`. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// /// The email address of the signer filling the role of `role`. @@ -117,6 +105,7 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) /// The email address of the signer filling the role of `role`. [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -139,10 +128,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -166,11 +152,21 @@ public bool Equals(SubUnclaimedDraftTemplateSigner input) { return false; } - return (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + return + ( + this.Role == input.Role || + (this.Role != null && + this.Role.Equals(input.Role)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -204,9 +200,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -214,35 +208,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); + types.Add(new OpenApiType(){ + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs index 34d865cf2..5a9571e5c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,9 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "SubWhiteLabelingOptions")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SubWhiteLabelingOptions - : IEquatable, - IValidatableObject + public partial class SubWhiteLabelingOptions : IEquatable, IValidatableObject { /// /// Defines LegalVersion @@ -51,21 +49,20 @@ public enum LegalVersionEnum /// Enum Terms2 for value: terms2 /// [EnumMember(Value = "terms2")] - Terms2 = 2, + Terms2 = 2 } + /// /// Gets or Sets LegalVersion /// [DataMember(Name = "legal_version", EmitDefaultValue = true)] public LegalVersionEnum? LegalVersion { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SubWhiteLabelingOptions() { } - /// /// Initializes a new instance of the class. /// @@ -84,24 +81,9 @@ protected SubWhiteLabelingOptions() { } /// textColor1 (default to "#808080"). /// textColor2 (default to "#FFFFFF"). /// Resets white labeling options to defaults. Only useful when updating an API App.. - public SubWhiteLabelingOptions( - string headerBackgroundColor = @"#1A1A1A", - LegalVersionEnum? legalVersion = LegalVersionEnum.Terms1, - string linkColor = @"#00B3E6", - string pageBackgroundColor = @"#F7F8F9", - string primaryButtonColor = @"#00B3E6", - string primaryButtonColorHover = @"#00B3E6", - string primaryButtonTextColor = @"#FFFFFF", - string primaryButtonTextColorHover = @"#FFFFFF", - string secondaryButtonColor = @"#FFFFFF", - string secondaryButtonColorHover = @"#FFFFFF", - string secondaryButtonTextColor = @"#00B3E6", - string secondaryButtonTextColorHover = @"#00B3E6", - string textColor1 = @"#808080", - string textColor2 = @"#FFFFFF", - bool resetToDefault = default(bool) - ) + public SubWhiteLabelingOptions(string headerBackgroundColor = @"#1A1A1A", LegalVersionEnum? legalVersion = LegalVersionEnum.Terms1, string linkColor = @"#00B3E6", string pageBackgroundColor = @"#F7F8F9", string primaryButtonColor = @"#00B3E6", string primaryButtonColorHover = @"#00B3E6", string primaryButtonTextColor = @"#FFFFFF", string primaryButtonTextColorHover = @"#FFFFFF", string secondaryButtonColor = @"#FFFFFF", string secondaryButtonColorHover = @"#FFFFFF", string secondaryButtonTextColor = @"#00B3E6", string secondaryButtonTextColorHover = @"#00B3E6", string textColor1 = @"#808080", string textColor2 = @"#FFFFFF", bool resetToDefault = default(bool)) { + // use default value if no "headerBackgroundColor" provided this.HeaderBackgroundColor = headerBackgroundColor ?? "#1A1A1A"; this.LegalVersion = legalVersion; @@ -142,9 +124,7 @@ public static SubWhiteLabelingOptions Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of SubWhiteLabelingOptions" - ); + throw new Exception("Unable to deserialize JSON to instance of SubWhiteLabelingOptions"); } return obj; @@ -155,78 +135,91 @@ public static SubWhiteLabelingOptions Init(string jsonData) /// [DataMember(Name = "header_background_color", EmitDefaultValue = true)] public string HeaderBackgroundColor { get; set; } + /// /// Gets or Sets LinkColor /// [DataMember(Name = "link_color", EmitDefaultValue = true)] public string LinkColor { get; set; } + /// /// Gets or Sets PageBackgroundColor /// [DataMember(Name = "page_background_color", EmitDefaultValue = true)] public string PageBackgroundColor { get; set; } + /// /// Gets or Sets PrimaryButtonColor /// [DataMember(Name = "primary_button_color", EmitDefaultValue = true)] public string PrimaryButtonColor { get; set; } + /// /// Gets or Sets PrimaryButtonColorHover /// [DataMember(Name = "primary_button_color_hover", EmitDefaultValue = true)] public string PrimaryButtonColorHover { get; set; } + /// /// Gets or Sets PrimaryButtonTextColor /// [DataMember(Name = "primary_button_text_color", EmitDefaultValue = true)] public string PrimaryButtonTextColor { get; set; } + /// /// Gets or Sets PrimaryButtonTextColorHover /// [DataMember(Name = "primary_button_text_color_hover", EmitDefaultValue = true)] public string PrimaryButtonTextColorHover { get; set; } + /// /// Gets or Sets SecondaryButtonColor /// [DataMember(Name = "secondary_button_color", EmitDefaultValue = true)] public string SecondaryButtonColor { get; set; } + /// /// Gets or Sets SecondaryButtonColorHover /// [DataMember(Name = "secondary_button_color_hover", EmitDefaultValue = true)] public string SecondaryButtonColorHover { get; set; } + /// /// Gets or Sets SecondaryButtonTextColor /// [DataMember(Name = "secondary_button_text_color", EmitDefaultValue = true)] public string SecondaryButtonTextColor { get; set; } + /// /// Gets or Sets SecondaryButtonTextColorHover /// [DataMember(Name = "secondary_button_text_color_hover", EmitDefaultValue = true)] public string SecondaryButtonTextColorHover { get; set; } + /// /// Gets or Sets TextColor1 /// [DataMember(Name = "text_color1", EmitDefaultValue = true)] public string TextColor1 { get; set; } + /// /// Gets or Sets TextColor2 /// [DataMember(Name = "text_color2", EmitDefaultValue = true)] public string TextColor2 { get; set; } + /// /// Resets white labeling options to defaults. Only useful when updating an API App. @@ -234,6 +227,7 @@ public static SubWhiteLabelingOptions Init(string jsonData) /// Resets white labeling options to defaults. Only useful when updating an API App. [DataMember(Name = "reset_to_default", EmitDefaultValue = true)] public bool ResetToDefault { get; set; } + /// /// Returns the string presentation of the object @@ -250,17 +244,11 @@ public override string ToString() sb.Append(" PrimaryButtonColor: ").Append(PrimaryButtonColor).Append("\n"); sb.Append(" PrimaryButtonColorHover: ").Append(PrimaryButtonColorHover).Append("\n"); sb.Append(" PrimaryButtonTextColor: ").Append(PrimaryButtonTextColor).Append("\n"); - sb.Append(" PrimaryButtonTextColorHover: ") - .Append(PrimaryButtonTextColorHover) - .Append("\n"); + sb.Append(" PrimaryButtonTextColorHover: ").Append(PrimaryButtonTextColorHover).Append("\n"); sb.Append(" SecondaryButtonColor: ").Append(SecondaryButtonColor).Append("\n"); - sb.Append(" SecondaryButtonColorHover: ") - .Append(SecondaryButtonColorHover) - .Append("\n"); + sb.Append(" SecondaryButtonColorHover: ").Append(SecondaryButtonColorHover).Append("\n"); sb.Append(" SecondaryButtonTextColor: ").Append(SecondaryButtonTextColor).Append("\n"); - sb.Append(" SecondaryButtonTextColorHover: ") - .Append(SecondaryButtonTextColorHover) - .Append("\n"); + sb.Append(" SecondaryButtonTextColorHover: ").Append(SecondaryButtonTextColorHover).Append("\n"); sb.Append(" TextColor1: ").Append(TextColor1).Append("\n"); sb.Append(" TextColor2: ").Append(TextColor2).Append("\n"); sb.Append(" ResetToDefault: ").Append(ResetToDefault).Append("\n"); @@ -274,10 +262,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -301,99 +286,79 @@ public bool Equals(SubWhiteLabelingOptions input) { return false; } - return ( - this.HeaderBackgroundColor == input.HeaderBackgroundColor - || ( - this.HeaderBackgroundColor != null - && this.HeaderBackgroundColor.Equals(input.HeaderBackgroundColor) - ) - ) - && ( - this.LegalVersion == input.LegalVersion - || this.LegalVersion.Equals(input.LegalVersion) - ) - && ( - this.LinkColor == input.LinkColor - || (this.LinkColor != null && this.LinkColor.Equals(input.LinkColor)) - ) - && ( - this.PageBackgroundColor == input.PageBackgroundColor - || ( - this.PageBackgroundColor != null - && this.PageBackgroundColor.Equals(input.PageBackgroundColor) - ) - ) - && ( - this.PrimaryButtonColor == input.PrimaryButtonColor - || ( - this.PrimaryButtonColor != null - && this.PrimaryButtonColor.Equals(input.PrimaryButtonColor) - ) - ) - && ( - this.PrimaryButtonColorHover == input.PrimaryButtonColorHover - || ( - this.PrimaryButtonColorHover != null - && this.PrimaryButtonColorHover.Equals(input.PrimaryButtonColorHover) - ) - ) - && ( - this.PrimaryButtonTextColor == input.PrimaryButtonTextColor - || ( - this.PrimaryButtonTextColor != null - && this.PrimaryButtonTextColor.Equals(input.PrimaryButtonTextColor) - ) - ) - && ( - this.PrimaryButtonTextColorHover == input.PrimaryButtonTextColorHover - || ( - this.PrimaryButtonTextColorHover != null - && this.PrimaryButtonTextColorHover.Equals( - input.PrimaryButtonTextColorHover - ) - ) - ) - && ( - this.SecondaryButtonColor == input.SecondaryButtonColor - || ( - this.SecondaryButtonColor != null - && this.SecondaryButtonColor.Equals(input.SecondaryButtonColor) - ) - ) - && ( - this.SecondaryButtonColorHover == input.SecondaryButtonColorHover - || ( - this.SecondaryButtonColorHover != null - && this.SecondaryButtonColorHover.Equals(input.SecondaryButtonColorHover) - ) - ) - && ( - this.SecondaryButtonTextColor == input.SecondaryButtonTextColor - || ( - this.SecondaryButtonTextColor != null - && this.SecondaryButtonTextColor.Equals(input.SecondaryButtonTextColor) - ) - ) - && ( - this.SecondaryButtonTextColorHover == input.SecondaryButtonTextColorHover - || ( - this.SecondaryButtonTextColorHover != null - && this.SecondaryButtonTextColorHover.Equals( - input.SecondaryButtonTextColorHover - ) - ) - ) - && ( - this.TextColor1 == input.TextColor1 - || (this.TextColor1 != null && this.TextColor1.Equals(input.TextColor1)) - ) - && ( - this.TextColor2 == input.TextColor2 - || (this.TextColor2 != null && this.TextColor2.Equals(input.TextColor2)) - ) - && ( - this.ResetToDefault == input.ResetToDefault - || this.ResetToDefault.Equals(input.ResetToDefault) + return + ( + this.HeaderBackgroundColor == input.HeaderBackgroundColor || + (this.HeaderBackgroundColor != null && + this.HeaderBackgroundColor.Equals(input.HeaderBackgroundColor)) + ) && + ( + this.LegalVersion == input.LegalVersion || + this.LegalVersion.Equals(input.LegalVersion) + ) && + ( + this.LinkColor == input.LinkColor || + (this.LinkColor != null && + this.LinkColor.Equals(input.LinkColor)) + ) && + ( + this.PageBackgroundColor == input.PageBackgroundColor || + (this.PageBackgroundColor != null && + this.PageBackgroundColor.Equals(input.PageBackgroundColor)) + ) && + ( + this.PrimaryButtonColor == input.PrimaryButtonColor || + (this.PrimaryButtonColor != null && + this.PrimaryButtonColor.Equals(input.PrimaryButtonColor)) + ) && + ( + this.PrimaryButtonColorHover == input.PrimaryButtonColorHover || + (this.PrimaryButtonColorHover != null && + this.PrimaryButtonColorHover.Equals(input.PrimaryButtonColorHover)) + ) && + ( + this.PrimaryButtonTextColor == input.PrimaryButtonTextColor || + (this.PrimaryButtonTextColor != null && + this.PrimaryButtonTextColor.Equals(input.PrimaryButtonTextColor)) + ) && + ( + this.PrimaryButtonTextColorHover == input.PrimaryButtonTextColorHover || + (this.PrimaryButtonTextColorHover != null && + this.PrimaryButtonTextColorHover.Equals(input.PrimaryButtonTextColorHover)) + ) && + ( + this.SecondaryButtonColor == input.SecondaryButtonColor || + (this.SecondaryButtonColor != null && + this.SecondaryButtonColor.Equals(input.SecondaryButtonColor)) + ) && + ( + this.SecondaryButtonColorHover == input.SecondaryButtonColorHover || + (this.SecondaryButtonColorHover != null && + this.SecondaryButtonColorHover.Equals(input.SecondaryButtonColorHover)) + ) && + ( + this.SecondaryButtonTextColor == input.SecondaryButtonTextColor || + (this.SecondaryButtonTextColor != null && + this.SecondaryButtonTextColor.Equals(input.SecondaryButtonTextColor)) + ) && + ( + this.SecondaryButtonTextColorHover == input.SecondaryButtonTextColorHover || + (this.SecondaryButtonTextColorHover != null && + this.SecondaryButtonTextColorHover.Equals(input.SecondaryButtonTextColorHover)) + ) && + ( + this.TextColor1 == input.TextColor1 || + (this.TextColor1 != null && + this.TextColor1.Equals(input.TextColor1)) + ) && + ( + this.TextColor2 == input.TextColor2 || + (this.TextColor2 != null && + this.TextColor2.Equals(input.TextColor2)) + ) && + ( + this.ResetToDefault == input.ResetToDefault || + this.ResetToDefault.Equals(input.ResetToDefault) ); } @@ -469,9 +434,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -479,143 +442,99 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "header_background_color", - Property = "HeaderBackgroundColor", - Type = "string", - Value = HeaderBackgroundColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "legal_version", - Property = "LegalVersion", - Type = "string", - Value = LegalVersion, - } - ); - types.Add( - new OpenApiType() - { - Name = "link_color", - Property = "LinkColor", - Type = "string", - Value = LinkColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "page_background_color", - Property = "PageBackgroundColor", - Type = "string", - Value = PageBackgroundColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "primary_button_color", - Property = "PrimaryButtonColor", - Type = "string", - Value = PrimaryButtonColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "primary_button_color_hover", - Property = "PrimaryButtonColorHover", - Type = "string", - Value = PrimaryButtonColorHover, - } - ); - types.Add( - new OpenApiType() - { - Name = "primary_button_text_color", - Property = "PrimaryButtonTextColor", - Type = "string", - Value = PrimaryButtonTextColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "primary_button_text_color_hover", - Property = "PrimaryButtonTextColorHover", - Type = "string", - Value = PrimaryButtonTextColorHover, - } - ); - types.Add( - new OpenApiType() - { - Name = "secondary_button_color", - Property = "SecondaryButtonColor", - Type = "string", - Value = SecondaryButtonColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "secondary_button_color_hover", - Property = "SecondaryButtonColorHover", - Type = "string", - Value = SecondaryButtonColorHover, - } - ); - types.Add( - new OpenApiType() - { - Name = "secondary_button_text_color", - Property = "SecondaryButtonTextColor", - Type = "string", - Value = SecondaryButtonTextColor, - } - ); - types.Add( - new OpenApiType() - { - Name = "secondary_button_text_color_hover", - Property = "SecondaryButtonTextColorHover", - Type = "string", - Value = SecondaryButtonTextColorHover, - } - ); - types.Add( - new OpenApiType() - { - Name = "text_color1", - Property = "TextColor1", - Type = "string", - Value = TextColor1, - } - ); - types.Add( - new OpenApiType() - { - Name = "text_color2", - Property = "TextColor2", - Type = "string", - Value = TextColor2, - } - ); - types.Add( - new OpenApiType() - { - Name = "reset_to_default", - Property = "ResetToDefault", - Type = "bool", - Value = ResetToDefault, - } - ); + types.Add(new OpenApiType(){ + Name = "header_background_color", + Property = "HeaderBackgroundColor", + Type = "string", + Value = HeaderBackgroundColor, + }); + types.Add(new OpenApiType(){ + Name = "legal_version", + Property = "LegalVersion", + Type = "string", + Value = LegalVersion, + }); + types.Add(new OpenApiType(){ + Name = "link_color", + Property = "LinkColor", + Type = "string", + Value = LinkColor, + }); + types.Add(new OpenApiType(){ + Name = "page_background_color", + Property = "PageBackgroundColor", + Type = "string", + Value = PageBackgroundColor, + }); + types.Add(new OpenApiType(){ + Name = "primary_button_color", + Property = "PrimaryButtonColor", + Type = "string", + Value = PrimaryButtonColor, + }); + types.Add(new OpenApiType(){ + Name = "primary_button_color_hover", + Property = "PrimaryButtonColorHover", + Type = "string", + Value = PrimaryButtonColorHover, + }); + types.Add(new OpenApiType(){ + Name = "primary_button_text_color", + Property = "PrimaryButtonTextColor", + Type = "string", + Value = PrimaryButtonTextColor, + }); + types.Add(new OpenApiType(){ + Name = "primary_button_text_color_hover", + Property = "PrimaryButtonTextColorHover", + Type = "string", + Value = PrimaryButtonTextColorHover, + }); + types.Add(new OpenApiType(){ + Name = "secondary_button_color", + Property = "SecondaryButtonColor", + Type = "string", + Value = SecondaryButtonColor, + }); + types.Add(new OpenApiType(){ + Name = "secondary_button_color_hover", + Property = "SecondaryButtonColorHover", + Type = "string", + Value = SecondaryButtonColorHover, + }); + types.Add(new OpenApiType(){ + Name = "secondary_button_text_color", + Property = "SecondaryButtonTextColor", + Type = "string", + Value = SecondaryButtonTextColor, + }); + types.Add(new OpenApiType(){ + Name = "secondary_button_text_color_hover", + Property = "SecondaryButtonTextColorHover", + Type = "string", + Value = SecondaryButtonTextColorHover, + }); + types.Add(new OpenApiType(){ + Name = "text_color1", + Property = "TextColor1", + Type = "string", + Value = TextColor1, + }); + types.Add(new OpenApiType(){ + Name = "text_color2", + Property = "TextColor2", + Type = "string", + Value = TextColor2, + }); + types.Add(new OpenApiType(){ + Name = "reset_to_default", + Property = "ResetToDefault", + Type = "bool", + Value = ResetToDefault, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs index 396f56501..f9163653b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -62,34 +62,30 @@ public enum RoleEnum /// Enum Admin for value: Admin /// [EnumMember(Value = "Admin")] - Admin = 4, + Admin = 4 } + /// /// A role member will take in a new Team. **NOTE:** This parameter is used only if `team_id` is provided. /// /// A role member will take in a new Team. **NOTE:** This parameter is used only if `team_id` is provided. [DataMember(Name = "role", EmitDefaultValue = true)] public RoleEnum? Role { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TeamAddMemberRequest() { } - /// /// Initializes a new instance of the class. /// /// `account_id` or `email_address` is required. If both are provided, the account id prevails. Account id of the user to invite to your Team.. /// `account_id` or `email_address` is required, If both are provided, the account id prevails. Email address of the user to invite to your Team.. /// A role member will take in a new Team. **NOTE:** This parameter is used only if `team_id` is provided.. - public TeamAddMemberRequest( - string accountId = default(string), - string emailAddress = default(string), - RoleEnum? role = default(RoleEnum?) - ) + public TeamAddMemberRequest(string accountId = default(string), string emailAddress = default(string), RoleEnum? role = default(RoleEnum?)) { + this.AccountId = accountId; this.EmailAddress = emailAddress; this.Role = role; @@ -105,9 +101,7 @@ public static TeamAddMemberRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TeamAddMemberRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of TeamAddMemberRequest"); } return obj; @@ -119,6 +113,7 @@ public static TeamAddMemberRequest Init(string jsonData) /// `account_id` or `email_address` is required. If both are provided, the account id prevails. Account id of the user to invite to your Team. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// `account_id` or `email_address` is required, If both are provided, the account id prevails. Email address of the user to invite to your Team. @@ -126,6 +121,7 @@ public static TeamAddMemberRequest Init(string jsonData) /// `account_id` or `email_address` is required, If both are provided, the account id prevails. Email address of the user to invite to your Team. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -148,10 +144,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -175,15 +168,21 @@ public bool Equals(TeamAddMemberRequest input) { return false; } - return ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && (this.Role == input.Role || this.Role.Equals(input.Role)); + return + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Role == input.Role || + this.Role.Equals(input.Role) + ); } /// @@ -213,9 +212,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -223,35 +220,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - } - ); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs index c3da6f98d..f576caa6b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class TeamCreateRequest : IEquatable, IValidat /// [JsonConstructorAttribute] protected TeamCreateRequest() { } - /// /// Initializes a new instance of the class. /// /// The name of your Team. (default to "Untitled Team"). public TeamCreateRequest(string name = @"Untitled Team") { + // use default value if no "name" provided this.Name = name ?? "Untitled Team"; } @@ -71,6 +71,7 @@ public static TeamCreateRequest Init(string jsonData) /// The name of your Team. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -91,10 +92,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -118,7 +116,12 @@ public bool Equals(TeamCreateRequest input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); } /// @@ -143,9 +146,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -153,17 +154,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs index 07e7bf4aa..2e2e48d01 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,14 @@ public partial class TeamGetInfoResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected TeamGetInfoResponse() { } - /// /// Initializes a new instance of the class. /// /// team. /// A list of warnings.. - public TeamGetInfoResponse( - TeamInfoResponse team = default(TeamInfoResponse), - List warnings = default(List) - ) + public TeamGetInfoResponse(TeamInfoResponse team = default(TeamInfoResponse), List warnings = default(List)) { + this.Team = team; this.Warnings = warnings; } @@ -63,9 +60,7 @@ public static TeamGetInfoResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TeamGetInfoResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TeamGetInfoResponse"); } return obj; @@ -76,6 +71,7 @@ public static TeamGetInfoResponse Init(string jsonData) /// [DataMember(Name = "team", EmitDefaultValue = true)] public TeamInfoResponse Team { get; set; } + /// /// A list of warnings. @@ -83,6 +79,7 @@ public static TeamGetInfoResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -104,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -131,12 +125,17 @@ public bool Equals(TeamGetInfoResponse input) { return false; } - return (this.Team == input.Team || (this.Team != null && this.Team.Equals(input.Team))) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Team == input.Team || + (this.Team != null && + this.Team.Equals(input.Team)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -166,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -176,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "team", - Property = "Team", - Type = "TeamInfoResponse", - Value = Team, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "team", + Property = "Team", + Type = "TeamInfoResponse", + Value = Team, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs index ef656c040..e56f464ea 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,14 @@ public partial class TeamGetResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected TeamGetResponse() { } - /// /// Initializes a new instance of the class. /// /// team. /// A list of warnings.. - public TeamGetResponse( - TeamResponse team = default(TeamResponse), - List warnings = default(List) - ) + public TeamGetResponse(TeamResponse team = default(TeamResponse), List warnings = default(List)) { + this.Team = team; this.Warnings = warnings; } @@ -74,6 +71,7 @@ public static TeamGetResponse Init(string jsonData) /// [DataMember(Name = "team", EmitDefaultValue = true)] public TeamResponse Team { get; set; } + /// /// A list of warnings. @@ -81,6 +79,7 @@ public static TeamGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -102,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -129,12 +125,17 @@ public bool Equals(TeamGetResponse input) { return false; } - return (this.Team == input.Team || (this.Team != null && this.Team.Equals(input.Team))) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Team == input.Team || + (this.Team != null && + this.Team.Equals(input.Team)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -164,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -174,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "team", - Property = "Team", - Type = "TeamResponse", - Value = Team, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "team", + Property = "Team", + Type = "TeamResponse", + Value = Team, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs index 261960814..cdca341b4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class TeamInfoResponse : IEquatable, IValidatab /// [JsonConstructorAttribute] protected TeamInfoResponse() { } - /// /// Initializes a new instance of the class. /// @@ -47,14 +46,9 @@ protected TeamInfoResponse() { } /// The name of a team. /// Number of members within a team. /// Number of sub teams within a team. - public TeamInfoResponse( - string teamId = default(string), - TeamParentResponse teamParent = default(TeamParentResponse), - string name = default(string), - int numMembers = default(int), - int numSubTeams = default(int) - ) + public TeamInfoResponse(string teamId = default(string), TeamParentResponse teamParent = default(TeamParentResponse), string name = default(string), int numMembers = default(int), int numSubTeams = default(int)) { + this.TeamId = teamId; this.TeamParent = teamParent; this.Name = name; @@ -84,12 +78,14 @@ public static TeamInfoResponse Init(string jsonData) /// The id of a team [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// Gets or Sets TeamParent /// [DataMember(Name = "team_parent", EmitDefaultValue = true)] public TeamParentResponse TeamParent { get; set; } + /// /// The name of a team @@ -97,6 +93,7 @@ public static TeamInfoResponse Init(string jsonData) /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Number of members within a team @@ -104,6 +101,7 @@ public static TeamInfoResponse Init(string jsonData) /// Number of members within a team [DataMember(Name = "num_members", EmitDefaultValue = true)] public int NumMembers { get; set; } + /// /// Number of sub teams within a team @@ -111,6 +109,7 @@ public static TeamInfoResponse Init(string jsonData) /// Number of sub teams within a team [DataMember(Name = "num_sub_teams", EmitDefaultValue = true)] public int NumSubTeams { get; set; } + /// /// Returns the string presentation of the object @@ -135,10 +134,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -162,19 +158,29 @@ public bool Equals(TeamInfoResponse input) { return false; } - return ( - this.TeamId == input.TeamId - || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) - ) - && ( - this.TeamParent == input.TeamParent - || (this.TeamParent != null && this.TeamParent.Equals(input.TeamParent)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.NumMembers == input.NumMembers || this.NumMembers.Equals(input.NumMembers)) - && ( - this.NumSubTeams == input.NumSubTeams - || this.NumSubTeams.Equals(input.NumSubTeams) + return + ( + this.TeamId == input.TeamId || + (this.TeamId != null && + this.TeamId.Equals(input.TeamId)) + ) && + ( + this.TeamParent == input.TeamParent || + (this.TeamParent != null && + this.TeamParent.Equals(input.TeamParent)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.NumMembers == input.NumMembers || + this.NumMembers.Equals(input.NumMembers) + ) && + ( + this.NumSubTeams == input.NumSubTeams || + this.NumSubTeams.Equals(input.NumSubTeams) ); } @@ -210,9 +216,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -220,53 +224,39 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - } - ); - types.Add( - new OpenApiType() - { - Name = "team_parent", - Property = "TeamParent", - Type = "TeamParentResponse", - Value = TeamParent, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "num_members", - Property = "NumMembers", - Type = "int", - Value = NumMembers, - } - ); - types.Add( - new OpenApiType() - { - Name = "num_sub_teams", - Property = "NumSubTeams", - Type = "int", - Value = NumSubTeams, - } - ); + types.Add(new OpenApiType(){ + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + }); + types.Add(new OpenApiType(){ + Name = "team_parent", + Property = "TeamParent", + Type = "TeamParentResponse", + Value = TeamParent, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "num_members", + Property = "NumMembers", + Type = "int", + Value = NumMembers, + }); + types.Add(new OpenApiType(){ + Name = "num_sub_teams", + Property = "NumSubTeams", + Type = "int", + Value = NumSubTeams, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs index 7c5b4c26f..18b6893d2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class TeamInviteResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected TeamInviteResponse() { } - /// /// Initializes a new instance of the class. /// @@ -48,15 +47,9 @@ protected TeamInviteResponse() { } /// Timestamp when the invitation was sent.. /// Timestamp when the invitation was redeemed.. /// Timestamp when the invitation is expiring.. - public TeamInviteResponse( - string emailAddress = default(string), - string teamId = default(string), - string role = default(string), - int sentAt = default(int), - int redeemedAt = default(int), - int expiresAt = default(int) - ) + public TeamInviteResponse(string emailAddress = default(string), string teamId = default(string), string role = default(string), int sentAt = default(int), int redeemedAt = default(int), int expiresAt = default(int)) { + this.EmailAddress = emailAddress; this.TeamId = teamId; this.Role = role; @@ -87,6 +80,7 @@ public static TeamInviteResponse Init(string jsonData) /// Email address of the user invited to this team. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Id of the team. @@ -94,6 +88,7 @@ public static TeamInviteResponse Init(string jsonData) /// Id of the team. [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// Role of the user invited to this team. @@ -101,6 +96,7 @@ public static TeamInviteResponse Init(string jsonData) /// Role of the user invited to this team. [DataMember(Name = "role", EmitDefaultValue = true)] public string Role { get; set; } + /// /// Timestamp when the invitation was sent. @@ -108,6 +104,7 @@ public static TeamInviteResponse Init(string jsonData) /// Timestamp when the invitation was sent. [DataMember(Name = "sent_at", EmitDefaultValue = true)] public int SentAt { get; set; } + /// /// Timestamp when the invitation was redeemed. @@ -115,6 +112,7 @@ public static TeamInviteResponse Init(string jsonData) /// Timestamp when the invitation was redeemed. [DataMember(Name = "redeemed_at", EmitDefaultValue = true)] public int RedeemedAt { get; set; } + /// /// Timestamp when the invitation is expiring. @@ -122,6 +120,7 @@ public static TeamInviteResponse Init(string jsonData) /// Timestamp when the invitation is expiring. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -147,10 +146,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -174,18 +170,34 @@ public bool Equals(TeamInviteResponse input) { return false; } - return ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && ( - this.TeamId == input.TeamId - || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) - ) - && (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))) - && (this.SentAt == input.SentAt || this.SentAt.Equals(input.SentAt)) - && (this.RedeemedAt == input.RedeemedAt || this.RedeemedAt.Equals(input.RedeemedAt)) - && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)); + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.TeamId == input.TeamId || + (this.TeamId != null && + this.TeamId.Equals(input.TeamId)) + ) && + ( + this.Role == input.Role || + (this.Role != null && + this.Role.Equals(input.Role)) + ) && + ( + this.SentAt == input.SentAt || + this.SentAt.Equals(input.SentAt) + ) && + ( + this.RedeemedAt == input.RedeemedAt || + this.RedeemedAt.Equals(input.RedeemedAt) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + this.ExpiresAt.Equals(input.ExpiresAt) + ); } /// @@ -221,9 +233,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -231,62 +241,45 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - } - ); - types.Add( - new OpenApiType() - { - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - } - ); - types.Add( - new OpenApiType() - { - Name = "sent_at", - Property = "SentAt", - Type = "int", - Value = SentAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "redeemed_at", - Property = "RedeemedAt", - Type = "int", - Value = RedeemedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + }); + types.Add(new OpenApiType(){ + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + }); + types.Add(new OpenApiType(){ + Name = "sent_at", + Property = "SentAt", + Type = "int", + Value = SentAt, + }); + types.Add(new OpenApiType(){ + Name = "redeemed_at", + Property = "RedeemedAt", + Type = "int", + Value = RedeemedAt, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs index 267564931..2e2390233 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,14 @@ public partial class TeamInvitesResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected TeamInvitesResponse() { } - /// /// Initializes a new instance of the class. /// /// Contains a list of team invites and their roles.. /// warnings. - public TeamInvitesResponse( - List teamInvites = default(List), - List warnings = default(List) - ) + public TeamInvitesResponse(List teamInvites = default(List), List warnings = default(List)) { + this.TeamInvites = teamInvites; this.Warnings = warnings; } @@ -63,9 +60,7 @@ public static TeamInvitesResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TeamInvitesResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TeamInvitesResponse"); } return obj; @@ -77,12 +72,14 @@ public static TeamInvitesResponse Init(string jsonData) /// Contains a list of team invites and their roles. [DataMember(Name = "team_invites", EmitDefaultValue = true)] public List TeamInvites { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -104,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -131,17 +125,18 @@ public bool Equals(TeamInvitesResponse input) { return false; } - return ( - this.TeamInvites == input.TeamInvites - || this.TeamInvites != null - && input.TeamInvites != null - && this.TeamInvites.SequenceEqual(input.TeamInvites) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.TeamInvites == input.TeamInvites || + this.TeamInvites != null && + input.TeamInvites != null && + this.TeamInvites.SequenceEqual(input.TeamInvites) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -171,9 +166,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -181,26 +174,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "team_invites", - Property = "TeamInvites", - Type = "List", - Value = TeamInvites, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "team_invites", + Property = "TeamInvites", + Type = "List", + Value = TeamInvites, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs index 126a5a11b..a87f276d5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,15 @@ public partial class TeamMemberResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected TeamMemberResponse() { } - /// /// Initializes a new instance of the class. /// /// Account id of the team member.. /// Email address of the team member.. /// The specific role a member has on the team.. - public TeamMemberResponse( - string accountId = default(string), - string emailAddress = default(string), - string role = default(string) - ) + public TeamMemberResponse(string accountId = default(string), string emailAddress = default(string), string role = default(string)) { + this.AccountId = accountId; this.EmailAddress = emailAddress; this.Role = role; @@ -78,6 +74,7 @@ public static TeamMemberResponse Init(string jsonData) /// Account id of the team member. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// Email address of the team member. @@ -85,6 +82,7 @@ public static TeamMemberResponse Init(string jsonData) /// Email address of the team member. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The specific role a member has on the team. @@ -92,6 +90,7 @@ public static TeamMemberResponse Init(string jsonData) /// The specific role a member has on the team. [DataMember(Name = "role", EmitDefaultValue = true)] public string Role { get; set; } + /// /// Returns the string presentation of the object @@ -114,10 +113,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -141,15 +137,22 @@ public bool Equals(TeamMemberResponse input) { return false; } - return ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && (this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role))); + return + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Role == input.Role || + (this.Role != null && + this.Role.Equals(input.Role)) + ); } /// @@ -182,9 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -192,35 +193,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "role", - Property = "Role", - Type = "string", - Value = Role, - } - ); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "role", + Property = "Role", + Type = "string", + Value = Role, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs index 8eac9696e..3732828d4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,15 @@ public partial class TeamMembersResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected TeamMembersResponse() { } - /// /// Initializes a new instance of the class. /// /// Contains a list of team members and their roles for a specific team.. /// listInfo. /// warnings. - public TeamMembersResponse( - List teamMembers = default(List), - ListInfoResponse listInfo = default(ListInfoResponse), - List warnings = default(List) - ) + public TeamMembersResponse(List teamMembers = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { + this.TeamMembers = teamMembers; this.ListInfo = listInfo; this.Warnings = warnings; @@ -66,9 +62,7 @@ public static TeamMembersResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TeamMembersResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TeamMembersResponse"); } return obj; @@ -80,18 +74,21 @@ public static TeamMembersResponse Init(string jsonData) /// Contains a list of team members and their roles for a specific team. [DataMember(Name = "team_members", EmitDefaultValue = true)] public List TeamMembers { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -114,10 +111,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -141,21 +135,23 @@ public bool Equals(TeamMembersResponse input) { return false; } - return ( - this.TeamMembers == input.TeamMembers - || this.TeamMembers != null - && input.TeamMembers != null - && this.TeamMembers.SequenceEqual(input.TeamMembers) - ) - && ( - this.ListInfo == input.ListInfo - || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.TeamMembers == input.TeamMembers || + this.TeamMembers != null && + input.TeamMembers != null && + this.TeamMembers.SequenceEqual(input.TeamMembers) + ) && + ( + this.ListInfo == input.ListInfo || + (this.ListInfo != null && + this.ListInfo.Equals(input.ListInfo)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -189,9 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -199,35 +193,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "team_members", - Property = "TeamMembers", - Type = "List", - Value = TeamMembers, - } - ); - types.Add( - new OpenApiType() - { - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "team_members", + Property = "TeamMembers", + Type = "List", + Value = TeamMembers, + }); + types.Add(new OpenApiType(){ + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs index 4d79e980f..72f7a88f9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class TeamParentResponse : IEquatable, IValid /// [JsonConstructorAttribute] protected TeamParentResponse() { } - /// /// Initializes a new instance of the class. /// @@ -46,6 +45,7 @@ protected TeamParentResponse() { } /// The name of a team. public TeamParentResponse(string teamId = default(string), string name = default(string)) { + this.TeamId = teamId; this.Name = name; } @@ -72,6 +72,7 @@ public static TeamParentResponse Init(string jsonData) /// The id of a team [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } + /// /// The name of a team @@ -79,6 +80,7 @@ public static TeamParentResponse Init(string jsonData) /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -100,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -127,11 +126,17 @@ public bool Equals(TeamParentResponse input) { return false; } - return ( - this.TeamId == input.TeamId - || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); + return + ( + this.TeamId == input.TeamId || + (this.TeamId != null && + this.TeamId.Equals(input.TeamId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); } /// @@ -160,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -170,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "team_id", - Property = "TeamId", - Type = "string", - Value = TeamId, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); + types.Add(new OpenApiType(){ + Name = "team_id", + Property = "TeamId", + Type = "string", + Value = TeamId, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs index cc852341e..c8081147d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,9 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TeamRemoveMemberRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TeamRemoveMemberRequest - : IEquatable, - IValidatableObject + public partial class TeamRemoveMemberRequest : IEquatable, IValidatableObject { /// /// A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided. @@ -64,22 +62,21 @@ public enum NewRoleEnum /// Enum Admin for value: Admin /// [EnumMember(Value = "Admin")] - Admin = 4, + Admin = 4 } + /// /// A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided. /// /// A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided. [DataMember(Name = "new_role", EmitDefaultValue = true)] public NewRoleEnum? NewRole { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TeamRemoveMemberRequest() { } - /// /// Initializes a new instance of the class. /// @@ -88,14 +85,9 @@ protected TeamRemoveMemberRequest() { } /// The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans.. /// Id of the new Team.. /// A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided.. - public TeamRemoveMemberRequest( - string accountId = default(string), - string emailAddress = default(string), - string newOwnerEmailAddress = default(string), - string newTeamId = default(string), - NewRoleEnum? newRole = default(NewRoleEnum?) - ) + public TeamRemoveMemberRequest(string accountId = default(string), string emailAddress = default(string), string newOwnerEmailAddress = default(string), string newTeamId = default(string), NewRoleEnum? newRole = default(NewRoleEnum?)) { + this.AccountId = accountId; this.EmailAddress = emailAddress; this.NewOwnerEmailAddress = newOwnerEmailAddress; @@ -113,9 +105,7 @@ public static TeamRemoveMemberRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TeamRemoveMemberRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of TeamRemoveMemberRequest"); } return obj; @@ -127,6 +117,7 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Account id to remove from your Team. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Email address of the Account to remove from your Team. @@ -134,6 +125,7 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Email address of the Account to remove from your Team. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans. @@ -141,6 +133,7 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans. [DataMember(Name = "new_owner_email_address", EmitDefaultValue = true)] public string NewOwnerEmailAddress { get; set; } + /// /// Id of the new Team. @@ -148,6 +141,7 @@ public static TeamRemoveMemberRequest Init(string jsonData) /// Id of the new Team. [DataMember(Name = "new_team_id", EmitDefaultValue = true)] public string NewTeamId { get; set; } + /// /// Returns the string presentation of the object @@ -172,10 +166,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -199,26 +190,31 @@ public bool Equals(TeamRemoveMemberRequest input) { return false; } - return ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && ( - this.NewOwnerEmailAddress == input.NewOwnerEmailAddress - || ( - this.NewOwnerEmailAddress != null - && this.NewOwnerEmailAddress.Equals(input.NewOwnerEmailAddress) - ) - ) - && ( - this.NewTeamId == input.NewTeamId - || (this.NewTeamId != null && this.NewTeamId.Equals(input.NewTeamId)) - ) - && (this.NewRole == input.NewRole || this.NewRole.Equals(input.NewRole)); + return + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.NewOwnerEmailAddress == input.NewOwnerEmailAddress || + (this.NewOwnerEmailAddress != null && + this.NewOwnerEmailAddress.Equals(input.NewOwnerEmailAddress)) + ) && + ( + this.NewTeamId == input.NewTeamId || + (this.NewTeamId != null && + this.NewTeamId.Equals(input.NewTeamId)) + ) && + ( + this.NewRole == input.NewRole || + this.NewRole.Equals(input.NewRole) + ); } /// @@ -256,9 +252,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -266,53 +260,39 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "new_owner_email_address", - Property = "NewOwnerEmailAddress", - Type = "string", - Value = NewOwnerEmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "new_team_id", - Property = "NewTeamId", - Type = "string", - Value = NewTeamId, - } - ); - types.Add( - new OpenApiType() - { - Name = "new_role", - Property = "NewRole", - Type = "string", - Value = NewRole, - } - ); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "new_owner_email_address", + Property = "NewOwnerEmailAddress", + Type = "string", + Value = NewOwnerEmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "new_team_id", + Property = "NewTeamId", + Type = "string", + Value = NewTeamId, + }); + types.Add(new OpenApiType(){ + Name = "new_role", + Property = "NewRole", + Type = "string", + Value = NewRole, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs index cb997b2af..104c5021a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class TeamResponse : IEquatable, IValidatableObject /// [JsonConstructorAttribute] protected TeamResponse() { } - /// /// Initializes a new instance of the class. /// @@ -46,13 +45,9 @@ protected TeamResponse() { } /// accounts. /// A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`.. /// A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account.. - public TeamResponse( - string name = default(string), - List accounts = default(List), - List invitedAccounts = default(List), - List invitedEmails = default(List) - ) + public TeamResponse(string name = default(string), List accounts = default(List), List invitedAccounts = default(List), List invitedEmails = default(List)) { + this.Name = name; this.Accounts = accounts; this.InvitedAccounts = invitedAccounts; @@ -81,12 +76,14 @@ public static TeamResponse Init(string jsonData) /// The name of your Team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Gets or Sets Accounts /// [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } + /// /// A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. @@ -94,6 +91,7 @@ public static TeamResponse Init(string jsonData) /// A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. [DataMember(Name = "invited_accounts", EmitDefaultValue = true)] public List InvitedAccounts { get; set; } + /// /// A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. @@ -101,6 +99,7 @@ public static TeamResponse Init(string jsonData) /// A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. [DataMember(Name = "invited_emails", EmitDefaultValue = true)] public List InvitedEmails { get; set; } + /// /// Returns the string presentation of the object @@ -124,10 +123,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -151,24 +147,29 @@ public bool Equals(TeamResponse input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.Accounts == input.Accounts - || this.Accounts != null - && input.Accounts != null - && this.Accounts.SequenceEqual(input.Accounts) - ) - && ( - this.InvitedAccounts == input.InvitedAccounts - || this.InvitedAccounts != null - && input.InvitedAccounts != null - && this.InvitedAccounts.SequenceEqual(input.InvitedAccounts) - ) - && ( - this.InvitedEmails == input.InvitedEmails - || this.InvitedEmails != null - && input.InvitedEmails != null - && this.InvitedEmails.SequenceEqual(input.InvitedEmails) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Accounts == input.Accounts || + this.Accounts != null && + input.Accounts != null && + this.Accounts.SequenceEqual(input.Accounts) + ) && + ( + this.InvitedAccounts == input.InvitedAccounts || + this.InvitedAccounts != null && + input.InvitedAccounts != null && + this.InvitedAccounts.SequenceEqual(input.InvitedAccounts) + ) && + ( + this.InvitedEmails == input.InvitedEmails || + this.InvitedEmails != null && + input.InvitedEmails != null && + this.InvitedEmails.SequenceEqual(input.InvitedEmails) ); } @@ -206,9 +207,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -216,44 +215,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "accounts", - Property = "Accounts", - Type = "List", - Value = Accounts, - } - ); - types.Add( - new OpenApiType() - { - Name = "invited_accounts", - Property = "InvitedAccounts", - Type = "List", - Value = InvitedAccounts, - } - ); - types.Add( - new OpenApiType() - { - Name = "invited_emails", - Property = "InvitedEmails", - Type = "List", - Value = InvitedEmails, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "accounts", + Property = "Accounts", + Type = "List", + Value = Accounts, + }); + types.Add(new OpenApiType(){ + Name = "invited_accounts", + Property = "InvitedAccounts", + Type = "List", + Value = InvitedAccounts, + }); + types.Add(new OpenApiType(){ + Name = "invited_emails", + Property = "InvitedEmails", + Type = "List", + Value = InvitedEmails, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs index a6177fc37..d1a945bdc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,15 @@ public partial class TeamSubTeamsResponse : IEquatable, IV /// [JsonConstructorAttribute] protected TeamSubTeamsResponse() { } - /// /// Initializes a new instance of the class. /// /// Contains a list with sub teams.. /// listInfo. /// warnings. - public TeamSubTeamsResponse( - List subTeams = default(List), - ListInfoResponse listInfo = default(ListInfoResponse), - List warnings = default(List) - ) + public TeamSubTeamsResponse(List subTeams = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { + this.SubTeams = subTeams; this.ListInfo = listInfo; this.Warnings = warnings; @@ -66,9 +62,7 @@ public static TeamSubTeamsResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TeamSubTeamsResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TeamSubTeamsResponse"); } return obj; @@ -80,18 +74,21 @@ public static TeamSubTeamsResponse Init(string jsonData) /// Contains a list with sub teams. [DataMember(Name = "sub_teams", EmitDefaultValue = true)] public List SubTeams { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -114,10 +111,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -141,21 +135,23 @@ public bool Equals(TeamSubTeamsResponse input) { return false; } - return ( - this.SubTeams == input.SubTeams - || this.SubTeams != null - && input.SubTeams != null - && this.SubTeams.SequenceEqual(input.SubTeams) - ) - && ( - this.ListInfo == input.ListInfo - || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.SubTeams == input.SubTeams || + this.SubTeams != null && + input.SubTeams != null && + this.SubTeams.SequenceEqual(input.SubTeams) + ) && + ( + this.ListInfo == input.ListInfo || + (this.ListInfo != null && + this.ListInfo.Equals(input.ListInfo)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -189,9 +185,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -199,35 +193,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "sub_teams", - Property = "SubTeams", - Type = "List", - Value = SubTeams, - } - ); - types.Add( - new OpenApiType() - { - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "sub_teams", + Property = "SubTeams", + Type = "List", + Value = SubTeams, + }); + types.Add(new OpenApiType(){ + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs index ff664d5b0..72441c90e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class TeamUpdateRequest : IEquatable, IValidat /// [JsonConstructorAttribute] protected TeamUpdateRequest() { } - /// /// Initializes a new instance of the class. /// /// The name of your Team.. public TeamUpdateRequest(string name = default(string)) { + this.Name = name; } @@ -70,6 +70,7 @@ public static TeamUpdateRequest Init(string jsonData) /// The name of your Team. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -90,10 +91,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -117,7 +115,12 @@ public bool Equals(TeamUpdateRequest input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); } /// @@ -142,9 +145,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -152,17 +153,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs index f4e266662..30a0c91da 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,28 +31,22 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateAddUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateAddUserRequest - : IEquatable, - IValidatableObject + public partial class TemplateAddUserRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateAddUserRequest() { } - /// /// Initializes a new instance of the class. /// /// The id of the Account to give access to the Template. **NOTE:** The account id prevails if email address is also provided.. /// The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided.. /// If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. (default to false). - public TemplateAddUserRequest( - string accountId = default(string), - string emailAddress = default(string), - bool skipNotification = false - ) + public TemplateAddUserRequest(string accountId = default(string), string emailAddress = default(string), bool skipNotification = false) { + this.AccountId = accountId; this.EmailAddress = emailAddress; this.SkipNotification = skipNotification; @@ -68,9 +62,7 @@ public static TemplateAddUserRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateAddUserRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateAddUserRequest"); } return obj; @@ -82,6 +74,7 @@ public static TemplateAddUserRequest Init(string jsonData) /// The id of the Account to give access to the Template. **NOTE:** The account id prevails if email address is also provided. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided. @@ -89,6 +82,7 @@ public static TemplateAddUserRequest Init(string jsonData) /// The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. @@ -96,6 +90,7 @@ public static TemplateAddUserRequest Init(string jsonData) /// If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. [DataMember(Name = "skip_notification", EmitDefaultValue = true)] public bool SkipNotification { get; set; } + /// /// Returns the string presentation of the object @@ -118,10 +113,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -145,17 +137,20 @@ public bool Equals(TemplateAddUserRequest input) { return false; } - return ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && ( - this.SkipNotification == input.SkipNotification - || this.SkipNotification.Equals(input.SkipNotification) + return + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.SkipNotification == input.SkipNotification || + this.SkipNotification.Equals(input.SkipNotification) ); } @@ -186,9 +181,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -196,35 +189,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "skip_notification", - Property = "SkipNotification", - Type = "bool", - Value = SkipNotification, - } - ); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "skip_notification", + Property = "SkipNotification", + Type = "bool", + Value = SkipNotification, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs index ad007bb2c..70bad4fa6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateEmbeddedDraftRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateEmbeddedDraftRequest - : IEquatable, - IValidatableObject + public partial class TemplateCreateEmbeddedDraftRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateEmbeddedDraftRequest() { } - /// /// Initializes a new instance of the class. /// @@ -69,41 +66,13 @@ protected TemplateCreateEmbeddedDraftRequest() { } /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). (default to false). - public TemplateCreateEmbeddedDraftRequest( - List files = default(List), - List fileUrls = default(List), - bool allowCcs = true, - bool allowReassign = false, - List attachments = default(List), - List ccRoles = default(List), - string clientId = default(string), - SubEditorOptions editorOptions = default(SubEditorOptions), - SubFieldOptions fieldOptions = default(SubFieldOptions), - bool forceSignerRoles = false, - bool forceSubjectMessage = false, - List formFieldGroups = default(List), - List formFieldRules = default(List), - List formFieldsPerDocument = - default(List), - List mergeFields = default(List), - string message = default(string), - Dictionary metadata = default(Dictionary), - bool showPreview = false, - bool showProgressStepper = true, - List signerRoles = default(List), - bool skipMeNow = false, - string subject = default(string), - bool testMode = false, - string title = default(string), - bool usePreexistingFields = false - ) + public TemplateCreateEmbeddedDraftRequest(List files = default(List), List fileUrls = default(List), bool allowCcs = true, bool allowReassign = false, List attachments = default(List), List ccRoles = default(List), string clientId = default(string), SubEditorOptions editorOptions = default(SubEditorOptions), SubFieldOptions fieldOptions = default(SubFieldOptions), bool forceSignerRoles = false, bool forceSubjectMessage = false, List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), List mergeFields = default(List), string message = default(string), Dictionary metadata = default(Dictionary), bool showPreview = false, bool showProgressStepper = true, List signerRoles = default(List), bool skipMeNow = false, string subject = default(string), bool testMode = false, string title = default(string), bool usePreexistingFields = false) { + // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for TemplateCreateEmbeddedDraftRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for TemplateCreateEmbeddedDraftRequest and cannot be null"); } this.ClientId = clientId; this.Files = files; @@ -142,9 +111,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftRequest"); } return obj; @@ -156,6 +123,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -163,6 +131,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -170,6 +139,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. @@ -177,6 +147,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -184,6 +155,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -191,6 +163,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The CC roles that must be assigned when using the template to send a signature request @@ -198,18 +171,21 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The CC roles that must be assigned when using the template to send a signature request [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Provide users the ability to review/edit the template signer roles. @@ -217,6 +193,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Provide users the ability to review/edit the template signer roles. [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } + /// /// Provide users the ability to review/edit the template subject and message. @@ -224,6 +201,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Provide users the ability to review/edit the template subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -231,6 +209,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -238,6 +217,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -245,6 +225,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. @@ -252,6 +233,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } + /// /// The default template email message. @@ -259,6 +241,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -266,6 +249,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. @@ -273,6 +257,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -280,6 +265,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -287,6 +273,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "signer_roles", EmitDefaultValue = true)] public List SignerRoles { get; set; } + /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. @@ -294,6 +281,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } + /// /// The template title (alias). @@ -301,6 +289,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The template title (alias). [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -308,6 +297,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -315,6 +305,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). @@ -322,6 +313,7 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } + /// /// Returns the string presentation of the object @@ -366,10 +358,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -393,118 +382,132 @@ public bool Equals(TemplateCreateEmbeddedDraftRequest input) { return false; } - return ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && (this.AllowCcs == input.AllowCcs || this.AllowCcs.Equals(input.AllowCcs)) - && ( - this.AllowReassign == input.AllowReassign - || this.AllowReassign.Equals(input.AllowReassign) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.CcRoles == input.CcRoles - || this.CcRoles != null - && input.CcRoles != null - && this.CcRoles.SequenceEqual(input.CcRoles) - ) - && ( - this.EditorOptions == input.EditorOptions - || ( - this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) - ) - ) - && ( - this.FieldOptions == input.FieldOptions - || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) - ) - && ( - this.ForceSignerRoles == input.ForceSignerRoles - || this.ForceSignerRoles.Equals(input.ForceSignerRoles) - ) - && ( - this.ForceSubjectMessage == input.ForceSubjectMessage - || this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) - ) - && ( - this.FormFieldGroups == input.FormFieldGroups - || this.FormFieldGroups != null - && input.FormFieldGroups != null - && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) - && ( - this.FormFieldRules == input.FormFieldRules - || this.FormFieldRules != null - && input.FormFieldRules != null - && this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) - && ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument - || this.FormFieldsPerDocument != null - && input.FormFieldsPerDocument != null - && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) - && ( - this.MergeFields == input.MergeFields - || this.MergeFields != null - && input.MergeFields != null - && this.MergeFields.SequenceEqual(input.MergeFields) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.ShowPreview == input.ShowPreview - || this.ShowPreview.Equals(input.ShowPreview) - ) - && ( - this.ShowProgressStepper == input.ShowProgressStepper - || this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) - && ( - this.SignerRoles == input.SignerRoles - || this.SignerRoles != null - && input.SignerRoles != null - && this.SignerRoles.SequenceEqual(input.SignerRoles) - ) - && (this.SkipMeNow == input.SkipMeNow || this.SkipMeNow.Equals(input.SkipMeNow)) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.UsePreexistingFields == input.UsePreexistingFields - || this.UsePreexistingFields.Equals(input.UsePreexistingFields) + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.AllowCcs == input.AllowCcs || + this.AllowCcs.Equals(input.AllowCcs) + ) && + ( + this.AllowReassign == input.AllowReassign || + this.AllowReassign.Equals(input.AllowReassign) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.CcRoles == input.CcRoles || + this.CcRoles != null && + input.CcRoles != null && + this.CcRoles.SequenceEqual(input.CcRoles) + ) && + ( + this.EditorOptions == input.EditorOptions || + (this.EditorOptions != null && + this.EditorOptions.Equals(input.EditorOptions)) + ) && + ( + this.FieldOptions == input.FieldOptions || + (this.FieldOptions != null && + this.FieldOptions.Equals(input.FieldOptions)) + ) && + ( + this.ForceSignerRoles == input.ForceSignerRoles || + this.ForceSignerRoles.Equals(input.ForceSignerRoles) + ) && + ( + this.ForceSubjectMessage == input.ForceSubjectMessage || + this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) + ) && + ( + this.FormFieldGroups == input.FormFieldGroups || + this.FormFieldGroups != null && + input.FormFieldGroups != null && + this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) && + ( + this.FormFieldRules == input.FormFieldRules || + this.FormFieldRules != null && + input.FormFieldRules != null && + this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) && + ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument || + this.FormFieldsPerDocument != null && + input.FormFieldsPerDocument != null && + this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) && + ( + this.MergeFields == input.MergeFields || + this.MergeFields != null && + input.MergeFields != null && + this.MergeFields.SequenceEqual(input.MergeFields) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.ShowPreview == input.ShowPreview || + this.ShowPreview.Equals(input.ShowPreview) + ) && + ( + this.ShowProgressStepper == input.ShowProgressStepper || + this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) && + ( + this.SignerRoles == input.SignerRoles || + this.SignerRoles != null && + input.SignerRoles != null && + this.SignerRoles.SequenceEqual(input.SignerRoles) + ) && + ( + this.SkipMeNow == input.SkipMeNow || + this.SkipMeNow.Equals(input.SkipMeNow) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.UsePreexistingFields == input.UsePreexistingFields || + this.UsePreexistingFields.Equals(input.UsePreexistingFields) ); } @@ -599,26 +602,18 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 200.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); } yield break; @@ -627,233 +622,159 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_ccs", - Property = "AllowCcs", - Type = "bool", - Value = AllowCcs, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_roles", - Property = "CcRoles", - Type = "List", - Value = CcRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "force_signer_roles", - Property = "ForceSignerRoles", - Type = "bool", - Value = ForceSignerRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "force_subject_message", - Property = "ForceSubjectMessage", - Type = "bool", - Value = ForceSubjectMessage, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - } - ); - types.Add( - new OpenApiType() - { - Name = "merge_fields", - Property = "MergeFields", - Type = "List", - Value = MergeFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_preview", - Property = "ShowPreview", - Type = "bool", - Value = ShowPreview, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_roles", - Property = "SignerRoles", - Type = "List", - Value = SignerRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "skip_me_now", - Property = "SkipMeNow", - Type = "bool", - Value = SkipMeNow, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_preexisting_fields", - Property = "UsePreexistingFields", - Type = "bool", - Value = UsePreexistingFields, - } - ); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "allow_ccs", + Property = "AllowCcs", + Type = "bool", + Value = AllowCcs, + }); + types.Add(new OpenApiType(){ + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "cc_roles", + Property = "CcRoles", + Type = "List", + Value = CcRoles, + }); + types.Add(new OpenApiType(){ + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + }); + types.Add(new OpenApiType(){ + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + }); + types.Add(new OpenApiType(){ + Name = "force_signer_roles", + Property = "ForceSignerRoles", + Type = "bool", + Value = ForceSignerRoles, + }); + types.Add(new OpenApiType(){ + Name = "force_subject_message", + Property = "ForceSubjectMessage", + Type = "bool", + Value = ForceSubjectMessage, + }); + types.Add(new OpenApiType(){ + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + }); + types.Add(new OpenApiType(){ + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + }); + types.Add(new OpenApiType(){ + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + }); + types.Add(new OpenApiType(){ + Name = "merge_fields", + Property = "MergeFields", + Type = "List", + Value = MergeFields, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "show_preview", + Property = "ShowPreview", + Type = "bool", + Value = ShowPreview, + }); + types.Add(new OpenApiType(){ + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + }); + types.Add(new OpenApiType(){ + Name = "signer_roles", + Property = "SignerRoles", + Type = "List", + Value = SignerRoles, + }); + types.Add(new OpenApiType(){ + Name = "skip_me_now", + Property = "SkipMeNow", + Type = "bool", + Value = SkipMeNow, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "use_preexisting_fields", + Property = "UsePreexistingFields", + Type = "bool", + Value = UsePreexistingFields, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs index 40453ee95..0ed1bff0b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,27 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateEmbeddedDraftResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateEmbeddedDraftResponse - : IEquatable, - IValidatableObject + public partial class TemplateCreateEmbeddedDraftResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateEmbeddedDraftResponse() { } - /// /// Initializes a new instance of the class. /// /// template. /// A list of warnings.. - public TemplateCreateEmbeddedDraftResponse( - TemplateCreateEmbeddedDraftResponseTemplate template = - default(TemplateCreateEmbeddedDraftResponseTemplate), - List warnings = default(List) - ) + public TemplateCreateEmbeddedDraftResponse(TemplateCreateEmbeddedDraftResponseTemplate template = default(TemplateCreateEmbeddedDraftResponseTemplate), List warnings = default(List)) { + this.Template = template; this.Warnings = warnings; } @@ -66,9 +60,7 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftResponse"); } return obj; @@ -79,6 +71,7 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateCreateEmbeddedDraftResponseTemplate Template { get; set; } + /// /// A list of warnings. @@ -86,6 +79,7 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -107,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -134,15 +125,17 @@ public bool Equals(TemplateCreateEmbeddedDraftResponse input) { return false; } - return ( - this.Template == input.Template - || (this.Template != null && this.Template.Equals(input.Template)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Template == input.Template || + (this.Template != null && + this.Template.Equals(input.Template)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -172,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -182,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template", - Property = "Template", - Type = "TemplateCreateEmbeddedDraftResponseTemplate", - Value = Template, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "template", + Property = "Template", + Type = "TemplateCreateEmbeddedDraftResponseTemplate", + Value = Template, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs index d7aeb5d97..5bc13da10 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateEmbeddedDraftResponseTemplate")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateEmbeddedDraftResponseTemplate - : IEquatable, - IValidatableObject + public partial class TemplateCreateEmbeddedDraftResponseTemplate : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateEmbeddedDraftResponseTemplate() { } - /// /// Initializes a new instance of the class. /// @@ -48,13 +45,9 @@ protected TemplateCreateEmbeddedDraftResponseTemplate() { } /// Link to edit the template.. /// When the link expires.. /// A list of warnings.. - public TemplateCreateEmbeddedDraftResponseTemplate( - string templateId = default(string), - string editUrl = default(string), - int expiresAt = default(int), - List warnings = default(List) - ) + public TemplateCreateEmbeddedDraftResponseTemplate(string templateId = default(string), string editUrl = default(string), int expiresAt = default(int), List warnings = default(List)) { + this.TemplateId = templateId; this.EditUrl = editUrl; this.ExpiresAt = expiresAt; @@ -67,15 +60,11 @@ public TemplateCreateEmbeddedDraftResponseTemplate( /// String of JSON data representing target object public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftResponseTemplate" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateCreateEmbeddedDraftResponseTemplate"); } return obj; @@ -87,6 +76,7 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// Link to edit the template. @@ -94,6 +84,7 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) /// Link to edit the template. [DataMember(Name = "edit_url", EmitDefaultValue = true)] public string EditUrl { get; set; } + /// /// When the link expires. @@ -101,6 +92,7 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } + /// /// A list of warnings. @@ -109,6 +101,7 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] [Obsolete] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -132,10 +125,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -159,20 +149,26 @@ public bool Equals(TemplateCreateEmbeddedDraftResponseTemplate input) { return false; } - return ( - this.TemplateId == input.TemplateId - || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) - ) - && ( - this.EditUrl == input.EditUrl - || (this.EditUrl != null && this.EditUrl.Equals(input.EditUrl)) - ) - && (this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt)) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ) && + ( + this.EditUrl == input.EditUrl || + (this.EditUrl != null && + this.EditUrl.Equals(input.EditUrl)) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + this.ExpiresAt.Equals(input.ExpiresAt) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -207,9 +203,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -217,44 +211,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - } - ); - types.Add( - new OpenApiType() - { - Name = "edit_url", - Property = "EditUrl", - Type = "string", - Value = EditUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int", - Value = ExpiresAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + }); + types.Add(new OpenApiType(){ + Name = "edit_url", + Property = "EditUrl", + Type = "string", + Value = EditUrl, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int", + Value = ExpiresAt, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs index abe2e2aac..4048b5a35 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateRequest - : IEquatable, - IValidatableObject + public partial class TemplateCreateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -62,42 +59,19 @@ protected TemplateCreateRequest() { } /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. (default to false). /// The title you want to assign to the SignatureRequest.. /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). (default to false). - public TemplateCreateRequest( - List files = default(List), - List fileUrls = default(List), - bool allowReassign = false, - List attachments = default(List), - List ccRoles = default(List), - string clientId = default(string), - SubFieldOptions fieldOptions = default(SubFieldOptions), - List formFieldGroups = default(List), - List formFieldRules = default(List), - List formFieldsPerDocument = - default(List), - List mergeFields = default(List), - string message = default(string), - Dictionary metadata = default(Dictionary), - List signerRoles = default(List), - string subject = default(string), - bool testMode = false, - string title = default(string), - bool usePreexistingFields = false - ) + public TemplateCreateRequest(List files = default(List), List fileUrls = default(List), bool allowReassign = false, List attachments = default(List), List ccRoles = default(List), string clientId = default(string), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), List mergeFields = default(List), string message = default(string), Dictionary metadata = default(Dictionary), List signerRoles = default(List), string subject = default(string), bool testMode = false, string title = default(string), bool usePreexistingFields = false) { + // to ensure "formFieldsPerDocument" is required (not null) if (formFieldsPerDocument == null) { - throw new ArgumentNullException( - "formFieldsPerDocument is a required property for TemplateCreateRequest and cannot be null" - ); + throw new ArgumentNullException("formFieldsPerDocument is a required property for TemplateCreateRequest and cannot be null"); } this.FormFieldsPerDocument = formFieldsPerDocument; // to ensure "signerRoles" is required (not null) if (signerRoles == null) { - throw new ArgumentNullException( - "signerRoles is a required property for TemplateCreateRequest and cannot be null" - ); + throw new ArgumentNullException("signerRoles is a required property for TemplateCreateRequest and cannot be null"); } this.SignerRoles = signerRoles; this.Files = files; @@ -128,9 +102,7 @@ public static TemplateCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateCreateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateCreateRequest"); } return obj; @@ -142,6 +114,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", IsRequired = true, EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -149,6 +122,7 @@ public static TemplateCreateRequest Init(string jsonData) /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "signer_roles", IsRequired = true, EmitDefaultValue = true)] public List SignerRoles { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -156,6 +130,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -163,6 +138,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -170,6 +146,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -177,6 +154,7 @@ public static TemplateCreateRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The CC roles that must be assigned when using the template to send a signature request @@ -184,6 +162,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The CC roles that must be assigned when using the template to send a signature request [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } + /// /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. @@ -191,12 +170,14 @@ public static TemplateCreateRequest Init(string jsonData) /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -204,6 +185,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -211,6 +193,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. @@ -218,6 +201,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } + /// /// The default template email message. @@ -225,6 +209,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -232,6 +217,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// The template title (alias). @@ -239,6 +225,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The template title (alias). [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -246,6 +233,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -253,6 +241,7 @@ public static TemplateCreateRequest Init(string jsonData) /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). @@ -260,6 +249,7 @@ public static TemplateCreateRequest Init(string jsonData) /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } + /// /// Returns the string presentation of the object @@ -297,10 +287,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -324,94 +311,103 @@ public bool Equals(TemplateCreateRequest input) { return false; } - return ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument - || this.FormFieldsPerDocument != null - && input.FormFieldsPerDocument != null - && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) - && ( - this.SignerRoles == input.SignerRoles - || this.SignerRoles != null - && input.SignerRoles != null - && this.SignerRoles.SequenceEqual(input.SignerRoles) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.AllowReassign == input.AllowReassign - || this.AllowReassign.Equals(input.AllowReassign) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.CcRoles == input.CcRoles - || this.CcRoles != null - && input.CcRoles != null - && this.CcRoles.SequenceEqual(input.CcRoles) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.FieldOptions == input.FieldOptions - || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) - ) - && ( - this.FormFieldGroups == input.FormFieldGroups - || this.FormFieldGroups != null - && input.FormFieldGroups != null - && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) - && ( - this.FormFieldRules == input.FormFieldRules - || this.FormFieldRules != null - && input.FormFieldRules != null - && this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) - && ( - this.MergeFields == input.MergeFields - || this.MergeFields != null - && input.MergeFields != null - && this.MergeFields.SequenceEqual(input.MergeFields) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.UsePreexistingFields == input.UsePreexistingFields - || this.UsePreexistingFields.Equals(input.UsePreexistingFields) + return + ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument || + this.FormFieldsPerDocument != null && + input.FormFieldsPerDocument != null && + this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) && + ( + this.SignerRoles == input.SignerRoles || + this.SignerRoles != null && + input.SignerRoles != null && + this.SignerRoles.SequenceEqual(input.SignerRoles) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.AllowReassign == input.AllowReassign || + this.AllowReassign.Equals(input.AllowReassign) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.CcRoles == input.CcRoles || + this.CcRoles != null && + input.CcRoles != null && + this.CcRoles.SequenceEqual(input.CcRoles) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.FieldOptions == input.FieldOptions || + (this.FieldOptions != null && + this.FieldOptions.Equals(input.FieldOptions)) + ) && + ( + this.FormFieldGroups == input.FormFieldGroups || + this.FormFieldGroups != null && + input.FormFieldGroups != null && + this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) && + ( + this.FormFieldRules == input.FormFieldRules || + this.FormFieldRules != null && + input.FormFieldRules != null && + this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) && + ( + this.MergeFields == input.MergeFields || + this.MergeFields != null && + input.MergeFields != null && + this.MergeFields.SequenceEqual(input.MergeFields) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.UsePreexistingFields == input.UsePreexistingFields || + this.UsePreexistingFields.Equals(input.UsePreexistingFields) ); } @@ -496,26 +492,18 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 200.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); } yield break; @@ -524,170 +512,117 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_roles", - Property = "SignerRoles", - Type = "List", - Value = SignerRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_roles", - Property = "CcRoles", - Type = "List", - Value = CcRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - } - ); - types.Add( - new OpenApiType() - { - Name = "merge_fields", - Property = "MergeFields", - Type = "List", - Value = MergeFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_preexisting_fields", - Property = "UsePreexistingFields", - Type = "bool", - Value = UsePreexistingFields, - } - ); + types.Add(new OpenApiType(){ + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + }); + types.Add(new OpenApiType(){ + Name = "signer_roles", + Property = "SignerRoles", + Type = "List", + Value = SignerRoles, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "cc_roles", + Property = "CcRoles", + Type = "List", + Value = CcRoles, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + }); + types.Add(new OpenApiType(){ + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + }); + types.Add(new OpenApiType(){ + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + }); + types.Add(new OpenApiType(){ + Name = "merge_fields", + Property = "MergeFields", + Type = "List", + Value = MergeFields, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "use_preexisting_fields", + Property = "UsePreexistingFields", + Type = "bool", + Value = UsePreexistingFields, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs index 7f859f58d..c8734bd57 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateResponse - : IEquatable, - IValidatableObject + public partial class TemplateCreateResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateResponse() { } - /// /// Initializes a new instance of the class. /// /// template. /// A list of warnings.. - public TemplateCreateResponse( - TemplateCreateResponseTemplate template = default(TemplateCreateResponseTemplate), - List warnings = default(List) - ) + public TemplateCreateResponse(TemplateCreateResponseTemplate template = default(TemplateCreateResponseTemplate), List warnings = default(List)) { + this.Template = template; this.Warnings = warnings; } @@ -65,9 +60,7 @@ public static TemplateCreateResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateCreateResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateCreateResponse"); } return obj; @@ -78,6 +71,7 @@ public static TemplateCreateResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateCreateResponseTemplate Template { get; set; } + /// /// A list of warnings. @@ -85,6 +79,7 @@ public static TemplateCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -106,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -133,15 +125,17 @@ public bool Equals(TemplateCreateResponse input) { return false; } - return ( - this.Template == input.Template - || (this.Template != null && this.Template.Equals(input.Template)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Template == input.Template || + (this.Template != null && + this.Template.Equals(input.Template)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -171,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -181,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template", - Property = "Template", - Type = "TemplateCreateResponseTemplate", - Value = Template, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "template", + Property = "Template", + Type = "TemplateCreateResponseTemplate", + Value = Template, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs index afff92a5b..04586c21a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,22 +31,20 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateCreateResponseTemplate")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateCreateResponseTemplate - : IEquatable, - IValidatableObject + public partial class TemplateCreateResponseTemplate : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateCreateResponseTemplate() { } - /// /// Initializes a new instance of the class. /// /// The id of the Template.. public TemplateCreateResponseTemplate(string templateId = default(string)) { + this.TemplateId = templateId; } @@ -60,9 +58,7 @@ public static TemplateCreateResponseTemplate Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateCreateResponseTemplate" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateCreateResponseTemplate"); } return obj; @@ -74,6 +70,7 @@ public static TemplateCreateResponseTemplate Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// Returns the string presentation of the object @@ -94,10 +91,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -121,10 +115,12 @@ public bool Equals(TemplateCreateResponseTemplate input) { return false; } - return ( - this.TemplateId == input.TemplateId - || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) - ); + return + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ); } /// @@ -149,9 +145,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -159,17 +153,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - } - ); + types.Add(new OpenApiType(){ + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs index 0fd9d5922..8601c721a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,13 +38,13 @@ public partial class TemplateEditResponse : IEquatable, IV /// [JsonConstructorAttribute] protected TemplateEditResponse() { } - /// /// Initializes a new instance of the class. /// /// The id of the Template.. public TemplateEditResponse(string templateId = default(string)) { + this.TemplateId = templateId; } @@ -58,9 +58,7 @@ public static TemplateEditResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateEditResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateEditResponse"); } return obj; @@ -72,6 +70,7 @@ public static TemplateEditResponse Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// Returns the string presentation of the object @@ -92,10 +91,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -119,10 +115,12 @@ public bool Equals(TemplateEditResponse input) { return false; } - return ( - this.TemplateId == input.TemplateId - || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) - ); + return + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ); } /// @@ -147,9 +145,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -157,17 +153,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - } - ); + types.Add(new OpenApiType(){ + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs index 7aeb17378..4f70c5fb6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,17 +38,14 @@ public partial class TemplateGetResponse : IEquatable, IVal /// [JsonConstructorAttribute] protected TemplateGetResponse() { } - /// /// Initializes a new instance of the class. /// /// template. /// A list of warnings.. - public TemplateGetResponse( - TemplateResponse template = default(TemplateResponse), - List warnings = default(List) - ) + public TemplateGetResponse(TemplateResponse template = default(TemplateResponse), List warnings = default(List)) { + this.Template = template; this.Warnings = warnings; } @@ -63,9 +60,7 @@ public static TemplateGetResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateGetResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateGetResponse"); } return obj; @@ -76,6 +71,7 @@ public static TemplateGetResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateResponse Template { get; set; } + /// /// A list of warnings. @@ -83,6 +79,7 @@ public static TemplateGetResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -104,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -131,15 +125,17 @@ public bool Equals(TemplateGetResponse input) { return false; } - return ( - this.Template == input.Template - || (this.Template != null && this.Template.Equals(input.Template)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Template == input.Template || + (this.Template != null && + this.Template.Equals(input.Template)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -169,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -179,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template", - Property = "Template", - Type = "TemplateResponse", - Value = Template, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "template", + Property = "Template", + Type = "TemplateResponse", + Value = Template, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs index e3c80f806..0577af964 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,19 +38,15 @@ public partial class TemplateListResponse : IEquatable, IV /// [JsonConstructorAttribute] protected TemplateListResponse() { } - /// /// Initializes a new instance of the class. /// /// List of templates that the API caller has access to.. /// listInfo. /// A list of warnings.. - public TemplateListResponse( - List templates = default(List), - ListInfoResponse listInfo = default(ListInfoResponse), - List warnings = default(List) - ) + public TemplateListResponse(List templates = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { + this.Templates = templates; this.ListInfo = listInfo; this.Warnings = warnings; @@ -66,9 +62,7 @@ public static TemplateListResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateListResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateListResponse"); } return obj; @@ -80,12 +74,14 @@ public static TemplateListResponse Init(string jsonData) /// List of templates that the API caller has access to. [DataMember(Name = "templates", EmitDefaultValue = true)] public List Templates { get; set; } + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } + /// /// A list of warnings. @@ -93,6 +89,7 @@ public static TemplateListResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -115,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -142,21 +136,23 @@ public bool Equals(TemplateListResponse input) { return false; } - return ( - this.Templates == input.Templates - || this.Templates != null - && input.Templates != null - && this.Templates.SequenceEqual(input.Templates) - ) - && ( - this.ListInfo == input.ListInfo - || (this.ListInfo != null && this.ListInfo.Equals(input.ListInfo)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.Templates == input.Templates || + this.Templates != null && + input.Templates != null && + this.Templates.SequenceEqual(input.Templates) + ) && + ( + this.ListInfo == input.ListInfo || + (this.ListInfo != null && + this.ListInfo.Equals(input.ListInfo)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -190,9 +186,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -200,35 +194,27 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "templates", - Property = "Templates", - Type = "List", - Value = Templates, - } - ); - types.Add( - new OpenApiType() - { - Name = "list_info", - Property = "ListInfo", - Type = "ListInfoResponse", - Value = ListInfo, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "templates", + Property = "Templates", + Type = "List", + Value = Templates, + }); + types.Add(new OpenApiType(){ + Name = "list_info", + Property = "ListInfo", + Type = "ListInfoResponse", + Value = ListInfo, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs index fad2bf676..f99e5822a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateRemoveUserRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateRemoveUserRequest - : IEquatable, - IValidatableObject + public partial class TemplateRemoveUserRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateRemoveUserRequest() { } - /// /// Initializes a new instance of the class. /// /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided.. /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided.. - public TemplateRemoveUserRequest( - string accountId = default(string), - string emailAddress = default(string) - ) + public TemplateRemoveUserRequest(string accountId = default(string), string emailAddress = default(string)) { + this.AccountId = accountId; this.EmailAddress = emailAddress; } @@ -65,9 +60,7 @@ public static TemplateRemoveUserRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateRemoveUserRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateRemoveUserRequest"); } return obj; @@ -79,6 +72,7 @@ public static TemplateRemoveUserRequest Init(string jsonData) /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. @@ -86,6 +80,7 @@ public static TemplateRemoveUserRequest Init(string jsonData) /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns the string presentation of the object @@ -107,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -134,13 +126,16 @@ public bool Equals(TemplateRemoveUserRequest input) { return false; } - return ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) + return + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) ); } @@ -170,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -180,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs index d9c62212c..5ae571ae7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,7 +38,6 @@ public partial class TemplateResponse : IEquatable, IValidatab /// [JsonConstructorAttribute] protected TemplateResponse() { } - /// /// Initializes a new instance of the class. /// @@ -57,27 +56,9 @@ protected TemplateResponse() { } /// Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead.. /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead.. /// An array of the Accounts that can use this Template.. - public TemplateResponse( - string templateId = default(string), - string title = default(string), - string message = default(string), - int updatedAt = default(int), - bool? isEmbedded = default(bool?), - bool? isCreator = default(bool?), - bool? canEdit = default(bool?), - bool? isLocked = default(bool?), - Object metadata = default(Object), - List signerRoles = - default(List), - List ccRoles = default(List), - List documents = default(List), - List customFields = - default(List), - List namedFormFields = - default(List), - List accounts = default(List) - ) + public TemplateResponse(string templateId = default(string), string title = default(string), string message = default(string), int updatedAt = default(int), bool? isEmbedded = default(bool?), bool? isCreator = default(bool?), bool? canEdit = default(bool?), bool? isLocked = default(bool?), Object metadata = default(Object), List signerRoles = default(List), List ccRoles = default(List), List documents = default(List), List customFields = default(List), List namedFormFields = default(List), List accounts = default(List)) { + this.TemplateId = templateId; this.Title = title; this.Message = message; @@ -117,6 +98,7 @@ public static TemplateResponse Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. @@ -124,6 +106,7 @@ public static TemplateResponse Init(string jsonData) /// The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. @@ -131,6 +114,7 @@ public static TemplateResponse Init(string jsonData) /// The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Time the template was last updated. @@ -138,6 +122,7 @@ public static TemplateResponse Init(string jsonData) /// Time the template was last updated. [DataMember(Name = "updated_at", EmitDefaultValue = true)] public int UpdatedAt { get; set; } + /// /// `true` if this template was created using an embedded flow, `false` if it was created on our website. @@ -145,6 +130,7 @@ public static TemplateResponse Init(string jsonData) /// `true` if this template was created using an embedded flow, `false` if it was created on our website. [DataMember(Name = "is_embedded", EmitDefaultValue = true)] public bool? IsEmbedded { get; set; } + /// /// `true` if you are the owner of this template, `false` if it's been shared with you by a team member. @@ -152,6 +138,7 @@ public static TemplateResponse Init(string jsonData) /// `true` if you are the owner of this template, `false` if it's been shared with you by a team member. [DataMember(Name = "is_creator", EmitDefaultValue = true)] public bool? IsCreator { get; set; } + /// /// Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). @@ -159,6 +146,7 @@ public static TemplateResponse Init(string jsonData) /// Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). [DataMember(Name = "can_edit", EmitDefaultValue = true)] public bool? CanEdit { get; set; } + /// /// Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. @@ -166,6 +154,7 @@ public static TemplateResponse Init(string jsonData) /// Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool? IsLocked { get; set; } + /// /// The metadata attached to the template. @@ -173,6 +162,7 @@ public static TemplateResponse Init(string jsonData) /// The metadata attached to the template. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } + /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -180,6 +170,7 @@ public static TemplateResponse Init(string jsonData) /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "signer_roles", EmitDefaultValue = true)] public List SignerRoles { get; set; } + /// /// An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. @@ -187,6 +178,7 @@ public static TemplateResponse Init(string jsonData) /// An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } + /// /// An array describing each document associated with this Template. Includes form field data for each document. @@ -194,6 +186,7 @@ public static TemplateResponse Init(string jsonData) /// An array describing each document associated with this Template. Includes form field data for each document. [DataMember(Name = "documents", EmitDefaultValue = true)] public List Documents { get; set; } + /// /// Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. @@ -202,6 +195,7 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] [Obsolete] public List CustomFields { get; set; } + /// /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. @@ -210,6 +204,7 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "named_form_fields", EmitDefaultValue = true)] [Obsolete] public List NamedFormFields { get; set; } + /// /// An array of the Accounts that can use this Template. @@ -217,6 +212,7 @@ public static TemplateResponse Init(string jsonData) /// An array of the Accounts that can use this Template. [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } + /// /// Returns the string presentation of the object @@ -251,10 +247,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -278,74 +271,86 @@ public bool Equals(TemplateResponse input) { return false; } - return ( - this.TemplateId == input.TemplateId - || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) - ) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && (this.UpdatedAt == input.UpdatedAt || this.UpdatedAt.Equals(input.UpdatedAt)) - && ( - this.IsEmbedded == input.IsEmbedded - || (this.IsEmbedded != null && this.IsEmbedded.Equals(input.IsEmbedded)) - ) - && ( - this.IsCreator == input.IsCreator - || (this.IsCreator != null && this.IsCreator.Equals(input.IsCreator)) - ) - && ( - this.CanEdit == input.CanEdit - || (this.CanEdit != null && this.CanEdit.Equals(input.CanEdit)) - ) - && ( - this.IsLocked == input.IsLocked - || (this.IsLocked != null && this.IsLocked.Equals(input.IsLocked)) - ) - && ( - this.Metadata == input.Metadata - || (this.Metadata != null && this.Metadata.Equals(input.Metadata)) - ) - && ( - this.SignerRoles == input.SignerRoles - || this.SignerRoles != null - && input.SignerRoles != null - && this.SignerRoles.SequenceEqual(input.SignerRoles) - ) - && ( - this.CcRoles == input.CcRoles - || this.CcRoles != null - && input.CcRoles != null - && this.CcRoles.SequenceEqual(input.CcRoles) - ) - && ( - this.Documents == input.Documents - || this.Documents != null - && input.Documents != null - && this.Documents.SequenceEqual(input.Documents) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.NamedFormFields == input.NamedFormFields - || this.NamedFormFields != null - && input.NamedFormFields != null - && this.NamedFormFields.SequenceEqual(input.NamedFormFields) - ) - && ( - this.Accounts == input.Accounts - || this.Accounts != null - && input.Accounts != null - && this.Accounts.SequenceEqual(input.Accounts) + return + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + this.UpdatedAt.Equals(input.UpdatedAt) + ) && + ( + this.IsEmbedded == input.IsEmbedded || + (this.IsEmbedded != null && + this.IsEmbedded.Equals(input.IsEmbedded)) + ) && + ( + this.IsCreator == input.IsCreator || + (this.IsCreator != null && + this.IsCreator.Equals(input.IsCreator)) + ) && + ( + this.CanEdit == input.CanEdit || + (this.CanEdit != null && + this.CanEdit.Equals(input.CanEdit)) + ) && + ( + this.IsLocked == input.IsLocked || + (this.IsLocked != null && + this.IsLocked.Equals(input.IsLocked)) + ) && + ( + this.Metadata == input.Metadata || + (this.Metadata != null && + this.Metadata.Equals(input.Metadata)) + ) && + ( + this.SignerRoles == input.SignerRoles || + this.SignerRoles != null && + input.SignerRoles != null && + this.SignerRoles.SequenceEqual(input.SignerRoles) + ) && + ( + this.CcRoles == input.CcRoles || + this.CcRoles != null && + input.CcRoles != null && + this.CcRoles.SequenceEqual(input.CcRoles) + ) && + ( + this.Documents == input.Documents || + this.Documents != null && + input.Documents != null && + this.Documents.SequenceEqual(input.Documents) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.NamedFormFields == input.NamedFormFields || + this.NamedFormFields != null && + input.NamedFormFields != null && + this.NamedFormFields.SequenceEqual(input.NamedFormFields) + ) && + ( + this.Accounts == input.Accounts || + this.Accounts != null && + input.Accounts != null && + this.Accounts.SequenceEqual(input.Accounts) ); } @@ -424,9 +429,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -434,143 +437,99 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "updated_at", - Property = "UpdatedAt", - Type = "int", - Value = UpdatedAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_embedded", - Property = "IsEmbedded", - Type = "bool?", - Value = IsEmbedded, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_creator", - Property = "IsCreator", - Type = "bool?", - Value = IsCreator, - } - ); - types.Add( - new OpenApiType() - { - Name = "can_edit", - Property = "CanEdit", - Type = "bool?", - Value = CanEdit, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_locked", - Property = "IsLocked", - Type = "bool?", - Value = IsLocked, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Object", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer_roles", - Property = "SignerRoles", - Type = "List", - Value = SignerRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_roles", - Property = "CcRoles", - Type = "List", - Value = CcRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "documents", - Property = "Documents", - Type = "List", - Value = Documents, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "named_form_fields", - Property = "NamedFormFields", - Type = "List", - Value = NamedFormFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "accounts", - Property = "Accounts", - Type = "List", - Value = Accounts, - } - ); + types.Add(new OpenApiType(){ + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "updated_at", + Property = "UpdatedAt", + Type = "int", + Value = UpdatedAt, + }); + types.Add(new OpenApiType(){ + Name = "is_embedded", + Property = "IsEmbedded", + Type = "bool?", + Value = IsEmbedded, + }); + types.Add(new OpenApiType(){ + Name = "is_creator", + Property = "IsCreator", + Type = "bool?", + Value = IsCreator, + }); + types.Add(new OpenApiType(){ + Name = "can_edit", + Property = "CanEdit", + Type = "bool?", + Value = CanEdit, + }); + types.Add(new OpenApiType(){ + Name = "is_locked", + Property = "IsLocked", + Type = "bool?", + Value = IsLocked, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Object", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "signer_roles", + Property = "SignerRoles", + Type = "List", + Value = SignerRoles, + }); + types.Add(new OpenApiType(){ + Name = "cc_roles", + Property = "CcRoles", + Type = "List", + Value = CcRoles, + }); + types.Add(new OpenApiType(){ + Name = "documents", + Property = "Documents", + Type = "List", + Value = Documents, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "named_form_fields", + Property = "NamedFormFields", + Type = "List", + Value = NamedFormFields, + }); + types.Add(new OpenApiType(){ + Name = "accounts", + Property = "Accounts", + Type = "List", + Value = Accounts, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs index 6a2adfaf0..c4c8f5e68 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseAccount")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseAccount - : IEquatable, - IValidatableObject + public partial class TemplateResponseAccount : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseAccount() { } - /// /// Initializes a new instance of the class. /// @@ -50,15 +47,9 @@ protected TemplateResponseAccount() { } /// Returns `true` if the user has a paid Dropbox Sign account.. /// Returns `true` if the user has a paid HelloFax account.. /// quotas. - public TemplateResponseAccount( - string accountId = default(string), - string emailAddress = default(string), - bool isLocked = default(bool), - bool isPaidHs = default(bool), - bool isPaidHf = default(bool), - TemplateResponseAccountQuota quotas = default(TemplateResponseAccountQuota) - ) + public TemplateResponseAccount(string accountId = default(string), string emailAddress = default(string), bool isLocked = default(bool), bool isPaidHs = default(bool), bool isPaidHf = default(bool), TemplateResponseAccountQuota quotas = default(TemplateResponseAccountQuota)) { + this.AccountId = accountId; this.EmailAddress = emailAddress; this.IsLocked = isLocked; @@ -77,9 +68,7 @@ public static TemplateResponseAccount Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseAccount" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseAccount"); } return obj; @@ -91,6 +80,7 @@ public static TemplateResponseAccount Init(string jsonData) /// The id of the Account. [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } + /// /// The email address associated with the Account. @@ -98,6 +88,7 @@ public static TemplateResponseAccount Init(string jsonData) /// The email address associated with the Account. [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } + /// /// Returns `true` if the user has been locked out of their account by a team admin. @@ -105,6 +96,7 @@ public static TemplateResponseAccount Init(string jsonData) /// Returns `true` if the user has been locked out of their account by a team admin. [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool IsLocked { get; set; } + /// /// Returns `true` if the user has a paid Dropbox Sign account. @@ -112,6 +104,7 @@ public static TemplateResponseAccount Init(string jsonData) /// Returns `true` if the user has a paid Dropbox Sign account. [DataMember(Name = "is_paid_hs", EmitDefaultValue = true)] public bool IsPaidHs { get; set; } + /// /// Returns `true` if the user has a paid HelloFax account. @@ -119,12 +112,14 @@ public static TemplateResponseAccount Init(string jsonData) /// Returns `true` if the user has a paid HelloFax account. [DataMember(Name = "is_paid_hf", EmitDefaultValue = true)] public bool IsPaidHf { get; set; } + /// /// Gets or Sets Quotas /// [DataMember(Name = "quotas", EmitDefaultValue = true)] public TemplateResponseAccountQuota Quotas { get; set; } + /// /// Returns the string presentation of the object @@ -150,10 +145,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -177,20 +169,33 @@ public bool Equals(TemplateResponseAccount input) { return false; } - return ( - this.AccountId == input.AccountId - || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) - && ( - this.EmailAddress == input.EmailAddress - || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) - && (this.IsLocked == input.IsLocked || this.IsLocked.Equals(input.IsLocked)) - && (this.IsPaidHs == input.IsPaidHs || this.IsPaidHs.Equals(input.IsPaidHs)) - && (this.IsPaidHf == input.IsPaidHf || this.IsPaidHf.Equals(input.IsPaidHf)) - && ( - this.Quotas == input.Quotas - || (this.Quotas != null && this.Quotas.Equals(input.Quotas)) + return + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.IsLocked == input.IsLocked || + this.IsLocked.Equals(input.IsLocked) + ) && + ( + this.IsPaidHs == input.IsPaidHs || + this.IsPaidHs.Equals(input.IsPaidHs) + ) && + ( + this.IsPaidHf == input.IsPaidHf || + this.IsPaidHf.Equals(input.IsPaidHf) + ) && + ( + this.Quotas == input.Quotas || + (this.Quotas != null && + this.Quotas.Equals(input.Quotas)) ); } @@ -227,9 +232,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -237,62 +240,45 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "account_id", - Property = "AccountId", - Type = "string", - Value = AccountId, - } - ); - types.Add( - new OpenApiType() - { - Name = "email_address", - Property = "EmailAddress", - Type = "string", - Value = EmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_locked", - Property = "IsLocked", - Type = "bool", - Value = IsLocked, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_paid_hs", - Property = "IsPaidHs", - Type = "bool", - Value = IsPaidHs, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_paid_hf", - Property = "IsPaidHf", - Type = "bool", - Value = IsPaidHf, - } - ); - types.Add( - new OpenApiType() - { - Name = "quotas", - Property = "Quotas", - Type = "TemplateResponseAccountQuota", - Value = Quotas, - } - ); + types.Add(new OpenApiType(){ + Name = "account_id", + Property = "AccountId", + Type = "string", + Value = AccountId, + }); + types.Add(new OpenApiType(){ + Name = "email_address", + Property = "EmailAddress", + Type = "string", + Value = EmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "is_locked", + Property = "IsLocked", + Type = "bool", + Value = IsLocked, + }); + types.Add(new OpenApiType(){ + Name = "is_paid_hs", + Property = "IsPaidHs", + Type = "bool", + Value = IsPaidHs, + }); + types.Add(new OpenApiType(){ + Name = "is_paid_hf", + Property = "IsPaidHf", + Type = "bool", + Value = IsPaidHf, + }); + types.Add(new OpenApiType(){ + Name = "quotas", + Property = "Quotas", + Type = "TemplateResponseAccountQuota", + Value = Quotas, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs index eb0e59ccc..5fedca660 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseAccountQuota")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseAccountQuota - : IEquatable, - IValidatableObject + public partial class TemplateResponseAccountQuota : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseAccountQuota() { } - /// /// Initializes a new instance of the class. /// @@ -48,13 +45,9 @@ protected TemplateResponseAccountQuota() { } /// API signature requests remaining.. /// Signature requests remaining.. /// SMS verifications remaining.. - public TemplateResponseAccountQuota( - int templatesLeft = default(int), - int apiSignatureRequestsLeft = default(int), - int documentsLeft = default(int), - int smsVerificationsLeft = default(int) - ) + public TemplateResponseAccountQuota(int templatesLeft = default(int), int apiSignatureRequestsLeft = default(int), int documentsLeft = default(int), int smsVerificationsLeft = default(int)) { + this.TemplatesLeft = templatesLeft; this.ApiSignatureRequestsLeft = apiSignatureRequestsLeft; this.DocumentsLeft = documentsLeft; @@ -71,9 +64,7 @@ public static TemplateResponseAccountQuota Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseAccountQuota" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseAccountQuota"); } return obj; @@ -85,6 +76,7 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// API templates remaining. [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int TemplatesLeft { get; set; } + /// /// API signature requests remaining. @@ -92,6 +84,7 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// API signature requests remaining. [DataMember(Name = "api_signature_requests_left", EmitDefaultValue = true)] public int ApiSignatureRequestsLeft { get; set; } + /// /// Signature requests remaining. @@ -99,6 +92,7 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// Signature requests remaining. [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int DocumentsLeft { get; set; } + /// /// SMS verifications remaining. @@ -106,6 +100,7 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// SMS verifications remaining. [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int SmsVerificationsLeft { get; set; } + /// /// Returns the string presentation of the object @@ -129,10 +124,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -156,21 +148,22 @@ public bool Equals(TemplateResponseAccountQuota input) { return false; } - return ( - this.TemplatesLeft == input.TemplatesLeft - || this.TemplatesLeft.Equals(input.TemplatesLeft) - ) - && ( - this.ApiSignatureRequestsLeft == input.ApiSignatureRequestsLeft - || this.ApiSignatureRequestsLeft.Equals(input.ApiSignatureRequestsLeft) - ) - && ( - this.DocumentsLeft == input.DocumentsLeft - || this.DocumentsLeft.Equals(input.DocumentsLeft) - ) - && ( - this.SmsVerificationsLeft == input.SmsVerificationsLeft - || this.SmsVerificationsLeft.Equals(input.SmsVerificationsLeft) + return + ( + this.TemplatesLeft == input.TemplatesLeft || + this.TemplatesLeft.Equals(input.TemplatesLeft) + ) && + ( + this.ApiSignatureRequestsLeft == input.ApiSignatureRequestsLeft || + this.ApiSignatureRequestsLeft.Equals(input.ApiSignatureRequestsLeft) + ) && + ( + this.DocumentsLeft == input.DocumentsLeft || + this.DocumentsLeft.Equals(input.DocumentsLeft) + ) && + ( + this.SmsVerificationsLeft == input.SmsVerificationsLeft || + this.SmsVerificationsLeft.Equals(input.SmsVerificationsLeft) ); } @@ -196,9 +189,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -206,44 +197,33 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "templates_left", - Property = "TemplatesLeft", - Type = "int", - Value = TemplatesLeft, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_signature_requests_left", - Property = "ApiSignatureRequestsLeft", - Type = "int", - Value = ApiSignatureRequestsLeft, - } - ); - types.Add( - new OpenApiType() - { - Name = "documents_left", - Property = "DocumentsLeft", - Type = "int", - Value = DocumentsLeft, - } - ); - types.Add( - new OpenApiType() - { - Name = "sms_verifications_left", - Property = "SmsVerificationsLeft", - Type = "int", - Value = SmsVerificationsLeft, - } - ); + types.Add(new OpenApiType(){ + Name = "templates_left", + Property = "TemplatesLeft", + Type = "int", + Value = TemplatesLeft, + }); + types.Add(new OpenApiType(){ + Name = "api_signature_requests_left", + Property = "ApiSignatureRequestsLeft", + Type = "int", + Value = ApiSignatureRequestsLeft, + }); + types.Add(new OpenApiType(){ + Name = "documents_left", + Property = "DocumentsLeft", + Type = "int", + Value = DocumentsLeft, + }); + types.Add(new OpenApiType(){ + Name = "sms_verifications_left", + Property = "SmsVerificationsLeft", + Type = "int", + Value = SmsVerificationsLeft, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs index 8e3c2cbb4..325f4ee65 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,22 +31,20 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseCCRole")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseCCRole - : IEquatable, - IValidatableObject + public partial class TemplateResponseCCRole : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseCCRole() { } - /// /// Initializes a new instance of the class. /// /// The name of the Role.. public TemplateResponseCCRole(string name = default(string)) { + this.Name = name; } @@ -60,9 +58,7 @@ public static TemplateResponseCCRole Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseCCRole" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseCCRole"); } return obj; @@ -74,6 +70,7 @@ public static TemplateResponseCCRole Init(string jsonData) /// The name of the Role. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Returns the string presentation of the object @@ -94,10 +91,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -121,7 +115,12 @@ public bool Equals(TemplateResponseCCRole input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))); + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); } /// @@ -146,9 +145,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -156,17 +153,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs index dd1deec0b..288a9ff33 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,10 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseCustomField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseCustomField - : IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseCustomField : IOpenApiTyped, IEquatable, IValidatableObject { /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. @@ -53,22 +50,22 @@ public enum TypeEnum /// Enum Checkbox for value: checkbox /// [EnumMember(Value = "checkbox")] - Checkbox = 2, + Checkbox = 2 + } + /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. [DataMember(Name = "type", EmitDefaultValue = true)] public TypeEnum? Type { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseCustomField() { } - /// /// Initializes a new instance of the class. /// @@ -85,23 +82,9 @@ protected TemplateResponseCustomField() { } /// Whether this form field is multiline text.. /// Original font size used in this form field's text.. /// Font family used in this form field's text.. - public TemplateResponseCustomField( - string name = default(string), - TypeEnum? type = default(TypeEnum?), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string apiId = default(string), - string group = default(string), - TemplateResponseFieldAvgTextLength avgTextLength = - default(TemplateResponseFieldAvgTextLength), - bool? isMultiline = default(bool?), - int? originalFontSize = default(int?), - string fontFamily = default(string) - ) + public TemplateResponseCustomField(string name = default(string), TypeEnum? type = default(TypeEnum?), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string apiId = default(string), string group = default(string), TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool? isMultiline = default(bool?), int? originalFontSize = default(int?), string fontFamily = default(string)) { + this.Name = name; this.Type = type; this.X = x; @@ -127,9 +110,7 @@ public static TemplateResponseCustomField Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseCustomField" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseCustomField"); } return obj; @@ -249,10 +230,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -276,41 +254,65 @@ public bool Equals(TemplateResponseCustomField input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Type == input.Type || this.Type.Equals(input.Type)) - && (this.X == input.X || this.X.Equals(input.X)) - && (this.Y == input.Y || this.Y.Equals(input.Y)) - && (this.Width == input.Width || this.Width.Equals(input.Width)) - && (this.Height == input.Height || this.Height.Equals(input.Height)) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) - ) - && ( - this.AvgTextLength == input.AvgTextLength - || ( - this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) - ) - ) - && ( - this.IsMultiline == input.IsMultiline - || (this.IsMultiline != null && this.IsMultiline.Equals(input.IsMultiline)) - ) - && ( - this.OriginalFontSize == input.OriginalFontSize - || ( - this.OriginalFontSize != null - && this.OriginalFontSize.Equals(input.OriginalFontSize) - ) - ) - && ( - this.FontFamily == input.FontFamily - || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.X == input.X || + this.X.Equals(input.X) + ) && + ( + this.Y == input.Y || + this.Y.Equals(input.Y) + ) && + ( + this.Width == input.Width || + this.Width.Equals(input.Width) + ) && + ( + this.Height == input.Height || + this.Height.Equals(input.Height) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.AvgTextLength == input.AvgTextLength || + (this.AvgTextLength != null && + this.AvgTextLength.Equals(input.AvgTextLength)) + ) && + ( + this.IsMultiline == input.IsMultiline || + (this.IsMultiline != null && + this.IsMultiline.Equals(input.IsMultiline)) + ) && + ( + this.OriginalFontSize == input.OriginalFontSize || + (this.OriginalFontSize != null && + this.OriginalFontSize.Equals(input.OriginalFontSize)) + ) && + ( + this.FontFamily == input.FontFamily || + (this.FontFamily != null && + this.FontFamily.Equals(input.FontFamily)) ); } @@ -364,123 +366,84 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "x", - Property = "X", - Type = "int", - Value = X, - } - ); - types.Add( - new OpenApiType() - { - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - } - ); - types.Add( - new OpenApiType() - { - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - } - ); - types.Add( - new OpenApiType() - { - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); - types.Add( - new OpenApiType() - { - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - } - ); - types.Add( - new OpenApiType() - { - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool?", - Value = IsMultiline, - } - ); - types.Add( - new OpenApiType() - { - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int?", - Value = OriginalFontSize, - } - ); - types.Add( - new OpenApiType() - { - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "x", + Property = "X", + Type = "int", + Value = X, + }); + types.Add(new OpenApiType(){ + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + }); + types.Add(new OpenApiType(){ + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + }); + types.Add(new OpenApiType(){ + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); + types.Add(new OpenApiType(){ + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + }); + types.Add(new OpenApiType(){ + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool?", + Value = IsMultiline, + }); + types.Add(new OpenApiType(){ + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int?", + Value = OriginalFontSize, + }); + types.Add(new OpenApiType(){ + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); return types; } @@ -490,11 +453,10 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs index 184d9011f..2617cb50a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocument")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocument - : IEquatable, - IValidatableObject + public partial class TemplateResponseDocument : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocument() { } - /// /// Initializes a new instance of the class. /// @@ -50,19 +47,9 @@ protected TemplateResponseDocument() { } /// An array of Form Field objects containing the name and type of each named field.. /// An array of Form Field objects containing the name and type of each named field.. /// An array describing static overlay fields. **NOTE:** Only available for certain subscriptions.. - public TemplateResponseDocument( - string name = default(string), - int index = default(int), - List fieldGroups = - default(List), - List formFields = - default(List), - List customFields = - default(List), - List staticFields = - default(List) - ) + public TemplateResponseDocument(string name = default(string), int index = default(int), List fieldGroups = default(List), List formFields = default(List), List customFields = default(List), List staticFields = default(List)) { + this.Name = name; this.Index = index; this.FieldGroups = fieldGroups; @@ -81,9 +68,7 @@ public static TemplateResponseDocument Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocument" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocument"); } return obj; @@ -95,6 +80,7 @@ public static TemplateResponseDocument Init(string jsonData) /// Name of the associated file. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Document ordering, the lowest index is displayed first and the highest last (0-based indexing). @@ -102,6 +88,7 @@ public static TemplateResponseDocument Init(string jsonData) /// Document ordering, the lowest index is displayed first and the highest last (0-based indexing). [DataMember(Name = "index", EmitDefaultValue = true)] public int Index { get; set; } + /// /// An array of Form Field Group objects. @@ -109,6 +96,7 @@ public static TemplateResponseDocument Init(string jsonData) /// An array of Form Field Group objects. [DataMember(Name = "field_groups", EmitDefaultValue = true)] public List FieldGroups { get; set; } + /// /// An array of Form Field objects containing the name and type of each named field. @@ -116,6 +104,7 @@ public static TemplateResponseDocument Init(string jsonData) /// An array of Form Field objects containing the name and type of each named field. [DataMember(Name = "form_fields", EmitDefaultValue = true)] public List FormFields { get; set; } + /// /// An array of Form Field objects containing the name and type of each named field. @@ -123,6 +112,7 @@ public static TemplateResponseDocument Init(string jsonData) /// An array of Form Field objects containing the name and type of each named field. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. @@ -130,6 +120,7 @@ public static TemplateResponseDocument Init(string jsonData) /// An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. [DataMember(Name = "static_fields", EmitDefaultValue = true)] public List StaticFields { get; set; } + /// /// Returns the string presentation of the object @@ -155,10 +146,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -182,31 +170,39 @@ public bool Equals(TemplateResponseDocument input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Index == input.Index || this.Index.Equals(input.Index)) - && ( - this.FieldGroups == input.FieldGroups - || this.FieldGroups != null - && input.FieldGroups != null - && this.FieldGroups.SequenceEqual(input.FieldGroups) - ) - && ( - this.FormFields == input.FormFields - || this.FormFields != null - && input.FormFields != null - && this.FormFields.SequenceEqual(input.FormFields) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.StaticFields == input.StaticFields - || this.StaticFields != null - && input.StaticFields != null - && this.StaticFields.SequenceEqual(input.StaticFields) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Index == input.Index || + this.Index.Equals(input.Index) + ) && + ( + this.FieldGroups == input.FieldGroups || + this.FieldGroups != null && + input.FieldGroups != null && + this.FieldGroups.SequenceEqual(input.FieldGroups) + ) && + ( + this.FormFields == input.FormFields || + this.FormFields != null && + input.FormFields != null && + this.FormFields.SequenceEqual(input.FormFields) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.StaticFields == input.StaticFields || + this.StaticFields != null && + input.StaticFields != null && + this.StaticFields.SequenceEqual(input.StaticFields) ); } @@ -249,9 +245,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -259,62 +253,45 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "index", - Property = "Index", - Type = "int", - Value = Index, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_groups", - Property = "FieldGroups", - Type = "List", - Value = FieldGroups, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_fields", - Property = "FormFields", - Type = "List", - Value = FormFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "static_fields", - Property = "StaticFields", - Type = "List", - Value = StaticFields, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "index", + Property = "Index", + Type = "int", + Value = Index, + }); + types.Add(new OpenApiType(){ + Name = "field_groups", + Property = "FieldGroups", + Type = "List", + Value = FieldGroups, + }); + types.Add(new OpenApiType(){ + Name = "form_fields", + Property = "FormFields", + Type = "List", + Value = FormFields, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "static_fields", + Property = "StaticFields", + Type = "List", + Value = StaticFields, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs index e07312785..617f255b6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,10 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentCustomField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentCustomField - : IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentCustomField : IOpenApiTyped, IEquatable, IValidatableObject { /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. @@ -53,22 +50,22 @@ public enum TypeEnum /// Enum Checkbox for value: checkbox /// [EnumMember(Value = "checkbox")] - Checkbox = 2, + Checkbox = 2 + } + /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. /// /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. [DataMember(Name = "type", EmitDefaultValue = true)] public TypeEnum? Type { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentCustomField() { } - /// /// Initializes a new instance of the class. /// @@ -88,26 +85,9 @@ protected TemplateResponseDocumentCustomField() { } /// Font family used in this form field's text.. /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead.. /// reusableFormId. - public TemplateResponseDocumentCustomField( - string name = default(string), - TypeEnum? type = default(TypeEnum?), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string apiId = default(string), - string group = default(string), - TemplateResponseFieldAvgTextLength avgTextLength = - default(TemplateResponseFieldAvgTextLength), - bool? isMultiline = default(bool?), - int? originalFontSize = default(int?), - string fontFamily = default(string), - Object namedFormFields = default(Object), - string reusableFormId = default(string) - ) + public TemplateResponseDocumentCustomField(string name = default(string), TypeEnum? type = default(TypeEnum?), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string apiId = default(string), string group = default(string), TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool? isMultiline = default(bool?), int? originalFontSize = default(int?), string fontFamily = default(string), Object namedFormFields = default(Object), string reusableFormId = default(string)) { + this.Name = name; this.Type = type; this.Signer = signer; @@ -136,9 +116,7 @@ public static TemplateResponseDocumentCustomField Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentCustomField" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentCustomField"); } return obj; @@ -283,10 +261,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -310,59 +285,80 @@ public bool Equals(TemplateResponseDocumentCustomField input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Type == input.Type || this.Type.Equals(input.Type)) - && ( - this.Signer == input.Signer - || (this.Signer != null && this.Signer.Equals(input.Signer)) - ) - && (this.X == input.X || this.X.Equals(input.X)) - && (this.Y == input.Y || this.Y.Equals(input.Y)) - && (this.Width == input.Width || this.Width.Equals(input.Width)) - && (this.Height == input.Height || this.Height.Equals(input.Height)) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) - ) - && ( - this.AvgTextLength == input.AvgTextLength - || ( - this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) - ) - ) - && ( - this.IsMultiline == input.IsMultiline - || (this.IsMultiline != null && this.IsMultiline.Equals(input.IsMultiline)) - ) - && ( - this.OriginalFontSize == input.OriginalFontSize - || ( - this.OriginalFontSize != null - && this.OriginalFontSize.Equals(input.OriginalFontSize) - ) - ) - && ( - this.FontFamily == input.FontFamily - || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) - ) - && ( - this.NamedFormFields == input.NamedFormFields - || ( - this.NamedFormFields != null - && this.NamedFormFields.Equals(input.NamedFormFields) - ) - ) - && ( - this.ReusableFormId == input.ReusableFormId - || ( - this.ReusableFormId != null - && this.ReusableFormId.Equals(input.ReusableFormId) - ) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Signer == input.Signer || + (this.Signer != null && + this.Signer.Equals(input.Signer)) + ) && + ( + this.X == input.X || + this.X.Equals(input.X) + ) && + ( + this.Y == input.Y || + this.Y.Equals(input.Y) + ) && + ( + this.Width == input.Width || + this.Width.Equals(input.Width) + ) && + ( + this.Height == input.Height || + this.Height.Equals(input.Height) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.AvgTextLength == input.AvgTextLength || + (this.AvgTextLength != null && + this.AvgTextLength.Equals(input.AvgTextLength)) + ) && + ( + this.IsMultiline == input.IsMultiline || + (this.IsMultiline != null && + this.IsMultiline.Equals(input.IsMultiline)) + ) && + ( + this.OriginalFontSize == input.OriginalFontSize || + (this.OriginalFontSize != null && + this.OriginalFontSize.Equals(input.OriginalFontSize)) + ) && + ( + this.FontFamily == input.FontFamily || + (this.FontFamily != null && + this.FontFamily.Equals(input.FontFamily)) + ) && + ( + this.NamedFormFields == input.NamedFormFields || + (this.NamedFormFields != null && + this.NamedFormFields.Equals(input.NamedFormFields)) + ) && + ( + this.ReusableFormId == input.ReusableFormId || + (this.ReusableFormId != null && + this.ReusableFormId.Equals(input.ReusableFormId)) ); } @@ -428,150 +424,102 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - } - ); - types.Add( - new OpenApiType() - { - Name = "x", - Property = "X", - Type = "int", - Value = X, - } - ); - types.Add( - new OpenApiType() - { - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - } - ); - types.Add( - new OpenApiType() - { - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - } - ); - types.Add( - new OpenApiType() - { - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); - types.Add( - new OpenApiType() - { - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - } - ); - types.Add( - new OpenApiType() - { - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool?", - Value = IsMultiline, - } - ); - types.Add( - new OpenApiType() - { - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int?", - Value = OriginalFontSize, - } - ); - types.Add( - new OpenApiType() - { - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); - types.Add( - new OpenApiType() - { - Name = "named_form_fields", - Property = "NamedFormFields", - Type = "Object", - Value = NamedFormFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "reusable_form_id", - Property = "ReusableFormId", - Type = "string", - Value = ReusableFormId, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + }); + types.Add(new OpenApiType(){ + Name = "x", + Property = "X", + Type = "int", + Value = X, + }); + types.Add(new OpenApiType(){ + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + }); + types.Add(new OpenApiType(){ + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + }); + types.Add(new OpenApiType(){ + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); + types.Add(new OpenApiType(){ + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + }); + types.Add(new OpenApiType(){ + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool?", + Value = IsMultiline, + }); + types.Add(new OpenApiType(){ + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int?", + Value = OriginalFontSize, + }); + types.Add(new OpenApiType(){ + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); + types.Add(new OpenApiType(){ + Name = "named_form_fields", + Property = "NamedFormFields", + Type = "Object", + Value = NamedFormFields, + }); + types.Add(new OpenApiType(){ + Name = "reusable_form_id", + Property = "ReusableFormId", + Type = "string", + Value = ReusableFormId, + }); return types; } @@ -581,11 +529,10 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs index a1e9d77a1..7527da3d4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -35,16 +35,13 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldCheckbox), "checkbox")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentCustomFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentCustomFieldBase - : IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentCustomFieldBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentCustomFieldBase() { } - /// /// Initializes a new instance of the class. /// @@ -58,25 +55,13 @@ protected TemplateResponseDocumentCustomFieldBase() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentCustomFieldBase( - string apiId = default(string), - string name = default(string), - string type = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentCustomFieldBase(string apiId = default(string), string name = default(string), string type = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentCustomFieldBase and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentCustomFieldBase and cannot be null"); } this.Type = type; this.ApiId = apiId; @@ -96,15 +81,11 @@ public TemplateResponseDocumentCustomFieldBase( /// String of JSON data representing target object public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldBase" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldBase"); } return obj; @@ -115,6 +96,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// The unique ID for this field. @@ -122,6 +104,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The name of the Custom Field. @@ -129,6 +112,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The name of the Custom Field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). @@ -136,6 +120,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } + /// /// The horizontal offset in pixels for this form field. @@ -143,6 +128,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The horizontal offset in pixels for this form field. [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } + /// /// The vertical offset in pixels for this form field. @@ -150,6 +136,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The vertical offset in pixels for this form field. [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } + /// /// The width in pixels of this form field. @@ -157,6 +144,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The width in pixels of this form field. [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } + /// /// The height in pixels of this form field. @@ -164,6 +152,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The height in pixels of this form field. [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } + /// /// Boolean showing whether or not this field is required. @@ -171,6 +160,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// Boolean showing whether or not this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The name of the group this field is in. If this field is not a group, this defaults to `null`. @@ -178,6 +168,7 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// The name of the group this field is in. If this field is not a group, this defaults to `null`. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// /// Returns the string presentation of the object @@ -207,10 +198,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -234,24 +222,51 @@ public bool Equals(TemplateResponseDocumentCustomFieldBase input) { return false; } - return (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.Signer == input.Signer - || (this.Signer != null && this.Signer.Equals(input.Signer)) - ) - && (this.X == input.X || this.X.Equals(input.X)) - && (this.Y == input.Y || this.Y.Equals(input.Y)) - && (this.Width == input.Width || this.Width.Equals(input.Width)) - && (this.Height == input.Height || this.Height.Equals(input.Height)) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Signer == input.Signer || + (this.Signer != null && + this.Signer.Equals(input.Signer)) + ) && + ( + this.X == input.X || + this.X.Equals(input.X) + ) && + ( + this.Y == input.Y || + this.Y.Equals(input.Y) + ) && + ( + this.Width == input.Width || + this.Width.Equals(input.Width) + ) && + ( + this.Height == input.Height || + this.Height.Equals(input.Height) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) ); } @@ -298,9 +313,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -318,98 +331,69 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - } - ); - types.Add( - new OpenApiType() - { - Name = "x", - Property = "X", - Type = "int", - Value = X, - } - ); - types.Add( - new OpenApiType() - { - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - } - ); - types.Add( - new OpenApiType() - { - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - } - ); - types.Add( - new OpenApiType() - { - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + }); + types.Add(new OpenApiType(){ + Name = "x", + Property = "X", + Type = "int", + Value = X, + }); + types.Add(new OpenApiType(){ + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + }); + types.Add(new OpenApiType(){ + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + }); + types.Add(new OpenApiType(){ + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs index 012f2a885..c0a789487 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentCustomFieldCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentCustomFieldCheckbox - : TemplateResponseDocumentCustomFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentCustomFieldCheckbox : TemplateResponseDocumentCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentCustomFieldCheckbox() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentCustomFieldCheckbox() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentCustomFieldCheckbox( - string type = @"checkbox", - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentCustomFieldCheckbox(string type = @"checkbox", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentCustomFieldCheckbox( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentCustomFieldCheckbox and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentCustomFieldCheckbox and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentCustomFieldCheckbox( /// String of JSON data representing target object public static TemplateResponseDocumentCustomFieldCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldCheckbox" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldCheckbox"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentCustomFieldCheckbox Init(string jsonData) /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. * Text uses `TemplateResponseDocumentCustomFieldText` * Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentCustomFieldCheckbox input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs index 68218bae9..131bd7309 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentCustomFieldText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentCustomFieldText - : TemplateResponseDocumentCustomFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentCustomFieldText : TemplateResponseDocumentCustomFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentCustomFieldText() { } - /// /// Initializes a new instance of the class. /// @@ -60,23 +55,7 @@ protected TemplateResponseDocumentCustomFieldText() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentCustomFieldText( - string type = @"text", - TemplateResponseFieldAvgTextLength avgTextLength = - default(TemplateResponseFieldAvgTextLength), - bool isMultiline = default(bool), - int originalFontSize = default(int), - string fontFamily = default(string), - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentCustomFieldText(string type = @"text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -87,13 +66,11 @@ public TemplateResponseDocumentCustomFieldText( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentCustomFieldText and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentCustomFieldText and cannot be null"); } this.Type = type; this.AvgTextLength = avgTextLength; @@ -108,15 +85,11 @@ public TemplateResponseDocumentCustomFieldText( /// String of JSON data representing target object public static TemplateResponseDocumentCustomFieldText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldText" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentCustomFieldText"); } return obj; @@ -128,12 +101,14 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// The type of this Custom Field. Only `text` and `checkbox` are currently supported. * Text uses `TemplateResponseDocumentCustomFieldText` * Checkbox uses `TemplateResponseDocumentCustomFieldCheckbox` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } + /// /// Whether this form field is multiline text. @@ -141,6 +116,7 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// Whether this form field is multiline text. [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } + /// /// Original font size used in this form field's text. @@ -148,6 +124,7 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// Original font size used in this form field's text. [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } + /// /// Font family used in this form field's text. @@ -155,6 +132,7 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) /// Font family used in this form field's text. [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } + /// /// Returns the string presentation of the object @@ -180,10 +158,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -207,29 +182,29 @@ public bool Equals(TemplateResponseDocumentCustomFieldText input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.AvgTextLength == input.AvgTextLength - || ( - this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) - ) - ) - && base.Equals(input) - && ( - this.IsMultiline == input.IsMultiline - || this.IsMultiline.Equals(input.IsMultiline) - ) - && base.Equals(input) - && ( - this.OriginalFontSize == input.OriginalFontSize - || this.OriginalFontSize.Equals(input.OriginalFontSize) - ) - && base.Equals(input) - && ( - this.FontFamily == input.FontFamily - || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.AvgTextLength == input.AvgTextLength || + (this.AvgTextLength != null && + this.AvgTextLength.Equals(input.AvgTextLength)) + ) && base.Equals(input) && + ( + this.IsMultiline == input.IsMultiline || + this.IsMultiline.Equals(input.IsMultiline) + ) && base.Equals(input) && + ( + this.OriginalFontSize == input.OriginalFontSize || + this.OriginalFontSize.Equals(input.OriginalFontSize) + ) && base.Equals(input) && + ( + this.FontFamily == input.FontFamily || + (this.FontFamily != null && + this.FontFamily.Equals(input.FontFamily)) ); } @@ -265,9 +240,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -289,53 +262,39 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - } - ); - types.Add( - new OpenApiType() - { - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool", - Value = IsMultiline, - } - ); - types.Add( - new OpenApiType() - { - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int", - Value = OriginalFontSize, - } - ); - types.Add( - new OpenApiType() - { - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + }); + types.Add(new OpenApiType(){ + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool", + Value = IsMultiline, + }); + types.Add(new OpenApiType(){ + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int", + Value = OriginalFontSize, + }); + types.Add(new OpenApiType(){ + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs index a3f95af0e..14fddf98f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,27 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFieldGroup")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFieldGroup - : IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFieldGroup : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFieldGroup() { } - /// /// Initializes a new instance of the class. /// /// The name of the form field group.. /// rule. - public TemplateResponseDocumentFieldGroup( - string name = default(string), - TemplateResponseDocumentFieldGroupRule rule = - default(TemplateResponseDocumentFieldGroupRule) - ) + public TemplateResponseDocumentFieldGroup(string name = default(string), TemplateResponseDocumentFieldGroupRule rule = default(TemplateResponseDocumentFieldGroupRule)) { + this.Name = name; this.Rule = rule; } @@ -66,9 +60,7 @@ public static TemplateResponseDocumentFieldGroup Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFieldGroup" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFieldGroup"); } return obj; @@ -80,12 +72,14 @@ public static TemplateResponseDocumentFieldGroup Init(string jsonData) /// The name of the form field group. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// Gets or Sets Rule /// [DataMember(Name = "rule", EmitDefaultValue = true)] public TemplateResponseDocumentFieldGroupRule Rule { get; set; } + /// /// Returns the string presentation of the object @@ -107,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -134,8 +125,17 @@ public bool Equals(TemplateResponseDocumentFieldGroup input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Rule == input.Rule || (this.Rule != null && this.Rule.Equals(input.Rule))); + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Rule == input.Rule || + (this.Rule != null && + this.Rule.Equals(input.Rule)) + ); } /// @@ -164,9 +164,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -174,26 +172,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "rule", - Property = "Rule", - Type = "TemplateResponseDocumentFieldGroupRule", - Value = Rule, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "rule", + Property = "Rule", + Type = "TemplateResponseDocumentFieldGroupRule", + Value = Rule, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs index d69eae9a3..75e15429b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFieldGroupRule")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFieldGroupRule - : IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFieldGroupRule : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFieldGroupRule() { } - /// /// Initializes a new instance of the class. /// /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group.. /// Name of the group. - public TemplateResponseDocumentFieldGroupRule( - string requirement = default(string), - string groupLabel = default(string) - ) + public TemplateResponseDocumentFieldGroupRule(string requirement = default(string), string groupLabel = default(string)) { + this.Requirement = requirement; this.GroupLabel = groupLabel; } @@ -61,15 +56,11 @@ public TemplateResponseDocumentFieldGroupRule( /// String of JSON data representing target object public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFieldGroupRule" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFieldGroupRule"); } return obj; @@ -81,6 +72,7 @@ public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. [DataMember(Name = "requirement", EmitDefaultValue = true)] public string Requirement { get; set; } + /// /// Name of the group @@ -88,6 +80,7 @@ public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) /// Name of the group [DataMember(Name = "groupLabel", EmitDefaultValue = true)] public string GroupLabel { get; set; } + /// /// Returns the string presentation of the object @@ -109,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -136,13 +126,16 @@ public bool Equals(TemplateResponseDocumentFieldGroupRule input) { return false; } - return ( - this.Requirement == input.Requirement - || (this.Requirement != null && this.Requirement.Equals(input.Requirement)) - ) - && ( - this.GroupLabel == input.GroupLabel - || (this.GroupLabel != null && this.GroupLabel.Equals(input.GroupLabel)) + return + ( + this.Requirement == input.Requirement || + (this.Requirement != null && + this.Requirement.Equals(input.Requirement)) + ) && + ( + this.GroupLabel == input.GroupLabel || + (this.GroupLabel != null && + this.GroupLabel.Equals(input.GroupLabel)) ); } @@ -172,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -182,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "requirement", - Property = "Requirement", - Type = "string", - Value = Requirement, - } - ); - types.Add( - new OpenApiType() - { - Name = "groupLabel", - Property = "GroupLabel", - Type = "string", - Value = GroupLabel, - } - ); + types.Add(new OpenApiType(){ + Name = "requirement", + Property = "Requirement", + Type = "string", + Value = Requirement, + }); + types.Add(new OpenApiType(){ + Name = "groupLabel", + Property = "GroupLabel", + Type = "string", + Value = GroupLabel, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs index eade6838f..07b7e04a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,10 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormField - : IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormField : IOpenApiTyped, IEquatable, IValidatableObject { /// /// The type of this form field. See [field types](/api/reference/constants/#field-types). @@ -101,22 +98,22 @@ public enum TypeEnum /// Enum TextMerge for value: text-merge /// [EnumMember(Value = "text-merge")] - TextMerge = 10, + TextMerge = 10 + } + /// /// The type of this form field. See [field types](/api/reference/constants/#field-types). /// /// The type of this form field. See [field types](/api/reference/constants/#field-types). [DataMember(Name = "type", EmitDefaultValue = true)] public TypeEnum? Type { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormField() { } - /// /// Initializes a new instance of the class. /// @@ -134,24 +131,9 @@ protected TemplateResponseDocumentFormField() { } /// Whether this form field is multiline text.. /// Original font size used in this form field's text.. /// Font family used in this form field's text.. - public TemplateResponseDocumentFormField( - string apiId = default(string), - string name = default(string), - TypeEnum? type = default(TypeEnum?), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string), - TemplateResponseFieldAvgTextLength avgTextLength = - default(TemplateResponseFieldAvgTextLength), - bool? isMultiline = default(bool?), - int? originalFontSize = default(int?), - string fontFamily = default(string) - ) + public TemplateResponseDocumentFormField(string apiId = default(string), string name = default(string), TypeEnum? type = default(TypeEnum?), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string), TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool? isMultiline = default(bool?), int? originalFontSize = default(int?), string fontFamily = default(string)) { + this.ApiId = apiId; this.Name = name; this.Type = type; @@ -178,9 +160,7 @@ public static TemplateResponseDocumentFormField Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormField" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormField"); } return obj; @@ -308,10 +288,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -335,45 +312,70 @@ public bool Equals(TemplateResponseDocumentFormField input) { return false; } - return ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Type == input.Type || this.Type.Equals(input.Type)) - && ( - this.Signer == input.Signer - || (this.Signer != null && this.Signer.Equals(input.Signer)) - ) - && (this.X == input.X || this.X.Equals(input.X)) - && (this.Y == input.Y || this.Y.Equals(input.Y)) - && (this.Width == input.Width || this.Width.Equals(input.Width)) - && (this.Height == input.Height || this.Height.Equals(input.Height)) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) - ) - && ( - this.AvgTextLength == input.AvgTextLength - || ( - this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) - ) - ) - && ( - this.IsMultiline == input.IsMultiline - || (this.IsMultiline != null && this.IsMultiline.Equals(input.IsMultiline)) - ) - && ( - this.OriginalFontSize == input.OriginalFontSize - || ( - this.OriginalFontSize != null - && this.OriginalFontSize.Equals(input.OriginalFontSize) - ) - ) - && ( - this.FontFamily == input.FontFamily - || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) + return + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Signer == input.Signer || + (this.Signer != null && + this.Signer.Equals(input.Signer)) + ) && + ( + this.X == input.X || + this.X.Equals(input.X) + ) && + ( + this.Y == input.Y || + this.Y.Equals(input.Y) + ) && + ( + this.Width == input.Width || + this.Width.Equals(input.Width) + ) && + ( + this.Height == input.Height || + this.Height.Equals(input.Height) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.AvgTextLength == input.AvgTextLength || + (this.AvgTextLength != null && + this.AvgTextLength.Equals(input.AvgTextLength)) + ) && + ( + this.IsMultiline == input.IsMultiline || + (this.IsMultiline != null && + this.IsMultiline.Equals(input.IsMultiline)) + ) && + ( + this.OriginalFontSize == input.OriginalFontSize || + (this.OriginalFontSize != null && + this.OriginalFontSize.Equals(input.OriginalFontSize)) + ) && + ( + this.FontFamily == input.FontFamily || + (this.FontFamily != null && + this.FontFamily.Equals(input.FontFamily)) ); } @@ -431,132 +433,90 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - } - ); - types.Add( - new OpenApiType() - { - Name = "x", - Property = "X", - Type = "int", - Value = X, - } - ); - types.Add( - new OpenApiType() - { - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - } - ); - types.Add( - new OpenApiType() - { - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - } - ); - types.Add( - new OpenApiType() - { - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); - types.Add( - new OpenApiType() - { - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - } - ); - types.Add( - new OpenApiType() - { - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool?", - Value = IsMultiline, - } - ); - types.Add( - new OpenApiType() - { - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int?", - Value = OriginalFontSize, - } - ); - types.Add( - new OpenApiType() - { - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + }); + types.Add(new OpenApiType(){ + Name = "x", + Property = "X", + Type = "int", + Value = X, + }); + types.Add(new OpenApiType(){ + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + }); + types.Add(new OpenApiType(){ + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + }); + types.Add(new OpenApiType(){ + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); + types.Add(new OpenApiType(){ + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + }); + types.Add(new OpenApiType(){ + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool?", + Value = IsMultiline, + }); + types.Add(new OpenApiType(){ + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int?", + Value = OriginalFontSize, + }); + types.Add(new OpenApiType(){ + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); return types; } @@ -566,11 +526,10 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs index 08d56af4e..f5104a607 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -41,16 +41,13 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldSignature), "signature")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentFormFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldBase - : IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormFieldBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldBase() { } - /// /// Initializes a new instance of the class. /// @@ -64,25 +61,13 @@ protected TemplateResponseDocumentFormFieldBase() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldBase( - string apiId = default(string), - string name = default(string), - string type = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentFormFieldBase(string apiId = default(string), string name = default(string), string type = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentFormFieldBase and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldBase and cannot be null"); } this.Type = type; this.ApiId = apiId; @@ -102,15 +87,11 @@ public TemplateResponseDocumentFormFieldBase( /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldBase Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldBase" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldBase"); } return obj; @@ -121,6 +102,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// A unique id for the form field. @@ -128,6 +110,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// A unique id for the form field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The name of the form field. @@ -135,6 +118,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The name of the form field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The signer of the Form Field. @@ -142,6 +126,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The signer of the Form Field. [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } + /// /// The horizontal offset in pixels for this form field. @@ -149,6 +134,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The horizontal offset in pixels for this form field. [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } + /// /// The vertical offset in pixels for this form field. @@ -156,6 +142,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The vertical offset in pixels for this form field. [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } + /// /// The width in pixels of this form field. @@ -163,6 +150,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The width in pixels of this form field. [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } + /// /// The height in pixels of this form field. @@ -170,6 +158,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The height in pixels of this form field. [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } + /// /// Boolean showing whether or not this field is required. @@ -177,6 +166,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// Boolean showing whether or not this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. @@ -184,6 +174,7 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// /// Returns the string presentation of the object @@ -213,10 +204,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -240,24 +228,51 @@ public bool Equals(TemplateResponseDocumentFormFieldBase input) { return false; } - return (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.Signer == input.Signer - || (this.Signer != null && this.Signer.Equals(input.Signer)) - ) - && (this.X == input.X || this.X.Equals(input.X)) - && (this.Y == input.Y || this.Y.Equals(input.Y)) - && (this.Width == input.Width || this.Width.Equals(input.Width)) - && (this.Height == input.Height || this.Height.Equals(input.Height)) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Signer == input.Signer || + (this.Signer != null && + this.Signer.Equals(input.Signer)) + ) && + ( + this.X == input.X || + this.X.Equals(input.X) + ) && + ( + this.Y == input.Y || + this.Y.Equals(input.Y) + ) && + ( + this.Width == input.Width || + this.Width.Equals(input.Width) + ) && + ( + this.Height == input.Height || + this.Height.Equals(input.Height) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) ); } @@ -304,9 +319,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -324,98 +337,69 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - } - ); - types.Add( - new OpenApiType() - { - Name = "x", - Property = "X", - Type = "int", - Value = X, - } - ); - types.Add( - new OpenApiType() - { - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - } - ); - types.Add( - new OpenApiType() - { - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - } - ); - types.Add( - new OpenApiType() - { - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + }); + types.Add(new OpenApiType(){ + Name = "x", + Property = "X", + Type = "int", + Value = X, + }); + types.Add(new OpenApiType(){ + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + }); + types.Add(new OpenApiType(){ + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + }); + types.Add(new OpenApiType(){ + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs index edff96508..cd0c77f4d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldCheckbox - : TemplateResponseDocumentFormFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormFieldCheckbox : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldCheckbox() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentFormFieldCheckbox() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldCheckbox( - string type = @"checkbox", - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentFormFieldCheckbox(string type = @"checkbox", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentFormFieldCheckbox( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentFormFieldCheckbox and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldCheckbox and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentFormFieldCheckbox( /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldCheckbox" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldCheckbox"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentFormFieldCheckbox Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentFormFieldCheckbox input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs index 40681a76c..f71e255af 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldDateSigned")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldDateSigned - : TemplateResponseDocumentFormFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormFieldDateSigned : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldDateSigned() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentFormFieldDateSigned() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldDateSigned( - string type = @"date_signed", - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentFormFieldDateSigned(string type = @"date_signed", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentFormFieldDateSigned( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentFormFieldDateSigned and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldDateSigned and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentFormFieldDateSigned( /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldDateSigned Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldDateSigned" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldDateSigned"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentFormFieldDateSigned Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentFormFieldDateSigned input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs index b5e5d8e87..f264253a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldDropdown")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldDropdown - : TemplateResponseDocumentFormFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormFieldDropdown : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldDropdown() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldDropdown( - string type = @"dropdown", - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentFormFieldDropdown(string type = @"dropdown", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentFormFieldDropdown( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentFormFieldDropdown and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldDropdown and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentFormFieldDropdown( /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldDropdown Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldDropdown" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldDropdown"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentFormFieldDropdown Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentFormFieldDropdown input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs index c6173cc40..a7d3ab4f4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldHyperlink")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldHyperlink - : TemplateResponseDocumentFormFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormFieldHyperlink : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldHyperlink() { } - /// /// Initializes a new instance of the class. /// @@ -60,23 +55,7 @@ protected TemplateResponseDocumentFormFieldHyperlink() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldHyperlink( - string type = @"hyperlink", - TemplateResponseFieldAvgTextLength avgTextLength = - default(TemplateResponseFieldAvgTextLength), - bool isMultiline = default(bool), - int originalFontSize = default(int), - string fontFamily = default(string), - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentFormFieldHyperlink(string type = @"hyperlink", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -87,13 +66,11 @@ public TemplateResponseDocumentFormFieldHyperlink( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentFormFieldHyperlink and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldHyperlink and cannot be null"); } this.Type = type; this.AvgTextLength = avgTextLength; @@ -108,15 +85,11 @@ public TemplateResponseDocumentFormFieldHyperlink( /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldHyperlink" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldHyperlink"); } return obj; @@ -128,12 +101,14 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } + /// /// Whether this form field is multiline text. @@ -141,6 +116,7 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// Whether this form field is multiline text. [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } + /// /// Original font size used in this form field's text. @@ -148,6 +124,7 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// Original font size used in this form field's text. [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } + /// /// Font family used in this form field's text. @@ -155,6 +132,7 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) /// Font family used in this form field's text. [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } + /// /// Returns the string presentation of the object @@ -180,10 +158,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -207,29 +182,29 @@ public bool Equals(TemplateResponseDocumentFormFieldHyperlink input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.AvgTextLength == input.AvgTextLength - || ( - this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) - ) - ) - && base.Equals(input) - && ( - this.IsMultiline == input.IsMultiline - || this.IsMultiline.Equals(input.IsMultiline) - ) - && base.Equals(input) - && ( - this.OriginalFontSize == input.OriginalFontSize - || this.OriginalFontSize.Equals(input.OriginalFontSize) - ) - && base.Equals(input) - && ( - this.FontFamily == input.FontFamily - || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.AvgTextLength == input.AvgTextLength || + (this.AvgTextLength != null && + this.AvgTextLength.Equals(input.AvgTextLength)) + ) && base.Equals(input) && + ( + this.IsMultiline == input.IsMultiline || + this.IsMultiline.Equals(input.IsMultiline) + ) && base.Equals(input) && + ( + this.OriginalFontSize == input.OriginalFontSize || + this.OriginalFontSize.Equals(input.OriginalFontSize) + ) && base.Equals(input) && + ( + this.FontFamily == input.FontFamily || + (this.FontFamily != null && + this.FontFamily.Equals(input.FontFamily)) ); } @@ -265,9 +240,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -289,53 +262,39 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - } - ); - types.Add( - new OpenApiType() - { - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool", - Value = IsMultiline, - } - ); - types.Add( - new OpenApiType() - { - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int", - Value = OriginalFontSize, - } - ); - types.Add( - new OpenApiType() - { - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + }); + types.Add(new OpenApiType(){ + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool", + Value = IsMultiline, + }); + types.Add(new OpenApiType(){ + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int", + Value = OriginalFontSize, + }); + types.Add(new OpenApiType(){ + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs index 68bf2c823..f7f2e4726 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldInitials")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldInitials - : TemplateResponseDocumentFormFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormFieldInitials : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldInitials() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentFormFieldInitials() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldInitials( - string type = @"initials", - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentFormFieldInitials(string type = @"initials", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentFormFieldInitials( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentFormFieldInitials and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldInitials and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentFormFieldInitials( /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldInitials Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldInitials" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldInitials"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentFormFieldInitials Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentFormFieldInitials input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs index 4bfa38285..ec514c828 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldRadio")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldRadio - : TemplateResponseDocumentFormFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormFieldRadio : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldRadio() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentFormFieldRadio() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. (required). - public TemplateResponseDocumentFormFieldRadio( - string type = @"radio", - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentFormFieldRadio(string type = @"radio", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentFormFieldRadio( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentFormFieldRadio and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldRadio and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentFormFieldRadio( /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldRadio Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldRadio" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldRadio"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentFormFieldRadio Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentFormFieldRadio input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs index 6c71ffbc1..8e317385f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldSignature")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldSignature - : TemplateResponseDocumentFormFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormFieldSignature : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldSignature() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentFormFieldSignature() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldSignature( - string type = @"signature", - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentFormFieldSignature(string type = @"signature", string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentFormFieldSignature( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentFormFieldSignature and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldSignature and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentFormFieldSignature( /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldSignature Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldSignature" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldSignature"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentFormFieldSignature Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentFormFieldSignature input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs index 125eaff00..60a2c2f7e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,11 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentFormFieldText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentFormFieldText - : TemplateResponseDocumentFormFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentFormFieldText : TemplateResponseDocumentFormFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. @@ -102,22 +98,21 @@ public enum ValidationTypeEnum /// Enum CustomRegex for value: custom_regex /// [EnumMember(Value = "custom_regex")] - CustomRegex = 10, + CustomRegex = 10 } + /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. /// /// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. [DataMember(Name = "validation_type", EmitDefaultValue = true)] public ValidationTypeEnum? ValidationType { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentFormFieldText() { } - /// /// Initializes a new instance of the class. /// @@ -136,24 +131,7 @@ protected TemplateResponseDocumentFormFieldText() { } /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. - public TemplateResponseDocumentFormFieldText( - string type = @"text", - TemplateResponseFieldAvgTextLength avgTextLength = - default(TemplateResponseFieldAvgTextLength), - bool isMultiline = default(bool), - int originalFontSize = default(int), - string fontFamily = default(string), - ValidationTypeEnum? validationType = default(ValidationTypeEnum?), - string apiId = default(string), - string name = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentFormFieldText(string type = @"text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string apiId = default(string), string name = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -164,13 +142,11 @@ public TemplateResponseDocumentFormFieldText( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentFormFieldText and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentFormFieldText and cannot be null"); } this.Type = type; this.AvgTextLength = avgTextLength; @@ -186,15 +162,11 @@ public TemplateResponseDocumentFormFieldText( /// String of JSON data representing target object public static TemplateResponseDocumentFormFieldText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldText" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentFormFieldText"); } return obj; @@ -206,12 +178,14 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// 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` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } + /// /// Whether this form field is multiline text. @@ -219,6 +193,7 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// Whether this form field is multiline text. [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } + /// /// Original font size used in this form field's text. @@ -226,6 +201,7 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// Original font size used in this form field's text. [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } + /// /// Font family used in this form field's text. @@ -233,6 +209,7 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) /// Font family used in this form field's text. [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } + /// /// Returns the string presentation of the object @@ -259,10 +236,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -286,34 +260,33 @@ public bool Equals(TemplateResponseDocumentFormFieldText input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && base.Equals(input) - && ( - this.AvgTextLength == input.AvgTextLength - || ( - this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) - ) - ) - && base.Equals(input) - && ( - this.IsMultiline == input.IsMultiline - || this.IsMultiline.Equals(input.IsMultiline) - ) - && base.Equals(input) - && ( - this.OriginalFontSize == input.OriginalFontSize - || this.OriginalFontSize.Equals(input.OriginalFontSize) - ) - && base.Equals(input) - && ( - this.FontFamily == input.FontFamily - || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) - ) - && base.Equals(input) - && ( - this.ValidationType == input.ValidationType - || this.ValidationType.Equals(input.ValidationType) + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && base.Equals(input) && + ( + this.AvgTextLength == input.AvgTextLength || + (this.AvgTextLength != null && + this.AvgTextLength.Equals(input.AvgTextLength)) + ) && base.Equals(input) && + ( + this.IsMultiline == input.IsMultiline || + this.IsMultiline.Equals(input.IsMultiline) + ) && base.Equals(input) && + ( + this.OriginalFontSize == input.OriginalFontSize || + this.OriginalFontSize.Equals(input.OriginalFontSize) + ) && base.Equals(input) && + ( + this.FontFamily == input.FontFamily || + (this.FontFamily != null && + this.FontFamily.Equals(input.FontFamily)) + ) && base.Equals(input) && + ( + this.ValidationType == input.ValidationType || + this.ValidationType.Equals(input.ValidationType) ); } @@ -350,9 +323,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -374,62 +345,45 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - } - ); - types.Add( - new OpenApiType() - { - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool", - Value = IsMultiline, - } - ); - types.Add( - new OpenApiType() - { - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int", - Value = OriginalFontSize, - } - ); - types.Add( - new OpenApiType() - { - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); - types.Add( - new OpenApiType() - { - Name = "validation_type", - Property = "ValidationType", - Type = "string", - Value = ValidationType, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + }); + types.Add(new OpenApiType(){ + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool", + Value = IsMultiline, + }); + types.Add(new OpenApiType(){ + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int", + Value = OriginalFontSize, + }); + types.Add(new OpenApiType(){ + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); + types.Add(new OpenApiType(){ + Name = "validation_type", + Property = "ValidationType", + Type = "string", + Value = ValidationType, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs index edc3ea446..3ba2c5927 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,17 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticField - : IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticField : IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticField() { } - /// /// Initializes a new instance of the class. /// @@ -55,19 +51,9 @@ protected TemplateResponseDocumentStaticField() { } /// Boolean showing whether or not this field is required.. /// A unique id for the static field.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticField( - string name = default(string), - string type = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string apiId = default(string), - string group = default(string) - ) + public TemplateResponseDocumentStaticField(string name = default(string), string type = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string apiId = default(string), string group = default(string)) { + this.Name = name; this.Type = type; this.Signer = signer; @@ -90,9 +76,7 @@ public static TemplateResponseDocumentStaticField Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticField" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticField"); } return obj; @@ -196,10 +180,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -223,24 +204,51 @@ public bool Equals(TemplateResponseDocumentStaticField input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && ( - this.Signer == input.Signer - || (this.Signer != null && this.Signer.Equals(input.Signer)) - ) - && (this.X == input.X || this.X.Equals(input.X)) - && (this.Y == input.Y || this.Y.Equals(input.Y)) - && (this.Width == input.Width || this.Width.Equals(input.Width)) - && (this.Height == input.Height || this.Height.Equals(input.Height)) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Signer == input.Signer || + (this.Signer != null && + this.Signer.Equals(input.Signer)) + ) && + ( + this.X == input.X || + this.X.Equals(input.X) + ) && + ( + this.Y == input.Y || + this.Y.Equals(input.Y) + ) && + ( + this.Width == input.Width || + this.Width.Equals(input.Width) + ) && + ( + this.Height == input.Height || + this.Height.Equals(input.Height) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) ); } @@ -285,96 +293,66 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - } - ); - types.Add( - new OpenApiType() - { - Name = "x", - Property = "X", - Type = "int", - Value = X, - } - ); - types.Add( - new OpenApiType() - { - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - } - ); - types.Add( - new OpenApiType() - { - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - } - ); - types.Add( - new OpenApiType() - { - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + }); + types.Add(new OpenApiType(){ + Name = "x", + Property = "X", + Type = "int", + Value = X, + }); + types.Add(new OpenApiType(){ + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + }); + types.Add(new OpenApiType(){ + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + }); + types.Add(new OpenApiType(){ + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); return types; } @@ -384,11 +362,10 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs index ef8e6c82f..a1a69e715 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs @@ -13,16 +13,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using JsonSubTypes; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -33,10 +33,7 @@ namespace Dropbox.Sign.Model [DataContract(Name = "TemplateResponseDocumentStaticFieldBase")] [JsonConverter(typeof(JsonSubtypes), "Type")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldCheckbox), "checkbox")] - [JsonSubtypes.KnownSubType( - typeof(TemplateResponseDocumentStaticFieldDateSigned), - "date_signed" - )] + [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDateSigned), "date_signed")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldDropdown), "dropdown")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldHyperlink), "hyperlink")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldInitials), "initials")] @@ -44,16 +41,13 @@ namespace Dropbox.Sign.Model [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldSignature), "signature")] [JsonSubtypes.KnownSubType(typeof(TemplateResponseDocumentStaticFieldText), "text")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldBase - : IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticFieldBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldBase() { } - /// /// Initializes a new instance of the class. /// @@ -67,25 +61,13 @@ protected TemplateResponseDocumentStaticFieldBase() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldBase( - string apiId = default(string), - string name = default(string), - string type = default(string), - string signer = @"me_now", - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentStaticFieldBase(string apiId = default(string), string name = default(string), string type = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentStaticFieldBase and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldBase and cannot be null"); } this.Type = type; this.ApiId = apiId; @@ -106,15 +88,11 @@ public TemplateResponseDocumentStaticFieldBase( /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldBase" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldBase"); } return obj; @@ -125,6 +103,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// A unique id for the static field. @@ -132,6 +111,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// A unique id for the static field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } + /// /// The name of the static field. @@ -139,6 +119,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The name of the static field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// The signer of the Static Field. @@ -146,6 +127,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The signer of the Static Field. [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } + /// /// The horizontal offset in pixels for this static field. @@ -153,6 +135,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The horizontal offset in pixels for this static field. [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } + /// /// The vertical offset in pixels for this static field. @@ -160,6 +143,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The vertical offset in pixels for this static field. [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } + /// /// The width in pixels of this static field. @@ -167,6 +151,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The width in pixels of this static field. [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } + /// /// The height in pixels of this static field. @@ -174,6 +159,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The height in pixels of this static field. [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } + /// /// Boolean showing whether or not this field is required. @@ -181,6 +167,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// Boolean showing whether or not this field is required. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } + /// /// The name of the group this field is in. If this field is not a group, this defaults to `null`. @@ -188,6 +175,7 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) /// The name of the group this field is in. If this field is not a group, this defaults to `null`. [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// /// Returns the string presentation of the object @@ -217,10 +205,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -244,24 +229,51 @@ public bool Equals(TemplateResponseDocumentStaticFieldBase input) { return false; } - return (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && ( - this.Signer == input.Signer - || (this.Signer != null && this.Signer.Equals(input.Signer)) - ) - && (this.X == input.X || this.X.Equals(input.X)) - && (this.Y == input.Y || this.Y.Equals(input.Y)) - && (this.Width == input.Width || this.Width.Equals(input.Width)) - && (this.Height == input.Height || this.Height.Equals(input.Height)) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Signer == input.Signer || + (this.Signer != null && + this.Signer.Equals(input.Signer)) + ) && + ( + this.X == input.X || + this.X.Equals(input.X) + ) && + ( + this.Y == input.Y || + this.Y.Equals(input.Y) + ) && + ( + this.Width == input.Width || + this.Width.Equals(input.Width) + ) && + ( + this.Height == input.Height || + this.Height.Equals(input.Height) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) ); } @@ -308,9 +320,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -328,98 +338,69 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - } - ); - types.Add( - new OpenApiType() - { - Name = "x", - Property = "X", - Type = "int", - Value = X, - } - ); - types.Add( - new OpenApiType() - { - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - } - ); - types.Add( - new OpenApiType() - { - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - } - ); - types.Add( - new OpenApiType() - { - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + }); + types.Add(new OpenApiType(){ + Name = "x", + Property = "X", + Type = "int", + Value = X, + }); + types.Add(new OpenApiType(){ + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + }); + types.Add(new OpenApiType(){ + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + }); + types.Add(new OpenApiType(){ + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs index 887bbe46c..05cc2e671 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldCheckbox")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldCheckbox - : TemplateResponseDocumentStaticFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticFieldCheckbox : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldCheckbox() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentStaticFieldCheckbox() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldCheckbox( - string type = @"checkbox", - string apiId = default(string), - string name = default(string), - string signer = @"me_now", - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentStaticFieldCheckbox(string type = @"checkbox", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentStaticFieldCheckbox( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentStaticFieldCheckbox and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldCheckbox and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentStaticFieldCheckbox( /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldCheckbox Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldCheckbox" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldCheckbox"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldCheckbox Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentStaticFieldCheckbox input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs index 005b71a39..fbab7d413 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldDateSigned")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldDateSigned - : TemplateResponseDocumentStaticFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticFieldDateSigned : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldDateSigned() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentStaticFieldDateSigned() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldDateSigned( - string type = @"date_signed", - string apiId = default(string), - string name = default(string), - string signer = @"me_now", - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentStaticFieldDateSigned(string type = @"date_signed", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentStaticFieldDateSigned( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentStaticFieldDateSigned and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldDateSigned and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentStaticFieldDateSigned( /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldDateSigned Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldDateSigned" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldDateSigned"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldDateSigned Init(string jsonData /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentStaticFieldDateSigned input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs index 70144c9cf..cc88f41a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldDropdown")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldDropdown - : TemplateResponseDocumentStaticFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticFieldDropdown : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldDropdown() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentStaticFieldDropdown() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldDropdown( - string type = @"dropdown", - string apiId = default(string), - string name = default(string), - string signer = @"me_now", - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentStaticFieldDropdown(string type = @"dropdown", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentStaticFieldDropdown( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentStaticFieldDropdown and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldDropdown and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentStaticFieldDropdown( /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldDropdown Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldDropdown" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldDropdown"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldDropdown Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentStaticFieldDropdown input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs index 8ae2c7103..ed07a9557 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldHyperlink")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldHyperlink - : TemplateResponseDocumentStaticFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticFieldHyperlink : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldHyperlink() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentStaticFieldHyperlink() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldHyperlink( - string type = @"hyperlink", - string apiId = default(string), - string name = default(string), - string signer = @"me_now", - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentStaticFieldHyperlink(string type = @"hyperlink", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentStaticFieldHyperlink( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentStaticFieldHyperlink and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldHyperlink and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentStaticFieldHyperlink( /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldHyperlink Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldHyperlink" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldHyperlink"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldHyperlink Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentStaticFieldHyperlink input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs index 56f6d18fc..d487f0696 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldInitials")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldInitials - : TemplateResponseDocumentStaticFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticFieldInitials : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldInitials() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentStaticFieldInitials() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldInitials( - string type = @"initials", - string apiId = default(string), - string name = default(string), - string signer = @"me_now", - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentStaticFieldInitials(string type = @"initials", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentStaticFieldInitials( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentStaticFieldInitials and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldInitials and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentStaticFieldInitials( /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldInitials Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldInitials" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldInitials"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldInitials Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentStaticFieldInitials input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs index fe3260078..6176430d0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldRadio")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldRadio - : TemplateResponseDocumentStaticFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticFieldRadio : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldRadio() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentStaticFieldRadio() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldRadio( - string type = @"radio", - string apiId = default(string), - string name = default(string), - string signer = @"me_now", - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentStaticFieldRadio(string type = @"radio", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentStaticFieldRadio( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentStaticFieldRadio and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldRadio and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentStaticFieldRadio( /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldRadio Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldRadio" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldRadio"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldRadio Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentStaticFieldRadio input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs index 32d9db7b7..c48408c0f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldSignature")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldSignature - : TemplateResponseDocumentStaticFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticFieldSignature : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldSignature() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentStaticFieldSignature() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldSignature( - string type = @"signature", - string apiId = default(string), - string name = default(string), - string signer = @"me_now", - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentStaticFieldSignature(string type = @"signature", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentStaticFieldSignature( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentStaticFieldSignature and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldSignature and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentStaticFieldSignature( /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldSignature Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldSignature" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldSignature"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldSignature Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentStaticFieldSignature input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs index 1677ffd88..b5a382a67 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,18 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseDocumentStaticFieldText")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseDocumentStaticFieldText - : TemplateResponseDocumentStaticFieldBase, - IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseDocumentStaticFieldText : TemplateResponseDocumentStaticFieldBase, IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseDocumentStaticFieldText() { } - /// /// Initializes a new instance of the class. /// @@ -56,18 +51,7 @@ protected TemplateResponseDocumentStaticFieldText() { } /// The height in pixels of this static field.. /// Boolean showing whether or not this field is required.. /// The name of the group this field is in. If this field is not a group, this defaults to `null`.. - public TemplateResponseDocumentStaticFieldText( - string type = @"text", - string apiId = default(string), - string name = default(string), - string signer = @"me_now", - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string group = default(string) - ) + public TemplateResponseDocumentStaticFieldText(string type = @"text", string apiId = default(string), string name = default(string), string signer = @"me_now", int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string group = default(string)) { this.ApiId = apiId; this.Name = name; @@ -78,13 +62,11 @@ public TemplateResponseDocumentStaticFieldText( this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException( - "type is a required property for TemplateResponseDocumentStaticFieldText and cannot be null" - ); + throw new ArgumentNullException("type is a required property for TemplateResponseDocumentStaticFieldText and cannot be null"); } this.Type = type; } @@ -95,15 +77,11 @@ public TemplateResponseDocumentStaticFieldText( /// String of JSON data representing target object public static TemplateResponseDocumentStaticFieldText Init(string jsonData) { - var obj = JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldText" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseDocumentStaticFieldText"); } return obj; @@ -115,6 +93,7 @@ public static TemplateResponseDocumentStaticFieldText Init(string jsonData) /// The type of this static field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentStaticFieldText` * Dropdown Field uses `TemplateResponseDocumentStaticFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentStaticFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentStaticFieldCheckbox` * Radio Field uses `TemplateResponseDocumentStaticFieldRadio` * Signature Field uses `TemplateResponseDocumentStaticFieldSignature` * Date Signed Field uses `TemplateResponseDocumentStaticFieldDateSigned` * Initials Field uses `TemplateResponseDocumentStaticFieldInitials` [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } + /// /// Returns the string presentation of the object @@ -136,10 +115,7 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -163,8 +139,12 @@ public bool Equals(TemplateResponseDocumentStaticFieldText input) { return false; } - return base.Equals(input) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))); + return base.Equals(input) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); } /// @@ -189,9 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { return this.BaseValidate(validationContext); } @@ -213,17 +191,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs index 59768ba2c..48d527e71 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseFieldAvgTextLength")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseFieldAvgTextLength - : IEquatable, - IValidatableObject + public partial class TemplateResponseFieldAvgTextLength : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseFieldAvgTextLength() { } - /// /// Initializes a new instance of the class. /// /// Number of lines.. /// Number of characters per line.. - public TemplateResponseFieldAvgTextLength( - int numLines = default(int), - int numCharsPerLine = default(int) - ) + public TemplateResponseFieldAvgTextLength(int numLines = default(int), int numCharsPerLine = default(int)) { + this.NumLines = numLines; this.NumCharsPerLine = numCharsPerLine; } @@ -65,9 +60,7 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseFieldAvgTextLength" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseFieldAvgTextLength"); } return obj; @@ -79,6 +72,7 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) /// Number of lines. [DataMember(Name = "num_lines", EmitDefaultValue = true)] public int NumLines { get; set; } + /// /// Number of characters per line. @@ -86,6 +80,7 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) /// Number of characters per line. [DataMember(Name = "num_chars_per_line", EmitDefaultValue = true)] public int NumCharsPerLine { get; set; } + /// /// Returns the string presentation of the object @@ -107,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -134,10 +126,14 @@ public bool Equals(TemplateResponseFieldAvgTextLength input) { return false; } - return (this.NumLines == input.NumLines || this.NumLines.Equals(input.NumLines)) - && ( - this.NumCharsPerLine == input.NumCharsPerLine - || this.NumCharsPerLine.Equals(input.NumCharsPerLine) + return + ( + this.NumLines == input.NumLines || + this.NumLines.Equals(input.NumLines) + ) && + ( + this.NumCharsPerLine == input.NumCharsPerLine || + this.NumCharsPerLine.Equals(input.NumCharsPerLine) ); } @@ -161,9 +157,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -171,26 +165,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "num_lines", - Property = "NumLines", - Type = "int", - Value = NumLines, - } - ); - types.Add( - new OpenApiType() - { - Name = "num_chars_per_line", - Property = "NumCharsPerLine", - Type = "int", - Value = NumCharsPerLine, - } - ); + types.Add(new OpenApiType(){ + Name = "num_lines", + Property = "NumLines", + Type = "int", + Value = NumLines, + }); + types.Add(new OpenApiType(){ + Name = "num_chars_per_line", + Property = "NumCharsPerLine", + Type = "int", + Value = NumCharsPerLine, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs index 5e199c6bb..e596f1e2b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,17 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseNamedFormField")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseNamedFormField - : IOpenApiTyped, - IEquatable, - IValidatableObject + public partial class TemplateResponseNamedFormField : IOpenApiTyped, IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseNamedFormField() { } - /// /// Initializes a new instance of the class. /// @@ -59,24 +55,9 @@ protected TemplateResponseNamedFormField() { } /// Whether this form field is multiline text.. /// Original font size used in this form field's text.. /// Font family used in this form field's text.. - public TemplateResponseNamedFormField( - string name = default(string), - string type = default(string), - string signer = default(string), - int x = default(int), - int y = default(int), - int width = default(int), - int height = default(int), - bool required = default(bool), - string apiId = default(string), - string group = default(string), - TemplateResponseFieldAvgTextLength avgTextLength = - default(TemplateResponseFieldAvgTextLength), - bool? isMultiline = default(bool?), - int? originalFontSize = default(int?), - string fontFamily = default(string) - ) + public TemplateResponseNamedFormField(string name = default(string), string type = default(string), string signer = default(string), int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool), string apiId = default(string), string group = default(string), TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool? isMultiline = default(bool?), int? originalFontSize = default(int?), string fontFamily = default(string)) { + this.Name = name; this.Type = type; this.Signer = signer; @@ -103,9 +84,7 @@ public static TemplateResponseNamedFormField Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseNamedFormField" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseNamedFormField"); } return obj; @@ -240,10 +219,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -267,45 +243,71 @@ public bool Equals(TemplateResponseNamedFormField input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type))) - && ( - this.Signer == input.Signer - || (this.Signer != null && this.Signer.Equals(input.Signer)) - ) - && (this.X == input.X || this.X.Equals(input.X)) - && (this.Y == input.Y || this.Y.Equals(input.Y)) - && (this.Width == input.Width || this.Width.Equals(input.Width)) - && (this.Height == input.Height || this.Height.Equals(input.Height)) - && (this.Required == input.Required || this.Required.Equals(input.Required)) - && ( - this.ApiId == input.ApiId - || (this.ApiId != null && this.ApiId.Equals(input.ApiId)) - ) - && ( - this.Group == input.Group - || (this.Group != null && this.Group.Equals(input.Group)) - ) - && ( - this.AvgTextLength == input.AvgTextLength - || ( - this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength) - ) - ) - && ( - this.IsMultiline == input.IsMultiline - || (this.IsMultiline != null && this.IsMultiline.Equals(input.IsMultiline)) - ) - && ( - this.OriginalFontSize == input.OriginalFontSize - || ( - this.OriginalFontSize != null - && this.OriginalFontSize.Equals(input.OriginalFontSize) - ) - ) - && ( - this.FontFamily == input.FontFamily - || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Signer == input.Signer || + (this.Signer != null && + this.Signer.Equals(input.Signer)) + ) && + ( + this.X == input.X || + this.X.Equals(input.X) + ) && + ( + this.Y == input.Y || + this.Y.Equals(input.Y) + ) && + ( + this.Width == input.Width || + this.Width.Equals(input.Width) + ) && + ( + this.Height == input.Height || + this.Height.Equals(input.Height) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.ApiId == input.ApiId || + (this.ApiId != null && + this.ApiId.Equals(input.ApiId)) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.AvgTextLength == input.AvgTextLength || + (this.AvgTextLength != null && + this.AvgTextLength.Equals(input.AvgTextLength)) + ) && + ( + this.IsMultiline == input.IsMultiline || + (this.IsMultiline != null && + this.IsMultiline.Equals(input.IsMultiline)) + ) && + ( + this.OriginalFontSize == input.OriginalFontSize || + (this.OriginalFontSize != null && + this.OriginalFontSize.Equals(input.OriginalFontSize)) + ) && + ( + this.FontFamily == input.FontFamily || + (this.FontFamily != null && + this.FontFamily.Equals(input.FontFamily)) ); } @@ -366,132 +368,90 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "signer", - Property = "Signer", - Type = "string", - Value = Signer, - } - ); - types.Add( - new OpenApiType() - { - Name = "x", - Property = "X", - Type = "int", - Value = X, - } - ); - types.Add( - new OpenApiType() - { - Name = "y", - Property = "Y", - Type = "int", - Value = Y, - } - ); - types.Add( - new OpenApiType() - { - Name = "width", - Property = "Width", - Type = "int", - Value = Width, - } - ); - types.Add( - new OpenApiType() - { - Name = "height", - Property = "Height", - Type = "int", - Value = Height, - } - ); - types.Add( - new OpenApiType() - { - Name = "required", - Property = "Required", - Type = "bool", - Value = Required, - } - ); - types.Add( - new OpenApiType() - { - Name = "api_id", - Property = "ApiId", - Type = "string", - Value = ApiId, - } - ); - types.Add( - new OpenApiType() - { - Name = "group", - Property = "Group", - Type = "string", - Value = Group, - } - ); - types.Add( - new OpenApiType() - { - Name = "avg_text_length", - Property = "AvgTextLength", - Type = "TemplateResponseFieldAvgTextLength", - Value = AvgTextLength, - } - ); - types.Add( - new OpenApiType() - { - Name = "isMultiline", - Property = "IsMultiline", - Type = "bool?", - Value = IsMultiline, - } - ); - types.Add( - new OpenApiType() - { - Name = "originalFontSize", - Property = "OriginalFontSize", - Type = "int?", - Value = OriginalFontSize, - } - ); - types.Add( - new OpenApiType() - { - Name = "fontFamily", - Property = "FontFamily", - Type = "string", - Value = FontFamily, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "signer", + Property = "Signer", + Type = "string", + Value = Signer, + }); + types.Add(new OpenApiType(){ + Name = "x", + Property = "X", + Type = "int", + Value = X, + }); + types.Add(new OpenApiType(){ + Name = "y", + Property = "Y", + Type = "int", + Value = Y, + }); + types.Add(new OpenApiType(){ + Name = "width", + Property = "Width", + Type = "int", + Value = Width, + }); + types.Add(new OpenApiType(){ + Name = "height", + Property = "Height", + Type = "int", + Value = Height, + }); + types.Add(new OpenApiType(){ + Name = "required", + Property = "Required", + Type = "bool", + Value = Required, + }); + types.Add(new OpenApiType(){ + Name = "api_id", + Property = "ApiId", + Type = "string", + Value = ApiId, + }); + types.Add(new OpenApiType(){ + Name = "group", + Property = "Group", + Type = "string", + Value = Group, + }); + types.Add(new OpenApiType(){ + Name = "avg_text_length", + Property = "AvgTextLength", + Type = "TemplateResponseFieldAvgTextLength", + Value = AvgTextLength, + }); + types.Add(new OpenApiType(){ + Name = "isMultiline", + Property = "IsMultiline", + Type = "bool?", + Value = IsMultiline, + }); + types.Add(new OpenApiType(){ + Name = "originalFontSize", + Property = "OriginalFontSize", + Type = "int?", + Value = OriginalFontSize, + }); + types.Add(new OpenApiType(){ + Name = "fontFamily", + Property = "FontFamily", + Type = "string", + Value = FontFamily, + }); return types; } @@ -501,11 +461,10 @@ public List GetOpenApiTypes() /// /// Validation context /// Validation Result - public IEnumerable Validate( - ValidationContext validationContext - ) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs index 6376d875a..9b893d6a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateResponseSignerRole")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateResponseSignerRole - : IEquatable, - IValidatableObject + public partial class TemplateResponseSignerRole : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateResponseSignerRole() { } - /// /// Initializes a new instance of the class. /// @@ -48,6 +45,7 @@ protected TemplateResponseSignerRole() { } /// If signer order is assigned this is the 0-based index for this role.. public TemplateResponseSignerRole(string name = default(string), int order = default(int)) { + this.Name = name; this.Order = order; } @@ -62,9 +60,7 @@ public static TemplateResponseSignerRole Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateResponseSignerRole" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateResponseSignerRole"); } return obj; @@ -76,6 +72,7 @@ public static TemplateResponseSignerRole Init(string jsonData) /// The name of the Role. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// /// If signer order is assigned this is the 0-based index for this role. @@ -83,6 +80,7 @@ public static TemplateResponseSignerRole Init(string jsonData) /// If signer order is assigned this is the 0-based index for this role. [DataMember(Name = "order", EmitDefaultValue = true)] public int Order { get; set; } + /// /// Returns the string presentation of the object @@ -104,10 +102,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -131,8 +126,16 @@ public bool Equals(TemplateResponseSignerRole input) { return false; } - return (this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name))) - && (this.Order == input.Order || this.Order.Equals(input.Order)); + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Order == input.Order || + this.Order.Equals(input.Order) + ); } /// @@ -158,9 +161,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -168,26 +169,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "name", - Property = "Name", - Type = "string", - Value = Name, - } - ); - types.Add( - new OpenApiType() - { - Name = "order", - Property = "Order", - Type = "int", - Value = Order, - } - ); + types.Add(new OpenApiType(){ + Name = "name", + Property = "Name", + Type = "string", + Value = Name, + }); + types.Add(new OpenApiType(){ + Name = "order", + Property = "Order", + Type = "int", + Value = Order, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs index ab1923255..8d23d43a1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateUpdateFilesRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateUpdateFilesRequest - : IEquatable, - IValidatableObject + public partial class TemplateUpdateFilesRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateUpdateFilesRequest() { } - /// /// Initializes a new instance of the class. /// @@ -50,15 +47,9 @@ protected TemplateUpdateFilesRequest() { } /// The new default template email message.. /// The new default template email subject.. /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. (default to false). - public TemplateUpdateFilesRequest( - string clientId = default(string), - List files = default(List), - List fileUrls = default(List), - string message = default(string), - string subject = default(string), - bool testMode = false - ) + public TemplateUpdateFilesRequest(string clientId = default(string), List files = default(List), List fileUrls = default(List), string message = default(string), string subject = default(string), bool testMode = false) { + this.ClientId = clientId; this.Files = files; this.FileUrls = fileUrls; @@ -77,9 +68,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateUpdateFilesRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateUpdateFilesRequest"); } return obj; @@ -91,6 +80,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Client id of the app you're using to update this template. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -98,6 +88,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -105,6 +96,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// The new default template email message. @@ -112,6 +104,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// The new default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// The new default template email subject. @@ -119,6 +112,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// The new default template email subject. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -126,6 +120,7 @@ public static TemplateUpdateFilesRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Returns the string presentation of the object @@ -151,10 +146,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -178,31 +170,38 @@ public bool Equals(TemplateUpdateFilesRequest input) { return false; } - return ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)); + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ); } /// @@ -244,26 +243,18 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 100) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 100.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 100.", new [] { "Subject" }); } yield break; @@ -272,62 +263,45 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs index 7a02cef08..e5fa70551 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,25 +31,20 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateUpdateFilesResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateUpdateFilesResponse - : IEquatable, - IValidatableObject + public partial class TemplateUpdateFilesResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateUpdateFilesResponse() { } - /// /// Initializes a new instance of the class. /// /// template. - public TemplateUpdateFilesResponse( - TemplateUpdateFilesResponseTemplate template = - default(TemplateUpdateFilesResponseTemplate) - ) + public TemplateUpdateFilesResponse(TemplateUpdateFilesResponseTemplate template = default(TemplateUpdateFilesResponseTemplate)) { + this.Template = template; } @@ -63,9 +58,7 @@ public static TemplateUpdateFilesResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateUpdateFilesResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateUpdateFilesResponse"); } return obj; @@ -76,6 +69,7 @@ public static TemplateUpdateFilesResponse Init(string jsonData) /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateUpdateFilesResponseTemplate Template { get; set; } + /// /// Returns the string presentation of the object @@ -96,10 +90,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -123,10 +114,12 @@ public bool Equals(TemplateUpdateFilesResponse input) { return false; } - return ( - this.Template == input.Template - || (this.Template != null && this.Template.Equals(input.Template)) - ); + return + ( + this.Template == input.Template || + (this.Template != null && + this.Template.Equals(input.Template)) + ); } /// @@ -151,9 +144,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -161,17 +152,15 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template", - Property = "Template", - Type = "TemplateUpdateFilesResponseTemplate", - Value = Template, - } - ); + types.Add(new OpenApiType(){ + Name = "template", + Property = "Template", + Type = "TemplateUpdateFilesResponseTemplate", + Value = Template, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs index ac447e2f8..f04a63472 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "TemplateUpdateFilesResponseTemplate")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class TemplateUpdateFilesResponseTemplate - : IEquatable, - IValidatableObject + public partial class TemplateUpdateFilesResponseTemplate : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TemplateUpdateFilesResponseTemplate() { } - /// /// Initializes a new instance of the class. /// /// The id of the Template.. /// A list of warnings.. - public TemplateUpdateFilesResponseTemplate( - string templateId = default(string), - List warnings = default(List) - ) + public TemplateUpdateFilesResponseTemplate(string templateId = default(string), List warnings = default(List)) { + this.TemplateId = templateId; this.Warnings = warnings; } @@ -65,9 +60,7 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of TemplateUpdateFilesResponseTemplate" - ); + throw new Exception("Unable to deserialize JSON to instance of TemplateUpdateFilesResponseTemplate"); } return obj; @@ -79,6 +72,7 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } + /// /// A list of warnings. @@ -87,6 +81,7 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] [Obsolete] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -108,10 +103,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -135,15 +127,17 @@ public bool Equals(TemplateUpdateFilesResponseTemplate input) { return false; } - return ( - this.TemplateId == input.TemplateId - || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -173,9 +167,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -183,26 +175,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "template_id", - Property = "TemplateId", - Type = "string", - Value = TemplateId, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "template_id", + Property = "TemplateId", + Type = "string", + Value = TemplateId, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs index 6842da160..850ea5f1f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,9 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateEmbeddedRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateEmbeddedRequest - : IEquatable, - IValidatableObject + public partial class UnclaimedDraftCreateEmbeddedRequest : IEquatable, IValidatableObject { /// /// The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. @@ -52,22 +50,21 @@ public enum TypeEnum /// Enum RequestSignature for value: request_signature /// [EnumMember(Value = "request_signature")] - RequestSignature = 2, + RequestSignature = 2 } + /// /// The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. /// /// The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. [DataMember(Name = "type", EmitDefaultValue = true)] public TypeEnum? Type { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftCreateEmbeddedRequest() { } - /// /// Initializes a new instance of the class. /// @@ -107,60 +104,19 @@ protected UnclaimedDraftCreateEmbeddedRequest() { } /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. (default to false). /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response.. - public UnclaimedDraftCreateEmbeddedRequest( - List files = default(List), - List fileUrls = default(List), - bool allowCcs = true, - bool allowDecline = false, - bool allowReassign = false, - List attachments = default(List), - List ccEmailAddresses = default(List), - string clientId = default(string), - List customFields = default(List), - SubEditorOptions editorOptions = default(SubEditorOptions), - SubFieldOptions fieldOptions = default(SubFieldOptions), - bool forceSignerPage = false, - bool forceSubjectMessage = false, - List formFieldGroups = default(List), - List formFieldRules = default(List), - List formFieldsPerDocument = - default(List), - bool hideTextTags = false, - bool holdRequest = false, - bool isForEmbeddedSigning = false, - string message = default(string), - Dictionary metadata = default(Dictionary), - string requesterEmailAddress = default(string), - string requestingRedirectUrl = default(string), - bool showPreview = default(bool), - bool showProgressStepper = true, - List signers = default(List), - SubSigningOptions signingOptions = default(SubSigningOptions), - string signingRedirectUrl = default(string), - bool skipMeNow = false, - string subject = default(string), - bool testMode = false, - TypeEnum? type = TypeEnum.RequestSignature, - bool usePreexistingFields = false, - bool useTextTags = false, - bool populateAutoFillFields = false, - int? expiresAt = default(int?) - ) + public UnclaimedDraftCreateEmbeddedRequest(List files = default(List), List fileUrls = default(List), bool allowCcs = true, bool allowDecline = false, bool allowReassign = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubEditorOptions editorOptions = default(SubEditorOptions), SubFieldOptions fieldOptions = default(SubFieldOptions), bool forceSignerPage = false, bool forceSubjectMessage = false, List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, bool holdRequest = false, bool isForEmbeddedSigning = false, string message = default(string), Dictionary metadata = default(Dictionary), string requesterEmailAddress = default(string), string requestingRedirectUrl = default(string), bool showPreview = default(bool), bool showProgressStepper = true, List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), bool skipMeNow = false, string subject = default(string), bool testMode = false, TypeEnum? type = TypeEnum.RequestSignature, bool usePreexistingFields = false, bool useTextTags = false, bool populateAutoFillFields = false, int? expiresAt = default(int?)) { + // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for UnclaimedDraftCreateEmbeddedRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for UnclaimedDraftCreateEmbeddedRequest and cannot be null"); } this.ClientId = clientId; // to ensure "requesterEmailAddress" is required (not null) if (requesterEmailAddress == null) { - throw new ArgumentNullException( - "requesterEmailAddress is a required property for UnclaimedDraftCreateEmbeddedRequest and cannot be null" - ); + throw new ArgumentNullException("requesterEmailAddress is a required property for UnclaimedDraftCreateEmbeddedRequest and cannot be null"); } this.RequesterEmailAddress = requesterEmailAddress; this.Files = files; @@ -209,9 +165,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of UnclaimedDraftCreateEmbeddedRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftCreateEmbeddedRequest"); } return obj; @@ -223,6 +177,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. @@ -230,6 +185,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. [DataMember(Name = "requester_email_address", IsRequired = true, EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -237,6 +193,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -244,6 +201,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. @@ -251,6 +209,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -258,6 +217,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -265,6 +225,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// A list describing the attachments @@ -272,6 +233,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The email addresses that should be CCed. @@ -279,6 +241,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -286,18 +249,21 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Provide users the ability to review/edit the signers. @@ -305,6 +271,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Provide users the ability to review/edit the signers. [DataMember(Name = "force_signer_page", EmitDefaultValue = true)] public bool ForceSignerPage { get; set; } + /// /// Provide users the ability to review/edit the subject and message. @@ -312,6 +279,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Provide users the ability to review/edit the subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -319,6 +287,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -326,6 +295,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -333,6 +303,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. @@ -340,6 +311,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } + /// /// The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. @@ -347,6 +319,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. [DataMember(Name = "hold_request", EmitDefaultValue = true)] public bool HoldRequest { get; set; } + /// /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. @@ -354,6 +327,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -361,6 +335,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -368,6 +343,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// The URL you want signers redirected to after they successfully request a signature. @@ -375,6 +351,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully request a signature. [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } + /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. @@ -382,6 +359,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -389,6 +367,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// Add Signers to your Unclaimed Draft Signature Request. @@ -396,12 +375,14 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Add Signers to your Unclaimed Draft Signature Request. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -409,6 +390,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. @@ -416,6 +398,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -423,6 +406,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -430,6 +414,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -437,6 +422,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } + /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -444,6 +430,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } + /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -451,6 +438,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } + /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. @@ -458,6 +446,7 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -513,10 +502,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -540,171 +526,180 @@ public bool Equals(UnclaimedDraftCreateEmbeddedRequest input) { return false; } - return ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.RequesterEmailAddress == input.RequesterEmailAddress - || ( - this.RequesterEmailAddress != null - && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) - ) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && (this.AllowCcs == input.AllowCcs || this.AllowCcs.Equals(input.AllowCcs)) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.AllowReassign == input.AllowReassign - || this.AllowReassign.Equals(input.AllowReassign) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.CcEmailAddresses == input.CcEmailAddresses - || this.CcEmailAddresses != null - && input.CcEmailAddresses != null - && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.EditorOptions == input.EditorOptions - || ( - this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) - ) - ) - && ( - this.FieldOptions == input.FieldOptions - || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) - ) - && ( - this.ForceSignerPage == input.ForceSignerPage - || this.ForceSignerPage.Equals(input.ForceSignerPage) - ) - && ( - this.ForceSubjectMessage == input.ForceSubjectMessage - || this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) - ) - && ( - this.FormFieldGroups == input.FormFieldGroups - || this.FormFieldGroups != null - && input.FormFieldGroups != null - && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) - && ( - this.FormFieldRules == input.FormFieldRules - || this.FormFieldRules != null - && input.FormFieldRules != null - && this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) - && ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument - || this.FormFieldsPerDocument != null - && input.FormFieldsPerDocument != null - && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) - && ( - this.HideTextTags == input.HideTextTags - || this.HideTextTags.Equals(input.HideTextTags) - ) - && ( - this.HoldRequest == input.HoldRequest - || this.HoldRequest.Equals(input.HoldRequest) - ) - && ( - this.IsForEmbeddedSigning == input.IsForEmbeddedSigning - || this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.RequestingRedirectUrl == input.RequestingRedirectUrl - || ( - this.RequestingRedirectUrl != null - && this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl) - ) - ) - && ( - this.ShowPreview == input.ShowPreview - || this.ShowPreview.Equals(input.ShowPreview) - ) - && ( - this.ShowProgressStepper == input.ShowProgressStepper - || this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && (this.SkipMeNow == input.SkipMeNow || this.SkipMeNow.Equals(input.SkipMeNow)) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && (this.Type == input.Type || this.Type.Equals(input.Type)) - && ( - this.UsePreexistingFields == input.UsePreexistingFields - || this.UsePreexistingFields.Equals(input.UsePreexistingFields) - ) - && ( - this.UseTextTags == input.UseTextTags - || this.UseTextTags.Equals(input.UseTextTags) - ) - && ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields - || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) - ) - && ( - this.ExpiresAt == input.ExpiresAt - || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.RequesterEmailAddress == input.RequesterEmailAddress || + (this.RequesterEmailAddress != null && + this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.AllowCcs == input.AllowCcs || + this.AllowCcs.Equals(input.AllowCcs) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.AllowReassign == input.AllowReassign || + this.AllowReassign.Equals(input.AllowReassign) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.CcEmailAddresses == input.CcEmailAddresses || + this.CcEmailAddresses != null && + input.CcEmailAddresses != null && + this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.EditorOptions == input.EditorOptions || + (this.EditorOptions != null && + this.EditorOptions.Equals(input.EditorOptions)) + ) && + ( + this.FieldOptions == input.FieldOptions || + (this.FieldOptions != null && + this.FieldOptions.Equals(input.FieldOptions)) + ) && + ( + this.ForceSignerPage == input.ForceSignerPage || + this.ForceSignerPage.Equals(input.ForceSignerPage) + ) && + ( + this.ForceSubjectMessage == input.ForceSubjectMessage || + this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) + ) && + ( + this.FormFieldGroups == input.FormFieldGroups || + this.FormFieldGroups != null && + input.FormFieldGroups != null && + this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) && + ( + this.FormFieldRules == input.FormFieldRules || + this.FormFieldRules != null && + input.FormFieldRules != null && + this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) && + ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument || + this.FormFieldsPerDocument != null && + input.FormFieldsPerDocument != null && + this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) && + ( + this.HideTextTags == input.HideTextTags || + this.HideTextTags.Equals(input.HideTextTags) + ) && + ( + this.HoldRequest == input.HoldRequest || + this.HoldRequest.Equals(input.HoldRequest) + ) && + ( + this.IsForEmbeddedSigning == input.IsForEmbeddedSigning || + this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.RequestingRedirectUrl == input.RequestingRedirectUrl || + (this.RequestingRedirectUrl != null && + this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl)) + ) && + ( + this.ShowPreview == input.ShowPreview || + this.ShowPreview.Equals(input.ShowPreview) + ) && + ( + this.ShowProgressStepper == input.ShowProgressStepper || + this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.SkipMeNow == input.SkipMeNow || + this.SkipMeNow.Equals(input.SkipMeNow) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.UsePreexistingFields == input.UsePreexistingFields || + this.UsePreexistingFields.Equals(input.UsePreexistingFields) + ) && + ( + this.UseTextTags == input.UseTextTags || + this.UseTextTags.Equals(input.UseTextTags) + ) && + ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields || + this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -822,26 +817,18 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 200.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); } yield break; @@ -850,332 +837,225 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_ccs", - Property = "AllowCcs", - Type = "bool", - Value = AllowCcs, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "force_signer_page", - Property = "ForceSignerPage", - Type = "bool", - Value = ForceSignerPage, - } - ); - types.Add( - new OpenApiType() - { - Name = "force_subject_message", - Property = "ForceSubjectMessage", - Type = "bool", - Value = ForceSubjectMessage, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - } - ); - types.Add( - new OpenApiType() - { - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "hold_request", - Property = "HoldRequest", - Type = "bool", - Value = HoldRequest, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_for_embedded_signing", - Property = "IsForEmbeddedSigning", - Type = "bool", - Value = IsForEmbeddedSigning, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "requesting_redirect_url", - Property = "RequestingRedirectUrl", - Type = "string", - Value = RequestingRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_preview", - Property = "ShowPreview", - Type = "bool", - Value = ShowPreview, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "skip_me_now", - Property = "SkipMeNow", - Type = "bool", - Value = SkipMeNow, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_preexisting_fields", - Property = "UsePreexistingFields", - Type = "bool", - Value = UsePreexistingFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "allow_ccs", + Property = "AllowCcs", + Type = "bool", + Value = AllowCcs, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + }); + types.Add(new OpenApiType(){ + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + }); + types.Add(new OpenApiType(){ + Name = "force_signer_page", + Property = "ForceSignerPage", + Type = "bool", + Value = ForceSignerPage, + }); + types.Add(new OpenApiType(){ + Name = "force_subject_message", + Property = "ForceSubjectMessage", + Type = "bool", + Value = ForceSubjectMessage, + }); + types.Add(new OpenApiType(){ + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + }); + types.Add(new OpenApiType(){ + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + }); + types.Add(new OpenApiType(){ + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + }); + types.Add(new OpenApiType(){ + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + }); + types.Add(new OpenApiType(){ + Name = "hold_request", + Property = "HoldRequest", + Type = "bool", + Value = HoldRequest, + }); + types.Add(new OpenApiType(){ + Name = "is_for_embedded_signing", + Property = "IsForEmbeddedSigning", + Type = "bool", + Value = IsForEmbeddedSigning, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "requesting_redirect_url", + Property = "RequestingRedirectUrl", + Type = "string", + Value = RequestingRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "show_preview", + Property = "ShowPreview", + Type = "bool", + Value = ShowPreview, + }); + types.Add(new OpenApiType(){ + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "skip_me_now", + Property = "SkipMeNow", + Type = "bool", + Value = SkipMeNow, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "use_preexisting_fields", + Property = "UsePreexistingFields", + Type = "bool", + Value = UsePreexistingFields, + }); + types.Add(new OpenApiType(){ + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + }); + types.Add(new OpenApiType(){ + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs index 9e1a947ac..52e3f3bb2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateEmbeddedWithTemplateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateEmbeddedWithTemplateRequest - : IEquatable, - IValidatableObject + public partial class UnclaimedDraftCreateEmbeddedWithTemplateRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftCreateEmbeddedWithTemplateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -74,62 +71,25 @@ protected UnclaimedDraftCreateEmbeddedWithTemplateRequest() { } /// The title you want to assign to the SignatureRequest.. /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. (default to false). /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. (default to false). - public UnclaimedDraftCreateEmbeddedWithTemplateRequest( - bool allowDecline = false, - bool allowReassign = false, - List ccs = default(List), - string clientId = default(string), - List customFields = default(List), - SubEditorOptions editorOptions = default(SubEditorOptions), - SubFieldOptions fieldOptions = default(SubFieldOptions), - List files = default(List), - List fileUrls = default(List), - bool forceSignerRoles = false, - bool forceSubjectMessage = false, - bool holdRequest = false, - bool isForEmbeddedSigning = false, - string message = default(string), - Dictionary metadata = default(Dictionary), - bool previewOnly = false, - string requesterEmailAddress = default(string), - string requestingRedirectUrl = default(string), - bool showPreview = false, - bool showProgressStepper = true, - List signers = - default(List), - SubSigningOptions signingOptions = default(SubSigningOptions), - string signingRedirectUrl = default(string), - bool skipMeNow = false, - string subject = default(string), - List templateIds = default(List), - bool testMode = false, - string title = default(string), - bool populateAutoFillFields = false, - bool allowCcs = false - ) + public UnclaimedDraftCreateEmbeddedWithTemplateRequest(bool allowDecline = false, bool allowReassign = false, List ccs = default(List), string clientId = default(string), List customFields = default(List), SubEditorOptions editorOptions = default(SubEditorOptions), SubFieldOptions fieldOptions = default(SubFieldOptions), List files = default(List), List fileUrls = default(List), bool forceSignerRoles = false, bool forceSubjectMessage = false, bool holdRequest = false, bool isForEmbeddedSigning = false, string message = default(string), Dictionary metadata = default(Dictionary), bool previewOnly = false, string requesterEmailAddress = default(string), string requestingRedirectUrl = default(string), bool showPreview = false, bool showProgressStepper = true, List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), bool skipMeNow = false, string subject = default(string), List templateIds = default(List), bool testMode = false, string title = default(string), bool populateAutoFillFields = false, bool allowCcs = false) { + // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null"); } this.ClientId = clientId; // to ensure "requesterEmailAddress" is required (not null) if (requesterEmailAddress == null) { - throw new ArgumentNullException( - "requesterEmailAddress is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("requesterEmailAddress is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null"); } this.RequesterEmailAddress = requesterEmailAddress; // to ensure "templateIds" is required (not null) if (templateIds == null) { - throw new ArgumentNullException( - "templateIds is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null" - ); + throw new ArgumentNullException("templateIds is a required property for UnclaimedDraftCreateEmbeddedWithTemplateRequest and cannot be null"); } this.TemplateIds = templateIds; this.AllowDecline = allowDecline; @@ -167,16 +127,11 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest( /// String of JSON data representing target object public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonData) { - var obj = - JsonConvert.DeserializeObject( - jsonData - ); + var obj = JsonConvert.DeserializeObject(jsonData); if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of UnclaimedDraftCreateEmbeddedWithTemplateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftCreateEmbeddedWithTemplateRequest"); } return obj; @@ -188,6 +143,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// The email address of the user that should be designated as the requester of this draft. @@ -195,6 +151,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The email address of the user that should be designated as the requester of this draft. [DataMember(Name = "requester_email_address", IsRequired = true, EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. @@ -202,6 +159,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -209,6 +167,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. @@ -216,6 +175,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } + /// /// Add CC email recipients. Required when a CC role exists for the Template. @@ -223,6 +183,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Add CC email recipients. Required when a CC role exists for the Template. [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } + /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. @@ -230,18 +191,21 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// An array defining values and options for custom fields. Required when a custom field exists in the Template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. @@ -249,6 +213,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. @@ -256,6 +221,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Provide users the ability to review/edit the template signer roles. @@ -263,6 +229,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Provide users the ability to review/edit the template signer roles. [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } + /// /// Provide users the ability to review/edit the template subject and message. @@ -270,6 +237,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Provide users the ability to review/edit the template subject and message. [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } + /// /// The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. @@ -277,6 +245,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. [DataMember(Name = "hold_request", EmitDefaultValue = true)] public bool HoldRequest { get; set; } + /// /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. @@ -284,6 +253,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -291,6 +261,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -298,6 +269,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). - `preview_only=true`: Allows requesters to enable the preview only experience. - `preview_only=false`: Allows requesters to disable the preview only experience. **NOTE:** This parameter overwrites `show_preview=1` (if set). @@ -305,6 +277,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). - `preview_only=true`: Allows requesters to enable the preview only experience. - `preview_only=false`: Allows requesters to disable the preview only experience. **NOTE:** This parameter overwrites `show_preview=1` (if set). [DataMember(Name = "preview_only", EmitDefaultValue = true)] public bool PreviewOnly { get; set; } + /// /// The URL you want signers redirected to after they successfully request a signature. @@ -312,6 +285,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The URL you want signers redirected to after they successfully request a signature. [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } + /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. @@ -319,6 +293,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -326,6 +301,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// Add Signers to your Templated-based Signature Request. @@ -333,12 +309,14 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Add Signers to your Templated-based Signature Request. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -346,6 +324,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. @@ -353,6 +332,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -360,6 +340,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -367,6 +348,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// The title you want to assign to the SignatureRequest. @@ -374,6 +356,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// The title you want to assign to the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } + /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. @@ -381,6 +364,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } + /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. @@ -388,6 +372,7 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } + /// /// Returns the string presentation of the object @@ -437,10 +422,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -464,143 +446,151 @@ public bool Equals(UnclaimedDraftCreateEmbeddedWithTemplateRequest input) { return false; } - return ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.RequesterEmailAddress == input.RequesterEmailAddress - || ( - this.RequesterEmailAddress != null - && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) - ) - ) - && ( - this.TemplateIds == input.TemplateIds - || this.TemplateIds != null - && input.TemplateIds != null - && this.TemplateIds.SequenceEqual(input.TemplateIds) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.AllowReassign == input.AllowReassign - || this.AllowReassign.Equals(input.AllowReassign) - ) - && ( - this.Ccs == input.Ccs - || this.Ccs != null && input.Ccs != null && this.Ccs.SequenceEqual(input.Ccs) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.EditorOptions == input.EditorOptions - || ( - this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) - ) - ) - && ( - this.FieldOptions == input.FieldOptions - || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) - ) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.ForceSignerRoles == input.ForceSignerRoles - || this.ForceSignerRoles.Equals(input.ForceSignerRoles) - ) - && ( - this.ForceSubjectMessage == input.ForceSubjectMessage - || this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) - ) - && ( - this.HoldRequest == input.HoldRequest - || this.HoldRequest.Equals(input.HoldRequest) - ) - && ( - this.IsForEmbeddedSigning == input.IsForEmbeddedSigning - || this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.PreviewOnly == input.PreviewOnly - || this.PreviewOnly.Equals(input.PreviewOnly) - ) - && ( - this.RequestingRedirectUrl == input.RequestingRedirectUrl - || ( - this.RequestingRedirectUrl != null - && this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl) - ) - ) - && ( - this.ShowPreview == input.ShowPreview - || this.ShowPreview.Equals(input.ShowPreview) - ) - && ( - this.ShowProgressStepper == input.ShowProgressStepper - || this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && (this.SkipMeNow == input.SkipMeNow || this.SkipMeNow.Equals(input.SkipMeNow)) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.Title == input.Title - || (this.Title != null && this.Title.Equals(input.Title)) - ) - && ( - this.PopulateAutoFillFields == input.PopulateAutoFillFields - || this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) - ) - && (this.AllowCcs == input.AllowCcs || this.AllowCcs.Equals(input.AllowCcs)); + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.RequesterEmailAddress == input.RequesterEmailAddress || + (this.RequesterEmailAddress != null && + this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) + ) && + ( + this.TemplateIds == input.TemplateIds || + this.TemplateIds != null && + input.TemplateIds != null && + this.TemplateIds.SequenceEqual(input.TemplateIds) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.AllowReassign == input.AllowReassign || + this.AllowReassign.Equals(input.AllowReassign) + ) && + ( + this.Ccs == input.Ccs || + this.Ccs != null && + input.Ccs != null && + this.Ccs.SequenceEqual(input.Ccs) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.EditorOptions == input.EditorOptions || + (this.EditorOptions != null && + this.EditorOptions.Equals(input.EditorOptions)) + ) && + ( + this.FieldOptions == input.FieldOptions || + (this.FieldOptions != null && + this.FieldOptions.Equals(input.FieldOptions)) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.ForceSignerRoles == input.ForceSignerRoles || + this.ForceSignerRoles.Equals(input.ForceSignerRoles) + ) && + ( + this.ForceSubjectMessage == input.ForceSubjectMessage || + this.ForceSubjectMessage.Equals(input.ForceSubjectMessage) + ) && + ( + this.HoldRequest == input.HoldRequest || + this.HoldRequest.Equals(input.HoldRequest) + ) && + ( + this.IsForEmbeddedSigning == input.IsForEmbeddedSigning || + this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.PreviewOnly == input.PreviewOnly || + this.PreviewOnly.Equals(input.PreviewOnly) + ) && + ( + this.RequestingRedirectUrl == input.RequestingRedirectUrl || + (this.RequestingRedirectUrl != null && + this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl)) + ) && + ( + this.ShowPreview == input.ShowPreview || + this.ShowPreview.Equals(input.ShowPreview) + ) && + ( + this.ShowProgressStepper == input.ShowProgressStepper || + this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.SkipMeNow == input.SkipMeNow || + this.SkipMeNow.Equals(input.SkipMeNow) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.PopulateAutoFillFields == input.PopulateAutoFillFields || + this.PopulateAutoFillFields.Equals(input.PopulateAutoFillFields) + ) && + ( + this.AllowCcs == input.AllowCcs || + this.AllowCcs.Equals(input.AllowCcs) + ); } /// @@ -702,35 +692,24 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 255) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 255.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 255.", new [] { "Subject" }); } // Title (string) maxLength if (this.Title != null && this.Title.Length > 255) { - yield return new ValidationResult( - "Invalid value for Title, length must be less than 255.", - new[] { "Title" } - ); + yield return new ValidationResult("Invalid value for Title, length must be less than 255.", new [] { "Title" }); } yield break; @@ -739,278 +718,189 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "template_ids", - Property = "TemplateIds", - Type = "List", - Value = TemplateIds, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_reassign", - Property = "AllowReassign", - Type = "bool", - Value = AllowReassign, - } - ); - types.Add( - new OpenApiType() - { - Name = "ccs", - Property = "Ccs", - Type = "List", - Value = Ccs, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "force_signer_roles", - Property = "ForceSignerRoles", - Type = "bool", - Value = ForceSignerRoles, - } - ); - types.Add( - new OpenApiType() - { - Name = "force_subject_message", - Property = "ForceSubjectMessage", - Type = "bool", - Value = ForceSubjectMessage, - } - ); - types.Add( - new OpenApiType() - { - Name = "hold_request", - Property = "HoldRequest", - Type = "bool", - Value = HoldRequest, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_for_embedded_signing", - Property = "IsForEmbeddedSigning", - Type = "bool", - Value = IsForEmbeddedSigning, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "preview_only", - Property = "PreviewOnly", - Type = "bool", - Value = PreviewOnly, - } - ); - types.Add( - new OpenApiType() - { - Name = "requesting_redirect_url", - Property = "RequestingRedirectUrl", - Type = "string", - Value = RequestingRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_preview", - Property = "ShowPreview", - Type = "bool", - Value = ShowPreview, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "skip_me_now", - Property = "SkipMeNow", - Type = "bool", - Value = SkipMeNow, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "title", - Property = "Title", - Type = "string", - Value = Title, - } - ); - types.Add( - new OpenApiType() - { - Name = "populate_auto_fill_fields", - Property = "PopulateAutoFillFields", - Type = "bool", - Value = PopulateAutoFillFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_ccs", - Property = "AllowCcs", - Type = "bool", - Value = AllowCcs, - } - ); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "template_ids", + Property = "TemplateIds", + Type = "List", + Value = TemplateIds, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "allow_reassign", + Property = "AllowReassign", + Type = "bool", + Value = AllowReassign, + }); + types.Add(new OpenApiType(){ + Name = "ccs", + Property = "Ccs", + Type = "List", + Value = Ccs, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + }); + types.Add(new OpenApiType(){ + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "force_signer_roles", + Property = "ForceSignerRoles", + Type = "bool", + Value = ForceSignerRoles, + }); + types.Add(new OpenApiType(){ + Name = "force_subject_message", + Property = "ForceSubjectMessage", + Type = "bool", + Value = ForceSubjectMessage, + }); + types.Add(new OpenApiType(){ + Name = "hold_request", + Property = "HoldRequest", + Type = "bool", + Value = HoldRequest, + }); + types.Add(new OpenApiType(){ + Name = "is_for_embedded_signing", + Property = "IsForEmbeddedSigning", + Type = "bool", + Value = IsForEmbeddedSigning, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "preview_only", + Property = "PreviewOnly", + Type = "bool", + Value = PreviewOnly, + }); + types.Add(new OpenApiType(){ + Name = "requesting_redirect_url", + Property = "RequestingRedirectUrl", + Type = "string", + Value = RequestingRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "show_preview", + Property = "ShowPreview", + Type = "bool", + Value = ShowPreview, + }); + types.Add(new OpenApiType(){ + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "skip_me_now", + Property = "SkipMeNow", + Type = "bool", + Value = SkipMeNow, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "title", + Property = "Title", + Type = "string", + Value = Title, + }); + types.Add(new OpenApiType(){ + Name = "populate_auto_fill_fields", + Property = "PopulateAutoFillFields", + Type = "bool", + Value = PopulateAutoFillFields, + }); + types.Add(new OpenApiType(){ + Name = "allow_ccs", + Property = "AllowCcs", + Type = "bool", + Value = AllowCcs, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs index c39d42492..3c87d3c56 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,9 +31,7 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateRequest - : IEquatable, - IValidatableObject + public partial class UnclaimedDraftCreateRequest : IEquatable, IValidatableObject { /// /// The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. @@ -52,22 +50,21 @@ public enum TypeEnum /// Enum RequestSignature for value: request_signature /// [EnumMember(Value = "request_signature")] - RequestSignature = 2, + RequestSignature = 2 } + /// /// The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. /// /// The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public TypeEnum Type { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftCreateRequest() { } - /// /// Initializes a new instance of the class. /// @@ -95,34 +92,9 @@ protected UnclaimedDraftCreateRequest() { } /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. (default to false). /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. (default to false). /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response.. - public UnclaimedDraftCreateRequest( - List files = default(List), - List fileUrls = default(List), - bool allowDecline = false, - List attachments = default(List), - List ccEmailAddresses = default(List), - string clientId = default(string), - List customFields = default(List), - SubFieldOptions fieldOptions = default(SubFieldOptions), - List formFieldGroups = default(List), - List formFieldRules = default(List), - List formFieldsPerDocument = - default(List), - bool hideTextTags = false, - string message = default(string), - Dictionary metadata = default(Dictionary), - bool showProgressStepper = true, - List signers = default(List), - SubSigningOptions signingOptions = default(SubSigningOptions), - string signingRedirectUrl = default(string), - string subject = default(string), - bool testMode = false, - TypeEnum type = default(TypeEnum), - bool usePreexistingFields = false, - bool useTextTags = false, - int? expiresAt = default(int?) - ) + public UnclaimedDraftCreateRequest(List files = default(List), List fileUrls = default(List), bool allowDecline = false, List attachments = default(List), List ccEmailAddresses = default(List), string clientId = default(string), List customFields = default(List), SubFieldOptions fieldOptions = default(SubFieldOptions), List formFieldGroups = default(List), List formFieldRules = default(List), List formFieldsPerDocument = default(List), bool hideTextTags = false, string message = default(string), Dictionary metadata = default(Dictionary), bool showProgressStepper = true, List signers = default(List), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, TypeEnum type = default(TypeEnum), bool usePreexistingFields = false, bool useTextTags = false, int? expiresAt = default(int?)) { + this.Type = type; this.Files = files; this.FileUrls = fileUrls; @@ -159,9 +131,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of UnclaimedDraftCreateRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftCreateRequest"); } return obj; @@ -173,6 +143,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } + /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. @@ -180,6 +151,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } + /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. @@ -187,6 +159,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Allows signers to decline to sign a document if `true`. Defaults to `false`. [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } + /// /// A list describing the attachments @@ -194,6 +167,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } + /// /// The email addresses that should be CCed. @@ -201,6 +175,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The email addresses that should be CCed. [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } + /// /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. @@ -208,6 +183,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. @@ -215,12 +191,14 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } + /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } + /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. @@ -228,6 +206,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } + /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. @@ -235,6 +214,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Conditional Logic rules for fields defined in `form_fields_per_document`. [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } + /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` @@ -242,6 +222,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } + /// /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. @@ -249,6 +230,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } + /// /// The custom message in the email that will be sent to the signers. @@ -256,6 +238,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The custom message in the email that will be sent to the signers. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } + /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. @@ -263,6 +246,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -270,6 +254,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// Add Signers to your Unclaimed Draft Signature Request. @@ -277,12 +262,14 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Add Signers to your Unclaimed Draft Signature Request. [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } + /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -290,6 +277,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The subject in the email that will be sent to the signers. @@ -297,6 +285,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// The subject in the email that will be sent to the signers. [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -304,6 +293,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -311,6 +301,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } + /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. @@ -318,6 +309,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } + /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. @@ -325,6 +317,7 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Returns the string presentation of the object @@ -368,10 +361,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -395,121 +385,129 @@ public bool Equals(UnclaimedDraftCreateRequest input) { return false; } - return (this.Type == input.Type || this.Type.Equals(input.Type)) - && ( - this.Files == input.Files - || this.Files != null - && input.Files != null - && this.Files.SequenceEqual(input.Files) - ) - && ( - this.FileUrls == input.FileUrls - || this.FileUrls != null - && input.FileUrls != null - && this.FileUrls.SequenceEqual(input.FileUrls) - ) - && ( - this.AllowDecline == input.AllowDecline - || this.AllowDecline.Equals(input.AllowDecline) - ) - && ( - this.Attachments == input.Attachments - || this.Attachments != null - && input.Attachments != null - && this.Attachments.SequenceEqual(input.Attachments) - ) - && ( - this.CcEmailAddresses == input.CcEmailAddresses - || this.CcEmailAddresses != null - && input.CcEmailAddresses != null - && this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) - ) - && ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.CustomFields == input.CustomFields - || this.CustomFields != null - && input.CustomFields != null - && this.CustomFields.SequenceEqual(input.CustomFields) - ) - && ( - this.FieldOptions == input.FieldOptions - || (this.FieldOptions != null && this.FieldOptions.Equals(input.FieldOptions)) - ) - && ( - this.FormFieldGroups == input.FormFieldGroups - || this.FormFieldGroups != null - && input.FormFieldGroups != null - && this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) - ) - && ( - this.FormFieldRules == input.FormFieldRules - || this.FormFieldRules != null - && input.FormFieldRules != null - && this.FormFieldRules.SequenceEqual(input.FormFieldRules) - ) - && ( - this.FormFieldsPerDocument == input.FormFieldsPerDocument - || this.FormFieldsPerDocument != null - && input.FormFieldsPerDocument != null - && this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) - ) - && ( - this.HideTextTags == input.HideTextTags - || this.HideTextTags.Equals(input.HideTextTags) - ) - && ( - this.Message == input.Message - || (this.Message != null && this.Message.Equals(input.Message)) - ) - && ( - this.Metadata == input.Metadata - || this.Metadata != null - && input.Metadata != null - && this.Metadata.SequenceEqual(input.Metadata) - ) - && ( - this.ShowProgressStepper == input.ShowProgressStepper - || this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) - && ( - this.Signers == input.Signers - || this.Signers != null - && input.Signers != null - && this.Signers.SequenceEqual(input.Signers) - ) - && ( - this.SigningOptions == input.SigningOptions - || ( - this.SigningOptions != null - && this.SigningOptions.Equals(input.SigningOptions) - ) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.Subject == input.Subject - || (this.Subject != null && this.Subject.Equals(input.Subject)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)) - && ( - this.UsePreexistingFields == input.UsePreexistingFields - || this.UsePreexistingFields.Equals(input.UsePreexistingFields) - ) - && ( - this.UseTextTags == input.UseTextTags - || this.UseTextTags.Equals(input.UseTextTags) - ) - && ( - this.ExpiresAt == input.ExpiresAt - || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) + return + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ) && + ( + this.FileUrls == input.FileUrls || + this.FileUrls != null && + input.FileUrls != null && + this.FileUrls.SequenceEqual(input.FileUrls) + ) && + ( + this.AllowDecline == input.AllowDecline || + this.AllowDecline.Equals(input.AllowDecline) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.CcEmailAddresses == input.CcEmailAddresses || + this.CcEmailAddresses != null && + input.CcEmailAddresses != null && + this.CcEmailAddresses.SequenceEqual(input.CcEmailAddresses) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.CustomFields == input.CustomFields || + this.CustomFields != null && + input.CustomFields != null && + this.CustomFields.SequenceEqual(input.CustomFields) + ) && + ( + this.FieldOptions == input.FieldOptions || + (this.FieldOptions != null && + this.FieldOptions.Equals(input.FieldOptions)) + ) && + ( + this.FormFieldGroups == input.FormFieldGroups || + this.FormFieldGroups != null && + input.FormFieldGroups != null && + this.FormFieldGroups.SequenceEqual(input.FormFieldGroups) + ) && + ( + this.FormFieldRules == input.FormFieldRules || + this.FormFieldRules != null && + input.FormFieldRules != null && + this.FormFieldRules.SequenceEqual(input.FormFieldRules) + ) && + ( + this.FormFieldsPerDocument == input.FormFieldsPerDocument || + this.FormFieldsPerDocument != null && + input.FormFieldsPerDocument != null && + this.FormFieldsPerDocument.SequenceEqual(input.FormFieldsPerDocument) + ) && + ( + this.HideTextTags == input.HideTextTags || + this.HideTextTags.Equals(input.HideTextTags) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.ShowProgressStepper == input.ShowProgressStepper || + this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) && + ( + this.Signers == input.Signers || + this.Signers != null && + input.Signers != null && + this.Signers.SequenceEqual(input.Signers) + ) && + ( + this.SigningOptions == input.SigningOptions || + (this.SigningOptions != null && + this.SigningOptions.Equals(input.SigningOptions)) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ) && + ( + this.UsePreexistingFields == input.UsePreexistingFields || + this.UsePreexistingFields.Equals(input.UsePreexistingFields) + ) && + ( + this.UseTextTags == input.UseTextTags || + this.UseTextTags.Equals(input.UseTextTags) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ); } @@ -606,26 +604,18 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Message (string) maxLength if (this.Message != null && this.Message.Length > 5000) { - yield return new ValidationResult( - "Invalid value for Message, length must be less than 5000.", - new[] { "Message" } - ); + yield return new ValidationResult("Invalid value for Message, length must be less than 5000.", new [] { "Message" }); } // Subject (string) maxLength if (this.Subject != null && this.Subject.Length > 200) { - yield return new ValidationResult( - "Invalid value for Subject, length must be less than 200.", - new[] { "Subject" } - ); + yield return new ValidationResult("Invalid value for Subject, length must be less than 200.", new [] { "Subject" }); } yield break; @@ -634,224 +624,153 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "type", - Property = "Type", - Type = "string", - Value = Type, - } - ); - types.Add( - new OpenApiType() - { - Name = "files", - Property = "Files", - Type = "List", - Value = Files, - } - ); - types.Add( - new OpenApiType() - { - Name = "file_urls", - Property = "FileUrls", - Type = "List", - Value = FileUrls, - } - ); - types.Add( - new OpenApiType() - { - Name = "allow_decline", - Property = "AllowDecline", - Type = "bool", - Value = AllowDecline, - } - ); - types.Add( - new OpenApiType() - { - Name = "attachments", - Property = "Attachments", - Type = "List", - Value = Attachments, - } - ); - types.Add( - new OpenApiType() - { - Name = "cc_email_addresses", - Property = "CcEmailAddresses", - Type = "List", - Value = CcEmailAddresses, - } - ); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "custom_fields", - Property = "CustomFields", - Type = "List", - Value = CustomFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "field_options", - Property = "FieldOptions", - Type = "SubFieldOptions", - Value = FieldOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_groups", - Property = "FormFieldGroups", - Type = "List", - Value = FormFieldGroups, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_field_rules", - Property = "FormFieldRules", - Type = "List", - Value = FormFieldRules, - } - ); - types.Add( - new OpenApiType() - { - Name = "form_fields_per_document", - Property = "FormFieldsPerDocument", - Type = "List", - Value = FormFieldsPerDocument, - } - ); - types.Add( - new OpenApiType() - { - Name = "hide_text_tags", - Property = "HideTextTags", - Type = "bool", - Value = HideTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - } - ); - types.Add( - new OpenApiType() - { - Name = "metadata", - Property = "Metadata", - Type = "Dictionary", - Value = Metadata, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - } - ); - types.Add( - new OpenApiType() - { - Name = "signers", - Property = "Signers", - Type = "List", - Value = Signers, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_options", - Property = "SigningOptions", - Type = "SubSigningOptions", - Value = SigningOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_preexisting_fields", - Property = "UsePreexistingFields", - Type = "bool", - Value = UsePreexistingFields, - } - ); - types.Add( - new OpenApiType() - { - Name = "use_text_tags", - Property = "UseTextTags", - Type = "bool", - Value = UseTextTags, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - } - ); + types.Add(new OpenApiType(){ + Name = "type", + Property = "Type", + Type = "string", + Value = Type, + }); + types.Add(new OpenApiType(){ + Name = "files", + Property = "Files", + Type = "List", + Value = Files, + }); + types.Add(new OpenApiType(){ + Name = "file_urls", + Property = "FileUrls", + Type = "List", + Value = FileUrls, + }); + types.Add(new OpenApiType(){ + Name = "allow_decline", + Property = "AllowDecline", + Type = "bool", + Value = AllowDecline, + }); + types.Add(new OpenApiType(){ + Name = "attachments", + Property = "Attachments", + Type = "List", + Value = Attachments, + }); + types.Add(new OpenApiType(){ + Name = "cc_email_addresses", + Property = "CcEmailAddresses", + Type = "List", + Value = CcEmailAddresses, + }); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "custom_fields", + Property = "CustomFields", + Type = "List", + Value = CustomFields, + }); + types.Add(new OpenApiType(){ + Name = "field_options", + Property = "FieldOptions", + Type = "SubFieldOptions", + Value = FieldOptions, + }); + types.Add(new OpenApiType(){ + Name = "form_field_groups", + Property = "FormFieldGroups", + Type = "List", + Value = FormFieldGroups, + }); + types.Add(new OpenApiType(){ + Name = "form_field_rules", + Property = "FormFieldRules", + Type = "List", + Value = FormFieldRules, + }); + types.Add(new OpenApiType(){ + Name = "form_fields_per_document", + Property = "FormFieldsPerDocument", + Type = "List", + Value = FormFieldsPerDocument, + }); + types.Add(new OpenApiType(){ + Name = "hide_text_tags", + Property = "HideTextTags", + Type = "bool", + Value = HideTextTags, + }); + types.Add(new OpenApiType(){ + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType(){ + Name = "metadata", + Property = "Metadata", + Type = "Dictionary", + Value = Metadata, + }); + types.Add(new OpenApiType(){ + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + }); + types.Add(new OpenApiType(){ + Name = "signers", + Property = "Signers", + Type = "List", + Value = Signers, + }); + types.Add(new OpenApiType(){ + Name = "signing_options", + Property = "SigningOptions", + Type = "SubSigningOptions", + Value = SigningOptions, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "subject", + Property = "Subject", + Type = "string", + Value = Subject, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); + types.Add(new OpenApiType(){ + Name = "use_preexisting_fields", + Property = "UsePreexistingFields", + Type = "bool", + Value = UsePreexistingFields, + }); + types.Add(new OpenApiType(){ + Name = "use_text_tags", + Property = "UseTextTags", + Type = "bool", + Value = UseTextTags, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs index 3c7937e7b..4b598103d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,26 +31,21 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftCreateResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftCreateResponse - : IEquatable, - IValidatableObject + public partial class UnclaimedDraftCreateResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftCreateResponse() { } - /// /// Initializes a new instance of the class. /// /// unclaimedDraft. /// A list of warnings.. - public UnclaimedDraftCreateResponse( - UnclaimedDraftResponse unclaimedDraft = default(UnclaimedDraftResponse), - List warnings = default(List) - ) + public UnclaimedDraftCreateResponse(UnclaimedDraftResponse unclaimedDraft = default(UnclaimedDraftResponse), List warnings = default(List)) { + this.UnclaimedDraft = unclaimedDraft; this.Warnings = warnings; } @@ -65,9 +60,7 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of UnclaimedDraftCreateResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftCreateResponse"); } return obj; @@ -78,6 +71,7 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) /// [DataMember(Name = "unclaimed_draft", EmitDefaultValue = true)] public UnclaimedDraftResponse UnclaimedDraft { get; set; } + /// /// A list of warnings. @@ -85,6 +79,7 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } + /// /// Returns the string presentation of the object @@ -106,10 +101,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -133,18 +125,17 @@ public bool Equals(UnclaimedDraftCreateResponse input) { return false; } - return ( - this.UnclaimedDraft == input.UnclaimedDraft - || ( - this.UnclaimedDraft != null - && this.UnclaimedDraft.Equals(input.UnclaimedDraft) - ) - ) - && ( - this.Warnings == input.Warnings - || this.Warnings != null - && input.Warnings != null - && this.Warnings.SequenceEqual(input.Warnings) + return + ( + this.UnclaimedDraft == input.UnclaimedDraft || + (this.UnclaimedDraft != null && + this.UnclaimedDraft.Equals(input.UnclaimedDraft)) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) ); } @@ -174,9 +165,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -184,26 +173,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "unclaimed_draft", - Property = "UnclaimedDraft", - Type = "UnclaimedDraftResponse", - Value = UnclaimedDraft, - } - ); - types.Add( - new OpenApiType() - { - Name = "warnings", - Property = "Warnings", - Type = "List", - Value = Warnings, - } - ); + types.Add(new OpenApiType(){ + Name = "unclaimed_draft", + Property = "UnclaimedDraft", + Type = "UnclaimedDraftResponse", + Value = UnclaimedDraft, + }); + types.Add(new OpenApiType(){ + Name = "warnings", + Property = "Warnings", + Type = "List", + Value = Warnings, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs index a6fa861be..1dc04b47a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftEditAndResendRequest")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftEditAndResendRequest - : IEquatable, - IValidatableObject + public partial class UnclaimedDraftEditAndResendRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftEditAndResendRequest() { } - /// /// Initializes a new instance of the class. /// @@ -52,23 +49,13 @@ protected UnclaimedDraftEditAndResendRequest() { } /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. (default to true). /// The URL you want signers redirected to after they successfully sign.. /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. (default to false). - public UnclaimedDraftEditAndResendRequest( - string clientId = default(string), - SubEditorOptions editorOptions = default(SubEditorOptions), - bool isForEmbeddedSigning = default(bool), - string requesterEmailAddress = default(string), - string requestingRedirectUrl = default(string), - bool showProgressStepper = true, - string signingRedirectUrl = default(string), - bool testMode = false - ) + public UnclaimedDraftEditAndResendRequest(string clientId = default(string), SubEditorOptions editorOptions = default(SubEditorOptions), bool isForEmbeddedSigning = default(bool), string requesterEmailAddress = default(string), string requestingRedirectUrl = default(string), bool showProgressStepper = true, string signingRedirectUrl = default(string), bool testMode = false) { + // to ensure "clientId" is required (not null) if (clientId == null) { - throw new ArgumentNullException( - "clientId is a required property for UnclaimedDraftEditAndResendRequest and cannot be null" - ); + throw new ArgumentNullException("clientId is a required property for UnclaimedDraftEditAndResendRequest and cannot be null"); } this.ClientId = clientId; this.EditorOptions = editorOptions; @@ -90,9 +77,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of UnclaimedDraftEditAndResendRequest" - ); + throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftEditAndResendRequest"); } return obj; @@ -104,12 +89,14 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } + /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } + /// /// The request created from this draft will also be signable in embedded mode if set to `true`. @@ -117,6 +104,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The request created from this draft will also be signable in embedded mode if set to `true`. [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } + /// /// The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. @@ -124,6 +112,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } + /// /// The URL you want signers redirected to after they successfully request a signature. @@ -131,6 +120,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully request a signature. [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } + /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. @@ -138,6 +128,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -145,6 +136,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. @@ -152,6 +144,7 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Returns the string presentation of the object @@ -179,10 +172,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -206,46 +196,44 @@ public bool Equals(UnclaimedDraftEditAndResendRequest input) { return false; } - return ( - this.ClientId == input.ClientId - || (this.ClientId != null && this.ClientId.Equals(input.ClientId)) - ) - && ( - this.EditorOptions == input.EditorOptions - || ( - this.EditorOptions != null && this.EditorOptions.Equals(input.EditorOptions) - ) - ) - && ( - this.IsForEmbeddedSigning == input.IsForEmbeddedSigning - || this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) - ) - && ( - this.RequesterEmailAddress == input.RequesterEmailAddress - || ( - this.RequesterEmailAddress != null - && this.RequesterEmailAddress.Equals(input.RequesterEmailAddress) - ) - ) - && ( - this.RequestingRedirectUrl == input.RequestingRedirectUrl - || ( - this.RequestingRedirectUrl != null - && this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl) - ) - ) - && ( - this.ShowProgressStepper == input.ShowProgressStepper - || this.ShowProgressStepper.Equals(input.ShowProgressStepper) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)); + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.EditorOptions == input.EditorOptions || + (this.EditorOptions != null && + this.EditorOptions.Equals(input.EditorOptions)) + ) && + ( + this.IsForEmbeddedSigning == input.IsForEmbeddedSigning || + this.IsForEmbeddedSigning.Equals(input.IsForEmbeddedSigning) + ) && + ( + this.RequesterEmailAddress == input.RequesterEmailAddress || + (this.RequesterEmailAddress != null && + this.RequesterEmailAddress.Equals(input.RequesterEmailAddress)) + ) && + ( + this.RequestingRedirectUrl == input.RequestingRedirectUrl || + (this.RequestingRedirectUrl != null && + this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl)) + ) && + ( + this.ShowProgressStepper == input.ShowProgressStepper || + this.ShowProgressStepper.Equals(input.ShowProgressStepper) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ); } /// @@ -289,9 +277,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -299,80 +285,57 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "client_id", - Property = "ClientId", - Type = "string", - Value = ClientId, - } - ); - types.Add( - new OpenApiType() - { - Name = "editor_options", - Property = "EditorOptions", - Type = "SubEditorOptions", - Value = EditorOptions, - } - ); - types.Add( - new OpenApiType() - { - Name = "is_for_embedded_signing", - Property = "IsForEmbeddedSigning", - Type = "bool", - Value = IsForEmbeddedSigning, - } - ); - types.Add( - new OpenApiType() - { - Name = "requester_email_address", - Property = "RequesterEmailAddress", - Type = "string", - Value = RequesterEmailAddress, - } - ); - types.Add( - new OpenApiType() - { - Name = "requesting_redirect_url", - Property = "RequestingRedirectUrl", - Type = "string", - Value = RequestingRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "show_progress_stepper", - Property = "ShowProgressStepper", - Type = "bool", - Value = ShowProgressStepper, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); + types.Add(new OpenApiType(){ + Name = "client_id", + Property = "ClientId", + Type = "string", + Value = ClientId, + }); + types.Add(new OpenApiType(){ + Name = "editor_options", + Property = "EditorOptions", + Type = "SubEditorOptions", + Value = EditorOptions, + }); + types.Add(new OpenApiType(){ + Name = "is_for_embedded_signing", + Property = "IsForEmbeddedSigning", + Type = "bool", + Value = IsForEmbeddedSigning, + }); + types.Add(new OpenApiType(){ + Name = "requester_email_address", + Property = "RequesterEmailAddress", + Type = "string", + Value = RequesterEmailAddress, + }); + types.Add(new OpenApiType(){ + Name = "requesting_redirect_url", + Property = "RequestingRedirectUrl", + Type = "string", + Value = RequestingRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "show_progress_stepper", + Property = "ShowProgressStepper", + Type = "bool", + Value = ShowProgressStepper, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs index 89bee93f0..8d7597ae8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -31,16 +31,13 @@ namespace Dropbox.Sign.Model /// [DataContract(Name = "UnclaimedDraftResponse")] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class UnclaimedDraftResponse - : IEquatable, - IValidatableObject + public partial class UnclaimedDraftResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected UnclaimedDraftResponse() { } - /// /// Initializes a new instance of the class. /// @@ -50,15 +47,9 @@ protected UnclaimedDraftResponse() { } /// The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.).. /// When the link expires.. /// Whether this is a test draft. Signature requests made from test drafts have no legal value.. - public UnclaimedDraftResponse( - string signatureRequestId = default(string), - string claimUrl = default(string), - string signingRedirectUrl = default(string), - string requestingRedirectUrl = default(string), - int? expiresAt = default(int?), - bool testMode = default(bool) - ) + public UnclaimedDraftResponse(string signatureRequestId = default(string), string claimUrl = default(string), string signingRedirectUrl = default(string), string requestingRedirectUrl = default(string), int? expiresAt = default(int?), bool testMode = default(bool)) { + this.SignatureRequestId = signatureRequestId; this.ClaimUrl = claimUrl; this.SigningRedirectUrl = signingRedirectUrl; @@ -77,9 +68,7 @@ public static UnclaimedDraftResponse Init(string jsonData) if (obj == null) { - throw new Exception( - "Unable to deserialize JSON to instance of UnclaimedDraftResponse" - ); + throw new Exception("Unable to deserialize JSON to instance of UnclaimedDraftResponse"); } return obj; @@ -91,6 +80,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The ID of the signature request that is represented by this UnclaimedDraft. [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } + /// /// The URL to be used to claim this UnclaimedDraft. @@ -98,6 +88,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The URL to be used to claim this UnclaimedDraft. [DataMember(Name = "claim_url", EmitDefaultValue = true)] public string ClaimUrl { get; set; } + /// /// The URL you want signers redirected to after they successfully sign. @@ -105,6 +96,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The URL you want signers redirected to after they successfully sign. [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } + /// /// The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). @@ -112,6 +104,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } + /// /// When the link expires. @@ -119,6 +112,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } + /// /// Whether this is a test draft. Signature requests made from test drafts have no legal value. @@ -126,6 +120,7 @@ public static UnclaimedDraftResponse Init(string jsonData) /// Whether this is a test draft. Signature requests made from test drafts have no legal value. [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } + /// /// Returns the string presentation of the object @@ -151,10 +146,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -178,36 +170,36 @@ public bool Equals(UnclaimedDraftResponse input) { return false; } - return ( - this.SignatureRequestId == input.SignatureRequestId - || ( - this.SignatureRequestId != null - && this.SignatureRequestId.Equals(input.SignatureRequestId) - ) - ) - && ( - this.ClaimUrl == input.ClaimUrl - || (this.ClaimUrl != null && this.ClaimUrl.Equals(input.ClaimUrl)) - ) - && ( - this.SigningRedirectUrl == input.SigningRedirectUrl - || ( - this.SigningRedirectUrl != null - && this.SigningRedirectUrl.Equals(input.SigningRedirectUrl) - ) - ) - && ( - this.RequestingRedirectUrl == input.RequestingRedirectUrl - || ( - this.RequestingRedirectUrl != null - && this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl) - ) - ) - && ( - this.ExpiresAt == input.ExpiresAt - || (this.ExpiresAt != null && this.ExpiresAt.Equals(input.ExpiresAt)) - ) - && (this.TestMode == input.TestMode || this.TestMode.Equals(input.TestMode)); + return + ( + this.SignatureRequestId == input.SignatureRequestId || + (this.SignatureRequestId != null && + this.SignatureRequestId.Equals(input.SignatureRequestId)) + ) && + ( + this.ClaimUrl == input.ClaimUrl || + (this.ClaimUrl != null && + this.ClaimUrl.Equals(input.ClaimUrl)) + ) && + ( + this.SigningRedirectUrl == input.SigningRedirectUrl || + (this.SigningRedirectUrl != null && + this.SigningRedirectUrl.Equals(input.SigningRedirectUrl)) + ) && + ( + this.RequestingRedirectUrl == input.RequestingRedirectUrl || + (this.RequestingRedirectUrl != null && + this.RequestingRedirectUrl.Equals(input.RequestingRedirectUrl)) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) + ) && + ( + this.TestMode == input.TestMode || + this.TestMode.Equals(input.TestMode) + ); } /// @@ -249,9 +241,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -259,62 +249,45 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "signature_request_id", - Property = "SignatureRequestId", - Type = "string", - Value = SignatureRequestId, - } - ); - types.Add( - new OpenApiType() - { - Name = "claim_url", - Property = "ClaimUrl", - Type = "string", - Value = ClaimUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "signing_redirect_url", - Property = "SigningRedirectUrl", - Type = "string", - Value = SigningRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "requesting_redirect_url", - Property = "RequestingRedirectUrl", - Type = "string", - Value = RequestingRedirectUrl, - } - ); - types.Add( - new OpenApiType() - { - Name = "expires_at", - Property = "ExpiresAt", - Type = "int?", - Value = ExpiresAt, - } - ); - types.Add( - new OpenApiType() - { - Name = "test_mode", - Property = "TestMode", - Type = "bool", - Value = TestMode, - } - ); + types.Add(new OpenApiType(){ + Name = "signature_request_id", + Property = "SignatureRequestId", + Type = "string", + Value = SignatureRequestId, + }); + types.Add(new OpenApiType(){ + Name = "claim_url", + Property = "ClaimUrl", + Type = "string", + Value = ClaimUrl, + }); + types.Add(new OpenApiType(){ + Name = "signing_redirect_url", + Property = "SigningRedirectUrl", + Type = "string", + Value = SigningRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "requesting_redirect_url", + Property = "RequestingRedirectUrl", + Type = "string", + Value = RequestingRedirectUrl, + }); + types.Add(new OpenApiType(){ + Name = "expires_at", + Property = "ExpiresAt", + Type = "int?", + Value = ExpiresAt, + }); + types.Add(new OpenApiType(){ + Name = "test_mode", + Property = "TestMode", + Type = "bool", + Value = TestMode, + }); return types; } } + } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs index 438ab0bb6..b3ddd9a32 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs @@ -13,15 +13,15 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.IO; using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; namespace Dropbox.Sign.Model @@ -38,31 +38,24 @@ public partial class WarningResponse : IEquatable, IValidatable /// [JsonConstructorAttribute] protected WarningResponse() { } - /// /// Initializes a new instance of the class. /// /// Warning message (required). /// Warning name (required). - public WarningResponse( - string warningMsg = default(string), - string warningName = default(string) - ) + public WarningResponse(string warningMsg = default(string), string warningName = default(string)) { + // to ensure "warningMsg" is required (not null) if (warningMsg == null) { - throw new ArgumentNullException( - "warningMsg is a required property for WarningResponse and cannot be null" - ); + throw new ArgumentNullException("warningMsg is a required property for WarningResponse and cannot be null"); } this.WarningMsg = warningMsg; // to ensure "warningName" is required (not null) if (warningName == null) { - throw new ArgumentNullException( - "warningName is a required property for WarningResponse and cannot be null" - ); + throw new ArgumentNullException("warningName is a required property for WarningResponse and cannot be null"); } this.WarningName = warningName; } @@ -89,6 +82,7 @@ public static WarningResponse Init(string jsonData) /// Warning message [DataMember(Name = "warning_msg", IsRequired = true, EmitDefaultValue = true)] public string WarningMsg { get; set; } + /// /// Warning name @@ -96,6 +90,7 @@ public static WarningResponse Init(string jsonData) /// Warning name [DataMember(Name = "warning_name", IsRequired = true, EmitDefaultValue = true)] public string WarningName { get; set; } + /// /// Returns the string presentation of the object @@ -117,10 +112,7 @@ public override string ToString() /// JSON string presentation of the object public virtual string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject( - this, - Newtonsoft.Json.Formatting.Indented - ); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// @@ -144,13 +136,16 @@ public bool Equals(WarningResponse input) { return false; } - return ( - this.WarningMsg == input.WarningMsg - || (this.WarningMsg != null && this.WarningMsg.Equals(input.WarningMsg)) - ) - && ( - this.WarningName == input.WarningName - || (this.WarningName != null && this.WarningName.Equals(input.WarningName)) + return + ( + this.WarningMsg == input.WarningMsg || + (this.WarningMsg != null && + this.WarningMsg.Equals(input.WarningMsg)) + ) && + ( + this.WarningName == input.WarningName || + (this.WarningName != null && + this.WarningName.Equals(input.WarningName)) ); } @@ -180,9 +175,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate( - ValidationContext validationContext - ) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } @@ -190,26 +183,21 @@ ValidationContext validationContext public List GetOpenApiTypes() { var types = new List(); - types.Add( - new OpenApiType() - { - Name = "warning_msg", - Property = "WarningMsg", - Type = "string", - Value = WarningMsg, - } - ); - types.Add( - new OpenApiType() - { - Name = "warning_name", - Property = "WarningName", - Type = "string", - Value = WarningName, - } - ); + types.Add(new OpenApiType(){ + Name = "warning_msg", + Property = "WarningMsg", + Type = "string", + Value = WarningMsg, + }); + types.Add(new OpenApiType(){ + Name = "warning_name", + Property = "WarningName", + Type = "string", + Value = WarningName, + }); return types; } } + } From 877c9a00d3b7c29835a94edb18927f4f160f2ce1 Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Wed, 28 Aug 2024 14:19:30 -0500 Subject: [PATCH 08/10] vendorExtensions.x-ignore-block -> useCustomTemplateCode --- sdks/dotnet/openapi-config.yaml | 1 + .../Model/AccountCreateRequest.cs | 4 - .../Model/AccountCreateResponse.cs | 3 - .../Dropbox.Sign/Model/AccountGetResponse.cs | 2 - .../src/Dropbox.Sign/Model/AccountResponse.cs | 11 --- .../Model/AccountResponseQuotas.cs | 6 -- .../Model/AccountResponseUsage.cs | 1 - .../Model/AccountUpdateRequest.cs | 3 - .../Model/AccountVerifyRequest.cs | 1 - .../Model/AccountVerifyResponse.cs | 2 - .../Model/AccountVerifyResponseAccount.cs | 1 - .../Dropbox.Sign/Model/ApiAppCreateRequest.cs | 7 -- .../Dropbox.Sign/Model/ApiAppGetResponse.cs | 2 - .../Dropbox.Sign/Model/ApiAppListResponse.cs | 3 - .../src/Dropbox.Sign/Model/ApiAppResponse.cs | 10 --- .../Dropbox.Sign/Model/ApiAppResponseOAuth.cs | 4 - .../Model/ApiAppResponseOptions.cs | 1 - .../Model/ApiAppResponseOwnerAccount.cs | 2 - .../ApiAppResponseWhiteLabelingOptions.cs | 14 ---- .../Dropbox.Sign/Model/ApiAppUpdateRequest.cs | 7 -- .../Model/BulkSendJobGetResponse.cs | 4 - ...BulkSendJobGetResponseSignatureRequests.cs | 25 ------ .../Model/BulkSendJobListResponse.cs | 3 - .../Dropbox.Sign/Model/BulkSendJobResponse.cs | 4 - .../Model/BulkSendJobSendResponse.cs | 2 - .../Model/EmbeddedEditUrlRequest.cs | 10 --- .../Model/EmbeddedEditUrlResponse.cs | 2 - .../Model/EmbeddedEditUrlResponseEmbedded.cs | 2 - .../Model/EmbeddedSignUrlResponse.cs | 2 - .../Model/EmbeddedSignUrlResponseEmbedded.cs | 2 - .../src/Dropbox.Sign/Model/ErrorResponse.cs | 1 - .../Dropbox.Sign/Model/ErrorResponseError.cs | 3 - .../Model/EventCallbackRequest.cs | 4 - .../Model/EventCallbackRequestEvent.cs | 3 - .../EventCallbackRequestEventMetadata.cs | 4 - .../Model/FaxLineAddUserRequest.cs | 3 - .../Model/FaxLineAreaCodeGetResponse.cs | 1 - .../Model/FaxLineCreateRequest.cs | 3 - .../Model/FaxLineDeleteRequest.cs | 1 - .../Dropbox.Sign/Model/FaxLineListResponse.cs | 3 - .../Model/FaxLineRemoveUserRequest.cs | 3 - .../src/Dropbox.Sign/Model/FaxLineResponse.cs | 2 - .../Model/FaxLineResponseFaxLine.cs | 4 - .../src/Dropbox.Sign/Model/FileResponse.cs | 2 - .../Dropbox.Sign/Model/FileResponseDataUri.cs | 1 - .../Dropbox.Sign/Model/ListInfoResponse.cs | 4 - .../Model/OAuthTokenGenerateRequest.cs | 5 -- .../Model/OAuthTokenRefreshRequest.cs | 2 - .../Dropbox.Sign/Model/OAuthTokenResponse.cs | 5 -- .../Dropbox.Sign/Model/ReportCreateRequest.cs | 3 - .../Model/ReportCreateResponse.cs | 2 - .../src/Dropbox.Sign/Model/ReportResponse.cs | 4 - ...stBulkCreateEmbeddedWithTemplateRequest.cs | 13 --- ...atureRequestBulkSendWithTemplateRequest.cs | 13 --- .../SignatureRequestCreateEmbeddedRequest.cs | 24 ------ ...equestCreateEmbeddedWithTemplateRequest.cs | 15 ---- .../Model/SignatureRequestGetResponse.cs | 2 - .../Model/SignatureRequestListResponse.cs | 3 - .../Model/SignatureRequestRemindRequest.cs | 2 - .../Model/SignatureRequestResponse.cs | 25 ------ .../SignatureRequestResponseAttachment.cs | 6 -- ...SignatureRequestResponseCustomFieldBase.cs | 5 -- ...atureRequestResponseCustomFieldCheckbox.cs | 2 - ...SignatureRequestResponseCustomFieldText.cs | 2 - .../Model/SignatureRequestResponseDataBase.cs | 5 -- ...gnatureRequestResponseDataValueCheckbox.cs | 2 - ...reRequestResponseDataValueCheckboxMerge.cs | 2 - ...atureRequestResponseDataValueDateSigned.cs | 2 - ...gnatureRequestResponseDataValueDropdown.cs | 2 - ...gnatureRequestResponseDataValueInitials.cs | 2 - .../SignatureRequestResponseDataValueRadio.cs | 2 - ...natureRequestResponseDataValueSignature.cs | 2 - .../SignatureRequestResponseDataValueText.cs | 2 - ...natureRequestResponseDataValueTextMerge.cs | 2 - .../SignatureRequestResponseSignatures.cs | 19 ----- .../Model/SignatureRequestSendRequest.cs | 26 ------ ...SignatureRequestSendWithTemplateRequest.cs | 17 ---- .../Model/SignatureRequestUpdateRequest.cs | 4 - .../src/Dropbox.Sign/Model/SubAttachment.cs | 4 - .../Dropbox.Sign/Model/SubBulkSignerList.cs | 2 - .../Model/SubBulkSignerListCustomField.cs | 2 - sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs | 2 - .../src/Dropbox.Sign/Model/SubCustomField.cs | 4 - .../Dropbox.Sign/Model/SubEditorOptions.cs | 2 - .../Dropbox.Sign/Model/SubFormFieldGroup.cs | 3 - .../Dropbox.Sign/Model/SubFormFieldRule.cs | 4 - .../Model/SubFormFieldRuleAction.cs | 3 - .../Model/SubFormFieldRuleTrigger.cs | 3 - .../Model/SubFormFieldsPerDocumentBase.cs | 11 --- .../Model/SubFormFieldsPerDocumentCheckbox.cs | 3 - .../SubFormFieldsPerDocumentCheckboxMerge.cs | 1 - .../SubFormFieldsPerDocumentDateSigned.cs | 2 - .../Model/SubFormFieldsPerDocumentDropdown.cs | 4 - .../SubFormFieldsPerDocumentHyperlink.cs | 4 - .../Model/SubFormFieldsPerDocumentInitials.cs | 1 - .../Model/SubFormFieldsPerDocumentRadio.cs | 3 - .../SubFormFieldsPerDocumentSignature.cs | 1 - .../Model/SubFormFieldsPerDocumentText.cs | 9 -- .../SubFormFieldsPerDocumentTextMerge.cs | 2 - .../src/Dropbox.Sign/Model/SubMergeField.cs | 1 - .../dotnet/src/Dropbox.Sign/Model/SubOAuth.cs | 2 - .../src/Dropbox.Sign/Model/SubOptions.cs | 1 - .../SubSignatureRequestGroupedSigners.cs | 3 - .../Model/SubSignatureRequestSigner.cs | 5 -- .../SubSignatureRequestTemplateSigner.cs | 5 -- .../Dropbox.Sign/Model/SubSigningOptions.cs | 4 - .../src/Dropbox.Sign/Model/SubTeamResponse.cs | 2 - .../src/Dropbox.Sign/Model/SubTemplateRole.cs | 2 - .../Model/SubUnclaimedDraftSigner.cs | 3 - .../Model/SubUnclaimedDraftTemplateSigner.cs | 3 - .../Model/SubWhiteLabelingOptions.cs | 14 ---- .../Model/TeamAddMemberRequest.cs | 2 - .../Dropbox.Sign/Model/TeamCreateRequest.cs | 1 - .../Dropbox.Sign/Model/TeamGetInfoResponse.cs | 2 - .../src/Dropbox.Sign/Model/TeamGetResponse.cs | 2 - .../Dropbox.Sign/Model/TeamInfoResponse.cs | 5 -- .../Dropbox.Sign/Model/TeamInviteResponse.cs | 6 -- .../Dropbox.Sign/Model/TeamInvitesResponse.cs | 2 - .../Dropbox.Sign/Model/TeamMemberResponse.cs | 3 - .../Dropbox.Sign/Model/TeamMembersResponse.cs | 3 - .../Dropbox.Sign/Model/TeamParentResponse.cs | 2 - .../Model/TeamRemoveMemberRequest.cs | 4 - .../src/Dropbox.Sign/Model/TeamResponse.cs | 4 - .../Model/TeamSubTeamsResponse.cs | 3 - .../Dropbox.Sign/Model/TeamUpdateRequest.cs | 1 - .../Model/TemplateAddUserRequest.cs | 3 - .../TemplateCreateEmbeddedDraftRequest.cs | 25 ------ .../TemplateCreateEmbeddedDraftResponse.cs | 2 - ...lateCreateEmbeddedDraftResponseTemplate.cs | 4 - .../Model/TemplateCreateRequest.cs | 18 ---- .../Model/TemplateCreateResponse.cs | 2 - .../Model/TemplateCreateResponseTemplate.cs | 1 - .../Model/TemplateEditResponse.cs | 1 - .../Dropbox.Sign/Model/TemplateGetResponse.cs | 2 - .../Model/TemplateListResponse.cs | 3 - .../Model/TemplateRemoveUserRequest.cs | 2 - .../Dropbox.Sign/Model/TemplateResponse.cs | 15 ---- .../Model/TemplateResponseAccount.cs | 6 -- .../Model/TemplateResponseAccountQuota.cs | 4 - .../Model/TemplateResponseCCRole.cs | 1 - .../Model/TemplateResponseDocument.cs | 6 -- ...TemplateResponseDocumentCustomFieldBase.cs | 10 --- ...lateResponseDocumentCustomFieldCheckbox.cs | 1 - ...TemplateResponseDocumentCustomFieldText.cs | 5 -- .../TemplateResponseDocumentFieldGroup.cs | 2 - .../TemplateResponseDocumentFieldGroupRule.cs | 2 - .../TemplateResponseDocumentFormFieldBase.cs | 10 --- ...mplateResponseDocumentFormFieldCheckbox.cs | 1 - ...lateResponseDocumentFormFieldDateSigned.cs | 1 - ...mplateResponseDocumentFormFieldDropdown.cs | 1 - ...plateResponseDocumentFormFieldHyperlink.cs | 5 -- ...mplateResponseDocumentFormFieldInitials.cs | 1 - .../TemplateResponseDocumentFormFieldRadio.cs | 1 - ...plateResponseDocumentFormFieldSignature.cs | 1 - .../TemplateResponseDocumentFormFieldText.cs | 5 -- ...TemplateResponseDocumentStaticFieldBase.cs | 10 --- ...lateResponseDocumentStaticFieldCheckbox.cs | 1 - ...teResponseDocumentStaticFieldDateSigned.cs | 1 - ...lateResponseDocumentStaticFieldDropdown.cs | 1 - ...ateResponseDocumentStaticFieldHyperlink.cs | 1 - ...lateResponseDocumentStaticFieldInitials.cs | 1 - ...emplateResponseDocumentStaticFieldRadio.cs | 1 - ...ateResponseDocumentStaticFieldSignature.cs | 1 - ...TemplateResponseDocumentStaticFieldText.cs | 1 - .../TemplateResponseFieldAvgTextLength.cs | 2 - .../Model/TemplateResponseSignerRole.cs | 2 - .../Model/TemplateUpdateFilesRequest.cs | 6 -- .../Model/TemplateUpdateFilesResponse.cs | 1 - .../TemplateUpdateFilesResponseTemplate.cs | 2 - .../UnclaimedDraftCreateEmbeddedRequest.cs | 35 -------- ...dDraftCreateEmbeddedWithTemplateRequest.cs | 30 ------- .../Model/UnclaimedDraftCreateRequest.cs | 23 ------ .../Model/UnclaimedDraftCreateResponse.cs | 2 - .../UnclaimedDraftEditAndResendRequest.cs | 8 -- .../Model/UnclaimedDraftResponse.cs | 6 -- .../src/Dropbox.Sign/Model/WarningResponse.cs | 2 - .../templates/AbstractOpenAPISchema.mustache | 8 +- sdks/dotnet/templates/ApiClient.mustache | 16 ++-- sdks/dotnet/templates/ApiException.mustache | 20 ++--- sdks/dotnet/templates/ClientUtils.mustache | 16 ++-- sdks/dotnet/templates/Configuration.mustache | 20 ++--- sdks/dotnet/templates/README.mustache | 28 +++---- sdks/dotnet/templates/Solution.mustache | 12 +-- sdks/dotnet/templates/TestProject.mustache | 8 +- sdks/dotnet/templates/api.mustache | 42 ++++++---- sdks/dotnet/templates/api_doc.mustache | 8 +- sdks/dotnet/templates/gitignore.mustache | 8 +- sdks/dotnet/templates/modelGeneric.mustache | 82 +++++++++---------- sdks/dotnet/templates/model_doc.mustache | 16 ++-- .../dotnet/templates/netcore_project.mustache | 8 +- sdks/dotnet/templates/validatable.mustache | 8 +- 191 files changed, 156 insertions(+), 982 deletions(-) diff --git a/sdks/dotnet/openapi-config.yaml b/sdks/dotnet/openapi-config.yaml index aa7c258d4..56fc3cbba 100644 --- a/sdks/dotnet/openapi-config.yaml +++ b/sdks/dotnet/openapi-config.yaml @@ -13,6 +13,7 @@ additionalProperties: targetFramework: net6.0 packageGuid: "{F8C8232D-7020-4603-8E04-18D060AE530B}" legacyDiscriminatorBehavior: true + useCustomTemplateCode: true files: EventCallbackHelper.cs: templateType: SupportingFiles diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs index 95b17897d..f144c0e77 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs @@ -82,7 +82,6 @@ public static AccountCreateRequest Init(string jsonData) [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) /// @@ -90,7 +89,6 @@ public static AccountCreateRequest Init(string jsonData) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Used when creating a new account with OAuth authorization. See [OAuth 2.0 Authorization](https://app.hellosign.com/api/oauthWalkthrough#OAuthAuthorization) /// @@ -98,7 +96,6 @@ public static AccountCreateRequest Init(string jsonData) [DataMember(Name = "client_secret", EmitDefaultValue = true)] public string ClientSecret { get; set; } - /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. /// @@ -106,7 +103,6 @@ public static AccountCreateRequest Init(string jsonData) [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs index a915bb715..10762e4d3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs @@ -74,14 +74,12 @@ public static AccountCreateResponse Init(string jsonData) [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } - /// /// Gets or Sets OauthData /// [DataMember(Name = "oauth_data", EmitDefaultValue = true)] public OAuthTokenResponse OauthData { get; set; } - /// /// A list of warnings. /// @@ -89,7 +87,6 @@ public static AccountCreateResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs index 069b0cce7..a72b7ccac 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs @@ -72,7 +72,6 @@ public static AccountGetResponse Init(string jsonData) [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static AccountGetResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs index 45950883d..1cfda879b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs @@ -91,7 +91,6 @@ public static AccountResponse Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The email address associated with the Account. /// @@ -99,7 +98,6 @@ public static AccountResponse Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns `true` if the user has been locked out of their account by a team admin. /// @@ -107,7 +105,6 @@ public static AccountResponse Init(string jsonData) [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool IsLocked { get; set; } - /// /// Returns `true` if the user has a paid Dropbox Sign account. /// @@ -115,7 +112,6 @@ public static AccountResponse Init(string jsonData) [DataMember(Name = "is_paid_hs", EmitDefaultValue = true)] public bool IsPaidHs { get; set; } - /// /// Returns `true` if the user has a paid HelloFax account. /// @@ -123,14 +119,12 @@ public static AccountResponse Init(string jsonData) [DataMember(Name = "is_paid_hf", EmitDefaultValue = true)] public bool IsPaidHf { get; set; } - /// /// Gets or Sets Quotas /// [DataMember(Name = "quotas", EmitDefaultValue = true)] public AccountResponseQuotas Quotas { get; set; } - /// /// The URL that Dropbox Sign events will `POST` to. /// @@ -138,7 +132,6 @@ public static AccountResponse Init(string jsonData) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// The membership role for the team. /// @@ -146,7 +139,6 @@ public static AccountResponse Init(string jsonData) [DataMember(Name = "role_code", EmitDefaultValue = true)] public string RoleCode { get; set; } - /// /// The id of the team account belongs to. /// @@ -154,7 +146,6 @@ public static AccountResponse Init(string jsonData) [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. /// @@ -162,14 +153,12 @@ public static AccountResponse Init(string jsonData) [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } - /// /// Gets or Sets Usage /// [DataMember(Name = "usage", EmitDefaultValue = true)] public AccountResponseUsage Usage { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs index 56ad16441..0faf22c7c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs @@ -81,7 +81,6 @@ public static AccountResponseQuotas Init(string jsonData) [DataMember(Name = "api_signature_requests_left", EmitDefaultValue = true)] public int? ApiSignatureRequestsLeft { get; set; } - /// /// Signature requests remaining. /// @@ -89,7 +88,6 @@ public static AccountResponseQuotas Init(string jsonData) [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int? DocumentsLeft { get; set; } - /// /// Total API templates allowed. /// @@ -97,7 +95,6 @@ public static AccountResponseQuotas Init(string jsonData) [DataMember(Name = "templates_total", EmitDefaultValue = true)] public int? TemplatesTotal { get; set; } - /// /// API templates remaining. /// @@ -105,7 +102,6 @@ public static AccountResponseQuotas Init(string jsonData) [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int? TemplatesLeft { get; set; } - /// /// SMS verifications remaining. /// @@ -113,7 +109,6 @@ public static AccountResponseQuotas Init(string jsonData) [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int? SmsVerificationsLeft { get; set; } - /// /// Number of fax pages left /// @@ -121,7 +116,6 @@ public static AccountResponseQuotas Init(string jsonData) [DataMember(Name = "num_fax_pages_left", EmitDefaultValue = true)] public int? NumFaxPagesLeft { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs index 7da9c698a..71bb2c723 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs @@ -71,7 +71,6 @@ public static AccountResponseUsage Init(string jsonData) [DataMember(Name = "fax_pages_sent", EmitDefaultValue = true)] public int? FaxPagesSent { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs index 8d5e501f7..c2bac8157 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs @@ -75,7 +75,6 @@ public static AccountUpdateRequest Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The URL that Dropbox Sign should POST events to. /// @@ -83,7 +82,6 @@ public static AccountUpdateRequest Init(string jsonData) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. /// @@ -91,7 +89,6 @@ public static AccountUpdateRequest Init(string jsonData) [DataMember(Name = "locale", EmitDefaultValue = true)] public string Locale { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs index ffa2d3fba..d181679ee 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs @@ -76,7 +76,6 @@ public static AccountVerifyRequest Init(string jsonData) [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs index 53cd768c8..cfa84d3df 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs @@ -72,7 +72,6 @@ public static AccountVerifyResponse Init(string jsonData) [DataMember(Name = "account", EmitDefaultValue = true)] public AccountVerifyResponseAccount Account { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static AccountVerifyResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs index 5b38e8ce5..e81120192 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs @@ -71,7 +71,6 @@ public static AccountVerifyResponseAccount Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs index 8e6d4818e..8eb05ae73 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs @@ -93,7 +93,6 @@ public static ApiAppCreateRequest Init(string jsonData) [DataMember(Name = "domains", IsRequired = true, EmitDefaultValue = true)] public List Domains { get; set; } - /// /// The name you want to assign to the ApiApp. /// @@ -101,7 +100,6 @@ public static ApiAppCreateRequest Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The URL at which the ApiApp should receive event callbacks. /// @@ -109,7 +107,6 @@ public static ApiAppCreateRequest Init(string jsonData) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) /// @@ -117,28 +114,24 @@ public static ApiAppCreateRequest Init(string jsonData) [DataMember(Name = "custom_logo_file", EmitDefaultValue = true)] public System.IO.Stream CustomLogoFile { get; set; } - /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public SubOAuth Oauth { get; set; } - /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public SubOptions Options { get; set; } - /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public SubWhiteLabelingOptions WhiteLabelingOptions { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs index 8489b05b2..126b5ddd0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs @@ -72,7 +72,6 @@ public static ApiAppGetResponse Init(string jsonData) [DataMember(Name = "api_app", EmitDefaultValue = true)] public ApiAppResponse ApiApp { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static ApiAppGetResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs index 10fce699c..72e6c7a32 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs @@ -75,14 +75,12 @@ public static ApiAppListResponse Init(string jsonData) [DataMember(Name = "api_apps", EmitDefaultValue = true)] public List ApiApps { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// A list of warnings. /// @@ -90,7 +88,6 @@ public static ApiAppListResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs index a27044b2f..0908b7853 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs @@ -89,7 +89,6 @@ public static ApiAppResponse Init(string jsonData) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// The app's client id /// @@ -97,7 +96,6 @@ public static ApiAppResponse Init(string jsonData) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// The time that the app was created /// @@ -105,7 +103,6 @@ public static ApiAppResponse Init(string jsonData) [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// The domain name(s) associated with the app /// @@ -113,7 +110,6 @@ public static ApiAppResponse Init(string jsonData) [DataMember(Name = "domains", EmitDefaultValue = true)] public List Domains { get; set; } - /// /// The name of the app /// @@ -121,7 +117,6 @@ public static ApiAppResponse Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Boolean to indicate if the app has been approved /// @@ -129,35 +124,30 @@ public static ApiAppResponse Init(string jsonData) [DataMember(Name = "is_approved", EmitDefaultValue = true)] public bool IsApproved { get; set; } - /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public ApiAppResponseOAuth Oauth { get; set; } - /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public ApiAppResponseOptions Options { get; set; } - /// /// Gets or Sets OwnerAccount /// [DataMember(Name = "owner_account", EmitDefaultValue = true)] public ApiAppResponseOwnerAccount OwnerAccount { get; set; } - /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public ApiAppResponseWhiteLabelingOptions WhiteLabelingOptions { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs index 70695cab8..f6bbe470a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs @@ -77,7 +77,6 @@ public static ApiAppResponseOAuth Init(string jsonData) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// The app's OAuth secret, or null if the app does not belong to user. /// @@ -85,7 +84,6 @@ public static ApiAppResponseOAuth Init(string jsonData) [DataMember(Name = "secret", EmitDefaultValue = true)] public string Secret { get; set; } - /// /// Array of OAuth scopes used by the app. /// @@ -93,7 +91,6 @@ public static ApiAppResponseOAuth Init(string jsonData) [DataMember(Name = "scopes", EmitDefaultValue = true)] public List Scopes { get; set; } - /// /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. /// @@ -101,7 +98,6 @@ public static ApiAppResponseOAuth Init(string jsonData) [DataMember(Name = "charges_users", EmitDefaultValue = true)] public bool ChargesUsers { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs index b662fbe2a..acebc4624 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs @@ -71,7 +71,6 @@ public static ApiAppResponseOptions Init(string jsonData) [DataMember(Name = "can_insert_everywhere", EmitDefaultValue = true)] public bool CanInsertEverywhere { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs index 7f2adb90f..8fbd13e7a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs @@ -73,7 +73,6 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The owner account's email address /// @@ -81,7 +80,6 @@ public static ApiAppResponseOwnerAccount Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs index 9f53b68ed..96615b38f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs @@ -96,98 +96,84 @@ public static ApiAppResponseWhiteLabelingOptions Init(string jsonData) [DataMember(Name = "header_background_color", EmitDefaultValue = true)] public string HeaderBackgroundColor { get; set; } - /// /// Gets or Sets LegalVersion /// [DataMember(Name = "legal_version", EmitDefaultValue = true)] public string LegalVersion { get; set; } - /// /// Gets or Sets LinkColor /// [DataMember(Name = "link_color", EmitDefaultValue = true)] public string LinkColor { get; set; } - /// /// Gets or Sets PageBackgroundColor /// [DataMember(Name = "page_background_color", EmitDefaultValue = true)] public string PageBackgroundColor { get; set; } - /// /// Gets or Sets PrimaryButtonColor /// [DataMember(Name = "primary_button_color", EmitDefaultValue = true)] public string PrimaryButtonColor { get; set; } - /// /// Gets or Sets PrimaryButtonColorHover /// [DataMember(Name = "primary_button_color_hover", EmitDefaultValue = true)] public string PrimaryButtonColorHover { get; set; } - /// /// Gets or Sets PrimaryButtonTextColor /// [DataMember(Name = "primary_button_text_color", EmitDefaultValue = true)] public string PrimaryButtonTextColor { get; set; } - /// /// Gets or Sets PrimaryButtonTextColorHover /// [DataMember(Name = "primary_button_text_color_hover", EmitDefaultValue = true)] public string PrimaryButtonTextColorHover { get; set; } - /// /// Gets or Sets SecondaryButtonColor /// [DataMember(Name = "secondary_button_color", EmitDefaultValue = true)] public string SecondaryButtonColor { get; set; } - /// /// Gets or Sets SecondaryButtonColorHover /// [DataMember(Name = "secondary_button_color_hover", EmitDefaultValue = true)] public string SecondaryButtonColorHover { get; set; } - /// /// Gets or Sets SecondaryButtonTextColor /// [DataMember(Name = "secondary_button_text_color", EmitDefaultValue = true)] public string SecondaryButtonTextColor { get; set; } - /// /// Gets or Sets SecondaryButtonTextColorHover /// [DataMember(Name = "secondary_button_text_color_hover", EmitDefaultValue = true)] public string SecondaryButtonTextColorHover { get; set; } - /// /// Gets or Sets TextColor1 /// [DataMember(Name = "text_color1", EmitDefaultValue = true)] public string TextColor1 { get; set; } - /// /// Gets or Sets TextColor2 /// [DataMember(Name = "text_color2", EmitDefaultValue = true)] public string TextColor2 { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs index 12c9ae00e..5dc0f8bc1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs @@ -83,7 +83,6 @@ public static ApiAppUpdateRequest Init(string jsonData) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// An image file to use as a custom logo in embedded contexts. (Only applies to some API plans) /// @@ -91,7 +90,6 @@ public static ApiAppUpdateRequest Init(string jsonData) [DataMember(Name = "custom_logo_file", EmitDefaultValue = true)] public System.IO.Stream CustomLogoFile { get; set; } - /// /// The domain names the ApiApp will be associated with. /// @@ -99,7 +97,6 @@ public static ApiAppUpdateRequest Init(string jsonData) [DataMember(Name = "domains", EmitDefaultValue = true)] public List Domains { get; set; } - /// /// The name you want to assign to the ApiApp. /// @@ -107,28 +104,24 @@ public static ApiAppUpdateRequest Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Gets or Sets Oauth /// [DataMember(Name = "oauth", EmitDefaultValue = true)] public SubOAuth Oauth { get; set; } - /// /// Gets or Sets Options /// [DataMember(Name = "options", EmitDefaultValue = true)] public SubOptions Options { get; set; } - /// /// Gets or Sets WhiteLabelingOptions /// [DataMember(Name = "white_labeling_options", EmitDefaultValue = true)] public SubWhiteLabelingOptions WhiteLabelingOptions { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs index 55bac37aa..622570a69 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs @@ -76,14 +76,12 @@ public static BulkSendJobGetResponse Init(string jsonData) [DataMember(Name = "bulk_send_job", EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// Contains information about the Signature Requests sent in bulk. /// @@ -91,7 +89,6 @@ public static BulkSendJobGetResponse Init(string jsonData) [DataMember(Name = "signature_requests", EmitDefaultValue = true)] public List SignatureRequests { get; set; } - /// /// A list of warnings. /// @@ -99,7 +96,6 @@ public static BulkSendJobGetResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index de4b96fe1..a21015b96 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -120,7 +120,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool? TestMode { get; set; } - /// /// The id of the SignatureRequest. /// @@ -128,7 +127,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } - /// /// The email address of the initiator of the SignatureRequest. /// @@ -136,7 +134,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// The title the specified Account uses for the SignatureRequest. /// @@ -144,7 +141,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Default Label for account. /// @@ -152,7 +148,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "original_title", EmitDefaultValue = true)] public string OriginalTitle { get; set; } - /// /// The subject in the email that was initially sent to the signers. /// @@ -160,7 +155,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// The custom message in the email that was initially sent to the signers. /// @@ -168,7 +162,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// The metadata attached to the signature request. /// @@ -176,7 +169,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } - /// /// Time the signature request was created. /// @@ -184,7 +176,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. /// @@ -192,7 +183,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Whether or not the SignatureRequest has been fully executed by all signers. /// @@ -200,7 +190,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "is_complete", EmitDefaultValue = true)] public bool IsComplete { get; set; } - /// /// Whether or not the SignatureRequest has been declined by a signer. /// @@ -208,7 +197,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "is_declined", EmitDefaultValue = true)] public bool IsDeclined { get; set; } - /// /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). /// @@ -216,7 +204,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "has_error", EmitDefaultValue = true)] public bool HasError { get; set; } - /// /// The URL where a copy of the request's documents can be downloaded. /// @@ -224,7 +211,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "files_url", EmitDefaultValue = true)] public string FilesUrl { get; set; } - /// /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. /// @@ -232,7 +218,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "signing_url", EmitDefaultValue = true)] public string SigningUrl { get; set; } - /// /// The URL where the requester and the signers can view the current status of the SignatureRequest. /// @@ -240,7 +225,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "details_url", EmitDefaultValue = true)] public string DetailsUrl { get; set; } - /// /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. /// @@ -248,7 +232,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// The URL you want the signer redirected to after they successfully sign. /// @@ -256,7 +239,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The path where the completed document can be downloaded /// @@ -264,7 +246,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] public string FinalCopyUri { get; set; } - /// /// Templates IDs used in this SignatureRequest (if any). /// @@ -272,7 +253,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "template_ids", EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` /// @@ -280,7 +260,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Signer attachments. /// @@ -288,7 +267,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. /// @@ -296,7 +274,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "response_data", EmitDefaultValue = true)] public List ResponseData { get; set; } - /// /// An array of signature objects, 1 for each signer. /// @@ -304,7 +281,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "signatures", EmitDefaultValue = true)] public List Signatures { get; set; } - /// /// The id of the BulkSendJob. /// @@ -312,7 +288,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs index 3494c14c8..8850eca87 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs @@ -75,14 +75,12 @@ public static BulkSendJobListResponse Init(string jsonData) [DataMember(Name = "bulk_send_jobs", EmitDefaultValue = true)] public List BulkSendJobs { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// A list of warnings. /// @@ -90,7 +88,6 @@ public static BulkSendJobListResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs index e61d3015a..d3a6e09d7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs @@ -77,7 +77,6 @@ public static BulkSendJobResponse Init(string jsonData) [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } - /// /// The total amount of Signature Requests queued for sending. /// @@ -85,7 +84,6 @@ public static BulkSendJobResponse Init(string jsonData) [DataMember(Name = "total", EmitDefaultValue = true)] public int Total { get; set; } - /// /// True if you are the owner of this BulkSendJob, false if it's been shared with you by a team member. /// @@ -93,7 +91,6 @@ public static BulkSendJobResponse Init(string jsonData) [DataMember(Name = "is_creator", EmitDefaultValue = true)] public bool IsCreator { get; set; } - /// /// Time that the BulkSendJob was created. /// @@ -101,7 +98,6 @@ public static BulkSendJobResponse Init(string jsonData) [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs index 48677a1c9..30e659a7c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs @@ -72,7 +72,6 @@ public static BulkSendJobSendResponse Init(string jsonData) [DataMember(Name = "bulk_send_job", EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static BulkSendJobSendResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs index 7854b27ec..283635f65 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs @@ -89,7 +89,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) [DataMember(Name = "allow_edit_ccs", EmitDefaultValue = true)] public bool AllowEditCcs { get; set; } - /// /// The CC roles that must be assigned when using the template to send a signature request. To remove all CC roles, pass in a single role with no name. For use in a POST request. /// @@ -97,14 +96,12 @@ public static EmbeddedEditUrlRequest Init(string jsonData) [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// Provide users the ability to review/edit the template signer roles. /// @@ -112,7 +109,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } - /// /// Provide users the ability to review/edit the template subject and message. /// @@ -120,7 +116,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } - /// /// Add additional merge fields to the template, which can be used used to pre-fill data by passing values into signature requests made with that template. Remove all merge fields on the template by passing an empty array `[]`. /// @@ -128,7 +123,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } - /// /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). **NOTE:** This parameter overwrites `show_preview=true` (if set). /// @@ -136,7 +130,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) [DataMember(Name = "preview_only", EmitDefaultValue = true)] public bool PreviewOnly { get; set; } - /// /// This allows the requester to enable the editor/preview experience. /// @@ -144,7 +137,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. /// @@ -152,7 +144,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. /// @@ -160,7 +151,6 @@ public static EmbeddedEditUrlRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs index 9b6ac92d8..6bc969663 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs @@ -72,7 +72,6 @@ public static EmbeddedEditUrlResponse Init(string jsonData) [DataMember(Name = "embedded", EmitDefaultValue = true)] public EmbeddedEditUrlResponseEmbedded Embedded { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static EmbeddedEditUrlResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs index 26da981f8..6bb67f8a9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs @@ -73,7 +73,6 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) [DataMember(Name = "edit_url", EmitDefaultValue = true)] public string EditUrl { get; set; } - /// /// The specific time that the the `edit_url` link expires, in epoch. /// @@ -81,7 +80,6 @@ public static EmbeddedEditUrlResponseEmbedded Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs index df9fb1ac6..e0a9a78b8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs @@ -72,7 +72,6 @@ public static EmbeddedSignUrlResponse Init(string jsonData) [DataMember(Name = "embedded", EmitDefaultValue = true)] public EmbeddedSignUrlResponseEmbedded Embedded { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static EmbeddedSignUrlResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs index e87b0268d..7480b4bde 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs @@ -73,7 +73,6 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) [DataMember(Name = "sign_url", EmitDefaultValue = true)] public string SignUrl { get; set; } - /// /// The specific time that the the `sign_url` link expires, in epoch. /// @@ -81,7 +80,6 @@ public static EmbeddedSignUrlResponseEmbedded Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs index 01adc8eee..c3e1dac84 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs @@ -75,7 +75,6 @@ public static ErrorResponse Init(string jsonData) [DataMember(Name = "error", IsRequired = true, EmitDefaultValue = true)] public ErrorResponseError Error { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs index 6cb22d019..d05f81365 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs @@ -85,7 +85,6 @@ public static ErrorResponseError Init(string jsonData) [DataMember(Name = "error_msg", IsRequired = true, EmitDefaultValue = true)] public string ErrorMsg { get; set; } - /// /// Name of the error. /// @@ -93,7 +92,6 @@ public static ErrorResponseError Init(string jsonData) [DataMember(Name = "error_name", IsRequired = true, EmitDefaultValue = true)] public string ErrorName { get; set; } - /// /// Path at which an error occurred. /// @@ -101,7 +99,6 @@ public static ErrorResponseError Init(string jsonData) [DataMember(Name = "error_path", EmitDefaultValue = true)] public string ErrorPath { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs index e293104a0..a524a7503 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs @@ -81,28 +81,24 @@ public static EventCallbackRequest Init(string jsonData) [DataMember(Name = "event", IsRequired = true, EmitDefaultValue = true)] public EventCallbackRequestEvent Event { get; set; } - /// /// Gets or Sets Account /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountResponse Account { get; set; } - /// /// Gets or Sets SignatureRequest /// [DataMember(Name = "signature_request", EmitDefaultValue = true)] public SignatureRequestResponse SignatureRequest { get; set; } - /// /// Gets or Sets Template /// [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateResponse Template { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs index 8208b889c..7e448ac55 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs @@ -240,7 +240,6 @@ public static EventCallbackRequestEvent Init(string jsonData) [DataMember(Name = "event_time", IsRequired = true, EmitDefaultValue = true)] public string EventTime { get; set; } - /// /// Generated hash used to verify source of event data. /// @@ -248,14 +247,12 @@ public static EventCallbackRequestEvent Init(string jsonData) [DataMember(Name = "event_hash", IsRequired = true, EmitDefaultValue = true)] public string EventHash { get; set; } - /// /// Gets or Sets EventMetadata /// [DataMember(Name = "event_metadata", EmitDefaultValue = true)] public EventCallbackRequestEventMetadata EventMetadata { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs index e8b39f5d8..3ed85d72e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs @@ -77,7 +77,6 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) [DataMember(Name = "related_signature_id", EmitDefaultValue = true)] public string RelatedSignatureId { get; set; } - /// /// Account ID the event was reported for. /// @@ -85,7 +84,6 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) [DataMember(Name = "reported_for_account_id", EmitDefaultValue = true)] public string ReportedForAccountId { get; set; } - /// /// App ID the event was reported for. /// @@ -93,7 +91,6 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) [DataMember(Name = "reported_for_app_id", EmitDefaultValue = true)] public string ReportedForAppId { get; set; } - /// /// Message about a declined or failed (due to error) signature flow. /// @@ -101,7 +98,6 @@ public static EventCallbackRequestEventMetadata Init(string jsonData) [DataMember(Name = "event_message", EmitDefaultValue = true)] public string EventMessage { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs index bb774265a..8c9f5efdf 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs @@ -80,7 +80,6 @@ public static FaxLineAddUserRequest Init(string jsonData) [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } - /// /// Account ID /// @@ -89,7 +88,6 @@ public static FaxLineAddUserRequest Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// Email address /// @@ -97,7 +95,6 @@ public static FaxLineAddUserRequest Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs index 5136ad865..eefdafbfe 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs @@ -70,7 +70,6 @@ public static FaxLineAreaCodeGetResponse Init(string jsonData) [DataMember(Name = "area_codes", EmitDefaultValue = true)] public List AreaCodes { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs index 42717e772..ca25e3fb1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs @@ -110,7 +110,6 @@ public static FaxLineCreateRequest Init(string jsonData) [DataMember(Name = "area_code", IsRequired = true, EmitDefaultValue = true)] public int AreaCode { get; set; } - /// /// City /// @@ -118,7 +117,6 @@ public static FaxLineCreateRequest Init(string jsonData) [DataMember(Name = "city", EmitDefaultValue = true)] public string City { get; set; } - /// /// Account ID /// @@ -127,7 +125,6 @@ public static FaxLineCreateRequest Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs index 576797ef7..9a449a957 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs @@ -76,7 +76,6 @@ public static FaxLineDeleteRequest Init(string jsonData) [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs index 383e9a7e7..43fc52c98 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs @@ -74,21 +74,18 @@ public static FaxLineListResponse Init(string jsonData) [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// Gets or Sets FaxLines /// [DataMember(Name = "fax_lines", EmitDefaultValue = true)] public List FaxLines { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public WarningResponse Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs index 49ef2d4b8..0a1b4074b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs @@ -80,7 +80,6 @@ public static FaxLineRemoveUserRequest Init(string jsonData) [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } - /// /// Account ID /// @@ -89,7 +88,6 @@ public static FaxLineRemoveUserRequest Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// Email address /// @@ -97,7 +95,6 @@ public static FaxLineRemoveUserRequest Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs index a281d57a1..f9aa39629 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs @@ -72,14 +72,12 @@ public static FaxLineResponse Init(string jsonData) [DataMember(Name = "fax_line", EmitDefaultValue = true)] public FaxLineResponseFaxLine FaxLine { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public WarningResponse Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs index 52a0b0ca0..d9f1b35be 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs @@ -77,7 +77,6 @@ public static FaxLineResponseFaxLine Init(string jsonData) [DataMember(Name = "number", EmitDefaultValue = true)] public string Number { get; set; } - /// /// Created at /// @@ -85,7 +84,6 @@ public static FaxLineResponseFaxLine Init(string jsonData) [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// Updated at /// @@ -93,14 +91,12 @@ public static FaxLineResponseFaxLine Init(string jsonData) [DataMember(Name = "updated_at", EmitDefaultValue = true)] public int UpdatedAt { get; set; } - /// /// Gets or Sets Accounts /// [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs index e8381f689..c2bed559e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs @@ -73,7 +73,6 @@ public static FileResponse Init(string jsonData) [DataMember(Name = "file_url", EmitDefaultValue = true)] public string FileUrl { get; set; } - /// /// When the link expires. /// @@ -81,7 +80,6 @@ public static FileResponse Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs index 7d359e8c5..bf5a2bcd8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs @@ -71,7 +71,6 @@ public static FileResponseDataUri Init(string jsonData) [DataMember(Name = "data_uri", EmitDefaultValue = true)] public string DataUri { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs index 8597e03a9..eecfead1c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs @@ -77,7 +77,6 @@ public static ListInfoResponse Init(string jsonData) [DataMember(Name = "num_pages", EmitDefaultValue = true)] public int NumPages { get; set; } - /// /// Total number of objects available. /// @@ -85,7 +84,6 @@ public static ListInfoResponse Init(string jsonData) [DataMember(Name = "num_results", EmitDefaultValue = true)] public int? NumResults { get; set; } - /// /// Number of the page being returned. /// @@ -93,7 +91,6 @@ public static ListInfoResponse Init(string jsonData) [DataMember(Name = "page", EmitDefaultValue = true)] public int Page { get; set; } - /// /// Objects returned per page. /// @@ -101,7 +98,6 @@ public static ListInfoResponse Init(string jsonData) [DataMember(Name = "page_size", EmitDefaultValue = true)] public int PageSize { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs index 872a93b07..d6b7b632b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs @@ -104,7 +104,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// The secret token of your app. /// @@ -112,7 +111,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) [DataMember(Name = "client_secret", IsRequired = true, EmitDefaultValue = true)] public string ClientSecret { get; set; } - /// /// The code passed to your callback when the user granted access. /// @@ -120,7 +118,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] public string Code { get; set; } - /// /// When generating a new token use `authorization_code`. /// @@ -128,7 +125,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) [DataMember(Name = "grant_type", IsRequired = true, EmitDefaultValue = true)] public string GrantType { get; set; } - /// /// Same as the state you specified earlier. /// @@ -136,7 +132,6 @@ public static OAuthTokenGenerateRequest Init(string jsonData) [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] public string State { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs index 805664337..7313f2b53 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs @@ -83,7 +83,6 @@ public static OAuthTokenRefreshRequest Init(string jsonData) [DataMember(Name = "grant_type", IsRequired = true, EmitDefaultValue = true)] public string GrantType { get; set; } - /// /// The token provided when you got the expired access token. /// @@ -91,7 +90,6 @@ public static OAuthTokenRefreshRequest Init(string jsonData) [DataMember(Name = "refresh_token", IsRequired = true, EmitDefaultValue = true)] public string RefreshToken { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs index 785fe808f..57886dc2e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs @@ -78,21 +78,18 @@ public static OAuthTokenResponse Init(string jsonData) [DataMember(Name = "access_token", EmitDefaultValue = true)] public string AccessToken { get; set; } - /// /// Gets or Sets TokenType /// [DataMember(Name = "token_type", EmitDefaultValue = true)] public string TokenType { get; set; } - /// /// Gets or Sets RefreshToken /// [DataMember(Name = "refresh_token", EmitDefaultValue = true)] public string RefreshToken { get; set; } - /// /// Number of seconds until the `access_token` expires. Uses epoch time. /// @@ -100,14 +97,12 @@ public static OAuthTokenResponse Init(string jsonData) [DataMember(Name = "expires_in", EmitDefaultValue = true)] public int ExpiresIn { get; set; } - /// /// Gets or Sets State /// [DataMember(Name = "state", EmitDefaultValue = true)] public string State { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs index 8c0f5945f..28f4f14de 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs @@ -109,7 +109,6 @@ public static ReportCreateRequest Init(string jsonData) [DataMember(Name = "end_date", IsRequired = true, EmitDefaultValue = true)] public string EndDate { get; set; } - /// /// The type(s) of the report you are requesting. Allowed values are `user_activity` and `document_status`. User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). /// @@ -117,7 +116,6 @@ public static ReportCreateRequest Init(string jsonData) [DataMember(Name = "report_type", IsRequired = true, EmitDefaultValue = true)] public List ReportType { get; set; } - /// /// The (inclusive) start date for the report data in `MM/DD/YYYY` format. /// @@ -125,7 +123,6 @@ public static ReportCreateRequest Init(string jsonData) [DataMember(Name = "start_date", IsRequired = true, EmitDefaultValue = true)] public string StartDate { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs index e361b4ecb..f40b39d38 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs @@ -72,7 +72,6 @@ public static ReportCreateResponse Init(string jsonData) [DataMember(Name = "report", EmitDefaultValue = true)] public ReportResponse Report { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static ReportCreateResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs index 02759c3ff..27602cbba 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs @@ -96,7 +96,6 @@ public static ReportResponse Init(string jsonData) [DataMember(Name = "success", EmitDefaultValue = true)] public string Success { get; set; } - /// /// The (inclusive) start date for the report data in MM/DD/YYYY format. /// @@ -104,7 +103,6 @@ public static ReportResponse Init(string jsonData) [DataMember(Name = "start_date", EmitDefaultValue = true)] public string StartDate { get; set; } - /// /// The (inclusive) end date for the report data in MM/DD/YYYY format. /// @@ -112,7 +110,6 @@ public static ReportResponse Init(string jsonData) [DataMember(Name = "end_date", EmitDefaultValue = true)] public string EndDate { get; set; } - /// /// The type(s) of the report you are requesting. Allowed values are \"user_activity\" and \"document_status\". User activity reports contain list of all users and their activity during the specified date range. Document status report contain a list of signature requests created in the specified time range (and their status). /// @@ -120,7 +117,6 @@ public static ReportResponse Init(string jsonData) [DataMember(Name = "report_type", EmitDefaultValue = true)] public List ReportType { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs index 65fa89808..6a4ca8ed9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs @@ -105,7 +105,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// Client id of the app you're using to create this embedded signature request. Used for security purposes. /// @@ -113,7 +112,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` /// @@ -121,7 +119,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "signer_file", EmitDefaultValue = true)] public System.IO.Stream SignerFile { get; set; } - /// /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. /// @@ -129,7 +126,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "signer_list", EmitDefaultValue = true)] public List SignerList { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. /// @@ -137,7 +133,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. /// @@ -145,7 +140,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. /// @@ -153,7 +147,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// The custom message in the email that will be sent to the signers. /// @@ -161,7 +154,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -169,7 +161,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. /// @@ -177,7 +168,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. /// @@ -185,7 +175,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. /// @@ -193,7 +182,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. /// @@ -201,7 +189,6 @@ public static SignatureRequestBulkCreateEmbeddedWithTemplateRequest Init(string [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs index 7542ae15d..68fd8233b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs @@ -100,7 +100,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ``` /// @@ -108,7 +107,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "signer_file", EmitDefaultValue = true)] public System.IO.Stream SignerFile { get; set; } - /// /// `signer_list` is an array defining values and options for signer fields. Required unless a `signer_file` is used, you may not use both. /// @@ -116,7 +114,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "signer_list", EmitDefaultValue = true)] public List SignerList { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. /// @@ -124,7 +121,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. /// @@ -132,7 +128,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. /// @@ -140,7 +135,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. /// @@ -148,7 +142,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// The custom message in the email that will be sent to the signers. /// @@ -156,7 +149,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -164,7 +156,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. /// @@ -172,7 +163,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. /// @@ -180,7 +170,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. /// @@ -188,7 +177,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. /// @@ -196,7 +184,6 @@ public static SignatureRequestBulkSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs index bfe4e51d3..1be143123 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs @@ -122,7 +122,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -130,7 +129,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -138,7 +136,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. /// @@ -146,7 +143,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. /// @@ -154,7 +150,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "grouped_signers", EmitDefaultValue = true)] public List GroupedSigners { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. /// @@ -162,7 +157,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan. /// @@ -170,7 +164,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments /// @@ -178,7 +171,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The email addresses that should be CCed. /// @@ -186,7 +178,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. /// @@ -194,14 +185,12 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. /// @@ -209,7 +198,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. /// @@ -217,7 +205,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` /// @@ -225,7 +212,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. /// @@ -233,7 +219,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } - /// /// The custom message in the email that will be sent to the signers. /// @@ -241,7 +226,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -249,14 +233,12 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The subject in the email that will be sent to the signers. /// @@ -264,7 +246,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. /// @@ -272,7 +253,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. /// @@ -280,7 +260,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. /// @@ -288,7 +267,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } - /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. /// @@ -296,7 +274,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } - /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. /// @@ -304,7 +281,6 @@ public static SignatureRequestCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs index 682c38df4..13ea19eee 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs @@ -114,7 +114,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// Client id of the app you're using to create this embedded signature request. Used for security purposes. /// @@ -122,7 +121,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Add Signers to your Templated-based Signature Request. /// @@ -130,7 +128,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. /// @@ -138,7 +135,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. /// @@ -146,7 +142,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. /// @@ -154,7 +149,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -162,7 +156,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -170,7 +163,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// The custom message in the email that will be sent to the signers. /// @@ -178,7 +170,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -186,14 +177,12 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The subject in the email that will be sent to the signers. /// @@ -201,7 +190,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. /// @@ -209,7 +197,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. /// @@ -217,7 +204,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. /// @@ -225,7 +211,6 @@ public static SignatureRequestCreateEmbeddedWithTemplateRequest Init(string json [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs index 2b6c6d163..d3bca38d5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs @@ -72,7 +72,6 @@ public static SignatureRequestGetResponse Init(string jsonData) [DataMember(Name = "signature_request", EmitDefaultValue = true)] public SignatureRequestResponse SignatureRequest { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static SignatureRequestGetResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs index 05a74cfca..e6327291c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs @@ -75,14 +75,12 @@ public static SignatureRequestListResponse Init(string jsonData) [DataMember(Name = "signature_requests", EmitDefaultValue = true)] public List SignatureRequests { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// A list of warnings. /// @@ -90,7 +88,6 @@ public static SignatureRequestListResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs index ab313fc4e..f9ef1c1c6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs @@ -78,7 +78,6 @@ public static SignatureRequestRemindRequest Init(string jsonData) [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The name of the signer to send a reminder to. Include if two or more signers share an email address. /// @@ -86,7 +85,6 @@ public static SignatureRequestRemindRequest Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index bc12bed71..d1eb0b4fc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -120,7 +120,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool? TestMode { get; set; } - /// /// The id of the SignatureRequest. /// @@ -128,7 +127,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } - /// /// The email address of the initiator of the SignatureRequest. /// @@ -136,7 +134,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// The title the specified Account uses for the SignatureRequest. /// @@ -144,7 +141,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Default Label for account. /// @@ -152,7 +148,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "original_title", EmitDefaultValue = true)] public string OriginalTitle { get; set; } - /// /// The subject in the email that was initially sent to the signers. /// @@ -160,7 +155,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// The custom message in the email that was initially sent to the signers. /// @@ -168,7 +162,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// The metadata attached to the signature request. /// @@ -176,7 +169,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } - /// /// Time the signature request was created. /// @@ -184,7 +176,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. /// @@ -192,7 +183,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Whether or not the SignatureRequest has been fully executed by all signers. /// @@ -200,7 +190,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "is_complete", EmitDefaultValue = true)] public bool IsComplete { get; set; } - /// /// Whether or not the SignatureRequest has been declined by a signer. /// @@ -208,7 +197,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "is_declined", EmitDefaultValue = true)] public bool IsDeclined { get; set; } - /// /// Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). /// @@ -216,7 +204,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "has_error", EmitDefaultValue = true)] public bool HasError { get; set; } - /// /// The URL where a copy of the request's documents can be downloaded. /// @@ -224,7 +211,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "files_url", EmitDefaultValue = true)] public string FilesUrl { get; set; } - /// /// The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. /// @@ -232,7 +218,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "signing_url", EmitDefaultValue = true)] public string SigningUrl { get; set; } - /// /// The URL where the requester and the signers can view the current status of the SignatureRequest. /// @@ -240,7 +225,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "details_url", EmitDefaultValue = true)] public string DetailsUrl { get; set; } - /// /// A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. /// @@ -248,7 +232,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// The URL you want the signer redirected to after they successfully sign. /// @@ -256,7 +239,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The path where the completed document can be downloaded /// @@ -264,7 +246,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] public string FinalCopyUri { get; set; } - /// /// Templates IDs used in this SignatureRequest (if any). /// @@ -272,7 +253,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "template_ids", EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// An array of Custom Field objects containing the name and type of each custom field. * Text Field uses `SignatureRequestResponseCustomFieldText` * Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` /// @@ -280,7 +260,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Signer attachments. /// @@ -288,7 +267,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. /// @@ -296,7 +274,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "response_data", EmitDefaultValue = true)] public List ResponseData { get; set; } - /// /// An array of signature objects, 1 for each signer. /// @@ -304,7 +281,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "signatures", EmitDefaultValue = true)] public List Signatures { get; set; } - /// /// The ID of the Bulk Send job which sent the signature request, if applicable. /// @@ -312,7 +288,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs index 757001c70..8f835a0d8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs @@ -96,7 +96,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } - /// /// The Signer this attachment is assigned to. /// @@ -104,7 +103,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) [DataMember(Name = "signer", IsRequired = true, EmitDefaultValue = true)] public string Signer { get; set; } - /// /// The name of this attachment. /// @@ -112,7 +110,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// A boolean value denoting if this attachment is required. /// @@ -120,7 +117,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] public bool Required { get; set; } - /// /// Instructions for Signer. /// @@ -128,7 +124,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } - /// /// Timestamp when attachment was uploaded by Signer. /// @@ -136,7 +131,6 @@ public static SignatureRequestResponseAttachment Init(string jsonData) [DataMember(Name = "uploaded_at", EmitDefaultValue = true)] public int? UploadedAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs index 0b45e5aa3..fdba027b7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs @@ -93,7 +93,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// The name of the Custom Field. /// @@ -101,7 +100,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// A boolean value denoting if this field is required. /// @@ -109,7 +107,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The unique ID for this field. /// @@ -117,7 +114,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The name of the Role that is able to edit this field. /// @@ -125,7 +121,6 @@ public static SignatureRequestResponseCustomFieldBase Init(string jsonData) [DataMember(Name = "editor", EmitDefaultValue = true)] public string Editor { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs index 1e69eed13..281cbf00c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs @@ -86,7 +86,6 @@ public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// A true/false for checkbox fields /// @@ -94,7 +93,6 @@ public static SignatureRequestResponseCustomFieldCheckbox Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs index b037de58a..5f646287c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs @@ -86,7 +86,6 @@ public static SignatureRequestResponseCustomFieldText Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// A text string for text fields /// @@ -94,7 +93,6 @@ public static SignatureRequestResponseCustomFieldText Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs index c1846dcc4..ef3ea298e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs @@ -90,7 +90,6 @@ public static SignatureRequestResponseDataBase Init(string jsonData) [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The ID of the signature to which this response is linked. /// @@ -98,7 +97,6 @@ public static SignatureRequestResponseDataBase Init(string jsonData) [DataMember(Name = "signature_id", EmitDefaultValue = true)] public string SignatureId { get; set; } - /// /// The name of the form field. /// @@ -106,7 +104,6 @@ public static SignatureRequestResponseDataBase Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// A boolean value denoting if this field is required. /// @@ -114,14 +111,12 @@ public static SignatureRequestResponseDataBase Init(string jsonData) [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// Gets or Sets Type /// [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs index 56a568383..38bb7065c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs @@ -82,7 +82,6 @@ public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. /// @@ -90,7 +89,6 @@ public static SignatureRequestResponseDataValueCheckbox Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs index 209028568..bc2ba1062 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs @@ -82,7 +82,6 @@ public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonDat [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. /// @@ -90,7 +89,6 @@ public static SignatureRequestResponseDataValueCheckboxMerge Init(string jsonDat [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs index 1229c2424..7d297a2ea 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs @@ -82,7 +82,6 @@ public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. /// @@ -90,7 +89,6 @@ public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs index d6061231a..e61d52008 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs @@ -82,7 +82,6 @@ public static SignatureRequestResponseDataValueDropdown Init(string jsonData) [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. /// @@ -90,7 +89,6 @@ public static SignatureRequestResponseDataValueDropdown Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index 92a7b8fd7..6bd6bc863 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -82,7 +82,6 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. /// @@ -90,7 +89,6 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs index 565377f5b..a3a801d5f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs @@ -82,7 +82,6 @@ public static SignatureRequestResponseDataValueRadio Init(string jsonData) [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. /// @@ -90,7 +89,6 @@ public static SignatureRequestResponseDataValueRadio Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index 28b9e5a03..0fb0af54d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -82,7 +82,6 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. /// @@ -90,7 +89,6 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs index 84a9330af..cf075e99b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs @@ -82,7 +82,6 @@ public static SignatureRequestResponseDataValueText Init(string jsonData) [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. /// @@ -90,7 +89,6 @@ public static SignatureRequestResponseDataValueText Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs index fa93108e2..581ff43f5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs @@ -82,7 +82,6 @@ public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - /// /// The value of the form field. /// @@ -90,7 +89,6 @@ public static SignatureRequestResponseDataValueTextMerge Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs index ddb7c147b..8c7a3101c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs @@ -107,7 +107,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "signature_id", EmitDefaultValue = true)] public string SignatureId { get; set; } - /// /// Signer Group GUID /// @@ -115,7 +114,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "signer_group_guid", EmitDefaultValue = true)] public string SignerGroupGuid { get; set; } - /// /// The email address of the signer. /// @@ -123,7 +121,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "signer_email_address", EmitDefaultValue = true)] public string SignerEmailAddress { get; set; } - /// /// The name of the signer. /// @@ -131,7 +128,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "signer_name", EmitDefaultValue = true)] public string SignerName { get; set; } - /// /// The role of the signer. /// @@ -139,7 +135,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "signer_role", EmitDefaultValue = true)] public string SignerRole { get; set; } - /// /// If signer order is assigned this is the 0-based index for this signer. /// @@ -147,7 +142,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// The current status of the signature. eg: awaiting_signature, signed, declined. /// @@ -155,7 +149,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "status_code", EmitDefaultValue = true)] public string StatusCode { get; set; } - /// /// The reason provided by the signer for declining the request. /// @@ -163,7 +156,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "decline_reason", EmitDefaultValue = true)] public string DeclineReason { get; set; } - /// /// Time that the document was signed or null. /// @@ -171,7 +163,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "signed_at", EmitDefaultValue = true)] public int? SignedAt { get; set; } - /// /// The time that the document was last viewed by this signer or null. /// @@ -179,7 +170,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "last_viewed_at", EmitDefaultValue = true)] public int? LastViewedAt { get; set; } - /// /// The time the last reminder email was sent to the signer or null. /// @@ -187,7 +177,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "last_reminded_at", EmitDefaultValue = true)] public int? LastRemindedAt { get; set; } - /// /// Boolean to indicate whether this signature requires a PIN to access. /// @@ -195,7 +184,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "has_pin", EmitDefaultValue = true)] public bool HasPin { get; set; } - /// /// Boolean to indicate whether this signature has SMS authentication enabled. /// @@ -203,7 +191,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "has_sms_auth", EmitDefaultValue = true)] public bool? HasSmsAuth { get; set; } - /// /// Boolean to indicate whether this signature has SMS delivery enabled. /// @@ -211,7 +198,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "has_sms_delivery", EmitDefaultValue = true)] public bool? HasSmsDelivery { get; set; } - /// /// The SMS phone number used for authentication or signature request delivery. /// @@ -219,7 +205,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } - /// /// Email address of original signer who reassigned to this signer. /// @@ -227,7 +212,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "reassigned_by", EmitDefaultValue = true)] public string ReassignedBy { get; set; } - /// /// Reason provided by original signer who reassigned to this signer. /// @@ -235,7 +219,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "reassignment_reason", EmitDefaultValue = true)] public string ReassignmentReason { get; set; } - /// /// Previous signature identifier. /// @@ -243,7 +226,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "reassigned_from", EmitDefaultValue = true)] public string ReassignedFrom { get; set; } - /// /// Error message pertaining to this signer, or null. /// @@ -251,7 +233,6 @@ public static SignatureRequestResponseSignatures Init(string jsonData) [DataMember(Name = "error", EmitDefaultValue = true)] public string Error { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs index 815366e24..c50791feb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs @@ -121,7 +121,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -129,7 +128,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. /// @@ -137,7 +135,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both. /// @@ -145,7 +142,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "grouped_signers", EmitDefaultValue = true)] public List GroupedSigners { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. /// @@ -153,7 +149,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. /// @@ -161,7 +156,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments /// @@ -169,7 +163,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The email addresses that should be CCed. /// @@ -177,7 +170,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. /// @@ -185,7 +177,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. /// @@ -193,14 +184,12 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. /// @@ -208,7 +197,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. /// @@ -216,7 +204,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` /// @@ -224,7 +211,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. /// @@ -232,7 +218,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } - /// /// Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br> **NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. /// @@ -241,7 +226,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [Obsolete] public bool IsQualifiedSignature { get; set; } - /// /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. /// @@ -249,7 +233,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "is_eid", EmitDefaultValue = true)] public bool IsEid { get; set; } - /// /// The custom message in the email that will be sent to the signers. /// @@ -257,7 +240,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -265,14 +247,12 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. /// @@ -280,7 +260,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. /// @@ -288,7 +267,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. /// @@ -296,7 +274,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. /// @@ -304,7 +281,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. /// @@ -312,7 +288,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } - /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. /// @@ -320,7 +295,6 @@ public static SignatureRequestSendRequest Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs index 181c4a721..178a7d736 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs @@ -113,7 +113,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// Add Signers to your Templated-based Signature Request. /// @@ -121,7 +120,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. /// @@ -129,7 +127,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. /// @@ -137,7 +134,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. /// @@ -145,7 +141,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. /// @@ -153,7 +148,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -161,7 +155,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -169,7 +162,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br> **NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. /// @@ -178,7 +170,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [Obsolete] public bool IsQualifiedSignature { get; set; } - /// /// Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br> **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. /// @@ -186,7 +177,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "is_eid", EmitDefaultValue = true)] public bool IsEid { get; set; } - /// /// The custom message in the email that will be sent to the signers. /// @@ -194,7 +184,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -202,14 +191,12 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. /// @@ -217,7 +204,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. /// @@ -225,7 +211,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. /// @@ -233,7 +218,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. /// @@ -241,7 +225,6 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData) [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs index 8f9d4a916..4e6cd3f8c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs @@ -82,7 +82,6 @@ public static SignatureRequestUpdateRequest Init(string jsonData) [DataMember(Name = "signature_id", IsRequired = true, EmitDefaultValue = true)] public string SignatureId { get; set; } - /// /// The new email address for the recipient. This will generate a new `signature_id` value. **NOTE:** Optional if `name` is provided. /// @@ -90,7 +89,6 @@ public static SignatureRequestUpdateRequest Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The new name for the recipient. **NOTE:** Optional if `email_address` is provided. /// @@ -98,7 +96,6 @@ public static SignatureRequestUpdateRequest Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The new time when the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. /// @@ -106,7 +103,6 @@ public static SignatureRequestUpdateRequest Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs index 458d8d43d..90bf15589 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs @@ -82,7 +82,6 @@ public static SubAttachment Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The signer's index in the `signers` parameter (0-based indexing). **NOTE:** Only one signer can be assigned per attachment. /// @@ -90,7 +89,6 @@ public static SubAttachment Init(string jsonData) [DataMember(Name = "signer_index", IsRequired = true, EmitDefaultValue = true)] public int SignerIndex { get; set; } - /// /// The instructions for uploading the attachment. /// @@ -98,7 +96,6 @@ public static SubAttachment Init(string jsonData) [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } - /// /// Determines if the attachment must be uploaded. /// @@ -106,7 +103,6 @@ public static SubAttachment Init(string jsonData) [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs index 6cb0453c4..2c791a99b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs @@ -73,7 +73,6 @@ public static SubBulkSignerList Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Add Signers to your Templated-based Signature Request. Allows the requester to specify editor options when a preparing a document. Currently only templates with a single role are supported. All signers must have the same `role` value. /// @@ -81,7 +80,6 @@ public static SubBulkSignerList Init(string jsonData) [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs index b03715cf8..3ced0d3a9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs @@ -83,7 +83,6 @@ public static SubBulkSignerListCustomField Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The value of the custom field. /// @@ -91,7 +90,6 @@ public static SubBulkSignerListCustomField Init(string jsonData) [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs index 152097511..8e05b7021 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs @@ -83,7 +83,6 @@ public static SubCC Init(string jsonData) [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } - /// /// The email address of the CC recipient. /// @@ -91,7 +90,6 @@ public static SubCC Init(string jsonData) [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs index b2ef09c4e..7633398b5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs @@ -82,7 +82,6 @@ public static SubCustomField Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// Used to create editable merge fields. When the value matches a role passed in with `signers`, that role can edit the data that was pre-filled to that field. This field is optional, but required when this custom field object is set to `required = true`. **NOTE:** Editable merge fields are only supported for single signer requests (or the first signer in ordered signature requests). If used when there are multiple signers in an unordered signature request, the editor value is ignored and the field won't be editable. /// @@ -90,7 +89,6 @@ public static SubCustomField Init(string jsonData) [DataMember(Name = "editor", EmitDefaultValue = true)] public string Editor { get; set; } - /// /// Used to set an editable merge field when working with pre-filled data. When `true`, the custom field must specify a signer role in `editor`. /// @@ -98,7 +96,6 @@ public static SubCustomField Init(string jsonData) [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The string that resolves (aka \"pre-fills\") to the merge field on the final document(s) used for signing. /// @@ -106,7 +103,6 @@ public static SubCustomField Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs index 584230378..d9e546dc2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs @@ -73,7 +73,6 @@ public static SubEditorOptions Init(string jsonData) [DataMember(Name = "allow_edit_signers", EmitDefaultValue = true)] public bool AllowEditSigners { get; set; } - /// /// Allows requesters to edit documents, including delete and add /// @@ -81,7 +80,6 @@ public static SubEditorOptions Init(string jsonData) [DataMember(Name = "allow_edit_documents", EmitDefaultValue = true)] public bool AllowEditDocuments { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs index 47c5ba279..b082938ef 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs @@ -90,7 +90,6 @@ public static SubFormFieldGroup Init(string jsonData) [DataMember(Name = "group_id", IsRequired = true, EmitDefaultValue = true)] public string GroupId { get; set; } - /// /// Name of the group /// @@ -98,7 +97,6 @@ public static SubFormFieldGroup Init(string jsonData) [DataMember(Name = "group_label", IsRequired = true, EmitDefaultValue = true)] public string GroupLabel { get; set; } - /// /// Examples: `require_0-1` `require_1` `require_1-ormore` - Check out the list of [acceptable `requirement` checkbox type values](/api/reference/constants/#checkbox-field-grouping). - Check out the list of [acceptable `requirement` radio type fields](/api/reference/constants/#radio-field-grouping). - Radio groups require **at least** two fields per group. /// @@ -106,7 +104,6 @@ public static SubFormFieldGroup Init(string jsonData) [DataMember(Name = "requirement", IsRequired = true, EmitDefaultValue = true)] public string Requirement { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs index d214e456f..14472e3fc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs @@ -97,7 +97,6 @@ public static SubFormFieldRule Init(string jsonData) [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } - /// /// Currently only `AND` is supported. Support for `OR` is being worked on. /// @@ -105,7 +104,6 @@ public static SubFormFieldRule Init(string jsonData) [DataMember(Name = "trigger_operator", IsRequired = true, EmitDefaultValue = true)] public string TriggerOperator { get; set; } - /// /// An array of trigger definitions, the \"if this\" part of \"**if this**, then that\". Currently only a single trigger per rule is allowed. /// @@ -113,7 +111,6 @@ public static SubFormFieldRule Init(string jsonData) [DataMember(Name = "triggers", IsRequired = true, EmitDefaultValue = true)] public List Triggers { get; set; } - /// /// An array of action definitions, the \"then that\" part of \"if this, **then that**\". Any number of actions may be attached to a single rule. /// @@ -121,7 +118,6 @@ public static SubFormFieldRule Init(string jsonData) [DataMember(Name = "actions", IsRequired = true, EmitDefaultValue = true)] public List Actions { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs index e2350b07c..14b0239fa 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs @@ -102,7 +102,6 @@ public static SubFormFieldRuleAction Init(string jsonData) [DataMember(Name = "hidden", IsRequired = true, EmitDefaultValue = true)] public bool Hidden { get; set; } - /// /// **field_id** or **group_id** is required, but not both. Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Cannot use with `group_id`. Trigger and action fields must belong to the same signer. /// @@ -110,7 +109,6 @@ public static SubFormFieldRuleAction Init(string jsonData) [DataMember(Name = "field_id", EmitDefaultValue = true)] public string FieldId { get; set; } - /// /// **group_id** or **field_id** is required, but not both. Must reference the ID of an existing group defined within `form_field_groups`. Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. /// @@ -118,7 +116,6 @@ public static SubFormFieldRuleAction Init(string jsonData) [DataMember(Name = "group_id", EmitDefaultValue = true)] public string GroupId { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs index 5719dcb4f..5c9491073 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs @@ -127,7 +127,6 @@ public static SubFormFieldRuleTrigger Init(string jsonData) [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } - /// /// **value** or **values** is required, but not both. The value to match against **operator**. - When **operator** is one of the following, **value** must be `String`: - `is` - `not` - `match` Otherwise, - **checkbox**: When **type** of trigger is **checkbox**, **value** must be `0` or `1` - **radio**: When **type** of trigger is **radio**, **value** must be `1` /// @@ -135,7 +134,6 @@ public static SubFormFieldRuleTrigger Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - /// /// **values** or **value** is required, but not both. The values to match against **operator** when it is one of the following: - `any` - `none` /// @@ -143,7 +141,6 @@ public static SubFormFieldRuleTrigger Init(string jsonData) [DataMember(Name = "values", EmitDefaultValue = true)] public List Values { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs index 2c4a31227..01adb6dfc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs @@ -118,7 +118,6 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) [DataMember(Name = "document_index", IsRequired = true, EmitDefaultValue = true)] public int DocumentIndex { get; set; } - /// /// An identifier for the field that is unique across all documents in the request. /// @@ -126,7 +125,6 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) [DataMember(Name = "api_id", IsRequired = true, EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// Size of the field in pixels. /// @@ -134,7 +132,6 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) [DataMember(Name = "height", IsRequired = true, EmitDefaultValue = true)] public int Height { get; set; } - /// /// Whether this field is required. /// @@ -142,7 +139,6 @@ public static SubFormFieldsPerDocumentBase Init(string jsonData) [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] public bool Required { get; set; } - /// /// Signer index identified by the offset in the signers parameter (0-based indexing), indicating which signer should fill out the field. **NOTE:** To set the value of the field as the preparer you must set this to `me_now` **NOTE:** If type is `text-merge` or `checkbox-merge`, you must set this to sender in order to use pre-filled data. /// @@ -154,14 +150,12 @@ public object Signer { } private string _signer; - /// /// Gets or Sets Type /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Size of the field in pixels. /// @@ -169,7 +163,6 @@ public object Signer { [DataMember(Name = "width", IsRequired = true, EmitDefaultValue = true)] public int Width { get; set; } - /// /// Location coordinates of the field in pixels. /// @@ -177,7 +170,6 @@ public object Signer { [DataMember(Name = "x", IsRequired = true, EmitDefaultValue = true)] public int X { get; set; } - /// /// Location coordinates of the field in pixels. /// @@ -185,7 +177,6 @@ public object Signer { [DataMember(Name = "y", IsRequired = true, EmitDefaultValue = true)] public int Y { get; set; } - /// /// Display name for the field. /// @@ -193,7 +184,6 @@ public object Signer { [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Page in the document where the field should be placed (requires documents be PDF files). - When the page number parameter is supplied, the API will use the new coordinate system. - Check out the differences between both [coordinate systems](https://faq.hellosign.com/hc/en-us/articles/217115577) and how to use them. /// @@ -201,7 +191,6 @@ public object Signer { [DataMember(Name = "page", EmitDefaultValue = true)] public int? Page { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs index 6bde5b7de..e0ba962a5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs @@ -100,7 +100,6 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// `true` for checking the checkbox field by default, otherwise `false`. /// @@ -108,7 +107,6 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) [DataMember(Name = "is_checked", IsRequired = true, EmitDefaultValue = true)] public bool IsChecked { get; set; } - /// /// String referencing group defined in `form_field_groups` parameter. /// @@ -116,7 +114,6 @@ public static SubFormFieldsPerDocumentCheckbox Init(string jsonData) [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs index 3e4b9e569..00b76d3c2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs @@ -96,7 +96,6 @@ public static SubFormFieldsPerDocumentCheckboxMerge Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs index c317ee776..973a0e10d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs @@ -211,7 +211,6 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. /// @@ -219,7 +218,6 @@ public static SubFormFieldsPerDocumentDateSigned Init(string jsonData) [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs index 088afa90e..0dd62c35e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs @@ -220,7 +220,6 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Array of string values representing dropdown values. /// @@ -228,7 +227,6 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) [DataMember(Name = "options", IsRequired = true, EmitDefaultValue = true)] public List Options { get; set; } - /// /// Selected value in `options` array. Value must exist in array. /// @@ -236,7 +234,6 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) [DataMember(Name = "content", EmitDefaultValue = true)] public string Content { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. /// @@ -244,7 +241,6 @@ public static SubFormFieldsPerDocumentDropdown Init(string jsonData) [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs index 57e7080ef..fa402d617 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs @@ -225,7 +225,6 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Link Text. /// @@ -233,7 +232,6 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] public string Content { get; set; } - /// /// Link URL. /// @@ -241,7 +239,6 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) [DataMember(Name = "content_url", IsRequired = true, EmitDefaultValue = true)] public string ContentUrl { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. /// @@ -249,7 +246,6 @@ public static SubFormFieldsPerDocumentHyperlink Init(string jsonData) [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs index 6cb01dc29..be92f5181 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs @@ -96,7 +96,6 @@ public static SubFormFieldsPerDocumentInitials Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs index 8388b0554..0fa354f9e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs @@ -105,7 +105,6 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// String referencing group defined in `form_field_groups` parameter. /// @@ -113,7 +112,6 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] public string Group { get; set; } - /// /// `true` for checking the radio field by default, otherwise `false`. Only one radio field per group can be `true`. /// @@ -121,7 +119,6 @@ public static SubFormFieldsPerDocumentRadio Init(string jsonData) [DataMember(Name = "is_checked", IsRequired = true, EmitDefaultValue = true)] public bool IsChecked { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs index 366776a6f..8e4c70809 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs @@ -96,7 +96,6 @@ public static SubFormFieldsPerDocumentSignature Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs index 1dafc9d1c..e60ab2be0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs @@ -302,7 +302,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Placeholder value for text field. /// @@ -310,7 +309,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) [DataMember(Name = "placeholder", EmitDefaultValue = true)] public string Placeholder { get; set; } - /// /// Auto fill type for populating fields automatically. Check out the list of [auto fill types](/api/reference/constants/#auto-fill-types) to learn more about the possible values. /// @@ -318,7 +316,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) [DataMember(Name = "auto_fill_type", EmitDefaultValue = true)] public string AutoFillType { get; set; } - /// /// Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields. /// @@ -326,7 +323,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) [DataMember(Name = "link_id", EmitDefaultValue = true)] public string LinkId { get; set; } - /// /// Masks entered data. For more information see [Masking sensitive information](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information). `true` for masking the data in a text field, otherwise `false`. /// @@ -334,21 +330,18 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) [DataMember(Name = "masked", EmitDefaultValue = true)] public bool Masked { get; set; } - /// /// Gets or Sets ValidationCustomRegex /// [DataMember(Name = "validation_custom_regex", EmitDefaultValue = true)] public string ValidationCustomRegex { get; set; } - /// /// Gets or Sets ValidationCustomRegexFormatLabel /// [DataMember(Name = "validation_custom_regex_format_label", EmitDefaultValue = true)] public string ValidationCustomRegexFormatLabel { get; set; } - /// /// Content of a `me_now` text field /// @@ -356,7 +349,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) [DataMember(Name = "content", EmitDefaultValue = true)] public string Content { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. /// @@ -364,7 +356,6 @@ public static SubFormFieldsPerDocumentText Init(string jsonData) [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs index 10010bae8..42c7be494 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs @@ -211,7 +211,6 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field. /// @@ -219,7 +218,6 @@ public static SubFormFieldsPerDocumentTextMerge Init(string jsonData) [DataMember(Name = "font_size", EmitDefaultValue = true)] public int FontSize { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs index c47d6ac3a..8dcf89f32 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs @@ -105,7 +105,6 @@ public static SubMergeField Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs index 891963667..0d4a8c30e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs @@ -128,7 +128,6 @@ public static SubOAuth Init(string jsonData) [DataMember(Name = "callback_url", EmitDefaultValue = true)] public string CallbackUrl { get; set; } - /// /// A list of [OAuth scopes](/api/reference/tag/OAuth) to be granted to the app. (Required if `oauth[callback_url]` is provided). /// @@ -136,7 +135,6 @@ public static SubOAuth Init(string jsonData) [DataMember(Name = "scopes", EmitDefaultValue = true)] public List Scopes { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs index 8e8e3fa40..2d7a57a35 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs @@ -71,7 +71,6 @@ public static SubOptions Init(string jsonData) [DataMember(Name = "can_insert_everywhere", EmitDefaultValue = true)] public bool CanInsertEverywhere { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs index ef20bc635..817d7a4c8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs @@ -85,7 +85,6 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] public string Group { get; set; } - /// /// Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below. /// @@ -93,7 +92,6 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) [DataMember(Name = "signers", IsRequired = true, EmitDefaultValue = true)] public List Signers { get; set; } - /// /// The order the group is required to sign in. Use this instead of Signer-level `order`. /// @@ -101,7 +99,6 @@ public static SubSignatureRequestGroupedSigners Init(string jsonData) [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs index f82ed3d33..67808b238 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs @@ -118,7 +118,6 @@ public static SubSignatureRequestSigner Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The email address of the signer. /// @@ -126,7 +125,6 @@ public static SubSignatureRequestSigner Init(string jsonData) [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The order the signer is required to sign in. /// @@ -134,7 +132,6 @@ public static SubSignatureRequestSigner Init(string jsonData) [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// The 4- to 12-character access code that will secure this signer's signature page. /// @@ -142,7 +139,6 @@ public static SubSignatureRequestSigner Init(string jsonData) [DataMember(Name = "pin", EmitDefaultValue = true)] public string Pin { get; set; } - /// /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. /// @@ -150,7 +146,6 @@ public static SubSignatureRequestSigner Init(string jsonData) [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs index c6c7014e3..26db11db5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs @@ -123,7 +123,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } - /// /// The name of the signer. /// @@ -131,7 +130,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The email address of the signer. /// @@ -139,7 +137,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The 4- to 12-character access code that will secure this signer's signature page. /// @@ -147,7 +144,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) [DataMember(Name = "pin", EmitDefaultValue = true)] public string Pin { get; set; } - /// /// An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. /// @@ -155,7 +151,6 @@ public static SubSignatureRequestTemplateSigner Init(string jsonData) [DataMember(Name = "sms_phone_number", EmitDefaultValue = true)] public string SmsPhoneNumber { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs index 81b37ad05..681bfbb6f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs @@ -118,7 +118,6 @@ public static SubSigningOptions Init(string jsonData) [DataMember(Name = "draw", EmitDefaultValue = true)] public bool Draw { get; set; } - /// /// Allows using a smartphone to email the signature /// @@ -126,7 +125,6 @@ public static SubSigningOptions Init(string jsonData) [DataMember(Name = "phone", EmitDefaultValue = true)] public bool Phone { get; set; } - /// /// Allows typing the signature /// @@ -134,7 +132,6 @@ public static SubSigningOptions Init(string jsonData) [DataMember(Name = "type", EmitDefaultValue = true)] public bool Type { get; set; } - /// /// Allows uploading the signature /// @@ -142,7 +139,6 @@ public static SubSigningOptions Init(string jsonData) [DataMember(Name = "upload", EmitDefaultValue = true)] public bool Upload { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs index 4e662a311..9dfdce699 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs @@ -73,7 +73,6 @@ public static SubTeamResponse Init(string jsonData) [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// The name of a team /// @@ -81,7 +80,6 @@ public static SubTeamResponse Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs index a10e28c5f..c0daa18dd 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs @@ -73,7 +73,6 @@ public static SubTemplateRole Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The order in which this signer role is required to sign. /// @@ -81,7 +80,6 @@ public static SubTemplateRole Init(string jsonData) [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs index 8dd1243e4..3c0f1968e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs @@ -85,7 +85,6 @@ public static SubUnclaimedDraftSigner Init(string jsonData) [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The name of the signer. /// @@ -93,7 +92,6 @@ public static SubUnclaimedDraftSigner Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The order the signer is required to sign in. /// @@ -101,7 +99,6 @@ public static SubUnclaimedDraftSigner Init(string jsonData) [DataMember(Name = "order", EmitDefaultValue = true)] public int? Order { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs index 2d295102b..7c92ca60e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs @@ -90,7 +90,6 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] public string Role { get; set; } - /// /// The name of the signer filling the role of `role`. /// @@ -98,7 +97,6 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - /// /// The email address of the signer filling the role of `role`. /// @@ -106,7 +104,6 @@ public static SubUnclaimedDraftTemplateSigner Init(string jsonData) [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs index 5a9571e5c..cd2104d83 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs @@ -136,91 +136,78 @@ public static SubWhiteLabelingOptions Init(string jsonData) [DataMember(Name = "header_background_color", EmitDefaultValue = true)] public string HeaderBackgroundColor { get; set; } - /// /// Gets or Sets LinkColor /// [DataMember(Name = "link_color", EmitDefaultValue = true)] public string LinkColor { get; set; } - /// /// Gets or Sets PageBackgroundColor /// [DataMember(Name = "page_background_color", EmitDefaultValue = true)] public string PageBackgroundColor { get; set; } - /// /// Gets or Sets PrimaryButtonColor /// [DataMember(Name = "primary_button_color", EmitDefaultValue = true)] public string PrimaryButtonColor { get; set; } - /// /// Gets or Sets PrimaryButtonColorHover /// [DataMember(Name = "primary_button_color_hover", EmitDefaultValue = true)] public string PrimaryButtonColorHover { get; set; } - /// /// Gets or Sets PrimaryButtonTextColor /// [DataMember(Name = "primary_button_text_color", EmitDefaultValue = true)] public string PrimaryButtonTextColor { get; set; } - /// /// Gets or Sets PrimaryButtonTextColorHover /// [DataMember(Name = "primary_button_text_color_hover", EmitDefaultValue = true)] public string PrimaryButtonTextColorHover { get; set; } - /// /// Gets or Sets SecondaryButtonColor /// [DataMember(Name = "secondary_button_color", EmitDefaultValue = true)] public string SecondaryButtonColor { get; set; } - /// /// Gets or Sets SecondaryButtonColorHover /// [DataMember(Name = "secondary_button_color_hover", EmitDefaultValue = true)] public string SecondaryButtonColorHover { get; set; } - /// /// Gets or Sets SecondaryButtonTextColor /// [DataMember(Name = "secondary_button_text_color", EmitDefaultValue = true)] public string SecondaryButtonTextColor { get; set; } - /// /// Gets or Sets SecondaryButtonTextColorHover /// [DataMember(Name = "secondary_button_text_color_hover", EmitDefaultValue = true)] public string SecondaryButtonTextColorHover { get; set; } - /// /// Gets or Sets TextColor1 /// [DataMember(Name = "text_color1", EmitDefaultValue = true)] public string TextColor1 { get; set; } - /// /// Gets or Sets TextColor2 /// [DataMember(Name = "text_color2", EmitDefaultValue = true)] public string TextColor2 { get; set; } - /// /// Resets white labeling options to defaults. Only useful when updating an API App. /// @@ -228,7 +215,6 @@ public static SubWhiteLabelingOptions Init(string jsonData) [DataMember(Name = "reset_to_default", EmitDefaultValue = true)] public bool ResetToDefault { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs index f9163653b..8742bce89 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs @@ -114,7 +114,6 @@ public static TeamAddMemberRequest Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// `account_id` or `email_address` is required, If both are provided, the account id prevails. Email address of the user to invite to your Team. /// @@ -122,7 +121,6 @@ public static TeamAddMemberRequest Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs index f576caa6b..b348cf093 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs @@ -72,7 +72,6 @@ public static TeamCreateRequest Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs index 2e2e48d01..b940eb971 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs @@ -72,7 +72,6 @@ public static TeamGetInfoResponse Init(string jsonData) [DataMember(Name = "team", EmitDefaultValue = true)] public TeamInfoResponse Team { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static TeamGetInfoResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs index e56f464ea..ee46918e4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs @@ -72,7 +72,6 @@ public static TeamGetResponse Init(string jsonData) [DataMember(Name = "team", EmitDefaultValue = true)] public TeamResponse Team { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static TeamGetResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs index cdca341b4..ecf79ed35 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs @@ -79,14 +79,12 @@ public static TeamInfoResponse Init(string jsonData) [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// Gets or Sets TeamParent /// [DataMember(Name = "team_parent", EmitDefaultValue = true)] public TeamParentResponse TeamParent { get; set; } - /// /// The name of a team /// @@ -94,7 +92,6 @@ public static TeamInfoResponse Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Number of members within a team /// @@ -102,7 +99,6 @@ public static TeamInfoResponse Init(string jsonData) [DataMember(Name = "num_members", EmitDefaultValue = true)] public int NumMembers { get; set; } - /// /// Number of sub teams within a team /// @@ -110,7 +106,6 @@ public static TeamInfoResponse Init(string jsonData) [DataMember(Name = "num_sub_teams", EmitDefaultValue = true)] public int NumSubTeams { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs index 18b6893d2..a3566a26e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs @@ -81,7 +81,6 @@ public static TeamInviteResponse Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Id of the team. /// @@ -89,7 +88,6 @@ public static TeamInviteResponse Init(string jsonData) [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// Role of the user invited to this team. /// @@ -97,7 +95,6 @@ public static TeamInviteResponse Init(string jsonData) [DataMember(Name = "role", EmitDefaultValue = true)] public string Role { get; set; } - /// /// Timestamp when the invitation was sent. /// @@ -105,7 +102,6 @@ public static TeamInviteResponse Init(string jsonData) [DataMember(Name = "sent_at", EmitDefaultValue = true)] public int SentAt { get; set; } - /// /// Timestamp when the invitation was redeemed. /// @@ -113,7 +109,6 @@ public static TeamInviteResponse Init(string jsonData) [DataMember(Name = "redeemed_at", EmitDefaultValue = true)] public int RedeemedAt { get; set; } - /// /// Timestamp when the invitation is expiring. /// @@ -121,7 +116,6 @@ public static TeamInviteResponse Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs index 2e2390233..1d907c1a9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs @@ -73,14 +73,12 @@ public static TeamInvitesResponse Init(string jsonData) [DataMember(Name = "team_invites", EmitDefaultValue = true)] public List TeamInvites { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs index a87f276d5..4accc80b5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs @@ -75,7 +75,6 @@ public static TeamMemberResponse Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// Email address of the team member. /// @@ -83,7 +82,6 @@ public static TeamMemberResponse Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The specific role a member has on the team. /// @@ -91,7 +89,6 @@ public static TeamMemberResponse Init(string jsonData) [DataMember(Name = "role", EmitDefaultValue = true)] public string Role { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs index 3732828d4..6bb41a629 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs @@ -75,21 +75,18 @@ public static TeamMembersResponse Init(string jsonData) [DataMember(Name = "team_members", EmitDefaultValue = true)] public List TeamMembers { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs index 72f7a88f9..25d1c92b3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs @@ -73,7 +73,6 @@ public static TeamParentResponse Init(string jsonData) [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - /// /// The name of a team /// @@ -81,7 +80,6 @@ public static TeamParentResponse Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs index c8081147d..89f9b9915 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs @@ -118,7 +118,6 @@ public static TeamRemoveMemberRequest Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// **account_id** or **email_address** is required. If both are provided, the account id prevails. Email address of the Account to remove from your Team. /// @@ -126,7 +125,6 @@ public static TeamRemoveMemberRequest Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans. /// @@ -134,7 +132,6 @@ public static TeamRemoveMemberRequest Init(string jsonData) [DataMember(Name = "new_owner_email_address", EmitDefaultValue = true)] public string NewOwnerEmailAddress { get; set; } - /// /// Id of the new Team. /// @@ -142,7 +139,6 @@ public static TeamRemoveMemberRequest Init(string jsonData) [DataMember(Name = "new_team_id", EmitDefaultValue = true)] public string NewTeamId { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs index 104c5021a..468b21ef3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs @@ -77,14 +77,12 @@ public static TeamResponse Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Gets or Sets Accounts /// [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } - /// /// A list of all Accounts that have an outstanding invitation to join your Team. Note that this response is a subset of the response parameters found in `GET /account`. /// @@ -92,7 +90,6 @@ public static TeamResponse Init(string jsonData) [DataMember(Name = "invited_accounts", EmitDefaultValue = true)] public List InvitedAccounts { get; set; } - /// /// A list of email addresses that have an outstanding invitation to join your Team and do not yet have a Dropbox Sign account. /// @@ -100,7 +97,6 @@ public static TeamResponse Init(string jsonData) [DataMember(Name = "invited_emails", EmitDefaultValue = true)] public List InvitedEmails { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs index d1a945bdc..7df4f5c5f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs @@ -75,21 +75,18 @@ public static TeamSubTeamsResponse Init(string jsonData) [DataMember(Name = "sub_teams", EmitDefaultValue = true)] public List SubTeams { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// Gets or Sets Warnings /// [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs index 72441c90e..5a605f4a9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs @@ -71,7 +71,6 @@ public static TeamUpdateRequest Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs index 30a0c91da..326c5884d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs @@ -75,7 +75,6 @@ public static TemplateAddUserRequest Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided. /// @@ -83,7 +82,6 @@ public static TemplateAddUserRequest Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. /// @@ -91,7 +89,6 @@ public static TemplateAddUserRequest Init(string jsonData) [DataMember(Name = "skip_notification", EmitDefaultValue = true)] public bool SkipNotification { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs index 70bad4fa6..e42636678 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs @@ -124,7 +124,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -132,7 +131,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -140,7 +138,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. /// @@ -148,7 +145,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. /// @@ -156,7 +152,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments /// @@ -164,7 +159,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The CC roles that must be assigned when using the template to send a signature request /// @@ -172,21 +166,18 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Provide users the ability to review/edit the template signer roles. /// @@ -194,7 +185,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } - /// /// Provide users the ability to review/edit the template subject and message. /// @@ -202,7 +192,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. /// @@ -210,7 +199,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. /// @@ -218,7 +206,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` /// @@ -226,7 +213,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. /// @@ -234,7 +220,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } - /// /// The default template email message. /// @@ -242,7 +227,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -250,7 +234,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. /// @@ -258,7 +241,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. /// @@ -266,7 +248,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. /// @@ -274,7 +255,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "signer_roles", EmitDefaultValue = true)] public List SignerRoles { get; set; } - /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. /// @@ -282,7 +262,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } - /// /// The template title (alias). /// @@ -290,7 +269,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. /// @@ -298,7 +276,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. /// @@ -306,7 +283,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). /// @@ -314,7 +290,6 @@ public static TemplateCreateEmbeddedDraftRequest Init(string jsonData) [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs index 0ed1bff0b..0a925c306 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs @@ -72,7 +72,6 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateCreateEmbeddedDraftResponseTemplate Template { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs index 5bc13da10..d24455729 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs @@ -77,7 +77,6 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// Link to edit the template. /// @@ -85,7 +84,6 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) [DataMember(Name = "edit_url", EmitDefaultValue = true)] public string EditUrl { get; set; } - /// /// When the link expires. /// @@ -93,7 +91,6 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - /// /// A list of warnings. /// @@ -102,7 +99,6 @@ public static TemplateCreateEmbeddedDraftResponseTemplate Init(string jsonData) [Obsolete] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs index 4048b5a35..0e71f4df7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs @@ -115,7 +115,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "form_fields_per_document", IsRequired = true, EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. /// @@ -123,7 +122,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "signer_roles", IsRequired = true, EmitDefaultValue = true)] public List SignerRoles { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -131,7 +129,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -139,7 +136,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. /// @@ -147,7 +143,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments /// @@ -155,7 +150,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The CC roles that must be assigned when using the template to send a signature request /// @@ -163,7 +157,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } - /// /// Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. /// @@ -171,14 +164,12 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. /// @@ -186,7 +177,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. /// @@ -194,7 +184,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. /// @@ -202,7 +191,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "merge_fields", EmitDefaultValue = true)] public List MergeFields { get; set; } - /// /// The default template email message. /// @@ -210,7 +198,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -218,7 +205,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// The template title (alias). /// @@ -226,7 +212,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. /// @@ -234,7 +219,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. /// @@ -242,7 +226,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). /// @@ -250,7 +233,6 @@ public static TemplateCreateRequest Init(string jsonData) [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs index c8734bd57..3d7138280 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs @@ -72,7 +72,6 @@ public static TemplateCreateResponse Init(string jsonData) [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateCreateResponseTemplate Template { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static TemplateCreateResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs index 04586c21a..a993aa0d4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs @@ -71,7 +71,6 @@ public static TemplateCreateResponseTemplate Init(string jsonData) [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs index 8601c721a..f2397fd0f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs @@ -71,7 +71,6 @@ public static TemplateEditResponse Init(string jsonData) [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs index 4f70c5fb6..9f00a721f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs @@ -72,7 +72,6 @@ public static TemplateGetResponse Init(string jsonData) [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateResponse Template { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static TemplateGetResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs index 0577af964..2c6cc1089 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs @@ -75,14 +75,12 @@ public static TemplateListResponse Init(string jsonData) [DataMember(Name = "templates", EmitDefaultValue = true)] public List Templates { get; set; } - /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - /// /// A list of warnings. /// @@ -90,7 +88,6 @@ public static TemplateListResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs index f99e5822a..edcd4406b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs @@ -73,7 +73,6 @@ public static TemplateRemoveUserRequest Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The id or email address of the Account to remove access to the Template. The account id prevails if both are provided. /// @@ -81,7 +80,6 @@ public static TemplateRemoveUserRequest Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs index 5ae571ae7..90fbdcb8d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -99,7 +99,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. /// @@ -107,7 +106,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. /// @@ -115,7 +113,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Time the template was last updated. /// @@ -123,7 +120,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "updated_at", EmitDefaultValue = true)] public int UpdatedAt { get; set; } - /// /// `true` if this template was created using an embedded flow, `false` if it was created on our website. /// @@ -131,7 +127,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "is_embedded", EmitDefaultValue = true)] public bool? IsEmbedded { get; set; } - /// /// `true` if you are the owner of this template, `false` if it's been shared with you by a team member. /// @@ -139,7 +134,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "is_creator", EmitDefaultValue = true)] public bool? IsCreator { get; set; } - /// /// Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). /// @@ -147,7 +141,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "can_edit", EmitDefaultValue = true)] public bool? CanEdit { get; set; } - /// /// Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. /// @@ -155,7 +148,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool? IsLocked { get; set; } - /// /// The metadata attached to the template. /// @@ -163,7 +155,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } - /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. /// @@ -171,7 +162,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "signer_roles", EmitDefaultValue = true)] public List SignerRoles { get; set; } - /// /// An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. /// @@ -179,7 +169,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "cc_roles", EmitDefaultValue = true)] public List CcRoles { get; set; } - /// /// An array describing each document associated with this Template. Includes form field data for each document. /// @@ -187,7 +176,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "documents", EmitDefaultValue = true)] public List Documents { get; set; } - /// /// Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. /// @@ -196,7 +184,6 @@ public static TemplateResponse Init(string jsonData) [Obsolete] public List CustomFields { get; set; } - /// /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. /// @@ -205,7 +192,6 @@ public static TemplateResponse Init(string jsonData) [Obsolete] public List NamedFormFields { get; set; } - /// /// An array of the Accounts that can use this Template. /// @@ -213,7 +199,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "accounts", EmitDefaultValue = true)] public List Accounts { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs index c4c8f5e68..fe291deac 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs @@ -81,7 +81,6 @@ public static TemplateResponseAccount Init(string jsonData) [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - /// /// The email address associated with the Account. /// @@ -89,7 +88,6 @@ public static TemplateResponseAccount Init(string jsonData) [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - /// /// Returns `true` if the user has been locked out of their account by a team admin. /// @@ -97,7 +95,6 @@ public static TemplateResponseAccount Init(string jsonData) [DataMember(Name = "is_locked", EmitDefaultValue = true)] public bool IsLocked { get; set; } - /// /// Returns `true` if the user has a paid Dropbox Sign account. /// @@ -105,7 +102,6 @@ public static TemplateResponseAccount Init(string jsonData) [DataMember(Name = "is_paid_hs", EmitDefaultValue = true)] public bool IsPaidHs { get; set; } - /// /// Returns `true` if the user has a paid HelloFax account. /// @@ -113,14 +109,12 @@ public static TemplateResponseAccount Init(string jsonData) [DataMember(Name = "is_paid_hf", EmitDefaultValue = true)] public bool IsPaidHf { get; set; } - /// /// Gets or Sets Quotas /// [DataMember(Name = "quotas", EmitDefaultValue = true)] public TemplateResponseAccountQuota Quotas { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs index 5fedca660..030083016 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs @@ -77,7 +77,6 @@ public static TemplateResponseAccountQuota Init(string jsonData) [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int TemplatesLeft { get; set; } - /// /// API signature requests remaining. /// @@ -85,7 +84,6 @@ public static TemplateResponseAccountQuota Init(string jsonData) [DataMember(Name = "api_signature_requests_left", EmitDefaultValue = true)] public int ApiSignatureRequestsLeft { get; set; } - /// /// Signature requests remaining. /// @@ -93,7 +91,6 @@ public static TemplateResponseAccountQuota Init(string jsonData) [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int DocumentsLeft { get; set; } - /// /// SMS verifications remaining. /// @@ -101,7 +98,6 @@ public static TemplateResponseAccountQuota Init(string jsonData) [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int SmsVerificationsLeft { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs index 325f4ee65..7d0df06e5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs @@ -71,7 +71,6 @@ public static TemplateResponseCCRole Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs index 2617cb50a..cc1e32c1e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs @@ -81,7 +81,6 @@ public static TemplateResponseDocument Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Document ordering, the lowest index is displayed first and the highest last (0-based indexing). /// @@ -89,7 +88,6 @@ public static TemplateResponseDocument Init(string jsonData) [DataMember(Name = "index", EmitDefaultValue = true)] public int Index { get; set; } - /// /// An array of Form Field Group objects. /// @@ -97,7 +95,6 @@ public static TemplateResponseDocument Init(string jsonData) [DataMember(Name = "field_groups", EmitDefaultValue = true)] public List FieldGroups { get; set; } - /// /// An array of Form Field objects containing the name and type of each named field. /// @@ -105,7 +102,6 @@ public static TemplateResponseDocument Init(string jsonData) [DataMember(Name = "form_fields", EmitDefaultValue = true)] public List FormFields { get; set; } - /// /// An array of Form Field objects containing the name and type of each named field. /// @@ -113,7 +109,6 @@ public static TemplateResponseDocument Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. /// @@ -121,7 +116,6 @@ public static TemplateResponseDocument Init(string jsonData) [DataMember(Name = "static_fields", EmitDefaultValue = true)] public List StaticFields { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs index 7527da3d4..002e942e6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs @@ -97,7 +97,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// The unique ID for this field. /// @@ -105,7 +104,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The name of the Custom Field. /// @@ -113,7 +111,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). /// @@ -121,7 +118,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } - /// /// The horizontal offset in pixels for this form field. /// @@ -129,7 +125,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } - /// /// The vertical offset in pixels for this form field. /// @@ -137,7 +132,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } - /// /// The width in pixels of this form field. /// @@ -145,7 +139,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } - /// /// The height in pixels of this form field. /// @@ -153,7 +146,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } - /// /// Boolean showing whether or not this field is required. /// @@ -161,7 +153,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The name of the group this field is in. If this field is not a group, this defaults to `null`. /// @@ -169,7 +160,6 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs index c0a789487..f3679a50d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentCustomFieldCheckbox Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs index 131bd7309..3e01fe8b8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs @@ -102,14 +102,12 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } - /// /// Whether this form field is multiline text. /// @@ -117,7 +115,6 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } - /// /// Original font size used in this form field's text. /// @@ -125,7 +122,6 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } - /// /// Font family used in this form field's text. /// @@ -133,7 +129,6 @@ public static TemplateResponseDocumentCustomFieldText Init(string jsonData) [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs index 14fddf98f..4d52bb3a4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs @@ -73,14 +73,12 @@ public static TemplateResponseDocumentFieldGroup Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// Gets or Sets Rule /// [DataMember(Name = "rule", EmitDefaultValue = true)] public TemplateResponseDocumentFieldGroupRule Rule { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs index 75e15429b..e3ad9c465 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs @@ -73,7 +73,6 @@ public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) [DataMember(Name = "requirement", EmitDefaultValue = true)] public string Requirement { get; set; } - /// /// Name of the group /// @@ -81,7 +80,6 @@ public static TemplateResponseDocumentFieldGroupRule Init(string jsonData) [DataMember(Name = "groupLabel", EmitDefaultValue = true)] public string GroupLabel { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs index f5104a607..58ef9d32e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs @@ -103,7 +103,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// A unique id for the form field. /// @@ -111,7 +110,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The name of the form field. /// @@ -119,7 +117,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The signer of the Form Field. /// @@ -127,7 +124,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } - /// /// The horizontal offset in pixels for this form field. /// @@ -135,7 +131,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } - /// /// The vertical offset in pixels for this form field. /// @@ -143,7 +138,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } - /// /// The width in pixels of this form field. /// @@ -151,7 +145,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } - /// /// The height in pixels of this form field. /// @@ -159,7 +152,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } - /// /// Boolean showing whether or not this field is required. /// @@ -167,7 +159,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. /// @@ -175,7 +166,6 @@ public static TemplateResponseDocumentFormFieldBase Init(string jsonData) [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs index cd0c77f4d..52f5e3c0b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentFormFieldCheckbox Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs index f71e255af..69038cee5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentFormFieldDateSigned Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs index f264253a3..3d04dbeae 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentFormFieldDropdown Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs index a7d3ab4f4..8942d7e65 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs @@ -102,14 +102,12 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } - /// /// Whether this form field is multiline text. /// @@ -117,7 +115,6 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } - /// /// Original font size used in this form field's text. /// @@ -125,7 +122,6 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } - /// /// Font family used in this form field's text. /// @@ -133,7 +129,6 @@ public static TemplateResponseDocumentFormFieldHyperlink Init(string jsonData) [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs index f7f2e4726..19419f31e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentFormFieldInitials Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs index ec514c828..dedbef0eb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentFormFieldRadio Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs index 8e317385f..652d7b2d9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentFormFieldSignature Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs index 60a2c2f7e..56235bd2e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs @@ -179,14 +179,12 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Gets or Sets AvgTextLength /// [DataMember(Name = "avg_text_length", EmitDefaultValue = true)] public TemplateResponseFieldAvgTextLength AvgTextLength { get; set; } - /// /// Whether this form field is multiline text. /// @@ -194,7 +192,6 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) [DataMember(Name = "isMultiline", EmitDefaultValue = true)] public bool IsMultiline { get; set; } - /// /// Original font size used in this form field's text. /// @@ -202,7 +199,6 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) [DataMember(Name = "originalFontSize", EmitDefaultValue = true)] public int OriginalFontSize { get; set; } - /// /// Font family used in this form field's text. /// @@ -210,7 +206,6 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData) [DataMember(Name = "fontFamily", EmitDefaultValue = true)] public string FontFamily { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs index a1a69e715..c2785bc36 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs @@ -104,7 +104,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// A unique id for the static field. /// @@ -112,7 +111,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - /// /// The name of the static field. /// @@ -120,7 +118,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// The signer of the Static Field. /// @@ -128,7 +125,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "signer", EmitDefaultValue = true)] public string Signer { get; set; } - /// /// The horizontal offset in pixels for this static field. /// @@ -136,7 +132,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "x", EmitDefaultValue = true)] public int X { get; set; } - /// /// The vertical offset in pixels for this static field. /// @@ -144,7 +139,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "y", EmitDefaultValue = true)] public int Y { get; set; } - /// /// The width in pixels of this static field. /// @@ -152,7 +146,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "width", EmitDefaultValue = true)] public int Width { get; set; } - /// /// The height in pixels of this static field. /// @@ -160,7 +153,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "height", EmitDefaultValue = true)] public int Height { get; set; } - /// /// Boolean showing whether or not this field is required. /// @@ -168,7 +160,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - /// /// The name of the group this field is in. If this field is not a group, this defaults to `null`. /// @@ -176,7 +167,6 @@ public static TemplateResponseDocumentStaticFieldBase Init(string jsonData) [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs index 05cc2e671..ab15f3509 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentStaticFieldCheckbox Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs index fbab7d413..2be18f1f8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentStaticFieldDateSigned Init(string jsonData [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs index cc88f41a3..ef1109100 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentStaticFieldDropdown Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs index ed07a9557..ee2462c7f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentStaticFieldHyperlink Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs index d487f0696..fc96c9eae 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentStaticFieldInitials Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs index 6176430d0..e7d8fcf87 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentStaticFieldRadio Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs index c48408c0f..447e79dba 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentStaticFieldSignature Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs index b5a382a67..23434f1d3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs @@ -94,7 +94,6 @@ public static TemplateResponseDocumentStaticFieldText Init(string jsonData) [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs index 48d527e71..c90798f75 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs @@ -73,7 +73,6 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) [DataMember(Name = "num_lines", EmitDefaultValue = true)] public int NumLines { get; set; } - /// /// Number of characters per line. /// @@ -81,7 +80,6 @@ public static TemplateResponseFieldAvgTextLength Init(string jsonData) [DataMember(Name = "num_chars_per_line", EmitDefaultValue = true)] public int NumCharsPerLine { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs index 9b893d6a3..0a9187484 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs @@ -73,7 +73,6 @@ public static TemplateResponseSignerRole Init(string jsonData) [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - /// /// If signer order is assigned this is the 0-based index for this role. /// @@ -81,7 +80,6 @@ public static TemplateResponseSignerRole Init(string jsonData) [DataMember(Name = "order", EmitDefaultValue = true)] public int Order { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs index 8d23d43a1..7061adb9e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs @@ -81,7 +81,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -89,7 +88,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to use for the template. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -97,7 +95,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// The new default template email message. /// @@ -105,7 +102,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// The new default template email subject. /// @@ -113,7 +109,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. /// @@ -121,7 +116,6 @@ public static TemplateUpdateFilesRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs index e5fa70551..252daddc7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs @@ -70,7 +70,6 @@ public static TemplateUpdateFilesResponse Init(string jsonData) [DataMember(Name = "template", EmitDefaultValue = true)] public TemplateUpdateFilesResponseTemplate Template { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs index f04a63472..3dd518d43 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs @@ -73,7 +73,6 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) [DataMember(Name = "template_id", EmitDefaultValue = true)] public string TemplateId { get; set; } - /// /// A list of warnings. /// @@ -82,7 +81,6 @@ public static TemplateUpdateFilesResponseTemplate Init(string jsonData) [Obsolete] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs index 850ea5f1f..39fe862d5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs @@ -178,7 +178,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// The email address of the user that should be designated as the requester of this draft, if the draft type is `request_signature`. /// @@ -186,7 +185,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "requester_email_address", IsRequired = true, EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -194,7 +192,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -202,7 +199,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. /// @@ -210,7 +206,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. /// @@ -218,7 +213,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. /// @@ -226,7 +220,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// A list describing the attachments /// @@ -234,7 +227,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The email addresses that should be CCed. /// @@ -242,7 +234,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. /// @@ -250,21 +241,18 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Provide users the ability to review/edit the signers. /// @@ -272,7 +260,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "force_signer_page", EmitDefaultValue = true)] public bool ForceSignerPage { get; set; } - /// /// Provide users the ability to review/edit the subject and message. /// @@ -280,7 +267,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. /// @@ -288,7 +274,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. /// @@ -296,7 +281,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` /// @@ -304,7 +288,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. /// @@ -312,7 +295,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } - /// /// The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. /// @@ -320,7 +302,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "hold_request", EmitDefaultValue = true)] public bool HoldRequest { get; set; } - /// /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. /// @@ -328,7 +309,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } - /// /// The custom message in the email that will be sent to the signers. /// @@ -336,7 +316,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -344,7 +323,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// The URL you want signers redirected to after they successfully request a signature. /// @@ -352,7 +330,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } - /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. /// @@ -360,7 +337,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. /// @@ -368,7 +344,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// Add Signers to your Unclaimed Draft Signature Request. /// @@ -376,14 +351,12 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. /// @@ -391,7 +364,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. /// @@ -399,7 +371,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } - /// /// The subject in the email that will be sent to the signers. /// @@ -407,7 +378,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. /// @@ -415,7 +385,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. /// @@ -423,7 +392,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } - /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. /// @@ -431,7 +399,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } - /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. /// @@ -439,7 +406,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } - /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. /// @@ -447,7 +413,6 @@ public static UnclaimedDraftCreateEmbeddedRequest Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs index 52e3f3bb2..9f6125361 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs @@ -144,7 +144,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// The email address of the user that should be designated as the requester of this draft. /// @@ -152,7 +151,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "requester_email_address", IsRequired = true, EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. /// @@ -160,7 +158,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "template_ids", IsRequired = true, EmitDefaultValue = true)] public List TemplateIds { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. /// @@ -168,7 +165,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher. /// @@ -176,7 +172,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "allow_reassign", EmitDefaultValue = true)] public bool AllowReassign { get; set; } - /// /// Add CC email recipients. Required when a CC role exists for the Template. /// @@ -184,7 +179,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "ccs", EmitDefaultValue = true)] public List Ccs { get; set; } - /// /// An array defining values and options for custom fields. Required when a custom field exists in the Template. /// @@ -192,21 +186,18 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Use `files[]` to append additional files to the signature request being created from the template. Dropbox Sign will parse the files for [text tags](https://app.hellosign.com/api/textTagsWalkthrough) and append it to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. /// @@ -214,7 +205,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use file_urls[] to append additional files to the signature request being created from the template. Dropbox Sign will download the file, then parse it for [text tags](https://app.hellosign.com/api/textTagsWalkthrough), and append to the signature request. Text tags for signers not on the template(s) will be ignored. **files** or **file_urls[]** is required, but not both. /// @@ -222,7 +212,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Provide users the ability to review/edit the template signer roles. /// @@ -230,7 +219,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "force_signer_roles", EmitDefaultValue = true)] public bool ForceSignerRoles { get; set; } - /// /// Provide users the ability to review/edit the template subject and message. /// @@ -238,7 +226,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "force_subject_message", EmitDefaultValue = true)] public bool ForceSubjectMessage { get; set; } - /// /// The request from this draft will not automatically send to signers post-claim if set to 1. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. /// @@ -246,7 +233,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "hold_request", EmitDefaultValue = true)] public bool HoldRequest { get; set; } - /// /// The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. /// @@ -254,7 +240,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } - /// /// The custom message in the email that will be sent to the signers. /// @@ -262,7 +247,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -270,7 +254,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// This allows the requester to enable the preview experience (i.e. does not allow the requester's end user to add any additional fields via the editor). - `preview_only=true`: Allows requesters to enable the preview only experience. - `preview_only=false`: Allows requesters to disable the preview only experience. **NOTE:** This parameter overwrites `show_preview=1` (if set). /// @@ -278,7 +261,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "preview_only", EmitDefaultValue = true)] public bool PreviewOnly { get; set; } - /// /// The URL you want signers redirected to after they successfully request a signature. /// @@ -286,7 +268,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } - /// /// This allows the requester to enable the editor/preview experience. - `show_preview=true`: Allows requesters to enable the editor/preview experience. - `show_preview=false`: Allows requesters to disable the editor/preview experience. /// @@ -294,7 +275,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "show_preview", EmitDefaultValue = true)] public bool ShowPreview { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. /// @@ -302,7 +282,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// Add Signers to your Templated-based Signature Request. /// @@ -310,14 +289,12 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. /// @@ -325,7 +302,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// Disables the \"Me (Now)\" option for the person preparing the document. Does not work with type `send_document`. Defaults to `false`. /// @@ -333,7 +309,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "skip_me_now", EmitDefaultValue = true)] public bool SkipMeNow { get; set; } - /// /// The subject in the email that will be sent to the signers. /// @@ -341,7 +316,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. /// @@ -349,7 +323,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// The title you want to assign to the SignatureRequest. /// @@ -357,7 +330,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - /// /// Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. /// @@ -365,7 +337,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "populate_auto_fill_fields", EmitDefaultValue = true)] public bool PopulateAutoFillFields { get; set; } - /// /// This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. /// @@ -373,7 +344,6 @@ public static UnclaimedDraftCreateEmbeddedWithTemplateRequest Init(string jsonDa [DataMember(Name = "allow_ccs", EmitDefaultValue = true)] public bool AllowCcs { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs index 3c87d3c56..2a3463885 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs @@ -144,7 +144,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "files", EmitDefaultValue = true)] public List Files { get; set; } - /// /// Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both. /// @@ -152,7 +151,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "file_urls", EmitDefaultValue = true)] public List FileUrls { get; set; } - /// /// Allows signers to decline to sign a document if `true`. Defaults to `false`. /// @@ -160,7 +158,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "allow_decline", EmitDefaultValue = true)] public bool AllowDecline { get; set; } - /// /// A list describing the attachments /// @@ -168,7 +165,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// /// The email addresses that should be CCed. /// @@ -176,7 +172,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "cc_email_addresses", EmitDefaultValue = true)] public List CcEmailAddresses { get; set; } - /// /// Client id of the app used to create the draft. Used to apply the branding and callback url defined for the app. /// @@ -184,7 +179,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. /// @@ -192,14 +186,12 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "custom_fields", EmitDefaultValue = true)] public List CustomFields { get; set; } - /// /// Gets or Sets FieldOptions /// [DataMember(Name = "field_options", EmitDefaultValue = true)] public SubFieldOptions FieldOptions { get; set; } - /// /// Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. /// @@ -207,7 +199,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "form_field_groups", EmitDefaultValue = true)] public List FormFieldGroups { get; set; } - /// /// Conditional Logic rules for fields defined in `form_fields_per_document`. /// @@ -215,7 +206,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "form_field_rules", EmitDefaultValue = true)] public List FormFieldRules { get; set; } - /// /// The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` /// @@ -223,7 +213,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "form_fields_per_document", EmitDefaultValue = true)] public List FormFieldsPerDocument { get; set; } - /// /// Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. /// @@ -231,7 +220,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "hide_text_tags", EmitDefaultValue = true)] public bool HideTextTags { get; set; } - /// /// The custom message in the email that will be sent to the signers. /// @@ -239,7 +227,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - /// /// Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. /// @@ -247,7 +234,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "metadata", EmitDefaultValue = true)] public Dictionary Metadata { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. /// @@ -255,7 +241,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// Add Signers to your Unclaimed Draft Signature Request. /// @@ -263,14 +248,12 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "signers", EmitDefaultValue = true)] public List Signers { get; set; } - /// /// Gets or Sets SigningOptions /// [DataMember(Name = "signing_options", EmitDefaultValue = true)] public SubSigningOptions SigningOptions { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. /// @@ -278,7 +261,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The subject in the email that will be sent to the signers. /// @@ -286,7 +268,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "subject", EmitDefaultValue = true)] public string Subject { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. /// @@ -294,7 +275,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. /// @@ -302,7 +282,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "use_preexisting_fields", EmitDefaultValue = true)] public bool UsePreexistingFields { get; set; } - /// /// Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. /// @@ -310,7 +289,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "use_text_tags", EmitDefaultValue = true)] public bool UseTextTags { get; set; } - /// /// When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. **NOTE:** This does not correspond to the **expires_at** returned in the response. /// @@ -318,7 +296,6 @@ public static UnclaimedDraftCreateRequest Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs index 4b598103d..797880422 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs @@ -72,7 +72,6 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) [DataMember(Name = "unclaimed_draft", EmitDefaultValue = true)] public UnclaimedDraftResponse UnclaimedDraft { get; set; } - /// /// A list of warnings. /// @@ -80,7 +79,6 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs index 1dc04b47a..6474c3a53 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs @@ -90,14 +90,12 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } - /// /// Gets or Sets EditorOptions /// [DataMember(Name = "editor_options", EmitDefaultValue = true)] public SubEditorOptions EditorOptions { get; set; } - /// /// The request created from this draft will also be signable in embedded mode if set to `true`. /// @@ -105,7 +103,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) [DataMember(Name = "is_for_embedded_signing", EmitDefaultValue = true)] public bool IsForEmbeddedSigning { get; set; } - /// /// The email address of the user that should be designated as the requester of this draft. If not set, original requester's email address will be used. /// @@ -113,7 +110,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) [DataMember(Name = "requester_email_address", EmitDefaultValue = true)] public string RequesterEmailAddress { get; set; } - /// /// The URL you want signers redirected to after they successfully request a signature. /// @@ -121,7 +117,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } - /// /// When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. /// @@ -129,7 +124,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) [DataMember(Name = "show_progress_stepper", EmitDefaultValue = true)] public bool ShowProgressStepper { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. /// @@ -137,7 +131,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. /// @@ -145,7 +138,6 @@ public static UnclaimedDraftEditAndResendRequest Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs index 8d7597ae8..8af303e97 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs @@ -81,7 +81,6 @@ public static UnclaimedDraftResponse Init(string jsonData) [DataMember(Name = "signature_request_id", EmitDefaultValue = true)] public string SignatureRequestId { get; set; } - /// /// The URL to be used to claim this UnclaimedDraft. /// @@ -89,7 +88,6 @@ public static UnclaimedDraftResponse Init(string jsonData) [DataMember(Name = "claim_url", EmitDefaultValue = true)] public string ClaimUrl { get; set; } - /// /// The URL you want signers redirected to after they successfully sign. /// @@ -97,7 +95,6 @@ public static UnclaimedDraftResponse Init(string jsonData) [DataMember(Name = "signing_redirect_url", EmitDefaultValue = true)] public string SigningRedirectUrl { get; set; } - /// /// The URL you want signers redirected to after they successfully request a signature (Will only be returned in the response if it is applicable to the request.). /// @@ -105,7 +102,6 @@ public static UnclaimedDraftResponse Init(string jsonData) [DataMember(Name = "requesting_redirect_url", EmitDefaultValue = true)] public string RequestingRedirectUrl { get; set; } - /// /// When the link expires. /// @@ -113,7 +109,6 @@ public static UnclaimedDraftResponse Init(string jsonData) [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int? ExpiresAt { get; set; } - /// /// Whether this is a test draft. Signature requests made from test drafts have no legal value. /// @@ -121,7 +116,6 @@ public static UnclaimedDraftResponse Init(string jsonData) [DataMember(Name = "test_mode", EmitDefaultValue = true)] public bool TestMode { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs index b3ddd9a32..5d9791bd1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs @@ -83,7 +83,6 @@ public static WarningResponse Init(string jsonData) [DataMember(Name = "warning_msg", IsRequired = true, EmitDefaultValue = true)] public string WarningMsg { get; set; } - /// /// Warning name /// @@ -91,7 +90,6 @@ public static WarningResponse Init(string jsonData) [DataMember(Name = "warning_name", IsRequired = true, EmitDefaultValue = true)] public string WarningName { get; set; } - /// /// Returns the string presentation of the object /// diff --git a/sdks/dotnet/templates/AbstractOpenAPISchema.mustache b/sdks/dotnet/templates/AbstractOpenAPISchema.mustache index 4e97b76db..269e4ee45 100644 --- a/sdks/dotnet/templates/AbstractOpenAPISchema.mustache +++ b/sdks/dotnet/templates/AbstractOpenAPISchema.mustache @@ -3,13 +3,13 @@ using System; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} using System.Collections.Generic; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} namespace {{packageName}}.{{modelPackage}} { -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} public struct OpenApiType { public string Name { set; get; } @@ -23,7 +23,7 @@ namespace {{packageName}}.{{modelPackage}} List GetOpenApiTypes(); } -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} /// /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification /// diff --git a/sdks/dotnet/templates/ApiClient.mustache b/sdks/dotnet/templates/ApiClient.mustache index 95de085ef..974fd80b9 100644 --- a/sdks/dotnet/templates/ApiClient.mustache +++ b/sdks/dotnet/templates/ApiClient.mustache @@ -170,10 +170,10 @@ namespace {{packageName}}.Client { private readonly string _baseUrl; -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} private readonly RestClient _restClient; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} /// /// Specifies the settings on a object. /// These settings can be adjusted to accommodate custom serialization rules. @@ -225,7 +225,7 @@ namespace {{packageName}}.Client _baseUrl = basePath; } -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} /// /// Initializes a new instance of the . This should be used in unit tests only /// @@ -241,7 +241,7 @@ namespace {{packageName}}.Client _restClient = mockClient; } -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} /// /// Constructs the RestSharp version of an http method /// @@ -501,12 +501,12 @@ namespace {{packageName}}.Client } {{/hasOAuthMethods}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} using (RestClient client = new RestClient(clientOptions, configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)))) { -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} RestClient client = _restClient; if (client == null) { @@ -516,7 +516,7 @@ namespace {{packageName}}.Client } using (client) -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} { InterceptRequest(request); diff --git a/sdks/dotnet/templates/ApiException.mustache b/sdks/dotnet/templates/ApiException.mustache index 58722a78f..622d10c19 100644 --- a/sdks/dotnet/templates/ApiException.mustache +++ b/sdks/dotnet/templates/ApiException.mustache @@ -1,9 +1,9 @@ {{>partial_header}} using System; -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} using Dropbox.Sign.Model; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} namespace {{packageName}}.Client { @@ -22,12 +22,12 @@ namespace {{packageName}}.Client /// Gets or sets the error content (body json object) /// /// The error content (Http response body). -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} public object ErrorContent { get; private set; } -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} public ErrorResponse ErrorContent { get; private set; } -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} /// /// Gets or sets the HTTP headers @@ -57,12 +57,12 @@ namespace {{packageName}}.Client /// Error message. /// Error content. /// HTTP Headers. -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} public ApiException(int errorCode, string message, object errorContent = null, Multimap headers = null) : base(message) -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} public ApiException(int errorCode, string message, ErrorResponse errorContent = null, Multimap headers = null) : base(message) -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} { this.ErrorCode = errorCode; this.ErrorContent = errorContent; diff --git a/sdks/dotnet/templates/ClientUtils.mustache b/sdks/dotnet/templates/ClientUtils.mustache index 36cbb7db1..56eee6359 100644 --- a/sdks/dotnet/templates/ClientUtils.mustache +++ b/sdks/dotnet/templates/ClientUtils.mustache @@ -12,10 +12,10 @@ using System.Text.RegularExpressions; {{#useCompareNetObjects}} using KellermanSoftware.CompareNetObjects; {{/useCompareNetObjects}} -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} using Newtonsoft.Json; using {{packageName}}.Model; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} namespace {{packageName}}.Client { @@ -248,12 +248,12 @@ namespace {{packageName}}.Client /// /// /// EnumMember value as string otherwise null -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} private static string GetEnumMemberAttrValue(object enumVal) -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} public static string GetEnumMemberAttrValue(object enumVal) -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} { if (enumVal == null) throw new ArgumentNullException(nameof(enumVal)); @@ -266,7 +266,7 @@ namespace {{packageName}}.Client } return null; } -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} /// /// Tests if value is a System.IO.Stream or list of System.IO.Stream @@ -349,6 +349,6 @@ namespace {{packageName}}.Client ); } } -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} } } diff --git a/sdks/dotnet/templates/Configuration.mustache b/sdks/dotnet/templates/Configuration.mustache index e75b957f5..4969149ee 100644 --- a/sdks/dotnet/templates/Configuration.mustache +++ b/sdks/dotnet/templates/Configuration.mustache @@ -17,10 +17,10 @@ using System.Net.Security; {{#hasOAuthMethods}}using {{packageName}}.Client.Auth; {{/hasOAuthMethods}} {{/useRestSharp}} -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} using Newtonsoft.Json; using Dropbox.Sign.Model; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} namespace {{packageName}}.Client { @@ -58,23 +58,23 @@ namespace {{packageName}}.Client { return new ApiException(status, string.Format("Error calling {0}: {1}", methodName, response.RawContent), -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} response.RawContent, response.Headers); -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} JsonConvert.DeserializeObject(response.RawContent), response.Headers); -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} } {{^netStandard}} if (status == 0) { return new ApiException(status, -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} string.Format("Error calling {0}: {1}", methodName, response.ErrorText), response.ErrorText); -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} string.Format("Error calling {0}: {1}", methodName, response.ErrorText), JsonConvert.DeserializeObject(response.ErrorText)); -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} } {{/netStandard}} return null; diff --git a/sdks/dotnet/templates/README.mustache b/sdks/dotnet/templates/README.mustache index 999b7a907..f70a5dae2 100644 --- a/sdks/dotnet/templates/README.mustache +++ b/sdks/dotnet/templates/README.mustache @@ -4,7 +4,7 @@ {{{.}}} {{/appDescriptionWithNewLines}} -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} ## Migrating from legacy SDK This SDK is generated from our officially maintained [OpenAPI spec](https://github.com/hellosign/hellosign-openapi/blob/main/openapi.yaml). @@ -23,7 +23,7 @@ Pull Requests *must* be opened against the You must make SDK code changes in the mustache file within the `templates` directory that corresponds to the file you want updated. -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: {{appVersion}} @@ -37,7 +37,7 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) {{/infoUrl}} -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} ### Building You must have `docker` (or `podman` linked to `docker`) installed. Highly @@ -54,7 +54,7 @@ Run the following and everything is done for you: to the OAS file and/or the mustache template files _will be lost_ when you run this command. -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} ## Frameworks supported {{#netStandard}} @@ -78,7 +78,7 @@ this command. - [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later {{/validatable}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages: ``` {{#useRestSharp}} @@ -131,12 +131,12 @@ nuget pack -Build -OutputDirectory out {{packageName}}.csproj Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual. {{/netStandard}} -{{/vendorExtensions.x-ignore-block}} +{{/useCustomTemplateCode}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} ## Usage -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} ## Installation & Usage ### NuGet Package Manager @@ -148,7 +148,7 @@ The Dropbox Sign .NET SDK can be installed using the NuGet package manager, unde You can follow the NuGet quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-the-dotnet-cli) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-the-dotnet-cli#publish-the-package) the package via the dotnet CLI. Or, you can [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio?tabs=netcore-cli) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio?tabs=netcore-cli#publish-the-package) using Visual Studio. Alternatively, the .nupkg can be published to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consumed via NuGet as usual. -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} To use the API client with a HTTP proxy, setup a `System.Net.WebProxy` ```csharp @@ -188,7 +188,7 @@ services.AddHttpClient(httpClient => {{/useHttpClient}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} ## Getting Started ```csharp @@ -271,9 +271,9 @@ namespace Example } } ``` -{{/vendorExtensions.x-ignore-block}} +{{/useCustomTemplateCode}} -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} ## Getting Started {{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}} @@ -281,7 +281,7 @@ namespace Example REPLACE_ME_WITH_EXAMPLE_FOR__{{{operationId}}}_C#_CODE ``` {{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} ## Documentation for API Endpoints diff --git a/sdks/dotnet/templates/Solution.mustache b/sdks/dotnet/templates/Solution.mustache index 8c210e8e2..6a88a80cb 100644 --- a/sdks/dotnet/templates/Solution.mustache +++ b/sdks/dotnet/templates/Solution.mustache @@ -4,18 +4,18 @@ VisualStudioVersion = {{^netStandard}}12.0.0.0{{/netStandard}}{{#netStandard}}14 MinimumVisualStudioVersion = {{^netStandard}}10.0.0.1{{/netStandard}}{{#netStandard}}10.0.40219.1{{/netStandard}} Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "{{packageName}}", "src\{{packageName}}\{{packageName}}.csproj", "{{packageGuid}}" EndProject -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} {{^excludeTests}}Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "{{testPackageName}}", "src\{{testPackageName}}\{{testPackageName}}.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject {{/excludeTests}}Global -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign", "src\Dropbox.Sign\Dropbox.Sign.csproj", "{F8C8232D-7020-4603-8E04-18D060AE530B}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign.Test", "src\Dropbox.Sign.Test\Dropbox.Sign.Test.csproj", "{C305EB17-93FE-4BDA-89A4-120BD8C8A88A}" EndProject Global -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU @@ -29,12 +29,12 @@ Global {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} {C305EB17-93FE-4BDA-89A4-120BD8C8A88A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C305EB17-93FE-4BDA-89A4-120BD8C8A88A}.Debug|Any CPU.Build.0 = Debug|Any CPU {C305EB17-93FE-4BDA-89A4-120BD8C8A88A}.Release|Any CPU.ActiveCfg = Release|Any CPU {C305EB17-93FE-4BDA-89A4-120BD8C8A88A}.Release|Any CPU.Build.0 = Release|Any CPU -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdks/dotnet/templates/TestProject.mustache b/sdks/dotnet/templates/TestProject.mustache index 84de5ed14..05df99a79 100644 --- a/sdks/dotnet/templates/TestProject.mustache +++ b/sdks/dotnet/templates/TestProject.mustache @@ -22,13 +22,13 @@ 512 -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} diff --git a/sdks/dotnet/templates/api.mustache b/sdks/dotnet/templates/api.mustache index fc855feb3..16fe01a9c 100644 --- a/sdks/dotnet/templates/api.mustache +++ b/sdks/dotnet/templates/api.mustache @@ -276,7 +276,14 @@ namespace {{packageName}}.{{apiPackage}} {{/allParams}} {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); -{{! CUSTOM - BEGIN }} +{{^useCustomTemplateCode}} + string[] _contentTypes = new string[] { + {{#consumes}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/consumes}} + }; +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} {{#bodyParam}} var localVarContentType = ""; var openApiTypes = {{paramName}}.GetOpenApiTypes(); @@ -292,16 +299,14 @@ namespace {{packageName}}.{{apiPackage}} } {{/bodyParam}} {{^bodyParam}} -{{! CUSTOM - END }} string[] _contentTypes = new string[] { {{#consumes}} "{{{mediaType}}}"{{^-last}},{{/-last}} {{/consumes}} }; -{{! CUSTOM - BEGIN }} var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); {{/bodyParam}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} // to determine the Accept header string[] _accepts = new string[] { @@ -310,9 +315,9 @@ namespace {{packageName}}.{{apiPackage}} {{/produces}} }; -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); -{{/vendorExtensions.x-ignore-block}} +{{/useCustomTemplateCode}} if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -425,11 +430,11 @@ namespace {{packageName}}.{{apiPackage}} } {{/required}} {{/formParams}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} {{#bodyParam}} localVarRequestOptions.Data = {{paramName}}; {{/bodyParam}} -{{/vendorExtensions.x-ignore-block}} +{{/useCustomTemplateCode}} localVarRequestOptions.Operation = "{{classname}}.{{operationId}}"; localVarRequestOptions.OperationIndex = operationIndex; @@ -573,7 +578,14 @@ namespace {{packageName}}.{{apiPackage}} {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); -{{! CUSTOM - BEGIN }} +{{^useCustomTemplateCode}} + string[] _contentTypes = new string[] { + {{#consumes}} + "{{{mediaType}}}"{{^-last}}, {{/-last}} + {{/consumes}} + }; +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} {{#bodyParam}} var localVarContentType = ""; var openApiTypes = {{paramName}}.GetOpenApiTypes(); @@ -589,16 +601,14 @@ namespace {{packageName}}.{{apiPackage}} } {{/bodyParam}} {{^bodyParam}} -{{! CUSTOM - END }} string[] _contentTypes = new string[] { {{#consumes}} "{{{mediaType}}}"{{^-last}}, {{/-last}} {{/consumes}} }; -{{! CUSTOM - BEGIN }} var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); {{/bodyParam}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} // to determine the Accept header string[] _accepts = new string[] { @@ -607,9 +617,9 @@ namespace {{packageName}}.{{apiPackage}} {{/produces}} }; -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); -{{/vendorExtensions.x-ignore-block}} +{{/useCustomTemplateCode}} if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -740,11 +750,11 @@ namespace {{packageName}}.{{apiPackage}} } {{/required}} {{/formParams}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} {{#bodyParam}} localVarRequestOptions.Data = {{paramName}}; {{/bodyParam}} -{{/vendorExtensions.x-ignore-block}} +{{/useCustomTemplateCode}} localVarRequestOptions.Operation = "{{classname}}.{{operationId}}"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/templates/api_doc.mustache b/sdks/dotnet/templates/api_doc.mustache index b03e48177..341bd79d7 100644 --- a/sdks/dotnet/templates/api_doc.mustache +++ b/sdks/dotnet/templates/api_doc.mustache @@ -22,7 +22,7 @@ All URIs are relative to *{{{basePath}}}* {{{.}}}{{/notes}} ### Example -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} ```csharp using System.Collections.Generic; using System.Diagnostics; @@ -101,12 +101,12 @@ namespace Example } } ``` -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} ```csharp REPLACE_ME_WITH_EXAMPLE_FOR__{{{operationId}}}_C#_CODE ``` -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} #### Using the {{operationId}}WithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. diff --git a/sdks/dotnet/templates/gitignore.mustache b/sdks/dotnet/templates/gitignore.mustache index ce0f872e8..0cf6ba6d4 100644 --- a/sdks/dotnet/templates/gitignore.mustache +++ b/sdks/dotnet/templates/gitignore.mustache @@ -27,9 +27,9 @@ x86/ [Aa][Rr][Mm]/ [Aa][Rr][Mm]64/ bld/ -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} #[Bb]in/ -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} [Oo]bj/ [Ll]og/ [Ll]ogs/ @@ -363,8 +363,8 @@ MigrationBackup/ # Fody - auto-generated XML schema FodyWeavers.xsd -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} vendor api .openapi-generator -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} diff --git a/sdks/dotnet/templates/modelGeneric.mustache b/sdks/dotnet/templates/modelGeneric.mustache index 2add816c7..7392b272f 100644 --- a/sdks/dotnet/templates/modelGeneric.mustache +++ b/sdks/dotnet/templates/modelGeneric.mustache @@ -16,13 +16,13 @@ {{/mappedModels}} {{/discriminator}} {{/useUnityWebRequest}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} {{>visibility}} partial class {{classname}}{{#lambda.firstDot}}{{#parent}} : .{{/parent}}{{#validatable}} : .{{/validatable}}{{#equatable}} : .{{/equatable}}{{/lambda.firstDot}}{{#lambda.joinWithComma}}{{#parent}}{{{.}}} {{/parent}}{{#equatable}}IEquatable<{{classname}}> {{/equatable}}{{#validatable}}IValidatableObject {{/validatable}}{{/lambda.joinWithComma}} -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] {{>visibility}} partial class {{classname}} : {{#parent}}{{{.}}}, IOpenApiTyped, {{/parent}}IEquatable<{{classname}}>{{#validatable}}, IValidatableObject{{/validatable}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} { {{#vars}} {{#items.isEnum}} @@ -114,7 +114,7 @@ {{/conditionalSerialization}} {{/isEnum}} {{/vars}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} {{#hasRequired}} {{^hasOnlyReadOnly}} /// @@ -132,8 +132,8 @@ {{/isAdditionalPropertiesTrue}} {{/hasOnlyReadOnly}} {{/hasRequired}} -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} /// /// Initializes a new instance of the class. /// @@ -147,7 +147,7 @@ this.AdditionalProperties = new Dictionary(); } {{/isAdditionalPropertiesTrue}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} /// /// Initializes a new instance of the class. /// @@ -157,16 +157,16 @@ {{#hasOnlyReadOnly}} [JsonConstructorAttribute] {{/hasOnlyReadOnly}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}} { -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} public {{classname}}({{#readWriteVars}}{{#vendorExtensions.x-int-or-string}}Object{{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{{datatypeWithEnum}}}{{/vendorExtensions.x-int-or-string}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#vendorExtensions.x-int-or-string}}null{{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{/vendorExtensions.x-int-or-string}}{{^-last}}, {{/-last}}{{/readWriteVars}}) { {{#parent}}{{#parentVars}}this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; {{/parentVars}}{{/parent}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} {{#vars}} {{^isInherited}} {{^isReadOnly}} @@ -178,20 +178,20 @@ { throw new ArgumentNullException("{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} is a required property for {{classname}} and cannot be null"); } -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} {{/vendorExtensions.x-csharp-value-type}} {{#vendorExtensions.x-csharp-value-type}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} {{/vendorExtensions.x-csharp-value-type}} {{/conditionalSerialization}} {{#conditionalSerialization}} @@ -219,31 +219,31 @@ {{^conditionalSerialization}} {{^vendorExtensions.x-csharp-value-type}} // use default value if no "{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}" provided -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} ?? {{#isString}}@{{/isString}}{{{defaultValue}}}; -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} ?? {{{defaultValue}}}{{/vendorExtensions.x-int-or-string}}; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} {{/vendorExtensions.x-csharp-value-type}} {{#vendorExtensions.x-csharp-value-type}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} {{/vendorExtensions.x-csharp-value-type}} {{/conditionalSerialization}} {{/defaultValue}} {{^defaultValue}} {{^conditionalSerialization}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} this.{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} this.{{name}} = {{#vendorExtensions.x-int-or-string}}Convert.ToString({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}){{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/vendorExtensions.x-int-or-string}}; -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} {{/conditionalSerialization}} {{#conditionalSerialization}} this._{{name}} = {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; @@ -261,7 +261,7 @@ this.AdditionalProperties = new Dictionary(); {{/isAdditionalPropertiesTrue}} } -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} {{^mappedModels}} /// @@ -280,7 +280,7 @@ return obj; } {{/mappedModels}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} {{#vars}} {{^isInherited}} @@ -302,11 +302,12 @@ {{#deprecated}} [Obsolete] {{/deprecated}} -{{! CUSTOM - BEGIN }} +{{^useCustomTemplateCode}} + public {{{dataType}}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} {{^vendorExtensions.x-int-or-string}} -{{! CUSTOM - END }} public {{{dataType}}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } -{{! CUSTOM - BEGIN }} {{/vendorExtensions.x-int-or-string}} {{#vendorExtensions.x-int-or-string}}public object {{name}} { get => this._{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}; @@ -314,8 +315,7 @@ } private string _{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}};{{/vendorExtensions.x-int-or-string}} -{{! CUSTOM - END }} - +{{/useCustomTemplateCode}} {{#isReadOnly}} /// /// Returns false as {{name}} should not be serialized given that it's read-only. @@ -511,7 +511,7 @@ {{#validatable}} {{>validatable}} {{/validatable}} -{{! CUSTOM - BEGIN }} +{{#useCustomTemplateCode}} public List GetOpenApiTypes() { var types = new List(); @@ -526,5 +526,5 @@ return types; } -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} } diff --git a/sdks/dotnet/templates/model_doc.mustache b/sdks/dotnet/templates/model_doc.mustache index 72197b8bf..7dd060c70 100644 --- a/sdks/dotnet/templates/model_doc.mustache +++ b/sdks/dotnet/templates/model_doc.mustache @@ -10,21 +10,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- {{#parent}} {{#parentVars}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} **{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}} -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} **{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | REPLACE_ME_WITH_DESCRIPTION_BEGIN {{unescapedDescription}} REPLACE_ME_WITH_DESCRIPTION_END | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} {{/parentVars}} {{/parent}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} {{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}} {{/vars}} -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} {{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | REPLACE_ME_WITH_DESCRIPTION_BEGIN {{unescapedDescription}} REPLACE_ME_WITH_DESCRIPTION_END | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}{{/vars}} -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} [[Back to Model list]](../{{#useGenericHost}}../{{/useGenericHost}}README.md#documentation-for-models) [[Back to API list]](../{{#useGenericHost}}../{{/useGenericHost}}README.md#documentation-for-api-endpoints) [[Back to README]](../{{#useGenericHost}}../{{/useGenericHost}}README.md) diff --git a/sdks/dotnet/templates/netcore_project.mustache b/sdks/dotnet/templates/netcore_project.mustache index 5811c5a94..9fe2f86fd 100644 --- a/sdks/dotnet/templates/netcore_project.mustache +++ b/sdks/dotnet/templates/netcore_project.mustache @@ -16,12 +16,12 @@ {{packageVersion}} bin\$(Configuration)\$(TargetFramework)\{{packageName}}.xml{{#licenseId}} {{.}}{{/licenseId}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} https://{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}.git -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} https://github.com/hellosign/dropbox-sign-dotnet.git -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} git{{#releaseNote}} {{.}}{{/releaseNote}}{{#packageTags}} {{{.}}}{{/packageTags}}{{#nrt}} diff --git a/sdks/dotnet/templates/validatable.mustache b/sdks/dotnet/templates/validatable.mustache index 97593452d..3c56efdf7 100644 --- a/sdks/dotnet/templates/validatable.mustache +++ b/sdks/dotnet/templates/validatable.mustache @@ -50,12 +50,12 @@ {{#parent}} {{^isArray}} {{^isMap}} -{{#vendorExtensions.x-ignore-block}} +{{^useCustomTemplateCode}} foreach (var x in {{#discriminator}}base.{{/discriminator}}BaseValidate(validationContext)) -{{/vendorExtensions.x-ignore-block}} -{{! CUSTOM - BEGIN }} +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} foreach (var x in BaseValidate(validationContext)) -{{! CUSTOM - END }} +{{/useCustomTemplateCode}} { yield return x; } From b6dcd8ffc883b50e0fd595bc07f8f2afd1e8f79e Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Wed, 28 Aug 2024 17:17:15 -0500 Subject: [PATCH 09/10] Updating openapi-generator for C# to 7.8.0 --- sdks/dotnet/Dropbox.Sign.sln | 2 +- sdks/dotnet/README.md | 2 +- sdks/dotnet/run-build | 4 +- .../dotnet/src/Dropbox.Sign/Api/AccountApi.cs | 32 ++--- sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs | 40 +++--- .../src/Dropbox.Sign/Api/BulkSendJobApi.cs | 16 +-- .../src/Dropbox.Sign/Api/EmbeddedApi.cs | 16 +-- .../dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs | 56 ++++---- sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs | 16 +-- sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs | 8 +- .../Dropbox.Sign/Api/SignatureRequestApi.cs | 128 +++++++++--------- sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs | 80 +++++------ .../src/Dropbox.Sign/Api/TemplateApi.cs | 88 ++++++------ .../src/Dropbox.Sign/Api/UnclaimedDraftApi.cs | 32 ++--- .../src/Dropbox.Sign/Client/ApiClient.cs | 39 +++--- .../src/Dropbox.Sign/Client/ClientUtils.cs | 2 +- .../src/Dropbox.Sign/Client/Configuration.cs | 4 +- .../Client/IAsynchronousClient.cs | 14 +- .../src/Dropbox.Sign/Dropbox.Sign.csproj | 1 + .../Model/AccountCreateRequest.cs | 1 - .../Model/AccountCreateResponse.cs | 1 - .../Dropbox.Sign/Model/AccountGetResponse.cs | 1 - .../src/Dropbox.Sign/Model/AccountResponse.cs | 1 - .../Model/AccountResponseQuotas.cs | 1 - .../Model/AccountResponseUsage.cs | 1 - .../Model/AccountUpdateRequest.cs | 1 - .../Model/AccountVerifyRequest.cs | 1 - .../Model/AccountVerifyResponse.cs | 1 - .../Model/AccountVerifyResponseAccount.cs | 1 - .../Dropbox.Sign/Model/ApiAppCreateRequest.cs | 1 - .../Dropbox.Sign/Model/ApiAppGetResponse.cs | 1 - .../Dropbox.Sign/Model/ApiAppListResponse.cs | 1 - .../src/Dropbox.Sign/Model/ApiAppResponse.cs | 1 - .../Dropbox.Sign/Model/ApiAppResponseOAuth.cs | 1 - .../Model/ApiAppResponseOptions.cs | 1 - .../Model/ApiAppResponseOwnerAccount.cs | 1 - .../ApiAppResponseWhiteLabelingOptions.cs | 1 - .../Dropbox.Sign/Model/ApiAppUpdateRequest.cs | 1 - .../Model/BulkSendJobGetResponse.cs | 1 - ...BulkSendJobGetResponseSignatureRequests.cs | 1 - .../Model/BulkSendJobListResponse.cs | 1 - .../Dropbox.Sign/Model/BulkSendJobResponse.cs | 1 - .../Model/BulkSendJobSendResponse.cs | 1 - .../Model/EmbeddedEditUrlRequest.cs | 1 - .../Model/EmbeddedEditUrlResponse.cs | 1 - .../Model/EmbeddedEditUrlResponseEmbedded.cs | 1 - .../Model/EmbeddedSignUrlResponse.cs | 1 - .../Model/EmbeddedSignUrlResponseEmbedded.cs | 1 - .../src/Dropbox.Sign/Model/ErrorResponse.cs | 1 - .../Dropbox.Sign/Model/ErrorResponseError.cs | 1 - .../Model/EventCallbackRequest.cs | 1 - .../Model/EventCallbackRequestEvent.cs | 1 - .../EventCallbackRequestEventMetadata.cs | 1 - .../Model/FaxLineAddUserRequest.cs | 1 - .../Model/FaxLineAreaCodeGetResponse.cs | 1 - .../Model/FaxLineCreateRequest.cs | 1 - .../Model/FaxLineDeleteRequest.cs | 1 - .../Dropbox.Sign/Model/FaxLineListResponse.cs | 1 - .../Model/FaxLineRemoveUserRequest.cs | 1 - .../src/Dropbox.Sign/Model/FaxLineResponse.cs | 1 - .../Model/FaxLineResponseFaxLine.cs | 1 - .../src/Dropbox.Sign/Model/FileResponse.cs | 1 - .../Dropbox.Sign/Model/FileResponseDataUri.cs | 1 - .../Dropbox.Sign/Model/ListInfoResponse.cs | 1 - .../Model/OAuthTokenGenerateRequest.cs | 1 - .../Model/OAuthTokenRefreshRequest.cs | 1 - .../Dropbox.Sign/Model/OAuthTokenResponse.cs | 1 - .../Dropbox.Sign/Model/ReportCreateRequest.cs | 1 - .../Model/ReportCreateResponse.cs | 1 - .../src/Dropbox.Sign/Model/ReportResponse.cs | 1 - ...stBulkCreateEmbeddedWithTemplateRequest.cs | 1 - ...atureRequestBulkSendWithTemplateRequest.cs | 1 - .../SignatureRequestCreateEmbeddedRequest.cs | 1 - ...equestCreateEmbeddedWithTemplateRequest.cs | 1 - .../Model/SignatureRequestGetResponse.cs | 1 - .../Model/SignatureRequestListResponse.cs | 1 - .../Model/SignatureRequestRemindRequest.cs | 1 - .../Model/SignatureRequestResponse.cs | 1 - .../SignatureRequestResponseAttachment.cs | 1 - ...SignatureRequestResponseCustomFieldBase.cs | 1 - ...atureRequestResponseCustomFieldCheckbox.cs | 1 - ...SignatureRequestResponseCustomFieldText.cs | 1 - .../Model/SignatureRequestResponseDataBase.cs | 1 - ...gnatureRequestResponseDataValueCheckbox.cs | 1 - ...reRequestResponseDataValueCheckboxMerge.cs | 1 - ...atureRequestResponseDataValueDateSigned.cs | 1 - ...gnatureRequestResponseDataValueDropdown.cs | 1 - ...gnatureRequestResponseDataValueInitials.cs | 1 - .../SignatureRequestResponseDataValueRadio.cs | 1 - ...natureRequestResponseDataValueSignature.cs | 1 - .../SignatureRequestResponseDataValueText.cs | 1 - ...natureRequestResponseDataValueTextMerge.cs | 1 - .../SignatureRequestResponseSignatures.cs | 1 - .../Model/SignatureRequestSendRequest.cs | 1 - ...SignatureRequestSendWithTemplateRequest.cs | 1 - .../Model/SignatureRequestUpdateRequest.cs | 1 - .../src/Dropbox.Sign/Model/SubAttachment.cs | 1 - .../Dropbox.Sign/Model/SubBulkSignerList.cs | 1 - .../Model/SubBulkSignerListCustomField.cs | 1 - sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs | 1 - .../src/Dropbox.Sign/Model/SubCustomField.cs | 1 - .../Dropbox.Sign/Model/SubEditorOptions.cs | 1 - .../src/Dropbox.Sign/Model/SubFieldOptions.cs | 1 - .../Dropbox.Sign/Model/SubFormFieldGroup.cs | 1 - .../Dropbox.Sign/Model/SubFormFieldRule.cs | 1 - .../Model/SubFormFieldRuleAction.cs | 1 - .../Model/SubFormFieldRuleTrigger.cs | 1 - .../Model/SubFormFieldsPerDocumentBase.cs | 1 - .../Model/SubFormFieldsPerDocumentCheckbox.cs | 1 - .../SubFormFieldsPerDocumentCheckboxMerge.cs | 1 - .../SubFormFieldsPerDocumentDateSigned.cs | 1 - .../Model/SubFormFieldsPerDocumentDropdown.cs | 1 - .../SubFormFieldsPerDocumentHyperlink.cs | 1 - .../Model/SubFormFieldsPerDocumentInitials.cs | 1 - .../Model/SubFormFieldsPerDocumentRadio.cs | 1 - .../SubFormFieldsPerDocumentSignature.cs | 1 - .../Model/SubFormFieldsPerDocumentText.cs | 1 - .../SubFormFieldsPerDocumentTextMerge.cs | 1 - .../src/Dropbox.Sign/Model/SubMergeField.cs | 1 - .../dotnet/src/Dropbox.Sign/Model/SubOAuth.cs | 1 - .../src/Dropbox.Sign/Model/SubOptions.cs | 1 - .../SubSignatureRequestGroupedSigners.cs | 1 - .../Model/SubSignatureRequestSigner.cs | 1 - .../SubSignatureRequestTemplateSigner.cs | 1 - .../Dropbox.Sign/Model/SubSigningOptions.cs | 1 - .../src/Dropbox.Sign/Model/SubTeamResponse.cs | 1 - .../src/Dropbox.Sign/Model/SubTemplateRole.cs | 1 - .../Model/SubUnclaimedDraftSigner.cs | 1 - .../Model/SubUnclaimedDraftTemplateSigner.cs | 1 - .../Model/SubWhiteLabelingOptions.cs | 1 - .../Model/TeamAddMemberRequest.cs | 1 - .../Dropbox.Sign/Model/TeamCreateRequest.cs | 1 - .../Dropbox.Sign/Model/TeamGetInfoResponse.cs | 1 - .../src/Dropbox.Sign/Model/TeamGetResponse.cs | 1 - .../Dropbox.Sign/Model/TeamInfoResponse.cs | 1 - .../Dropbox.Sign/Model/TeamInviteResponse.cs | 1 - .../Dropbox.Sign/Model/TeamInvitesResponse.cs | 1 - .../Dropbox.Sign/Model/TeamMemberResponse.cs | 1 - .../Dropbox.Sign/Model/TeamMembersResponse.cs | 1 - .../Dropbox.Sign/Model/TeamParentResponse.cs | 1 - .../Model/TeamRemoveMemberRequest.cs | 1 - .../src/Dropbox.Sign/Model/TeamResponse.cs | 1 - .../Model/TeamSubTeamsResponse.cs | 1 - .../Dropbox.Sign/Model/TeamUpdateRequest.cs | 1 - .../Model/TemplateAddUserRequest.cs | 1 - .../TemplateCreateEmbeddedDraftRequest.cs | 1 - .../TemplateCreateEmbeddedDraftResponse.cs | 1 - ...lateCreateEmbeddedDraftResponseTemplate.cs | 1 - .../Model/TemplateCreateRequest.cs | 1 - .../Model/TemplateCreateResponse.cs | 1 - .../Model/TemplateCreateResponseTemplate.cs | 1 - .../Model/TemplateEditResponse.cs | 1 - .../Dropbox.Sign/Model/TemplateGetResponse.cs | 1 - .../Model/TemplateListResponse.cs | 1 - .../Model/TemplateRemoveUserRequest.cs | 1 - .../Dropbox.Sign/Model/TemplateResponse.cs | 1 - .../Model/TemplateResponseAccount.cs | 1 - .../Model/TemplateResponseAccountQuota.cs | 1 - .../Model/TemplateResponseCCRole.cs | 1 - .../Model/TemplateResponseDocument.cs | 1 - ...TemplateResponseDocumentCustomFieldBase.cs | 1 - ...lateResponseDocumentCustomFieldCheckbox.cs | 1 - ...TemplateResponseDocumentCustomFieldText.cs | 1 - .../TemplateResponseDocumentFieldGroup.cs | 1 - .../TemplateResponseDocumentFieldGroupRule.cs | 1 - .../TemplateResponseDocumentFormFieldBase.cs | 1 - ...mplateResponseDocumentFormFieldCheckbox.cs | 1 - ...lateResponseDocumentFormFieldDateSigned.cs | 1 - ...mplateResponseDocumentFormFieldDropdown.cs | 1 - ...plateResponseDocumentFormFieldHyperlink.cs | 1 - ...mplateResponseDocumentFormFieldInitials.cs | 1 - .../TemplateResponseDocumentFormFieldRadio.cs | 1 - ...plateResponseDocumentFormFieldSignature.cs | 1 - .../TemplateResponseDocumentFormFieldText.cs | 1 - ...TemplateResponseDocumentStaticFieldBase.cs | 1 - ...lateResponseDocumentStaticFieldCheckbox.cs | 1 - ...teResponseDocumentStaticFieldDateSigned.cs | 1 - ...lateResponseDocumentStaticFieldDropdown.cs | 1 - ...ateResponseDocumentStaticFieldHyperlink.cs | 1 - ...lateResponseDocumentStaticFieldInitials.cs | 1 - ...emplateResponseDocumentStaticFieldRadio.cs | 1 - ...ateResponseDocumentStaticFieldSignature.cs | 1 - ...TemplateResponseDocumentStaticFieldText.cs | 1 - .../TemplateResponseFieldAvgTextLength.cs | 1 - .../Model/TemplateResponseSignerRole.cs | 1 - .../Model/TemplateUpdateFilesRequest.cs | 1 - .../Model/TemplateUpdateFilesResponse.cs | 1 - .../TemplateUpdateFilesResponseTemplate.cs | 1 - .../UnclaimedDraftCreateEmbeddedRequest.cs | 1 - ...dDraftCreateEmbeddedWithTemplateRequest.cs | 1 - .../Model/UnclaimedDraftCreateRequest.cs | 1 - .../Model/UnclaimedDraftCreateResponse.cs | 1 - .../UnclaimedDraftEditAndResendRequest.cs | 1 - .../Model/UnclaimedDraftResponse.cs | 1 - .../src/Dropbox.Sign/Model/WarningResponse.cs | 1 - sdks/dotnet/templates/ApiClient.mustache | 48 +++---- sdks/dotnet/templates/ClientUtils.mustache | 2 +- sdks/dotnet/templates/Configuration.mustache | 11 +- .../HttpSigningConfiguration.mustache | 4 +- .../templates/IAsynchronousClient.mustache | 14 +- .../templates/IReadableConfiguration.mustache | 6 + sdks/dotnet/templates/Solution.mustache | 2 +- sdks/dotnet/templates/api.mustache | 8 +- .../auth/OAuthAuthenticator.mustache | 9 ++ .../generichost/ApiKeyToken.mustache | 4 +- .../generichost/ApiResponse`1.mustache | 4 +- .../libraries/generichost/BasicToken.mustache | 2 +- .../generichost/BearerToken.mustache | 2 +- .../generichost/ClientUtils.mustache | 6 +- .../HttpSigningConfiguration.mustache | 6 +- .../generichost/HttpSigningToken.mustache | 2 +- .../libraries/generichost/OAuthToken.mustache | 2 +- .../generichost/OperationSignature.mustache | 2 +- .../generichost/RateLimitProvider`1.mustache | 2 +- .../generichost/TokenContainer`1.mustache | 2 +- .../generichost/TokenProvider`1.mustache | 2 +- .../libraries/generichost/api.mustache | 17 ++- .../generichost/modelGeneric.mustache | 10 +- .../libraries/httpclient/ApiClient.mustache | 16 +-- .../libraries/httpclient/api.mustache | 8 +- .../unityWebRequest/ApiClient.mustache | 22 +-- .../libraries/unityWebRequest/api.mustache | 8 +- .../dotnet/templates/netcore_project.mustache | 1 + sdks/dotnet/templates/validatable.mustache | 10 +- 224 files changed, 419 insertions(+), 569 deletions(-) diff --git a/sdks/dotnet/Dropbox.Sign.sln b/sdks/dotnet/Dropbox.Sign.sln index fa621fb25..20ab4952c 100755 --- a/sdks/dotnet/Dropbox.Sign.sln +++ b/sdks/dotnet/Dropbox.Sign.sln @@ -30,4 +30,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection -EndGlobal +EndGlobal \ No newline at end of file diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index b66a0a2b2..06bb241fd 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/README.md @@ -24,7 +24,7 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap - API version: 3.0.0 - SDK version: 1.5-dev -- Generator version: 7.7.0 +- Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.CSharpClientCodegen ### Building diff --git a/sdks/dotnet/run-build b/sdks/dotnet/run-build index 6820163af..d928df3e1 100755 --- a/sdks/dotnet/run-build +++ b/sdks/dotnet/run-build @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# see https://github.com/OpenAPITools/openapi-generator/tree/v7.7.0/modules/openapi-generator/src/main/resources/csharp +# see https://github.com/OpenAPITools/openapi-generator/tree/v7.8.0/modules/openapi-generator/src/main/resources/csharp set -e @@ -9,7 +9,7 @@ WORKING_DIR="/app/dotnet" docker run --rm \ -v "${DIR}/:/local" \ - openapitools/openapi-generator-cli:v7.7.0 generate \ + openapitools/openapi-generator-cli:v7.8.0 generate \ -i "/local/openapi-sdk.yaml" \ -c "/local/openapi-config.yaml" \ -t "/local/templates" \ diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs index 35d8c46f6..0e70ee233 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs @@ -141,7 +141,7 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Account @@ -154,7 +154,7 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Account /// @@ -167,7 +167,7 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - System.Threading.Tasks.Task AccountGetAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountGetAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Account @@ -181,7 +181,7 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Account /// @@ -193,7 +193,7 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Account @@ -206,7 +206,7 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Verify Account /// @@ -218,7 +218,7 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Verify Account @@ -231,7 +231,7 @@ public interface IAccountApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -450,7 +450,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - public async System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountCreateWithHttpInfoAsync(accountCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -464,7 +464,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'accountCreateRequest' is set if (accountCreateRequest == null) @@ -630,7 +630,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - public async System.Threading.Tasks.Task AccountGetAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountGetAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountGetWithHttpInfoAsync(accountId, emailAddress, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -645,7 +645,7 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - public async System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountGetWithHttpInfoAsync(string? accountId = default(string?), string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); @@ -808,7 +808,7 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - public async System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountUpdateWithHttpInfoAsync(accountUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -822,7 +822,7 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'accountUpdateRequest' is set if (accountUpdateRequest == null) @@ -992,7 +992,7 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - public async System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountVerifyWithHttpInfoAsync(accountVerifyRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1006,7 +1006,7 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'accountVerifyRequest' is set if (accountVerifyRequest == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs index 8e5245e0f..d5ff4381b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs @@ -166,7 +166,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create API App @@ -179,7 +179,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete API App /// @@ -191,7 +191,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task ApiAppDeleteAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppDeleteAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete API App @@ -204,7 +204,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get API App /// @@ -216,7 +216,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppGetAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppGetAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get API App @@ -229,7 +229,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List API Apps /// @@ -242,7 +242,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppListResponse - System.Threading.Tasks.Task ApiAppListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List API Apps @@ -256,7 +256,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppListResponse) - System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update API App /// @@ -269,7 +269,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update API App @@ -283,7 +283,7 @@ public interface IApiAppApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -502,7 +502,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppCreateWithHttpInfoAsync(apiAppCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -516,7 +516,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'apiAppCreateRequest' is set if (apiAppCreateRequest == null) @@ -677,7 +677,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task ApiAppDeleteAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppDeleteAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiAppDeleteWithHttpInfoAsync(clientId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -690,7 +690,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppDeleteWithHttpInfo(string c /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppDeleteWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'clientId' is set if (clientId == null) @@ -844,7 +844,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppGetAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppGetAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppGetWithHttpInfoAsync(clientId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -858,7 +858,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppGetWithHttpInfoAsync(string clientId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'clientId' is set if (clientId == null) @@ -1016,7 +1016,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppListResponse - public async System.Threading.Tasks.Task ApiAppListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1031,7 +1031,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppListResponse) - public async System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); @@ -1204,7 +1204,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppUpdateWithHttpInfoAsync(clientId, apiAppUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1219,7 +1219,7 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'clientId' is set if (clientId == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs index fc47749b5..25915628e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs @@ -101,7 +101,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobGetResponse - System.Threading.Tasks.Task BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Bulk Send Job @@ -116,7 +116,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobGetResponse) - System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Bulk Send Jobs /// @@ -129,7 +129,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobListResponse - System.Threading.Tasks.Task BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Bulk Send Jobs @@ -143,7 +143,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobListResponse) - System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -368,7 +368,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobGetResponse - public async System.Threading.Tasks.Task BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await BulkSendJobGetWithHttpInfoAsync(bulkSendJobId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -384,7 +384,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobGetResponse) - public async System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'bulkSendJobId' is set if (bulkSendJobId == null) @@ -550,7 +550,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobListResponse - public async System.Threading.Tasks.Task BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await BulkSendJobListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -565,7 +565,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobListResponse) - public async System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs index 244202a30..32115b268 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs @@ -96,7 +96,7 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Embedded Template Edit URL @@ -110,7 +110,7 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Embedded Sign URL /// @@ -122,7 +122,7 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedSignUrlResponse - System.Threading.Tasks.Task EmbeddedSignUrlAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task EmbeddedSignUrlAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Embedded Sign URL @@ -135,7 +135,7 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedSignUrlResponse) - System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -364,7 +364,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - public async System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedEditUrlWithHttpInfoAsync(templateId, embeddedEditUrlRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -379,7 +379,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -548,7 +548,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedSignUrlResponse - public async System.Threading.Tasks.Task EmbeddedSignUrlAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task EmbeddedSignUrlAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedSignUrlWithHttpInfoAsync(signatureId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -562,7 +562,7 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedSignUrlW /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedSignUrlResponse) - public async System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> EmbeddedSignUrlWithHttpInfoAsync(string signatureId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureId' is set if (signatureId == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs index d1a274cd2..edb0eb516 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs @@ -220,7 +220,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Add Fax Line User @@ -233,7 +233,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Available Fax Line Area Codes /// @@ -248,7 +248,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineAreaCodeGetResponse - System.Threading.Tasks.Task FaxLineAreaCodeGetAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineAreaCodeGetAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Available Fax Line Area Codes @@ -264,7 +264,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineAreaCodeGetResponse) - System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Purchase Fax Line /// @@ -276,7 +276,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Purchase Fax Line @@ -289,7 +289,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Fax Line /// @@ -301,7 +301,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task FaxLineDeleteAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineDeleteAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Fax Line @@ -314,7 +314,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Fax Line /// @@ -326,7 +326,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineGetAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineGetAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Fax Line @@ -339,7 +339,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Fax Lines /// @@ -354,7 +354,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineListResponse - System.Threading.Tasks.Task FaxLineListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Fax Lines @@ -370,7 +370,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineListResponse) - System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Fax Line Access /// @@ -382,7 +382,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Fax Line Access @@ -395,7 +395,7 @@ public interface IFaxLineApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -608,7 +608,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAddUserWithHttpInfoAsync(faxLineAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -622,7 +622,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineAddUserRequest' is set if (faxLineAddUserRequest == null) @@ -793,7 +793,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineAreaCodeGetResponse - public async System.Threading.Tasks.Task FaxLineAreaCodeGetAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineAreaCodeGetAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAreaCodeGetWithHttpInfoAsync(country, state, province, city, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -810,7 +810,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineAreaCodeGetResponse) - public async System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineAreaCodeGetWithHttpInfoAsync(string country, string? state = default(string?), string? province = default(string?), string? city = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'country' is set if (country == null) @@ -972,7 +972,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineCreateWithHttpInfoAsync(faxLineCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -986,7 +986,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineCreateRequest' is set if (faxLineCreateRequest == null) @@ -1143,7 +1143,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task FaxLineDeleteAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineDeleteAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await FaxLineDeleteWithHttpInfoAsync(faxLineDeleteRequest, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1156,7 +1156,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineDeleteWithHttpInfo(FaxLine /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineDeleteWithHttpInfoAsync(FaxLineDeleteRequest faxLineDeleteRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineDeleteRequest' is set if (faxLineDeleteRequest == null) @@ -1306,7 +1306,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineGetAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineGetAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineGetWithHttpInfoAsync(number, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1320,7 +1320,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineGetWithHttpInfoAsync(string number, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'number' is set if (number == null) @@ -1480,7 +1480,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineListResponse - public async System.Threading.Tasks.Task FaxLineListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineListWithHttpInfoAsync(accountId, page, pageSize, showTeamLines, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1497,7 +1497,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineListResponse) - public async System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), bool? showTeamLines = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); @@ -1656,7 +1656,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineRemoveUserWithHttpInfoAsync(faxLineRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1670,7 +1670,7 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineRemoveUserRequest' is set if (faxLineRemoveUserRequest == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs index 2f651b2b8..563c0a500 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/OAuthApi.cs @@ -93,7 +93,7 @@ public interface IOAuthApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - System.Threading.Tasks.Task OauthTokenGenerateAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task OauthTokenGenerateAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// OAuth Token Generate @@ -106,7 +106,7 @@ public interface IOAuthApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// OAuth Token Refresh /// @@ -118,7 +118,7 @@ public interface IOAuthApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - System.Threading.Tasks.Task OauthTokenRefreshAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task OauthTokenRefreshAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// OAuth Token Refresh @@ -131,7 +131,7 @@ public interface IOAuthApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -338,7 +338,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - public async System.Threading.Tasks.Task OauthTokenGenerateAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task OauthTokenGenerateAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await OauthTokenGenerateWithHttpInfoAsync(oAuthTokenGenerateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -352,7 +352,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenGenerateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - public async System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> OauthTokenGenerateWithHttpInfoAsync(OAuthTokenGenerateRequest oAuthTokenGenerateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'oAuthTokenGenerateRequest' is set if (oAuthTokenGenerateRequest == null) @@ -498,7 +498,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of OAuthTokenResponse - public async System.Threading.Tasks.Task OauthTokenRefreshAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task OauthTokenRefreshAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await OauthTokenRefreshWithHttpInfoAsync(oAuthTokenRefreshRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -512,7 +512,7 @@ public Dropbox.Sign.Client.ApiResponse OauthTokenRefreshWith /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (OAuthTokenResponse) - public async System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> OauthTokenRefreshWithHttpInfoAsync(OAuthTokenRefreshRequest oAuthTokenRefreshRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'oAuthTokenRefreshRequest' is set if (oAuthTokenRefreshRequest == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs index 72b26187a..a3e26932a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs @@ -70,7 +70,7 @@ public interface IReportApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Report @@ -83,7 +83,7 @@ public interface IReportApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -296,7 +296,7 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - public async System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await ReportCreateWithHttpInfoAsync(reportCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -310,7 +310,7 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'reportCreateRequest' is set if (reportCreateRequest == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs index 0e84330f1..0669f9132 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs @@ -429,7 +429,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Embedded Bulk Send with Template @@ -442,7 +442,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Bulk Send with Template /// @@ -454,7 +454,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Bulk Send with Template @@ -467,7 +467,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Cancel Incomplete Signature Request /// @@ -479,7 +479,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Cancel Incomplete Signature Request @@ -492,7 +492,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request /// @@ -504,7 +504,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request @@ -517,7 +517,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request with Template /// @@ -529,7 +529,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request with Template @@ -542,7 +542,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Download Files /// @@ -555,7 +555,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - System.Threading.Tasks.Task SignatureRequestFilesAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestFilesAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Download Files @@ -569,7 +569,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Download Files as Data Uri /// @@ -581,7 +581,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Download Files as Data Uri @@ -594,7 +594,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Download Files as File Url /// @@ -607,7 +607,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Download Files as File Url @@ -621,7 +621,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Signature Request /// @@ -633,7 +633,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestGetAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestGetAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Signature Request @@ -646,7 +646,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Signature Requests /// @@ -661,7 +661,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestListResponse - System.Threading.Tasks.Task SignatureRequestListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Signature Requests @@ -677,7 +677,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestListResponse) - System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Release On-Hold Signature Request /// @@ -689,7 +689,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Release On-Hold Signature Request @@ -702,7 +702,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Request Reminder /// @@ -715,7 +715,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Request Reminder @@ -729,7 +729,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Signature Request Access /// @@ -741,7 +741,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Signature Request Access @@ -754,7 +754,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Signature Request /// @@ -766,7 +766,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Signature Request @@ -779,7 +779,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send with Template /// @@ -791,7 +791,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send with Template @@ -804,7 +804,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Signature Request /// @@ -817,7 +817,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Signature Request @@ -831,7 +831,7 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -1044,7 +1044,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestBulkCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1058,7 +1058,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' is set if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) @@ -1222,7 +1222,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(signatureRequestBulkSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1236,7 +1236,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestBulkSendWithTemplateRequest' is set if (signatureRequestBulkSendWithTemplateRequest == null) @@ -1397,7 +1397,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await SignatureRequestCancelWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1410,7 +1410,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -1572,7 +1572,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithHttpInfoAsync(signatureRequestCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1586,7 +1586,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestCreateEmbeddedRequest' is set if (signatureRequestCreateEmbeddedRequest == null) @@ -1756,7 +1756,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1770,7 +1770,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' is set if (signatureRequestCreateEmbeddedWithTemplateRequest == null) @@ -1941,7 +1941,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task SignatureRequestFilesAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestFilesAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestFilesWithHttpInfoAsync(signatureRequestId, fileType, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1956,7 +1956,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestFilesWithHttpInfoAsync(string signatureRequestId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2116,7 +2116,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - public async System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestFilesAsDataUriAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestFilesAsDataUriWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2130,7 +2130,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - public async System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestFilesAsDataUriWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2291,7 +2291,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - public async System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestFilesAsFileUrlAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestFilesAsFileUrlWithHttpInfoAsync(signatureRequestId, forceDownload, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2306,7 +2306,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestFile /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - public async System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestFilesAsFileUrlWithHttpInfoAsync(string signatureRequestId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2464,7 +2464,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestGetAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestGetAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestGetWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2478,7 +2478,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestGetWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2650,7 +2650,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestListResponse - public async System.Threading.Tasks.Task SignatureRequestListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestListWithHttpInfoAsync(accountId, page, pageSize, query, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2667,7 +2667,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestListResponse) - public async System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); @@ -2830,7 +2830,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestReleaseHoldWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2844,7 +2844,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -3016,7 +3016,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestRemindWithHttpInfoAsync(signatureRequestId, signatureRequestRemindRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -3031,7 +3031,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -3193,7 +3193,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await SignatureRequestRemoveWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3206,7 +3206,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -3362,7 +3362,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithHttpInfoAsync(signatureRequestSendRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -3376,7 +3376,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestSendRequest' is set if (signatureRequestSendRequest == null) @@ -3546,7 +3546,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithTemplateWithHttpInfoAsync(signatureRequestSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -3560,7 +3560,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestSendWithTemplateRequest' is set if (signatureRequestSendWithTemplateRequest == null) @@ -3740,7 +3740,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestUpdateWithHttpInfoAsync(signatureRequestId, signatureRequestUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -3755,7 +3755,7 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs index b309fb316..8fd6f3b1c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs @@ -284,7 +284,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Add User to Team @@ -298,7 +298,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Team /// @@ -310,7 +310,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Team @@ -323,7 +323,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Team /// @@ -334,7 +334,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TeamDeleteAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamDeleteAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Team @@ -346,7 +346,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Team /// @@ -357,7 +357,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Team @@ -369,7 +369,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Team Info /// @@ -381,7 +381,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetInfoResponse - System.Threading.Tasks.Task TeamInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Team Info @@ -394,7 +394,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetInfoResponse) - System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Team Invites /// @@ -406,7 +406,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamInvitesResponse - System.Threading.Tasks.Task TeamInvitesAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamInvitesAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Team Invites @@ -419,7 +419,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamInvitesResponse) - System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Team Members /// @@ -433,7 +433,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamMembersResponse - System.Threading.Tasks.Task TeamMembersAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamMembersAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Team Members @@ -448,7 +448,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamMembersResponse) - System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove User from Team /// @@ -460,7 +460,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove User from Team @@ -473,7 +473,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Sub Teams /// @@ -487,7 +487,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamSubTeamsResponse - System.Threading.Tasks.Task TeamSubTeamsAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamSubTeamsAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Sub Teams @@ -502,7 +502,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamSubTeamsResponse) - System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Team /// @@ -514,7 +514,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Team @@ -527,7 +527,7 @@ public interface ITeamApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -753,7 +753,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamAddMemberWithHttpInfoAsync(teamAddMemberRequest, teamId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -768,7 +768,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamAddMemberRequest' is set if (teamAddMemberRequest == null) @@ -942,7 +942,7 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamCreateWithHttpInfoAsync(teamCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -956,7 +956,7 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamCreateRequest' is set if (teamCreateRequest == null) @@ -1107,7 +1107,7 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TeamDeleteAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamDeleteAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TeamDeleteWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1119,7 +1119,7 @@ public Dropbox.Sign.Client.ApiResponse TeamDeleteWithHttpInfo(int operat /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamDeleteWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); @@ -1256,7 +1256,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1269,7 +1269,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); @@ -1413,7 +1413,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetInfoResponse - public async System.Threading.Tasks.Task TeamInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamInfoWithHttpInfoAsync(teamId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1427,7 +1427,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetInfoResponse) - public async System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamInfoWithHttpInfoAsync(string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); @@ -1575,7 +1575,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamInvitesResponse - public async System.Threading.Tasks.Task TeamInvitesAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamInvitesAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamInvitesWithHttpInfoAsync(emailAddress, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1589,7 +1589,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamInvitesResponse) - public async System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamInvitesWithHttpInfoAsync(string? emailAddress = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); @@ -1754,7 +1754,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamMembersResponse - public async System.Threading.Tasks.Task TeamMembersAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamMembersAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamMembersWithHttpInfoAsync(teamId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1770,7 +1770,7 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamMembersResponse) - public async System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamMembersWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamId' is set if (teamId == null) @@ -1940,7 +1940,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamRemoveMemberWithHttpInfoAsync(teamRemoveMemberRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1954,7 +1954,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamRemoveMemberRequest' is set if (teamRemoveMemberRequest == null) @@ -2130,7 +2130,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamSubTeamsResponse - public async System.Threading.Tasks.Task TeamSubTeamsAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamSubTeamsAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamSubTeamsWithHttpInfoAsync(teamId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2146,7 +2146,7 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamSubTeamsResponse) - public async System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamSubTeamsWithHttpInfoAsync(string teamId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamId' is set if (teamId == null) @@ -2316,7 +2316,7 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamUpdateWithHttpInfoAsync(teamUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2330,7 +2330,7 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamUpdateRequest' is set if (teamUpdateRequest == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs index 6211320d3..01bb32262 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs @@ -317,7 +317,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Add User to Template @@ -331,7 +331,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Template /// @@ -343,7 +343,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Template @@ -356,7 +356,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Template Draft /// @@ -368,7 +368,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Template Draft @@ -381,7 +381,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Template /// @@ -393,7 +393,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Template @@ -406,7 +406,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template Files /// @@ -419,7 +419,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - System.Threading.Tasks.Task TemplateFilesAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateFilesAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template Files @@ -433,7 +433,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template Files as Data Uri /// @@ -445,7 +445,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - System.Threading.Tasks.Task TemplateFilesAsDataUriAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateFilesAsDataUriAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template Files as Data Uri @@ -458,7 +458,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template Files as File Url /// @@ -471,7 +471,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template Files as File Url @@ -485,7 +485,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template /// @@ -497,7 +497,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateGetAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateGetAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template @@ -510,7 +510,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Templates /// @@ -525,7 +525,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateListResponse - System.Threading.Tasks.Task TemplateListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Templates @@ -541,7 +541,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateListResponse) - System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove User from Template /// @@ -554,7 +554,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove User from Template @@ -568,7 +568,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Template Files /// @@ -581,7 +581,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Template Files @@ -595,7 +595,7 @@ public interface ITemplateApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -824,7 +824,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateAddUserWithHttpInfoAsync(templateId, templateAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -839,7 +839,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -1016,7 +1016,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - public async System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateWithHttpInfoAsync(templateCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1030,7 +1030,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateCreateRequest' is set if (templateCreateRequest == null) @@ -1200,7 +1200,7 @@ public Dropbox.Sign.Client.ApiResponse Temp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateEmbeddedDraftWithHttpInfoAsync(templateCreateEmbeddedDraftRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1214,7 +1214,7 @@ public Dropbox.Sign.Client.ApiResponse Temp /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateCreateEmbeddedDraftRequest' is set if (templateCreateEmbeddedDraftRequest == null) @@ -1375,7 +1375,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1388,7 +1388,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -1551,7 +1551,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task TemplateFilesAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateFilesAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateFilesWithHttpInfoAsync(templateId, fileType, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1566,7 +1566,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateFilesWithHttpInfoAsync(string templateId, string? fileType = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -1726,7 +1726,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponseDataUri - public async System.Threading.Tasks.Task TemplateFilesAsDataUriAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateFilesAsDataUriAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateFilesAsDataUriWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1740,7 +1740,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponseDataUri) - public async System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateFilesAsDataUriWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -1901,7 +1901,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FileResponse - public async System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateFilesAsFileUrlAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateFilesAsFileUrlWithHttpInfoAsync(templateId, forceDownload, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1916,7 +1916,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateFilesAsDataU /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileResponse) - public async System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateFilesAsFileUrlWithHttpInfoAsync(string templateId, int? forceDownload = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2074,7 +2074,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateGetAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateGetAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateGetWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2088,7 +2088,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateGetWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2260,7 +2260,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateListResponse - public async System.Threading.Tasks.Task TemplateListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateListAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateListWithHttpInfoAsync(accountId, page, pageSize, query, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2277,7 +2277,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateListResponse) - public async System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateListWithHttpInfoAsync(string? accountId = default(string?), int? page = default(int?), int? pageSize = default(int?), string? query = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions(); @@ -2458,7 +2458,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateRemoveUserWithHttpInfoAsync(templateId, templateRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2473,7 +2473,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2660,7 +2660,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - public async System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateUpdateFilesWithHttpInfoAsync(templateId, templateUpdateFilesRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2675,7 +2675,7 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs index 9db3b6a4c..6e23e47ef 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs @@ -141,7 +141,7 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Unclaimed Draft @@ -154,7 +154,7 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft /// @@ -166,7 +166,7 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft @@ -179,7 +179,7 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft with Template /// @@ -191,7 +191,7 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft with Template @@ -204,7 +204,7 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit and Resend Unclaimed Draft /// @@ -217,7 +217,7 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit and Resend Unclaimed Draft @@ -231,7 +231,7 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -450,7 +450,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateWithHttpInfoAsync(unclaimedDraftCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -464,7 +464,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateRequest' is set if (unclaimedDraftCreateRequest == null) @@ -634,7 +634,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(unclaimedDraftCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -648,7 +648,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateEmbeddedRequest' is set if (unclaimedDraftCreateEmbeddedRequest == null) @@ -818,7 +818,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(unclaimedDraftCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -832,7 +832,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' is set if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) @@ -1012,7 +1012,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftEditAndResendWithHttpInfoAsync(signatureRequestId, unclaimedDraftEditAndResendRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1027,7 +1027,7 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs index a1e43958a..2e1fe9212 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ApiClient.cs @@ -466,10 +466,9 @@ private ApiResponse ToApiResponse(RestResponse response) /// A per-request configuration object. /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. /// A new ApiResponse instance. - private ApiResponse ExecClient(Func> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) + private async Task> ExecClientAsync(Func>> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) { var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; - var clientOptions = new RestClientOptions(baseUrl) { ClientCertificates = configuration.ClientCertificates, @@ -493,7 +492,7 @@ private ApiResponse ExecClient(Func> getRespon { InterceptRequest(request); - RestResponse response = getResponse(client); + RestResponse response = await getResponse(client); // if the response type is oneOf/anyOf, call FromJSON to deserialize the data if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) @@ -589,21 +588,21 @@ private ApiResponse Exec(RestRequest request, RequestOptions options, IRea clientOptions.CookieContainer = cookies; }; - Func> getResponse = (client) => + Func>> getResponse = (client) => { if (RetryConfiguration.RetryPolicy != null) { var policy = RetryConfiguration.RetryPolicy; var policyResult = policy.ExecuteAndCapture(() => client.Execute(request)); - return DeserializeRestResponseFromPolicy(client, request, policyResult); + return Task.FromResult(DeserializeRestResponseFromPolicy(client, request, policyResult)); } else { - return client.Execute(request); + return Task.FromResult(client.Execute(request)); } }; - return ExecClient(getResponse, setOptions, request, options, configuration); + return ExecClientAsync(getResponse, setOptions, request, options, configuration).GetAwaiter().GetResult(); } private Task> ExecAsync(RestRequest request, RequestOptions options, IReadableConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken)) @@ -613,25 +612,21 @@ private ApiResponse Exec(RestRequest request, RequestOptions options, IRea //no extra options }; - Func> getResponse = (client) => + Func>> getResponse = async (client) => { - Func>> action = async () => + if (RetryConfiguration.AsyncRetryPolicy != null) { - if (RetryConfiguration.AsyncRetryPolicy != null) - { - var policy = RetryConfiguration.AsyncRetryPolicy; - var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); - return DeserializeRestResponseFromPolicy(client, request, policyResult); - } - else - { - return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false); - } - }; - return action().Result; + var policy = RetryConfiguration.AsyncRetryPolicy; + var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); + return DeserializeRestResponseFromPolicy(client, request, policyResult); + } + else + { + return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false); + } }; - return Task.FromResult>(ExecClient(getResponse, setOptions, request, options, configuration)); + return ExecClientAsync(getResponse, setOptions, request, options, configuration); } #region IAsynchronousClient diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs index c603a93ae..645421e58 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/ClientUtils.cs @@ -134,7 +134,7 @@ public static string Serialize(object obj) /// Encoded string. public static string Base64Encode(string text) { - return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); + return Convert.ToBase64String(global::System.Text.Encoding.UTF8.GetBytes(text)); } /// diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs index 4db83046b..58bc84a5b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs @@ -116,7 +116,7 @@ public class Configuration : IReadableConfiguration /// /// Initializes a new instance of the class /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration() { Proxy = null; @@ -169,7 +169,7 @@ public Configuration() /// /// Initializes a new instance of the class /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration( IDictionary defaultHeaders, IDictionary apiKey, diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs b/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs index 6d1c11df9..66e347c5b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/IAsynchronousClient.cs @@ -30,7 +30,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the POST http verb. @@ -41,7 +41,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the PUT http verb. @@ -52,7 +52,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the DELETE http verb. @@ -63,7 +63,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the HEAD http verb. @@ -74,7 +74,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the OPTIONS http verb. @@ -85,7 +85,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the PATCH http verb. @@ -96,6 +96,6 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); } } diff --git a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj index 9e83439b7..9b23ff568 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj +++ b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj @@ -18,6 +18,7 @@ git Minor update annotations + false diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs index f144c0e77..c8569fb00 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateRequest.cs @@ -210,7 +210,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs index 10762e4d3..6bf25b709 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountCreateResponse.cs @@ -185,7 +185,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs index a72b7ccac..9b919caf2 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountGetResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs index 1cfda879b..39bd9bf14 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponse.cs @@ -324,7 +324,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs index 0faf22c7c..28a16d5d4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseQuotas.cs @@ -243,7 +243,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs index 71bb2c723..068f2a7c0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs @@ -148,7 +148,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs index c2bac8157..e0ce0ef85 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountUpdateRequest.cs @@ -186,7 +186,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs index d181679ee..b13781a36 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyRequest.cs @@ -153,7 +153,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs index cfa84d3df..f8b0b8e27 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs index e81120192..8d56b2327 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs @@ -148,7 +148,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs index 8eb05ae73..535fc8078 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs @@ -270,7 +270,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs index 126b5ddd0..3fd681ec4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppGetResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs index 72e6c7a32..6eb175e78 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppListResponse.cs @@ -187,7 +187,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs index 0908b7853..e377917e4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs @@ -308,7 +308,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs index f6bbe470a..d1b7c4914 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs @@ -202,7 +202,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs index acebc4624..55e16f2f0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs @@ -144,7 +144,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs index 8fbd13e7a..8a57baef8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs index 96615b38f..602754bd3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs @@ -381,7 +381,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs index 5dc0f8bc1..68faf3529 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs @@ -260,7 +260,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs index 622570a69..9e64a953f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs @@ -205,7 +205,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index a21015b96..ba7ff61ee 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -591,7 +591,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs index 8850eca87..0866b4a64 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs @@ -187,7 +187,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs index d3a6e09d7..a471d6652 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobResponse.cs @@ -193,7 +193,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs index 30e659a7c..8d11d9f14 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs index 283635f65..a8af5ce42 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs @@ -292,7 +292,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs index 6bc969663..60108c869 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs index 6bb67f8a9..39d86c9da 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs @@ -163,7 +163,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs index e0a9a78b8..5929063bc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs index 7480b4bde..ae0834e72 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs @@ -163,7 +163,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs index c3e1dac84..7a89dff0b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponse.cs @@ -152,7 +152,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs index d05f81365..15c9f7aa4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ErrorResponseError.cs @@ -196,7 +196,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs index a524a7503..dbe451c40 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequest.cs @@ -206,7 +206,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs index 7e448ac55..3058970cb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs @@ -356,7 +356,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs index 3ed85d72e..f3993c49e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs @@ -205,7 +205,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs index 8c9f5efdf..564561bc4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs @@ -192,7 +192,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs index eefdafbfe..9747f7127 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs @@ -148,7 +148,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs index ca25e3fb1..0f7157d01 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs @@ -224,7 +224,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs index 9a449a957..b806f2171 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs @@ -153,7 +153,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs index 43fc52c98..ef03dbac0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineListResponse.cs @@ -184,7 +184,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs index 0a1b4074b..4a7b22f54 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs @@ -192,7 +192,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs index f9aa39629..3949dcd2d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponse.cs @@ -165,7 +165,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs index d9f1b35be..a07bd241f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs @@ -197,7 +197,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs index c2bed559e..6a9a2231f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponse.cs @@ -163,7 +163,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs index bf5a2bcd8..6d5a59da5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FileResponseDataUri.cs @@ -148,7 +148,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs index eecfead1c..47884223b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ListInfoResponse.cs @@ -193,7 +193,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs index d6b7b632b..8410b28b6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs @@ -249,7 +249,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs index 7313f2b53..3f85000f7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs @@ -177,7 +177,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs index 57886dc2e..fe8b724a3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenResponse.cs @@ -216,7 +216,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs index 28f4f14de..381e9dcca 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateRequest.cs @@ -221,7 +221,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs index f40b39d38..c3014f27f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportCreateResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs index 27602cbba..172243e2c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/ReportResponse.cs @@ -225,7 +225,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs index 6a4ca8ed9..e5f910c7e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs @@ -401,7 +401,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs index 68fd8233b..81b747aef 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs @@ -396,7 +396,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs index 1be143123..be87871cb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs @@ -593,7 +593,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs index 13ea19eee..af8b50efb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs @@ -441,7 +441,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs index d3bca38d5..d409c50cc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs index e6327291c..eb9814d09 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs @@ -187,7 +187,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs index f9ef1c1c6..186a374fe 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs @@ -172,7 +172,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index d1eb0b4fc..4b06dc8bf 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -591,7 +591,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs index 8f835a0d8..5d20c9bd9 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs @@ -254,7 +254,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs index fdba027b7..817d97715 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs @@ -244,7 +244,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs index 281cbf00c..719ce0608 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs @@ -191,7 +191,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs index 5f646287c..aea87ddb7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs @@ -195,7 +195,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs index ef3ea298e..42d29460f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs @@ -240,7 +240,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs index 38bb7065c..25ae1ffb3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs @@ -187,7 +187,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs index bc2ba1062..093bf2649 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs @@ -191,7 +191,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs index 7d297a2ea..f5f43e0da 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs @@ -191,7 +191,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs index e61d52008..f7be6cb9e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs @@ -191,7 +191,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index 6bd6bc863..dda612c27 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -191,7 +191,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs index a3a801d5f..953335197 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs @@ -187,7 +187,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index 0fb0af54d..828a871fc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -191,7 +191,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs index cf075e99b..235579650 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs @@ -191,7 +191,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs index 581ff43f5..9bc45435a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs @@ -191,7 +191,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs index 8c7a3101c..5b1e3d613 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs @@ -486,7 +486,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs index c50791feb..56e90b06b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs @@ -623,7 +623,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs index 178a7d736..4beed0615 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs @@ -471,7 +471,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs index 4e6cd3f8c..eb7b8bc6a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs @@ -210,7 +210,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs index 90bf15589..e941ee5d4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubAttachment.cs @@ -202,7 +202,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs index 2c791a99b..1f05616b4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerList.cs @@ -169,7 +169,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs index 3ced0d3a9..0c8105606 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs @@ -177,7 +177,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs index 8e05b7021..1097fb452 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCC.cs @@ -177,7 +177,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs index 7633398b5..c6a0211cb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubCustomField.cs @@ -206,7 +206,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs index d9e546dc2..531f77804 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubEditorOptions.cs @@ -159,7 +159,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs index deefc0ed6..b28139479 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFieldOptions.cs @@ -188,7 +188,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs index b082938ef..78910c7d7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldGroup.cs @@ -201,7 +201,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs index 14472e3fc..e385fd185 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRule.cs @@ -227,7 +227,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs index 14b0239fa..b7a5d0a84 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs @@ -215,7 +215,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs index 5c9491073..af6728f42 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs @@ -245,7 +245,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs index 01adb6dfc..3b90d3637 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs @@ -354,7 +354,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs index e0ba962a5..5123fdd5e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs @@ -222,7 +222,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs index 00b76d3c2..f3e578561 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs @@ -188,7 +188,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs index 973a0e10d..0706d57ca 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs @@ -322,7 +322,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs index 0dd62c35e..c996ae2c3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs @@ -366,7 +366,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs index fa402d617..52961a7c5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs @@ -370,7 +370,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs index be92f5181..729c8736e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs @@ -188,7 +188,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs index 0fa354f9e..10fc88ed5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs @@ -227,7 +227,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs index 8e4c70809..bff60b6fd 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs @@ -188,7 +188,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs index e60ab2be0..e0244d803 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs @@ -532,7 +532,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs index 42c7be494..127d20ceb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs @@ -322,7 +322,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs index 8dcf89f32..17999938d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubMergeField.cs @@ -188,7 +188,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs index 0d4a8c30e..288a8d3b1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOAuth.cs @@ -223,7 +223,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs index 2d7a57a35..1df55a3fc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubOptions.cs @@ -144,7 +144,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs index 817d7a4c8..7f1e2fa5f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs @@ -197,7 +197,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs index 67808b238..7b3a3f964 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs @@ -281,7 +281,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs index 26db11db5..629a94d67 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs @@ -286,7 +286,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs index 681bfbb6f..c3d70070f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubSigningOptions.cs @@ -236,7 +236,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs index 9dfdce699..53a61528d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTeamResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs index c0daa18dd..6611d25d1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubTemplateRole.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs index 3c0f1968e..fe9f9346a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs @@ -196,7 +196,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs index 7c92ca60e..3a2a6b8d1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs @@ -201,7 +201,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs index cd2104d83..6f11e2b0d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs @@ -424,7 +424,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs index 8742bce89..9c988a286 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs @@ -214,7 +214,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs index b348cf093..a73122b37 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamCreateRequest.cs @@ -149,7 +149,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs index b940eb971..81f77d2c8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs index ee46918e4..2a3fb5d0f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamGetResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs index ecf79ed35..b35c7a866 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInfoResponse.cs @@ -215,7 +215,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs index a3566a26e..236118300 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInviteResponse.cs @@ -231,7 +231,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs index 1d907c1a9..27ef5cf01 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamInvitesResponse.cs @@ -168,7 +168,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs index 4accc80b5..5eb2d0c28 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMemberResponse.cs @@ -186,7 +186,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs index 6bb41a629..0a956cec7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamMembersResponse.cs @@ -186,7 +186,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs index 25d1c92b3..30730d612 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamParentResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs index 89f9b9915..2d8d606e6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs @@ -252,7 +252,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs index 468b21ef3..fd47071f1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamResponse.cs @@ -207,7 +207,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs index 7df4f5c5f..f2c8e5b0c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs @@ -186,7 +186,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs index 5a605f4a9..4d555f817 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TeamUpdateRequest.cs @@ -148,7 +148,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs index 326c5884d..658f781a7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs @@ -182,7 +182,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs index e42636678..2bcd91895 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs @@ -593,7 +593,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs index 0a925c306..5cb1fbbc1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs index d24455729..23510e04a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs @@ -203,7 +203,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs index 0e71f4df7..424439edd 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateRequest.cs @@ -490,7 +490,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs index 3d7138280..947dc1e7f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs index a993aa0d4..2ba366d49 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs @@ -148,7 +148,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs index f2397fd0f..93ba10d58 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateEditResponse.cs @@ -148,7 +148,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs index 9f00a721f..e41ccbaed 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateGetResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs index 2c6cc1089..1a5297cc4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateListResponse.cs @@ -187,7 +187,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs index edcd4406b..69e9fcfa8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs index 90fbdcb8d..db054a3a1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -418,7 +418,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs index fe291deac..315b8a595 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccount.cs @@ -230,7 +230,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs index 030083016..9ed9b170b 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs @@ -189,7 +189,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs index 7d0df06e5..7cb5bf542 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs @@ -148,7 +148,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs index cc1e32c1e..38d7743e7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocument.cs @@ -243,7 +243,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs index 002e942e6..96b0054c7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs @@ -317,7 +317,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs index f3679a50d..12b8f56c1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs index 3e01fe8b8..d3e729724 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs @@ -253,7 +253,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs index 4d52bb3a4..63d9fa6d5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs @@ -166,7 +166,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs index e3ad9c465..68a46ff72 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs index 58ef9d32e..2fb73936a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs @@ -323,7 +323,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs index 52f5e3c0b..80cf7ecf8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs index 69038cee5..58dcce435 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs index 3d04dbeae..a7d1434f7 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs index 8942d7e65..05ed40bc4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs @@ -253,7 +253,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs index 19419f31e..2fbaba55c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs index dedbef0eb..f9eade8a8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs index 652d7b2d9..e8fb93e20 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs index 56235bd2e..87a3826a4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs @@ -336,7 +336,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs index c2785bc36..4d663c74a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs @@ -324,7 +324,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs index ab15f3509..fec41a9f8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs index 2be18f1f8..e029aa8ca 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs index ef1109100..ce159eb73 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs index ee2462c7f..c27885a2d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs index fc96c9eae..d4caf2723 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs index e7d8fcf87..365b45064 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs index 447e79dba..50744be93 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs index 23434f1d3..69695eb63 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs @@ -186,7 +186,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio } yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs index c90798f75..bebe8a6ca 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs @@ -159,7 +159,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs index 0a9187484..d7b04386d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs @@ -163,7 +163,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs index 7061adb9e..c32ef2c88 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs @@ -253,7 +253,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs index 252daddc7..631e92751 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs @@ -147,7 +147,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs index 3dd518d43..4a04e8a07 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs @@ -169,7 +169,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs index 39fe862d5..6b2511508 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs @@ -798,7 +798,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs index 9f6125361..5f465980d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs @@ -684,7 +684,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs index 2a3463885..fd0e654cc 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs @@ -597,7 +597,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs index 797880422..4fd9d0ada 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs index 6474c3a53..9639d3f71 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs @@ -273,7 +273,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs index 8af303e97..284195ce6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs @@ -239,7 +239,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs index 5d9791bd1..7dcfa66fb 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/WarningResponse.cs @@ -177,7 +177,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { yield break; } - public List GetOpenApiTypes() { var types = new List(); diff --git a/sdks/dotnet/templates/ApiClient.mustache b/sdks/dotnet/templates/ApiClient.mustache index 974fd80b9..f8798bd23 100644 --- a/sdks/dotnet/templates/ApiClient.mustache +++ b/sdks/dotnet/templates/ApiClient.mustache @@ -470,10 +470,9 @@ namespace {{packageName}}.Client /// A per-request configuration object. /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. /// A new ApiResponse instance. - private ApiResponse ExecClient(Func> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) + private async Task> ExecClientAsync(Func>> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) { var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; - var clientOptions = new RestClientOptions(baseUrl) { ClientCertificates = configuration.ClientCertificates, @@ -495,6 +494,7 @@ namespace {{packageName}}.Client configuration.OAuthTokenUrl, configuration.OAuthClientId, configuration.OAuthClientSecret, + configuration.OAuthScope, configuration.OAuthFlow, SerializerSettings, configuration); @@ -520,7 +520,7 @@ namespace {{packageName}}.Client { InterceptRequest(request); - RestResponse response = getResponse(client); + RestResponse response = await getResponse(client); // if the response type is oneOf/anyOf, call FromJSON to deserialize the data if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) @@ -616,21 +616,21 @@ namespace {{packageName}}.Client clientOptions.CookieContainer = cookies; }; - Func> getResponse = (client) => + Func>> getResponse = (client) => { if (RetryConfiguration.RetryPolicy != null) { var policy = RetryConfiguration.RetryPolicy; var policyResult = policy.ExecuteAndCapture(() => client.Execute(request)); - return DeserializeRestResponseFromPolicy(client, request, policyResult); + return Task.FromResult(DeserializeRestResponseFromPolicy(client, request, policyResult)); } else { - return client.Execute(request); + return Task.FromResult(client.Execute(request)); } }; - return ExecClient(getResponse, setOptions, request, options, configuration); + return ExecClientAsync(getResponse, setOptions, request, options, configuration).GetAwaiter().GetResult(); } {{#supportsAsync}} @@ -641,29 +641,25 @@ namespace {{packageName}}.Client //no extra options }; - Func> getResponse = (client) => + Func>> getResponse = async (client) => { - Func>> action = async () => + {{#supportsRetry}} + if (RetryConfiguration.AsyncRetryPolicy != null) { - {{#supportsRetry}} - if (RetryConfiguration.AsyncRetryPolicy != null) - { - var policy = RetryConfiguration.AsyncRetryPolicy; - var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); - return DeserializeRestResponseFromPolicy(client, request, policyResult); - } - else - { - {{/supportsRetry}} - return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false); - {{#supportsRetry}} - } - {{/supportsRetry}} - }; - return action().Result; + var policy = RetryConfiguration.AsyncRetryPolicy; + var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); + return DeserializeRestResponseFromPolicy(client, request, policyResult); + } + else + { + {{/supportsRetry}} + return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false); + {{#supportsRetry}} + } + {{/supportsRetry}} }; - return Task.FromResult>(ExecClient(getResponse, setOptions, request, options, configuration)); + return ExecClientAsync(getResponse, setOptions, request, options, configuration); } #region IAsynchronousClient diff --git a/sdks/dotnet/templates/ClientUtils.mustache b/sdks/dotnet/templates/ClientUtils.mustache index 56eee6359..cacf67e42 100644 --- a/sdks/dotnet/templates/ClientUtils.mustache +++ b/sdks/dotnet/templates/ClientUtils.mustache @@ -149,7 +149,7 @@ namespace {{packageName}}.Client /// Encoded string. public static string Base64Encode(string text) { - return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); + return Convert.ToBase64String(global::System.Text.Encoding.UTF8.GetBytes(text)); } /// diff --git a/sdks/dotnet/templates/Configuration.mustache b/sdks/dotnet/templates/Configuration.mustache index 4969149ee..64441d8de 100644 --- a/sdks/dotnet/templates/Configuration.mustache +++ b/sdks/dotnet/templates/Configuration.mustache @@ -136,7 +136,7 @@ namespace {{packageName}}.Client /// /// Initializes a new instance of the class /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration() { Proxy = null; @@ -222,7 +222,7 @@ namespace {{packageName}}.Client /// /// Initializes a new instance of the class /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration( IDictionary defaultHeaders, IDictionary apiKey, @@ -380,6 +380,12 @@ namespace {{packageName}}.Client /// The OAuth Client Secret. public virtual string OAuthClientSecret { get; set; } + /// + /// Gets or sets the client scope for OAuth2 authentication. + /// + /// The OAuth Client Scope. + public virtual string{{nrt?}} OAuthScope { get; set; } + /// /// Gets or sets the flow for OAuth2 authentication. /// @@ -725,6 +731,7 @@ namespace {{packageName}}.Client OAuthTokenUrl = second.OAuthTokenUrl ?? first.OAuthTokenUrl, OAuthClientId = second.OAuthClientId ?? first.OAuthClientId, OAuthClientSecret = second.OAuthClientSecret ?? first.OAuthClientSecret, + OAuthScope = second.OAuthScope ?? first.OAuthScope, OAuthFlow = second.OAuthFlow ?? first.OAuthFlow, {{/hasOAuthMethods}} {{/useRestSharp}} diff --git a/sdks/dotnet/templates/HttpSigningConfiguration.mustache b/sdks/dotnet/templates/HttpSigningConfiguration.mustache index 9566e1f1a..faca67594 100644 --- a/sdks/dotnet/templates/HttpSigningConfiguration.mustache +++ b/sdks/dotnet/templates/HttpSigningConfiguration.mustache @@ -498,7 +498,7 @@ namespace {{packageName}}.Client binkey = Convert.FromBase64String(pvkstr); return binkey; } - catch (System.FormatException) + catch (global::System.FormatException) { StringReader str = new StringReader(pvkstr); @@ -528,7 +528,7 @@ namespace {{packageName}}.Client { //should have b64 encrypted RSA key now binkey = Convert.FromBase64String(encryptedstr); } - catch (System.FormatException) + catch (global::System.FormatException) { //data is not in base64 format return null; } diff --git a/sdks/dotnet/templates/IAsynchronousClient.mustache b/sdks/dotnet/templates/IAsynchronousClient.mustache index f0c88fae4..76ddd4adb 100644 --- a/sdks/dotnet/templates/IAsynchronousClient.mustache +++ b/sdks/dotnet/templates/IAsynchronousClient.mustache @@ -21,7 +21,7 @@ namespace {{packageName}}.Client /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the POST http verb. @@ -32,7 +32,7 @@ namespace {{packageName}}.Client /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the PUT http verb. @@ -43,7 +43,7 @@ namespace {{packageName}}.Client /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the DELETE http verb. @@ -54,7 +54,7 @@ namespace {{packageName}}.Client /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the HEAD http verb. @@ -65,7 +65,7 @@ namespace {{packageName}}.Client /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the OPTIONS http verb. @@ -76,7 +76,7 @@ namespace {{packageName}}.Client /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the PATCH http verb. @@ -87,6 +87,6 @@ namespace {{packageName}}.Client /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); } } diff --git a/sdks/dotnet/templates/IReadableConfiguration.mustache b/sdks/dotnet/templates/IReadableConfiguration.mustache index 78c998b34..5981728b4 100644 --- a/sdks/dotnet/templates/IReadableConfiguration.mustache +++ b/sdks/dotnet/templates/IReadableConfiguration.mustache @@ -43,6 +43,12 @@ namespace {{packageName}}.Client /// OAuth Client Secret. string OAuthClientSecret { get; } + /// + /// Gets the OAuth token scope. + /// + /// OAuth Token scope. + string{{nrt?}} OAuthScope { get; } + /// /// Gets the OAuth flow. /// diff --git a/sdks/dotnet/templates/Solution.mustache b/sdks/dotnet/templates/Solution.mustache index 6a88a80cb..1046b4689 100644 --- a/sdks/dotnet/templates/Solution.mustache +++ b/sdks/dotnet/templates/Solution.mustache @@ -39,4 +39,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection -EndGlobal +EndGlobal \ No newline at end of file diff --git a/sdks/dotnet/templates/api.mustache b/sdks/dotnet/templates/api.mustache index 16fe01a9c..632833ab9 100644 --- a/sdks/dotnet/templates/api.mustache +++ b/sdks/dotnet/templates/api.mustache @@ -82,7 +82,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - {{#returnType}}System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + {{#returnType}}System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// {{summary}} @@ -100,7 +100,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); {{/operation}} #endregion Asynchronous Operations } @@ -542,7 +542,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - {{#returnType}}public async System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + {{#returnType}}public async System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { {{#returnType}}{{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}operationIndex, cancellationToken).ConfigureAwait(false);{{/returnType}} @@ -561,7 +561,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { {{#allParams}} {{#required}} diff --git a/sdks/dotnet/templates/auth/OAuthAuthenticator.mustache b/sdks/dotnet/templates/auth/OAuthAuthenticator.mustache index ae8f3c753..d71f262a8 100644 --- a/sdks/dotnet/templates/auth/OAuthAuthenticator.mustache +++ b/sdks/dotnet/templates/auth/OAuthAuthenticator.mustache @@ -16,6 +16,7 @@ namespace {{packageName}}.Client.Auth readonly string _tokenUrl; readonly string _clientId; readonly string _clientSecret; + readonly string{{nrt?}} _scope; readonly string _grantType; readonly JsonSerializerSettings _serializerSettings; readonly IReadableConfiguration _configuration; @@ -27,6 +28,7 @@ namespace {{packageName}}.Client.Auth string tokenUrl, string clientId, string clientSecret, + string{{nrt?}} scope, OAuthFlow? flow, JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) : base("") @@ -34,6 +36,7 @@ namespace {{packageName}}.Client.Auth _tokenUrl = tokenUrl; _clientId = clientId; _clientSecret = clientSecret; + _scope = scope; _serializerSettings = serializerSettings; _configuration = configuration; @@ -80,6 +83,12 @@ namespace {{packageName}}.Client.Auth .AddParameter("grant_type", _grantType) .AddParameter("client_id", _clientId) .AddParameter("client_secret", _clientSecret); + + if (!string.IsNullOrEmpty(_scope)) + { + request.AddParameter("scope", _scope); + } + var response = await client.PostAsync(request).ConfigureAwait(false); // RFC6749 - token_type is case insensitive. diff --git a/sdks/dotnet/templates/libraries/generichost/ApiKeyToken.mustache b/sdks/dotnet/templates/libraries/generichost/ApiKeyToken.mustache index 273eb2cc7..d3f1f5214 100644 --- a/sdks/dotnet/templates/libraries/generichost/ApiKeyToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/ApiKeyToken.mustache @@ -37,7 +37,7 @@ namespace {{packageName}}.{{clientPackage}} /// Places the token in the header. /// /// - public virtual void UseInHeader(System.Net.Http.HttpRequestMessage request) + public virtual void UseInHeader(global::System.Net.Http.HttpRequestMessage request) { request.Headers.Add(ClientUtils.ApiKeyHeaderToString(Header), _raw); } @@ -48,7 +48,7 @@ namespace {{packageName}}.{{clientPackage}} /// /// /// - public virtual void UseInQuery(System.Net.Http.HttpRequestMessage request, UriBuilder uriBuilder, System.Collections.Specialized.NameValueCollection parseQueryString) + public virtual void UseInQuery(global::System.Net.Http.HttpRequestMessage request, UriBuilder uriBuilder, System.Collections.Specialized.NameValueCollection parseQueryString) { parseQueryString[ClientUtils.ApiKeyHeaderToString(Header)] = Uri.EscapeDataString(_raw).ToString(){{nrt!}}; } diff --git a/sdks/dotnet/templates/libraries/generichost/ApiResponse`1.mustache b/sdks/dotnet/templates/libraries/generichost/ApiResponse`1.mustache index 5b097c224..1b12e4173 100644 --- a/sdks/dotnet/templates/libraries/generichost/ApiResponse`1.mustache +++ b/sdks/dotnet/templates/libraries/generichost/ApiResponse`1.mustache @@ -129,7 +129,7 @@ namespace {{packageName}}.{{clientPackage}} /// /// /// - public ApiResponse(System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage, string rawContent, string path, DateTime requestedAt, System.Text.Json.JsonSerializerOptions jsonSerializerOptions) + public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage, string rawContent, string path, DateTime requestedAt, System.Text.Json.JsonSerializerOptions jsonSerializerOptions) { StatusCode = httpResponseMessage.StatusCode; Headers = httpResponseMessage.Headers; @@ -143,7 +143,7 @@ namespace {{packageName}}.{{clientPackage}} OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); } {{#x-http-statuses-with-return}} diff --git a/sdks/dotnet/templates/libraries/generichost/BasicToken.mustache b/sdks/dotnet/templates/libraries/generichost/BasicToken.mustache index 4cb7023f7..ed6f53e54 100644 --- a/sdks/dotnet/templates/libraries/generichost/BasicToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/BasicToken.mustache @@ -38,7 +38,7 @@ namespace {{packageName}}.{{clientPackage}} /// /// /// - public virtual void UseInHeader(System.Net.Http.HttpRequestMessage request, string headerName) + public virtual void UseInHeader(global::System.Net.Http.HttpRequestMessage request, string headerName) { request.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", {{packageName}}.Client.ClientUtils.Base64Encode(_username + ":" + _password)); } diff --git a/sdks/dotnet/templates/libraries/generichost/BearerToken.mustache b/sdks/dotnet/templates/libraries/generichost/BearerToken.mustache index b0fc0a5d2..761f598d8 100644 --- a/sdks/dotnet/templates/libraries/generichost/BearerToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/BearerToken.mustache @@ -33,7 +33,7 @@ namespace {{packageName}}.{{clientPackage}} /// /// /// - public virtual void UseInHeader(System.Net.Http.HttpRequestMessage request, string headerName) + public virtual void UseInHeader(global::System.Net.Http.HttpRequestMessage request, string headerName) { request.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _raw); } diff --git a/sdks/dotnet/templates/libraries/generichost/ClientUtils.mustache b/sdks/dotnet/templates/libraries/generichost/ClientUtils.mustache index 271dfa678..269d20c4d 100644 --- a/sdks/dotnet/templates/libraries/generichost/ClientUtils.mustache +++ b/sdks/dotnet/templates/libraries/generichost/ClientUtils.mustache @@ -103,7 +103,7 @@ using System.Runtime.CompilerServices; /// /// /// - public static bool TryDeserialize(string json, JsonSerializerOptions options, {{#net60OrLater}}[System.Diagnostics.CodeAnalysis.NotNullWhen(true)] {{/net60OrLater}}out T{{#nrt}}{{#net60OrLater}}?{{/net60OrLater}}{{/nrt}} result) + public static bool TryDeserialize(string json, JsonSerializerOptions options, {{#net60OrLater}}[global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] {{/net60OrLater}}out T{{#nrt}}{{#net60OrLater}}?{{/net60OrLater}}{{/nrt}} result) { try { @@ -125,7 +125,7 @@ using System.Runtime.CompilerServices; /// /// /// - public static bool TryDeserialize(ref Utf8JsonReader reader, JsonSerializerOptions options, {{#net60OrLater}}[System.Diagnostics.CodeAnalysis.NotNullWhen(true)] {{/net60OrLater}}out T{{#nrt}}{{#net60OrLater}}?{{/net60OrLater}}{{/nrt}} result) + public static bool TryDeserialize(ref Utf8JsonReader reader, JsonSerializerOptions options, {{#net60OrLater}}[global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] {{/net60OrLater}}out T{{#nrt}}{{#net60OrLater}}?{{/net60OrLater}}{{/nrt}} result) { try { @@ -258,7 +258,7 @@ using System.Runtime.CompilerServices; /// Encoded string. public static string Base64Encode(string text) { - return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); + return Convert.ToBase64String(global::System.Text.Encoding.UTF8.GetBytes(text)); } /// diff --git a/sdks/dotnet/templates/libraries/generichost/HttpSigningConfiguration.mustache b/sdks/dotnet/templates/libraries/generichost/HttpSigningConfiguration.mustache index 2e99b3c9b..5e0f7739d 100644 --- a/sdks/dotnet/templates/libraries/generichost/HttpSigningConfiguration.mustache +++ b/sdks/dotnet/templates/libraries/generichost/HttpSigningConfiguration.mustache @@ -82,7 +82,7 @@ namespace {{packageName}}.{{clientPackage}} /// /// /// - internal Dictionary GetHttpSignedHeader(System.Net.Http.HttpRequestMessage request, string requestBody, System.Threading.CancellationToken cancellationToken = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}) + internal Dictionary GetHttpSignedHeader(global::System.Net.Http.HttpRequestMessage request, string requestBody, System.Threading.CancellationToken cancellationToken = default{{^netstandard20OrLater}}(global::System.Threading.CancellationToken){{/netstandard20OrLater}}) { if (request.RequestUri == null) throw new NullReferenceException("The request URI was null"); @@ -413,7 +413,7 @@ namespace {{packageName}}.{{clientPackage}} binkey = Convert.FromBase64String(pvkstr); return binkey; } - catch (System.FormatException) + catch (global::System.FormatException) { StringReader str = new StringReader(pvkstr); @@ -440,7 +440,7 @@ namespace {{packageName}}.{{clientPackage}} { //should have b64 encrypted RSA key now binkey = Convert.FromBase64String(encryptedstr); } - catch (System.FormatException) + catch (global::System.FormatException) { //data is not in base64 format return null; } diff --git a/sdks/dotnet/templates/libraries/generichost/HttpSigningToken.mustache b/sdks/dotnet/templates/libraries/generichost/HttpSigningToken.mustache index f9c0167aa..881682e89 100644 --- a/sdks/dotnet/templates/libraries/generichost/HttpSigningToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/HttpSigningToken.mustache @@ -34,7 +34,7 @@ namespace {{packageName}}.{{clientPackage}} /// /// /// - public void UseInHeader(System.Net.Http.HttpRequestMessage request, string requestBody, CancellationToken cancellationToken = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}) + public void UseInHeader(global::System.Net.Http.HttpRequestMessage request, string requestBody, CancellationToken cancellationToken = default{{^netstandard20OrLater}}(global::System.Threading.CancellationToken){{/netstandard20OrLater}}) { var signedHeaders = _configuration.GetHttpSignedHeader(request, requestBody, cancellationToken); diff --git a/sdks/dotnet/templates/libraries/generichost/OAuthToken.mustache b/sdks/dotnet/templates/libraries/generichost/OAuthToken.mustache index f450c3d09..23b3cab91 100644 --- a/sdks/dotnet/templates/libraries/generichost/OAuthToken.mustache +++ b/sdks/dotnet/templates/libraries/generichost/OAuthToken.mustache @@ -33,7 +33,7 @@ namespace {{packageName}}.{{clientPackage}} /// /// /// - public virtual void UseInHeader(System.Net.Http.HttpRequestMessage request, string headerName) + public virtual void UseInHeader(global::System.Net.Http.HttpRequestMessage request, string headerName) { request.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _raw); } diff --git a/sdks/dotnet/templates/libraries/generichost/OperationSignature.mustache b/sdks/dotnet/templates/libraries/generichost/OperationSignature.mustache index 83076f2b1..caa9d144c 100644 --- a/sdks/dotnet/templates/libraries/generichost/OperationSignature.mustache +++ b/sdks/dotnet/templates/libraries/generichost/OperationSignature.mustache @@ -1 +1 @@ -{{#lambda.joinWithComma}}{{#allParams}}{{#required}}{{{dataType}}}{{>NullConditionalParameter}}{{/required}}{{^required}}Option<{{{dataType}}}{{>NullConditionalParameter}}>{{/required}} {{paramName}}{{#notRequiredOrIsNullable}} = default{{/notRequiredOrIsNullable}} {{/allParams}}System.Threading.CancellationToken cancellationToken = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}{{/lambda.joinWithComma}} \ No newline at end of file +{{#lambda.joinWithComma}}{{#allParams}}{{#required}}{{{dataType}}}{{>NullConditionalParameter}}{{/required}}{{^required}}Option<{{{dataType}}}{{>NullConditionalParameter}}>{{/required}} {{paramName}}{{#notRequiredOrIsNullable}} = default{{/notRequiredOrIsNullable}} {{/allParams}}System.Threading.CancellationToken cancellationToken = default{{^netstandard20OrLater}}(global::System.Threading.CancellationToken){{/netstandard20OrLater}}{{/lambda.joinWithComma}} \ No newline at end of file diff --git a/sdks/dotnet/templates/libraries/generichost/RateLimitProvider`1.mustache b/sdks/dotnet/templates/libraries/generichost/RateLimitProvider`1.mustache index 4e44b3fd5..857a505ab 100644 --- a/sdks/dotnet/templates/libraries/generichost/RateLimitProvider`1.mustache +++ b/sdks/dotnet/templates/libraries/generichost/RateLimitProvider`1.mustache @@ -65,7 +65,7 @@ namespace {{packageName}}.{{clientPackage}} _tokens[i].TokenBecameAvailable += ((sender) => tokens.Writer.TryWrite((TTokenBase) sender)); } - internal override async System.Threading.Tasks.ValueTask GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}) + internal override async System.Threading.Tasks.ValueTask GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(global::System.Threading.CancellationToken){{/netstandard20OrLater}}) { if (!AvailableTokens.TryGetValue(header, out Channel{{nrt?}} tokens)) throw new KeyNotFoundException($"Could not locate a token for header '{header}'."); diff --git a/sdks/dotnet/templates/libraries/generichost/TokenContainer`1.mustache b/sdks/dotnet/templates/libraries/generichost/TokenContainer`1.mustache index 3e8f1b15d..24c84a551 100644 --- a/sdks/dotnet/templates/libraries/generichost/TokenContainer`1.mustache +++ b/sdks/dotnet/templates/libraries/generichost/TokenContainer`1.mustache @@ -31,7 +31,7 @@ namespace {{packageName}}.{{clientPackage}} /// Instantiates a TokenContainer /// /// - public TokenContainer(System.Collections.Generic.IEnumerable tokens) + public TokenContainer(global::System.Collections.Generic.IEnumerable tokens) { Tokens = tokens.ToList(); } diff --git a/sdks/dotnet/templates/libraries/generichost/TokenProvider`1.mustache b/sdks/dotnet/templates/libraries/generichost/TokenProvider`1.mustache index 529725467..7226551b7 100644 --- a/sdks/dotnet/templates/libraries/generichost/TokenProvider`1.mustache +++ b/sdks/dotnet/templates/libraries/generichost/TokenProvider`1.mustache @@ -21,7 +21,7 @@ namespace {{packageName}} /// protected TTokenBase[] _tokens; - internal abstract System.Threading.Tasks.ValueTask GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(System.Threading.CancellationToken){{/netstandard20OrLater}}); + internal abstract System.Threading.Tasks.ValueTask GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(global::System.Threading.CancellationToken){{/netstandard20OrLater}}); /// /// Instantiates a TokenProvider. diff --git a/sdks/dotnet/templates/libraries/generichost/api.mustache b/sdks/dotnet/templates/libraries/generichost/api.mustache index eccb02d53..8c02da8f1 100644 --- a/sdks/dotnet/templates/libraries/generichost/api.mustache +++ b/sdks/dotnet/templates/libraries/generichost/api.mustache @@ -436,7 +436,6 @@ namespace {{packageName}}.{{apiPackage}} {{#queryParams}} {{^required}} if ({{paramName}}.IsSet) - // here too parseQueryStringLocalVar["{{baseName}}"] = ClientUtils.ParameterToString({{paramName}}.Value); {{/required}} @@ -710,7 +709,7 @@ namespace {{packageName}}.{{apiPackage}} OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); {{#responses}} {{#vendorExtensions.x-http-status-is-default}} @@ -725,7 +724,19 @@ namespace {{packageName}}.{{apiPackage}} /// Returns true if the response is {{code}} {{vendorExtensions.x-http-status}} /// /// + {{#vendorExtensions.x-http-status-range}} + public bool Is{{vendorExtensions.x-http-status}} + { + get + { + int statusCode = (int)StatusCode; + return {{vendorExtensions.x-http-status-range}}00 >= statusCode && {{vendorExtensions.x-http-status-range}}99 <= statusCode; + } + } + {{/vendorExtensions.x-http-status-range}} + {{^vendorExtensions.x-http-status-range}} public bool Is{{vendorExtensions.x-http-status}} => {{code}} == (int)StatusCode; + {{/vendorExtensions.x-http-status-range}} {{/vendorExtensions.x-http-status-is-default}} {{#dataType}} @@ -756,7 +767,7 @@ namespace {{packageName}}.{{apiPackage}} result = {{vendorExtensions.x-http-status}}(); } catch (Exception e) { - OnDeserializationErrorDefaultImplementation(e, (HttpStatusCode){{code}}); + OnDeserializationErrorDefaultImplementation(e, (HttpStatusCode){{#vendorExtensions.x-http-status-range}}{{.}}{{/vendorExtensions.x-http-status-range}}{{^vendorExtensions.x-http-status-range}}{{code}}{{/vendorExtensions.x-http-status-range}}); } return result != null; diff --git a/sdks/dotnet/templates/libraries/generichost/modelGeneric.mustache b/sdks/dotnet/templates/libraries/generichost/modelGeneric.mustache index ad8214873..6bf210bbc 100644 --- a/sdks/dotnet/templates/libraries/generichost/modelGeneric.mustache +++ b/sdks/dotnet/templates/libraries/generichost/modelGeneric.mustache @@ -98,7 +98,7 @@ /// Used to track the state of {{{name}}} /// [JsonIgnore] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public {{#isNew}}new {{/isNew}}Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}> {{name}}Option { get; {{^isReadOnly}}private set; {{/isReadOnly}}} {{/required}} @@ -127,7 +127,7 @@ /// Used to track the state of {{{name}}} /// [JsonIgnore] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public {{#isNew}}new {{/isNew}}Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}> {{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}Option { get; {{^isReadOnly}}private set; {{/isReadOnly}}} {{/required}} @@ -169,7 +169,7 @@ /// The discriminator /// [JsonIgnore] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public {{#isNew}}new {{/isNew}}{{datatypeWithEnum}} {{name}} { get; } = {{^isNew}}"{{classname}}"{{/isNew}}{{#isNew}}{{^isEnum}}"{{classname}}"{{/isEnum}}{{#isEnum}}({{datatypeWithEnum}})Enum.Parse(typeof({{datatypeWithEnum}}), "{{classname}}"){{/isEnum}}{{/isNew}}; {{/model.composedSchemas.oneOf}} @@ -184,7 +184,7 @@ /// Used to track the state of {{{name}}} /// [JsonIgnore] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public new Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}> {{name}}Option { get; {{^isReadOnly}}private set; {{/isReadOnly}}} {{/required}} @@ -209,7 +209,7 @@ /// Used to track the state of {{{name}}} /// [JsonIgnore] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}> {{name}}Option { get; {{^isReadOnly}}private set; {{/isReadOnly}}} {{/required}} diff --git a/sdks/dotnet/templates/libraries/httpclient/ApiClient.mustache b/sdks/dotnet/templates/libraries/httpclient/ApiClient.mustache index 9bed800e4..cefe6be9f 100644 --- a/sdks/dotnet/templates/libraries/httpclient/ApiClient.mustache +++ b/sdks/dotnet/templates/libraries/httpclient/ApiClient.mustache @@ -472,7 +472,7 @@ namespace {{packageName}}.Client private async Task> ExecAsync(HttpRequestMessage req, IReadableConfiguration configuration, - System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { CancellationTokenSource timeoutTokenSource = null; CancellationTokenSource finalTokenSource = null; @@ -591,7 +591,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), config, cancellationToken); @@ -606,7 +606,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), config, cancellationToken); @@ -621,7 +621,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), config, cancellationToken); @@ -636,7 +636,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), config, cancellationToken); @@ -651,7 +651,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), config, cancellationToken); @@ -666,7 +666,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), config, cancellationToken); @@ -681,7 +681,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(new HttpMethod("PATCH"), path, options, config), config, cancellationToken); diff --git a/sdks/dotnet/templates/libraries/httpclient/api.mustache b/sdks/dotnet/templates/libraries/httpclient/api.mustache index 22c8fd0c3..ebf563b5e 100644 --- a/sdks/dotnet/templates/libraries/httpclient/api.mustache +++ b/sdks/dotnet/templates/libraries/httpclient/api.mustache @@ -78,7 +78,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - {{#returnType}}System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + {{#returnType}}System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// {{summary}} @@ -95,7 +95,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); {{/operation}} #endregion Asynchronous Operations } @@ -552,7 +552,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - {{#returnType}}public async System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + {{#returnType}}public async System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { {{#returnType}}{{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false); return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false);{{/returnType}} @@ -570,7 +570,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { {{#allParams}} {{#required}} diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/ApiClient.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/ApiClient.mustache index 908c829f5..df7b9d054 100644 --- a/sdks/dotnet/templates/libraries/unityWebRequest/ApiClient.mustache +++ b/sdks/dotnet/templates/libraries/unityWebRequest/ApiClient.mustache @@ -117,7 +117,7 @@ namespace {{packageName}}.Client var text = request.downloadHandler?.text; // Generated APIs that don't expect a return value provide System.Object as the type - if (type == typeof(System.Object) && (string.IsNullOrEmpty(text) || text.Trim() == "null")) + if (type == typeof(global::System.Object) && (string.IsNullOrEmpty(text) || text.Trim() == "null")) { return null; } @@ -140,7 +140,7 @@ namespace {{packageName}}.Client } } - if (type != typeof(System.Object) && request.responseCode >= 200 && request.responseCode < 300) + if (type != typeof(global::System.Object) && request.responseCode >= 200 && request.responseCode < 300) { throw new UnexpectedResponseException(request, type); } @@ -290,7 +290,7 @@ namespace {{packageName}}.Client request = new UnityWebRequest(builder.GetFullUri(), method); } - if (request.downloadHandler == null && typeof(T) != typeof(System.Object)) + if (request.downloadHandler == null && typeof(T) != typeof(global::System.Object)) { request.downloadHandler = new DownloadHandlerBuffer(); } @@ -371,7 +371,7 @@ namespace {{packageName}}.Client string path, RequestOptions options, IReadableConfiguration configuration, - System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var deserializer = new CustomJsonCodec(SerializerSettings, configuration); @@ -445,7 +445,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("GET", path, options, config), path, options, config, cancellationToken); @@ -460,7 +460,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("POST", path, options, config), path, options, config, cancellationToken); @@ -475,7 +475,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("PUT", path, options, config), path, options, config, cancellationToken); @@ -490,7 +490,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("DELETE", path, options, config), path, options, config, cancellationToken); @@ -505,7 +505,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("HEAD", path, options, config), path, options, config, cancellationToken); @@ -520,7 +520,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("OPTIONS", path, options, config), path, options, config, cancellationToken); @@ -535,7 +535,7 @@ namespace {{packageName}}.Client /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("PATCH", path, options, config), path, options, config, cancellationToken); diff --git a/sdks/dotnet/templates/libraries/unityWebRequest/api.mustache b/sdks/dotnet/templates/libraries/unityWebRequest/api.mustache index 6b0a5883d..189ebfea9 100644 --- a/sdks/dotnet/templates/libraries/unityWebRequest/api.mustache +++ b/sdks/dotnet/templates/libraries/unityWebRequest/api.mustache @@ -77,7 +77,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - {{#returnType}}System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + {{#returnType}}System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// {{summary}} @@ -94,7 +94,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); {{/operation}} #endregion Asynchronous Operations } @@ -476,7 +476,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - {{#returnType}}public async System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + {{#returnType}}public async System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken); {{#returnType}} @@ -508,7 +508,7 @@ namespace {{packageName}}.{{apiPackage}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { {{#allParams}} {{#required}} diff --git a/sdks/dotnet/templates/netcore_project.mustache b/sdks/dotnet/templates/netcore_project.mustache index 9fe2f86fd..528d71fe6 100644 --- a/sdks/dotnet/templates/netcore_project.mustache +++ b/sdks/dotnet/templates/netcore_project.mustache @@ -26,6 +26,7 @@ {{.}}{{/releaseNote}}{{#packageTags}} {{{.}}}{{/packageTags}}{{#nrt}} {{#useGenericHost}}enable{{/useGenericHost}}{{^useGenericHost}}annotations{{/useGenericHost}}{{/nrt}} + false diff --git a/sdks/dotnet/templates/validatable.mustache b/sdks/dotnet/templates/validatable.mustache index 3c56efdf7..140ff9217 100644 --- a/sdks/dotnet/templates/validatable.mustache +++ b/sdks/dotnet/templates/validatable.mustache @@ -83,17 +83,17 @@ {{/minLength}} {{#maximum}} // {{{name}}} ({{{dataType}}}) maximum - if ({{#useGenericHost}}{{^required}}this.{{{name}}}Option.IsSet && {{/required}}{{/useGenericHost}}this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}} > ({{{dataType}}}){{maximum}}) + if ({{#useGenericHost}}{{^required}}this.{{{name}}}Option.IsSet && {{/required}}{{/useGenericHost}}this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}} {{#exclusiveMaximum}}<={{/exclusiveMaximum}}{{^exclusiveMaximum}}>{{/exclusiveMaximum}} ({{{dataType}}}){{maximum}}) { - yield return new ValidationResult("Invalid value for {{{name}}}, must be a value less than or equal to {{maximum}}.", new [] { "{{{name}}}" }); + yield return new ValidationResult("Invalid value for {{{name}}}, must be a value less than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}{{maximum}}.", new [] { "{{{name}}}" }); } {{/maximum}} {{#minimum}} // {{{name}}} ({{{dataType}}}) minimum - if ({{#useGenericHost}}{{^required}}this.{{{name}}}Option.IsSet && {{/required}}{{/useGenericHost}}this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}} < ({{{dataType}}}){{minimum}}) + if ({{#useGenericHost}}{{^required}}this.{{{name}}}Option.IsSet && {{/required}}{{/useGenericHost}}this.{{{name}}}{{#useGenericHost}}{{^required}}Option.Value{{/required}}{{/useGenericHost}} {{#exclusiveMaximum}}>={{/exclusiveMaximum}}{{^exclusiveMaximum}}<{{/exclusiveMaximum}} ({{{dataType}}}){{minimum}}) { - yield return new ValidationResult("Invalid value for {{{name}}}, must be a value greater than or equal to {{minimum}}.", new [] { "{{{name}}}" }); + yield return new ValidationResult("Invalid value for {{{name}}}, must be a value greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}{{minimum}}.", new [] { "{{{name}}}" }); } {{/minimum}} @@ -137,4 +137,4 @@ {{/hasValidation}} {{/vars}} yield break; - } + } \ No newline at end of file From f6564e02379da2fd9ead23ff51ede89e5c905b0c Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Tue, 3 Sep 2024 16:46:27 -0500 Subject: [PATCH 10/10] Adds integration tests --- sandbox/.gitignore | 3 + sandbox/dotnet/Program.cs | 36 ---- sandbox/dotnet/dropbox_sign_sandbox.csproj | 14 -- .../.config.dist.json | 6 + .../src/Dropbox.SignSandbox.Test/.gitignore | 1 + .../Dropbox.SignSandbox.Test.csproj | 24 +++ .../SignatureRequestTests.cs | 168 ++++++++++++++++++ .../Dropbox.SignSandbox.csproj | 18 ++ .../dotnet/src/Dropbox.SignSandbox/Program.cs | 39 ++++ ...SignatureRequestCreateEmbeddedRequest.json | 163 +++++++++++++++++ .../SignatureRequestSendRequest.json | 163 +++++++++++++++++ .../dotnet/{ => test_fixtures}/pdf-sample.pdf | Bin sdks/dotnet/Dropbox.Sign.sln | 4 +- sdks/dotnet/README.md | 2 +- sdks/dotnet/VERSION | 2 +- sdks/dotnet/openapi-config.yaml | 2 +- .../src/Dropbox.Sign/Client/Configuration.cs | 6 +- .../src/Dropbox.Sign/Dropbox.Sign.csproj | 2 +- sdks/dotnet/templates/Solution.mustache | 4 +- 19 files changed, 594 insertions(+), 63 deletions(-) delete mode 100644 sandbox/dotnet/Program.cs delete mode 100644 sandbox/dotnet/dropbox_sign_sandbox.csproj create mode 100644 sandbox/dotnet/src/Dropbox.SignSandbox.Test/.config.dist.json create mode 100644 sandbox/dotnet/src/Dropbox.SignSandbox.Test/.gitignore create mode 100644 sandbox/dotnet/src/Dropbox.SignSandbox.Test/Dropbox.SignSandbox.Test.csproj create mode 100644 sandbox/dotnet/src/Dropbox.SignSandbox.Test/SignatureRequestTests.cs create mode 100644 sandbox/dotnet/src/Dropbox.SignSandbox/Dropbox.SignSandbox.csproj create mode 100644 sandbox/dotnet/src/Dropbox.SignSandbox/Program.cs create mode 100644 sandbox/dotnet/test_fixtures/SignatureRequestCreateEmbeddedRequest.json create mode 100644 sandbox/dotnet/test_fixtures/SignatureRequestSendRequest.json rename sandbox/dotnet/{ => test_fixtures}/pdf-sample.pdf (100%) diff --git a/sandbox/.gitignore b/sandbox/.gitignore index 610051b88..178d20971 100644 --- a/sandbox/.gitignore +++ b/sandbox/.gitignore @@ -1,8 +1,11 @@ + dotnet/* !dotnet/.gitignore !dotnet/hellosign_sandbox.csproj !dotnet/NuGet.Config !dotnet/Program.cs +!dotnet/src +!dotnet/test_fixtures java-v1/* !java-v1/pom.xml diff --git a/sandbox/dotnet/Program.cs b/sandbox/dotnet/Program.cs deleted file mode 100644 index 8e4258739..000000000 --- a/sandbox/dotnet/Program.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; - -using Dropbox.Sign.Api; -using Dropbox.Sign.Client; -using Dropbox.Sign.Model; - -public class Example -{ - public static void Main() - { - var config = new Configuration(); - // Configure HTTP basic authorization: api_key - config.Username = "YOUR_API_KEY"; - - // or, configure Bearer (JWT) authorization: oauth2 - // config.AccessToken = "YOUR_BEARER_TOKEN"; - - var apiInstance = new AccountApi(config); - - var data = new AccountCreateRequest( - emailAddress: "newuser@dropboxsign.com" - ); - - try - { - var result = apiInstance.AccountCreate(data); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); - Console.WriteLine("Status Code: " + e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - } -} diff --git a/sandbox/dotnet/dropbox_sign_sandbox.csproj b/sandbox/dotnet/dropbox_sign_sandbox.csproj deleted file mode 100644 index c8c816809..000000000 --- a/sandbox/dotnet/dropbox_sign_sandbox.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - Exe - net6.0 - enable - enable - - - - - - - diff --git a/sandbox/dotnet/src/Dropbox.SignSandbox.Test/.config.dist.json b/sandbox/dotnet/src/Dropbox.SignSandbox.Test/.config.dist.json new file mode 100644 index 000000000..601c6a5f9 --- /dev/null +++ b/sandbox/dotnet/src/Dropbox.SignSandbox.Test/.config.dist.json @@ -0,0 +1,6 @@ +{ + "BASE_URL": "https://api.hellosign.com/v3", + "API_KEY": "", + "CLIENT_ID": "", + "USE_XDEBUG": 0 +} diff --git a/sandbox/dotnet/src/Dropbox.SignSandbox.Test/.gitignore b/sandbox/dotnet/src/Dropbox.SignSandbox.Test/.gitignore new file mode 100644 index 000000000..a9b8cc8b8 --- /dev/null +++ b/sandbox/dotnet/src/Dropbox.SignSandbox.Test/.gitignore @@ -0,0 +1 @@ +.config.json diff --git a/sandbox/dotnet/src/Dropbox.SignSandbox.Test/Dropbox.SignSandbox.Test.csproj b/sandbox/dotnet/src/Dropbox.SignSandbox.Test/Dropbox.SignSandbox.Test.csproj new file mode 100644 index 000000000..4f8b41f9d --- /dev/null +++ b/sandbox/dotnet/src/Dropbox.SignSandbox.Test/Dropbox.SignSandbox.Test.csproj @@ -0,0 +1,24 @@ + + + + Dropbox.SignSandbox.Test + Dropbox.SignSandbox.Test + net6.0 + false + Dropbox.SignSandbox.Test + + + + + + + + + + + + + + + + diff --git a/sandbox/dotnet/src/Dropbox.SignSandbox.Test/SignatureRequestTests.cs b/sandbox/dotnet/src/Dropbox.SignSandbox.Test/SignatureRequestTests.cs new file mode 100644 index 000000000..2350a526b --- /dev/null +++ b/sandbox/dotnet/src/Dropbox.SignSandbox.Test/SignatureRequestTests.cs @@ -0,0 +1,168 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Reflection; +using Xunit; +using Dropbox.Sign; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; + +namespace Dropbox.SignSandbox.Test +{ + public class TestHelper + { + public static JObject GetJsonContents(string fileName) + { + using (var r = new StreamReader( $"./../../../../../{fileName}")) + { + dynamic json = JsonConvert.DeserializeObject(r.ReadToEnd()); + Assert.NotNull(json); + + return json; + } + } + + public static JObject GetConfig() + { + dynamic configCustom = GetJsonContents("src/Dropbox.SignSandbox.Test/.config.json"); + dynamic configDist = GetJsonContents("src/Dropbox.SignSandbox.Test/.config.dist.json"); + + var mergeSettings = new JsonMergeSettings + { + MergeArrayHandling = MergeArrayHandling.Union + }; + + configDist.Merge(configCustom, mergeSettings); + + return configDist; + } + } + + public class SignatureRequestTests + { + [Fact] + public void SendTest() + { + dynamic config_merged = TestHelper.GetConfig(); + + var config = new Sign.Client.Configuration(); + config.Username = config_merged["API_KEY"]; + config.BasePath = config_merged["BASE_URL"]; + + var signatureRequestApi = new Sign.Api.SignatureRequestApi(config); + + var data = TestHelper.GetJsonContents("test_fixtures/SignatureRequestSendRequest.json"); + + var sendRequest = Sign.Model.SignatureRequestSendRequest.Init(data.ToString()); + + sendRequest.Files = new List { + new FileStream( + "./../../../../../test_fixtures/pdf-sample.pdf", + FileMode.Open, + FileAccess.Read, + FileShare.Read + ) + }; + + var sendResponse = signatureRequestApi.SignatureRequestSend(sendRequest); + + Assert.Equal( + sendRequest.FormFieldsPerDocument[0].ApiId, + sendResponse.SignatureRequest.CustomFields[0].ApiId + ); + + Assert.Equal( + sendRequest.Signers[0].EmailAddress, + sendResponse.SignatureRequest.Signatures[0].SignerEmailAddress + ); + Assert.Equal( + sendRequest.Signers[1].EmailAddress, + sendResponse.SignatureRequest.Signatures[1].SignerEmailAddress + ); + Assert.Equal( + sendRequest.Signers[2].EmailAddress, + sendResponse.SignatureRequest.Signatures[2].SignerEmailAddress + ); + + var getResponse = signatureRequestApi.SignatureRequestGet(sendResponse.SignatureRequest.SignatureRequestId); + + Assert.Equal( + sendResponse.SignatureRequest.SignatureRequestId, + getResponse.SignatureRequest.SignatureRequestId + ); + } + + [Fact] + public void CreateEmbeddedTest() + { + dynamic config_merged = TestHelper.GetConfig(); + + var config = new Sign.Client.Configuration(); + config.Username = config_merged["API_KEY"]; + config.BasePath = config_merged["BASE_URL"]; + + var signatureRequestApi = new Sign.Api.SignatureRequestApi(config); + + var data = TestHelper.GetJsonContents("test_fixtures/SignatureRequestSendRequest.json"); + data["client_id"] = config_merged["CLIENT_ID"]; + + var sendRequest = Sign.Model.SignatureRequestCreateEmbeddedRequest.Init(data.ToString()); + + sendRequest.Files = new List { + new FileStream( + "./../../../../../test_fixtures/pdf-sample.pdf", + FileMode.Open, + FileAccess.Read, + FileShare.Read + ) + }; + + var sendResponse = signatureRequestApi.SignatureRequestCreateEmbedded(sendRequest); + + Assert.Equal( + sendRequest.Signers[0].EmailAddress, + sendResponse.SignatureRequest.Signatures[0].SignerEmailAddress + ); + Assert.Equal( + sendRequest.Signers[1].EmailAddress, + sendResponse.SignatureRequest.Signatures[1].SignerEmailAddress + ); + Assert.Equal( + sendRequest.Signers[2].EmailAddress, + sendResponse.SignatureRequest.Signatures[2].SignerEmailAddress + ); + + var embeddedApi = new Sign.Api.EmbeddedApi(config); + + var getResponse = embeddedApi.EmbeddedSignUrl(sendResponse.SignatureRequest.Signatures[0].SignatureId); + + Assert.NotEmpty(getResponse.Embedded.SignUrl); + } + + [Fact] + public void SendWithoutFillErrorTest() + { + dynamic config_merged = TestHelper.GetConfig(); + + var config = new Sign.Client.Configuration(); + config.Username = config_merged["API_KEY"]; + config.BasePath = config_merged["BASE_URL"]; + + var signatureRequestApi = new Sign.Api.SignatureRequestApi(config); + + var data = TestHelper.GetJsonContents("test_fixtures/SignatureRequestSendRequest.json"); + + var sendRequest = Sign.Model.SignatureRequestSendRequest.Init(data.ToString()); + + try + { + signatureRequestApi.SignatureRequestSend(sendRequest); + Assert.True(false); + } + catch (Sign.Client.ApiException e) + { + Assert.Equal("file", e.ErrorContent.Error.ErrorPath); + } + } + } +} \ No newline at end of file diff --git a/sandbox/dotnet/src/Dropbox.SignSandbox/Dropbox.SignSandbox.csproj b/sandbox/dotnet/src/Dropbox.SignSandbox/Dropbox.SignSandbox.csproj new file mode 100644 index 000000000..00fa04608 --- /dev/null +++ b/sandbox/dotnet/src/Dropbox.SignSandbox/Dropbox.SignSandbox.csproj @@ -0,0 +1,18 @@ + + + + false + net6.0 + Dropbox.SignSandbox + Dropbox.SignSandbox + Library + Dropbox.SignSandbox + false + annotations + false + + + + + + diff --git a/sandbox/dotnet/src/Dropbox.SignSandbox/Program.cs b/sandbox/dotnet/src/Dropbox.SignSandbox/Program.cs new file mode 100644 index 000000000..ad6fb38e6 --- /dev/null +++ b/sandbox/dotnet/src/Dropbox.SignSandbox/Program.cs @@ -0,0 +1,39 @@ +using System; + +using Dropbox.Sign.Api; +using Dropbox.Sign.Client; +using Dropbox.Sign.Model; + +namespace Dropbox.SignSandbox +{ + public class Example + { + public static void Main() + { + var config = new Configuration(); + // Configure HTTP basic authorization: api_key + config.Username = "YOUR_API_KEY"; + + // or, configure Bearer (JWT) authorization: oauth2 + // config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new AccountApi(config); + + var data = new AccountCreateRequest( + emailAddress: "newuser@dropboxsign.com" + ); + + try + { + var result = apiInstance.AccountCreate(data); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + } + } +} \ No newline at end of file diff --git a/sandbox/dotnet/test_fixtures/SignatureRequestCreateEmbeddedRequest.json b/sandbox/dotnet/test_fixtures/SignatureRequestCreateEmbeddedRequest.json new file mode 100644 index 000000000..f9bd157f8 --- /dev/null +++ b/sandbox/dotnet/test_fixtures/SignatureRequestCreateEmbeddedRequest.json @@ -0,0 +1,163 @@ +{ + "allow_decline": true, + "allow_reassign": true, + "attachments": [ + { + "name": "Attachment1", + "signer_index": 1, + "instructions": "Upload your Driver's License", + "required": true + } + ], + "cc_email_addresses": [ + "lawyer1@example.com", + "lawyer2@example.com" + ], + "field_options": { + "date_format": "MM / DD / YYYY" + }, + "form_field_groups": [ + { + "group_id": "radio_group_1", + "group_label": "Radio Group 1", + "requirement": "require_0-1" + } + ], + "form_field_rules": [ + { + "id": "rule_1", + "trigger_operator": "AND", + "triggers": [ + { + "id": "api_id_1", + "operator": "is", + "value": "foo" + } + ], + "actions": [ + { + "field_id": "api_id_2", + "hidden": true, + "type": "change-field-visibility" + } + ] + } + ], + "form_fields_per_document": [ + { + "document_index": 0, + "api_id": "api_id_1", + "name": "field_1", + "type": "text", + "x": 0, + "y": 0, + "width": 120, + "height": 30, + "required": true, + "signer": "0", + "page": 1, + "font_family": "roboto", + "font_size": 11 + }, + { + "document_index": 0, + "api_id": "api_id_2", + "name": "field_2", + "type": "text", + "x": 300, + "y": 0, + "width": 120, + "height": 30, + "required": true, + "signer": 0, + "page": 1, + "font_size": 12 + }, + { + "document_index": 0, + "api_id": "api_id_3", + "name": "field_3", + "type": "dropdown", + "options": [ + "Option 1", + "Option 2", + "Option 3" + ], + "x": 0, + "y": 200, + "width": 120, + "height": 30, + "required": true, + "signer": 1, + "page": 1, + "font_size": 12 + }, + { + "document_index": 0, + "api_id": "api_id_4", + "name": "field_4", + "type": "text", + "x": 300, + "y": 200, + "width": 120, + "height": 30, + "required": true, + "signer": "1", + "page": 1, + "font_size": 12 + }, + { + "document_index": 0, + "api_id": "api_id_5", + "name": "field_5", + "type": "radio", + "group": "radio_group_1", + "is_checked": true, + "x": 0, + "y": 400, + "width": 100, + "height": 16, + "required": false, + "signer": "2", + "page": 1 + }, + { + "document_index": 0, + "api_id": "api_id_6", + "name": "field_6", + "type": "radio", + "group": "radio_group_1", + "is_checked": false, + "x": 300, + "y": 400, + "width": 100, + "height": 16, + "required": false, + "signer": "2", + "page": 1 + } + ], + "message": "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", + "metadata": { + "custom_id": 1234, + "custom_text": "NDA #9" + }, + "signers": [ + { + "email_address": "s1@example.com", + "name": "Signer 1", + "order": 0 + }, + { + "email_address": "s2@example.com", + "name": "Signer 2", + "order": 1 + }, + { + "email_address": "s3@example.com", + "name": "Signer 3", + "order": 2 + } + ], + "test_mode": true +} diff --git a/sandbox/dotnet/test_fixtures/SignatureRequestSendRequest.json b/sandbox/dotnet/test_fixtures/SignatureRequestSendRequest.json new file mode 100644 index 000000000..9560ddd52 --- /dev/null +++ b/sandbox/dotnet/test_fixtures/SignatureRequestSendRequest.json @@ -0,0 +1,163 @@ +{ + "allow_decline": true, + "allow_reassign": true, + "attachments": [ + { + "name": "Attachment1", + "signer_index": 1, + "instructions": "Upload your Driver's License", + "required": true + } + ], + "cc_email_addresses": [ + "lawyer1@example.com", + "lawyer2@example.com" + ], + "field_options": { + "date_format": "DD - MM - YYYY" + }, + "form_field_groups": [ + { + "group_id": "radio_group_1", + "group_label": "Radio Group 1", + "requirement": "require_0-1" + } + ], + "form_field_rules": [ + { + "id": "rule_1", + "trigger_operator": "AND", + "triggers": [ + { + "id": "api_id_1", + "operator": "is", + "value": "foo" + } + ], + "actions": [ + { + "field_id": "api_id_2", + "hidden": true, + "type": "change-field-visibility" + } + ] + } + ], + "form_fields_per_document": [ + { + "document_index": 0, + "api_id": "api_id_1", + "name": "field_1", + "type": "text", + "x": 0, + "y": 0, + "width": 120, + "height": 30, + "required": true, + "signer": "0", + "page": 1, + "font_family": "roboto", + "font_size": 11 + }, + { + "document_index": 0, + "api_id": "api_id_2", + "name": "field_2", + "type": "text", + "x": 300, + "y": 0, + "width": 120, + "height": 30, + "required": true, + "signer": 0, + "page": 1, + "font_size": 12 + }, + { + "document_index": 0, + "api_id": "api_id_3", + "name": "field_3", + "type": "dropdown", + "options": [ + "Option 1", + "Option 2", + "Option 3" + ], + "x": 0, + "y": 200, + "width": 120, + "height": 30, + "required": true, + "signer": 1, + "page": 1, + "font_size": 12 + }, + { + "document_index": 0, + "api_id": "api_id_4", + "name": "field_4", + "type": "text", + "x": 300, + "y": 200, + "width": 120, + "height": 30, + "required": true, + "signer": "1", + "page": 1, + "font_size": 12 + }, + { + "document_index": 0, + "api_id": "api_id_5", + "name": "field_5", + "type": "radio", + "group": "radio_group_1", + "is_checked": true, + "x": 0, + "y": 400, + "width": 100, + "height": 16, + "required": false, + "signer": "2", + "page": 1 + }, + { + "document_index": 0, + "api_id": "api_id_6", + "name": "field_6", + "type": "radio", + "group": "radio_group_1", + "is_checked": false, + "x": 300, + "y": 400, + "width": 100, + "height": 16, + "required": false, + "signer": "2", + "page": 1 + } + ], + "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", + "metadata": { + "custom_id": 1234, + "custom_text": "NDA #9" + }, + "signers": [ + { + "email_address": "s1@example.com", + "name": "Signer 1", + "order": 0 + }, + { + "email_address": "s2@example.com", + "name": "Signer 2", + "order": 1 + }, + { + "email_address": "s3@example.com", + "name": "Signer 3", + "order": 2 + } + ], + "test_mode": true +} diff --git a/sandbox/dotnet/pdf-sample.pdf b/sandbox/dotnet/test_fixtures/pdf-sample.pdf similarity index 100% rename from sandbox/dotnet/pdf-sample.pdf rename to sandbox/dotnet/test_fixtures/pdf-sample.pdf diff --git a/sdks/dotnet/Dropbox.Sign.sln b/sdks/dotnet/Dropbox.Sign.sln index 20ab4952c..b723ffd67 100755 --- a/sdks/dotnet/Dropbox.Sign.sln +++ b/sdks/dotnet/Dropbox.Sign.sln @@ -4,8 +4,6 @@ VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign", "src\Dropbox.Sign\Dropbox.Sign.csproj", "{F8C8232D-7020-4603-8E04-18D060AE530B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign", "src\Dropbox.Sign\Dropbox.Sign.csproj", "{F8C8232D-7020-4603-8E04-18D060AE530B}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign.Test", "src\Dropbox.Sign.Test\Dropbox.Sign.Test.csproj", "{C305EB17-93FE-4BDA-89A4-120BD8C8A88A}" EndProject Global @@ -30,4 +28,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection -EndGlobal \ No newline at end of file +EndGlobal diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index 06bb241fd..e3507dbe3 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/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: 1.5-dev +- SDK version: 1.6-dev - Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.CSharpClientCodegen diff --git a/sdks/dotnet/VERSION b/sdks/dotnet/VERSION index 6f3dd2f48..78ca9a102 100644 --- a/sdks/dotnet/VERSION +++ b/sdks/dotnet/VERSION @@ -1 +1 @@ -1.5-dev +1.6-dev diff --git a/sdks/dotnet/openapi-config.yaml b/sdks/dotnet/openapi-config.yaml index 56fc3cbba..ec94ff7bc 100644 --- a/sdks/dotnet/openapi-config.yaml +++ b/sdks/dotnet/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: 1.5-dev + packageVersion: 1.6-dev packageTitle: Dropbox Sign .Net SDK sortModelPropertiesByRequiredFlag: true optionalEmitDefaultValues: true diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs index 58bc84a5b..307b45ac3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs +++ b/sdks/dotnet/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 = "1.5-dev"; + public const string Version = "1.6-dev"; /// /// Identifier for ISO 8601 DateTime Format @@ -120,7 +120,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.5-dev/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.6-dev/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: 1.5-dev\n"; + report += " SDK Package Version: 1.6-dev\n"; return report; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj index 9b23ff568..348ea4247 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj +++ b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj @@ -12,7 +12,7 @@ Client library for using the Dropbox Sign API Dropbox 2024 Dropbox.Sign - 1.5-dev + 1.6-dev bin\$(Configuration)\$(TargetFramework)\Dropbox.Sign.xml https://github.com/hellosign/dropbox-sign-dotnet.git git diff --git a/sdks/dotnet/templates/Solution.mustache b/sdks/dotnet/templates/Solution.mustache index 1046b4689..f5589670a 100644 --- a/sdks/dotnet/templates/Solution.mustache +++ b/sdks/dotnet/templates/Solution.mustache @@ -10,8 +10,6 @@ EndProject {{/excludeTests}}Global {{/useCustomTemplateCode}} {{#useCustomTemplateCode}} -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign", "src\Dropbox.Sign\Dropbox.Sign.csproj", "{F8C8232D-7020-4603-8E04-18D060AE530B}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Sign.Test", "src\Dropbox.Sign.Test\Dropbox.Sign.Test.csproj", "{C305EB17-93FE-4BDA-89A4-120BD8C8A88A}" EndProject Global @@ -39,4 +37,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection -EndGlobal \ No newline at end of file +EndGlobal