From 181edd9ce29cf9ff8d10c590cd4ba8c819de6b52 Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Mon, 16 Sep 2024 10:43:59 -0500 Subject: [PATCH] Release 1.6.1 --- .openapi-generator/FILES | 413 ------------------ .openapi-generator/VERSION | 1 - LICENSE | 2 +- README.md | 2 +- VERSION | 2 +- docs/FaxLineApi.md | 2 +- docs/TemplateApi.md | 2 +- examples/FaxLineDelete.cs | 2 +- examples/TemplateUpdateFiles.cs | 2 +- openapi-config.yaml | 10 +- run-build | 3 +- .../Api/SignatureRequestApiTests.cs | 6 +- src/Dropbox.Sign.Test/Api/TeamApiTests.cs | 2 +- src/Dropbox.Sign.Test/Api/TemplateApiTests.cs | 4 +- .../EventCallbackHelperTests.cs | 4 +- src/Dropbox.Sign.Test/MockRestClientHelper.cs | 8 +- .../Model/SubFormFieldsPerDocumentTests.cs | 2 +- src/Dropbox.Sign/Client/ApiClient.cs | 12 +- src/Dropbox.Sign/Client/ClientUtils.cs | 11 +- src/Dropbox.Sign/Client/Configuration.cs | 12 +- src/Dropbox.Sign/Dropbox.Sign.csproj | 2 +- src/Dropbox.Sign/EventCallbackHelper.cs | 2 +- .../Model/AbstractOpenAPISchema.cs | 2 +- .../Model/AccountCreateRequest.cs | 30 +- .../Model/AccountCreateResponse.cs | 23 +- src/Dropbox.Sign/Model/AccountGetResponse.cs | 16 +- src/Dropbox.Sign/Model/AccountResponse.cs | 79 ++-- .../Model/AccountResponseQuotas.cs | 44 +- .../Model/AccountResponseUsage.cs | 9 +- .../Model/AccountUpdateRequest.cs | 23 +- .../Model/AccountVerifyRequest.cs | 9 +- .../Model/AccountVerifyResponse.cs | 16 +- .../Model/AccountVerifyResponseAccount.cs | 9 +- src/Dropbox.Sign/Model/ApiAppCreateRequest.cs | 51 ++- src/Dropbox.Sign/Model/ApiAppGetResponse.cs | 16 +- src/Dropbox.Sign/Model/ApiAppListResponse.cs | 23 +- src/Dropbox.Sign/Model/ApiAppResponse.cs | 72 +-- src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs | 30 +- .../Model/ApiAppResponseOptions.cs | 9 +- .../Model/ApiAppResponseOwnerAccount.cs | 16 +- .../ApiAppResponseWhiteLabelingOptions.cs | 100 +++-- src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs | 51 ++- .../Model/BulkSendJobGetResponse.cs | 30 +- ...BulkSendJobGetResponseSignatureRequests.cs | 177 ++++---- .../Model/BulkSendJobListResponse.cs | 23 +- src/Dropbox.Sign/Model/BulkSendJobResponse.cs | 30 +- .../Model/BulkSendJobSendResponse.cs | 16 +- .../Model/EmbeddedEditUrlRequest.cs | 72 +-- .../Model/EmbeddedEditUrlResponse.cs | 16 +- .../Model/EmbeddedEditUrlResponseEmbedded.cs | 16 +- .../Model/EmbeddedSignUrlResponse.cs | 16 +- .../Model/EmbeddedSignUrlResponseEmbedded.cs | 16 +- src/Dropbox.Sign/Model/ErrorResponse.cs | 9 +- src/Dropbox.Sign/Model/ErrorResponseError.cs | 23 +- .../Model/EventCallbackRequest.cs | 30 +- .../Model/EventCallbackRequestEvent.cs | 28 +- .../EventCallbackRequestEventMetadata.cs | 30 +- src/Dropbox.Sign/Model/FaxLine.cs | 22 +- .../Model/FaxLineAddUserRequest.cs | 23 +- .../Model/FaxLineAreaCodeGetResponse.cs | 9 +- .../Model/FaxLineCreateRequest.cs | 28 +- .../Model/FaxLineDeleteRequest.cs | 9 +- src/Dropbox.Sign/Model/FaxLineListResponse.cs | 23 +- .../Model/FaxLineRemoveUserRequest.cs | 23 +- src/Dropbox.Sign/Model/FaxLineResponse.cs | 16 +- .../Model/FaxLineResponseFaxLine.cs | 30 +- src/Dropbox.Sign/Model/FileResponse.cs | 16 +- src/Dropbox.Sign/Model/FileResponseDataUri.cs | 9 +- src/Dropbox.Sign/Model/ListInfoResponse.cs | 30 +- .../Model/OAuthTokenGenerateRequest.cs | 37 +- .../Model/OAuthTokenRefreshRequest.cs | 16 +- src/Dropbox.Sign/Model/OAuthTokenResponse.cs | 37 +- src/Dropbox.Sign/Model/ReportCreateRequest.cs | 23 +- .../Model/ReportCreateResponse.cs | 16 +- src/Dropbox.Sign/Model/ReportResponse.cs | 30 +- ...stBulkCreateEmbeddedWithTemplateRequest.cs | 99 +++-- ...atureRequestBulkSendWithTemplateRequest.cs | 99 +++-- .../SignatureRequestCreateEmbeddedRequest.cs | 176 ++++---- ...equestCreateEmbeddedWithTemplateRequest.cs | 113 ++--- .../SignatureRequestEditEmbeddedRequest.cs | 128 +++--- ...eRequestEditEmbeddedWithTemplateRequest.cs | 83 ++-- .../Model/SignatureRequestEditRequest.cs | 138 +++--- ...SignatureRequestEditWithTemplateRequest.cs | 93 ++-- .../Model/SignatureRequestGetResponse.cs | 16 +- .../Model/SignatureRequestListResponse.cs | 23 +- .../Model/SignatureRequestRemindRequest.cs | 16 +- .../Model/SignatureRequestResponse.cs | 177 ++++---- .../SignatureRequestResponseAttachment.cs | 45 +- ...SignatureRequestResponseCustomFieldBase.cs | 37 +- ...atureRequestResponseCustomFieldCheckbox.cs | 16 +- ...SignatureRequestResponseCustomFieldText.cs | 16 +- .../Model/SignatureRequestResponseDataBase.cs | 37 +- ...gnatureRequestResponseDataValueCheckbox.cs | 16 +- ...reRequestResponseDataValueCheckboxMerge.cs | 16 +- ...atureRequestResponseDataValueDateSigned.cs | 16 +- ...gnatureRequestResponseDataValueDropdown.cs | 16 +- ...gnatureRequestResponseDataValueInitials.cs | 16 +- .../SignatureRequestResponseDataValueRadio.cs | 16 +- ...natureRequestResponseDataValueSignature.cs | 16 +- .../SignatureRequestResponseDataValueText.cs | 16 +- ...natureRequestResponseDataValueTextMerge.cs | 16 +- .../SignatureRequestResponseSignatures.cs | 135 +++--- .../Model/SignatureRequestSendRequest.cs | 190 ++++---- ...SignatureRequestSendWithTemplateRequest.cs | 127 +++--- .../Model/SignatureRequestUpdateRequest.cs | 30 +- src/Dropbox.Sign/Model/SubAttachment.cs | 30 +- src/Dropbox.Sign/Model/SubBulkSignerList.cs | 16 +- .../Model/SubBulkSignerListCustomField.cs | 16 +- src/Dropbox.Sign/Model/SubCC.cs | 16 +- src/Dropbox.Sign/Model/SubCustomField.cs | 30 +- src/Dropbox.Sign/Model/SubEditorOptions.cs | 16 +- src/Dropbox.Sign/Model/SubFieldOptions.cs | 7 +- src/Dropbox.Sign/Model/SubFormFieldGroup.cs | 23 +- src/Dropbox.Sign/Model/SubFormFieldRule.cs | 30 +- .../Model/SubFormFieldRuleAction.cs | 28 +- .../Model/SubFormFieldRuleTrigger.cs | 28 +- .../Model/SubFormFieldsPerDocumentBase.cs | 80 ++-- .../Model/SubFormFieldsPerDocumentCheckbox.cs | 23 +- .../SubFormFieldsPerDocumentCheckboxMerge.cs | 9 +- .../SubFormFieldsPerDocumentDateSigned.cs | 21 +- .../Model/SubFormFieldsPerDocumentDropdown.cs | 35 +- .../SubFormFieldsPerDocumentHyperlink.cs | 35 +- .../Model/SubFormFieldsPerDocumentInitials.cs | 9 +- .../Model/SubFormFieldsPerDocumentRadio.cs | 23 +- .../SubFormFieldsPerDocumentSignature.cs | 9 +- .../Model/SubFormFieldsPerDocumentText.cs | 75 ++-- .../SubFormFieldsPerDocumentTextMerge.cs | 21 +- src/Dropbox.Sign/Model/SubMergeField.cs | 14 +- src/Dropbox.Sign/Model/SubOAuth.cs | 16 +- src/Dropbox.Sign/Model/SubOptions.cs | 9 +- .../SubSignatureRequestGroupedSigners.cs | 23 +- .../Model/SubSignatureRequestSigner.cs | 46 +- .../SubSignatureRequestTemplateSigner.cs | 46 +- src/Dropbox.Sign/Model/SubSigningOptions.cs | 35 +- src/Dropbox.Sign/Model/SubTeamResponse.cs | 16 +- src/Dropbox.Sign/Model/SubTemplateRole.cs | 16 +- .../Model/SubUnclaimedDraftSigner.cs | 23 +- .../Model/SubUnclaimedDraftTemplateSigner.cs | 23 +- .../Model/SubWhiteLabelingOptions.cs | 105 +++-- .../Model/TeamAddMemberRequest.cs | 21 +- src/Dropbox.Sign/Model/TeamCreateRequest.cs | 9 +- src/Dropbox.Sign/Model/TeamGetInfoResponse.cs | 16 +- src/Dropbox.Sign/Model/TeamGetResponse.cs | 16 +- src/Dropbox.Sign/Model/TeamInfoResponse.cs | 37 +- src/Dropbox.Sign/Model/TeamInviteResponse.cs | 44 +- src/Dropbox.Sign/Model/TeamInvitesResponse.cs | 16 +- src/Dropbox.Sign/Model/TeamMemberResponse.cs | 23 +- src/Dropbox.Sign/Model/TeamMembersResponse.cs | 23 +- src/Dropbox.Sign/Model/TeamParentResponse.cs | 16 +- .../Model/TeamRemoveMemberRequest.cs | 35 +- src/Dropbox.Sign/Model/TeamResponse.cs | 30 +- .../Model/TeamSubTeamsResponse.cs | 23 +- src/Dropbox.Sign/Model/TeamUpdateRequest.cs | 9 +- .../Model/TemplateAddUserRequest.cs | 23 +- .../TemplateCreateEmbeddedDraftRequest.cs | 181 ++++---- .../TemplateCreateEmbeddedDraftResponse.cs | 16 +- ...lateCreateEmbeddedDraftResponseTemplate.cs | 30 +- .../Model/TemplateCreateRequest.cs | 132 +++--- .../Model/TemplateCreateResponse.cs | 16 +- .../Model/TemplateCreateResponseTemplate.cs | 9 +- .../Model/TemplateEditResponse.cs | 9 +- src/Dropbox.Sign/Model/TemplateGetResponse.cs | 16 +- .../Model/TemplateListResponse.cs | 23 +- .../Model/TemplateRemoveUserRequest.cs | 16 +- src/Dropbox.Sign/Model/TemplateResponse.cs | 107 +++-- .../Model/TemplateResponseAccount.cs | 44 +- .../Model/TemplateResponseAccountQuota.cs | 30 +- .../Model/TemplateResponseCCRole.cs | 9 +- .../Model/TemplateResponseCustomField.cs | 67 +-- .../Model/TemplateResponseDocument.cs | 44 +- .../TemplateResponseDocumentCustomField.cs | 82 ++-- ...TemplateResponseDocumentCustomFieldBase.cs | 73 ++-- ...lateResponseDocumentCustomFieldCheckbox.cs | 9 +- ...TemplateResponseDocumentCustomFieldText.cs | 37 +- .../TemplateResponseDocumentFieldGroup.cs | 16 +- .../TemplateResponseDocumentFieldGroupRule.cs | 16 +- .../TemplateResponseDocumentFormField.cs | 72 +-- .../TemplateResponseDocumentFormFieldBase.cs | 73 ++-- ...mplateResponseDocumentFormFieldCheckbox.cs | 9 +- ...lateResponseDocumentFormFieldDateSigned.cs | 9 +- ...mplateResponseDocumentFormFieldDropdown.cs | 9 +- ...plateResponseDocumentFormFieldHyperlink.cs | 37 +- ...mplateResponseDocumentFormFieldInitials.cs | 9 +- .../TemplateResponseDocumentFormFieldRadio.cs | 9 +- ...plateResponseDocumentFormFieldSignature.cs | 9 +- .../TemplateResponseDocumentFormFieldText.cs | 42 +- .../TemplateResponseDocumentStaticField.cs | 52 ++- ...TemplateResponseDocumentStaticFieldBase.cs | 72 +-- ...lateResponseDocumentStaticFieldCheckbox.cs | 9 +- ...teResponseDocumentStaticFieldDateSigned.cs | 9 +- ...lateResponseDocumentStaticFieldDropdown.cs | 9 +- ...ateResponseDocumentStaticFieldHyperlink.cs | 9 +- ...lateResponseDocumentStaticFieldInitials.cs | 9 +- ...emplateResponseDocumentStaticFieldRadio.cs | 9 +- ...ateResponseDocumentStaticFieldSignature.cs | 9 +- ...TemplateResponseDocumentStaticFieldText.cs | 9 +- .../TemplateResponseFieldAvgTextLength.cs | 16 +- .../Model/TemplateResponseNamedFormField.cs | 72 +-- .../Model/TemplateResponseSignerRole.cs | 16 +- .../Model/TemplateUpdateFilesRequest.cs | 48 +- .../Model/TemplateUpdateFilesResponse.cs | 9 +- .../TemplateUpdateFilesResponseTemplate.cs | 16 +- .../UnclaimedDraftCreateEmbeddedRequest.cs | 256 ++++++----- ...dDraftCreateEmbeddedWithTemplateRequest.cs | 218 +++++---- .../Model/UnclaimedDraftCreateRequest.cs | 172 ++++---- .../Model/UnclaimedDraftCreateResponse.cs | 16 +- .../UnclaimedDraftEditAndResendRequest.cs | 58 +-- .../Model/UnclaimedDraftResponse.cs | 44 +- src/Dropbox.Sign/Model/WarningResponse.cs | 16 +- ...lper.cs => dropbox-EventCallbackHelper.cs} | 0 templates/dropbox-LICENSE.mustache | 21 + ...SION.mustache => dropbox-VERSION.mustache} | 0 .../generichost/ApiResponseEventArgs.mustache | 47 -- .../generichost/OpenAPIDateConverter.mustache | 34 -- .../libraries/generichost/README.mustache | 214 --------- 215 files changed, 4179 insertions(+), 3844 deletions(-) delete mode 100644 .openapi-generator/FILES delete mode 100644 .openapi-generator/VERSION rename templates/{EventCallbackHelper.cs => dropbox-EventCallbackHelper.cs} (100%) create mode 100644 templates/dropbox-LICENSE.mustache rename templates/{VERSION.mustache => dropbox-VERSION.mustache} (100%) delete mode 100644 templates/libraries/generichost/ApiResponseEventArgs.mustache delete mode 100644 templates/libraries/generichost/OpenAPIDateConverter.mustache delete mode 100644 templates/libraries/generichost/README.mustache diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES deleted file mode 100644 index 9969434..0000000 --- a/.openapi-generator/FILES +++ /dev/null @@ -1,413 +0,0 @@ -.gitignore -Dropbox.Sign.sln -README.md -VERSION -api/openapi.yaml -appveyor.yml -docs/AccountApi.md -docs/AccountCreateRequest.md -docs/AccountCreateResponse.md -docs/AccountGetResponse.md -docs/AccountResponse.md -docs/AccountResponseQuotas.md -docs/AccountResponseUsage.md -docs/AccountUpdateRequest.md -docs/AccountVerifyRequest.md -docs/AccountVerifyResponse.md -docs/AccountVerifyResponseAccount.md -docs/ApiAppApi.md -docs/ApiAppCreateRequest.md -docs/ApiAppGetResponse.md -docs/ApiAppListResponse.md -docs/ApiAppResponse.md -docs/ApiAppResponseOAuth.md -docs/ApiAppResponseOptions.md -docs/ApiAppResponseOwnerAccount.md -docs/ApiAppResponseWhiteLabelingOptions.md -docs/ApiAppUpdateRequest.md -docs/BulkSendJobApi.md -docs/BulkSendJobGetResponse.md -docs/BulkSendJobGetResponseSignatureRequests.md -docs/BulkSendJobListResponse.md -docs/BulkSendJobResponse.md -docs/BulkSendJobSendResponse.md -docs/EmbeddedApi.md -docs/EmbeddedEditUrlRequest.md -docs/EmbeddedEditUrlResponse.md -docs/EmbeddedEditUrlResponseEmbedded.md -docs/EmbeddedSignUrlResponse.md -docs/EmbeddedSignUrlResponseEmbedded.md -docs/ErrorResponse.md -docs/ErrorResponseError.md -docs/EventCallbackRequest.md -docs/EventCallbackRequestEvent.md -docs/EventCallbackRequestEventMetadata.md -docs/FaxLineAddUserRequest.md -docs/FaxLineApi.md -docs/FaxLineAreaCodeGetCountryEnum.md -docs/FaxLineAreaCodeGetProvinceEnum.md -docs/FaxLineAreaCodeGetResponse.md -docs/FaxLineAreaCodeGetStateEnum.md -docs/FaxLineCreateRequest.md -docs/FaxLineDeleteRequest.md -docs/FaxLineListResponse.md -docs/FaxLineRemoveUserRequest.md -docs/FaxLineResponse.md -docs/FaxLineResponseFaxLine.md -docs/FileResponse.md -docs/FileResponseDataUri.md -docs/ListInfoResponse.md -docs/OAuthApi.md -docs/OAuthTokenGenerateRequest.md -docs/OAuthTokenRefreshRequest.md -docs/OAuthTokenResponse.md -docs/ReportApi.md -docs/ReportCreateRequest.md -docs/ReportCreateResponse.md -docs/ReportResponse.md -docs/SignatureRequestApi.md -docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md -docs/SignatureRequestBulkSendWithTemplateRequest.md -docs/SignatureRequestCreateEmbeddedRequest.md -docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md -docs/SignatureRequestGetResponse.md -docs/SignatureRequestListResponse.md -docs/SignatureRequestRemindRequest.md -docs/SignatureRequestResponse.md -docs/SignatureRequestResponseAttachment.md -docs/SignatureRequestResponseCustomFieldBase.md -docs/SignatureRequestResponseCustomFieldCheckbox.md -docs/SignatureRequestResponseCustomFieldText.md -docs/SignatureRequestResponseCustomFieldTypeEnum.md -docs/SignatureRequestResponseDataBase.md -docs/SignatureRequestResponseDataTypeEnum.md -docs/SignatureRequestResponseDataValueCheckbox.md -docs/SignatureRequestResponseDataValueCheckboxMerge.md -docs/SignatureRequestResponseDataValueDateSigned.md -docs/SignatureRequestResponseDataValueDropdown.md -docs/SignatureRequestResponseDataValueInitials.md -docs/SignatureRequestResponseDataValueRadio.md -docs/SignatureRequestResponseDataValueSignature.md -docs/SignatureRequestResponseDataValueText.md -docs/SignatureRequestResponseDataValueTextMerge.md -docs/SignatureRequestResponseSignatures.md -docs/SignatureRequestSendRequest.md -docs/SignatureRequestSendWithTemplateRequest.md -docs/SignatureRequestUpdateRequest.md -docs/SubAttachment.md -docs/SubBulkSignerList.md -docs/SubBulkSignerListCustomField.md -docs/SubCC.md -docs/SubCustomField.md -docs/SubEditorOptions.md -docs/SubFieldOptions.md -docs/SubFormFieldGroup.md -docs/SubFormFieldRule.md -docs/SubFormFieldRuleAction.md -docs/SubFormFieldRuleTrigger.md -docs/SubFormFieldsPerDocumentBase.md -docs/SubFormFieldsPerDocumentCheckbox.md -docs/SubFormFieldsPerDocumentCheckboxMerge.md -docs/SubFormFieldsPerDocumentDateSigned.md -docs/SubFormFieldsPerDocumentDropdown.md -docs/SubFormFieldsPerDocumentFontEnum.md -docs/SubFormFieldsPerDocumentHyperlink.md -docs/SubFormFieldsPerDocumentInitials.md -docs/SubFormFieldsPerDocumentRadio.md -docs/SubFormFieldsPerDocumentSignature.md -docs/SubFormFieldsPerDocumentText.md -docs/SubFormFieldsPerDocumentTextMerge.md -docs/SubFormFieldsPerDocumentTypeEnum.md -docs/SubMergeField.md -docs/SubOAuth.md -docs/SubOptions.md -docs/SubSignatureRequestGroupedSigners.md -docs/SubSignatureRequestSigner.md -docs/SubSignatureRequestTemplateSigner.md -docs/SubSigningOptions.md -docs/SubTeamResponse.md -docs/SubTemplateRole.md -docs/SubUnclaimedDraftSigner.md -docs/SubUnclaimedDraftTemplateSigner.md -docs/SubWhiteLabelingOptions.md -docs/TeamAddMemberRequest.md -docs/TeamApi.md -docs/TeamCreateRequest.md -docs/TeamGetInfoResponse.md -docs/TeamGetResponse.md -docs/TeamInfoResponse.md -docs/TeamInviteResponse.md -docs/TeamInvitesResponse.md -docs/TeamMemberResponse.md -docs/TeamMembersResponse.md -docs/TeamParentResponse.md -docs/TeamRemoveMemberRequest.md -docs/TeamResponse.md -docs/TeamSubTeamsResponse.md -docs/TeamUpdateRequest.md -docs/TemplateAddUserRequest.md -docs/TemplateApi.md -docs/TemplateCreateEmbeddedDraftRequest.md -docs/TemplateCreateEmbeddedDraftResponse.md -docs/TemplateCreateEmbeddedDraftResponseTemplate.md -docs/TemplateCreateRequest.md -docs/TemplateCreateResponse.md -docs/TemplateCreateResponseTemplate.md -docs/TemplateEditResponse.md -docs/TemplateGetResponse.md -docs/TemplateListResponse.md -docs/TemplateRemoveUserRequest.md -docs/TemplateResponse.md -docs/TemplateResponseAccount.md -docs/TemplateResponseAccountQuota.md -docs/TemplateResponseCCRole.md -docs/TemplateResponseDocument.md -docs/TemplateResponseDocumentCustomFieldBase.md -docs/TemplateResponseDocumentCustomFieldCheckbox.md -docs/TemplateResponseDocumentCustomFieldText.md -docs/TemplateResponseDocumentFieldGroup.md -docs/TemplateResponseDocumentFieldGroupRule.md -docs/TemplateResponseDocumentFormFieldBase.md -docs/TemplateResponseDocumentFormFieldCheckbox.md -docs/TemplateResponseDocumentFormFieldDateSigned.md -docs/TemplateResponseDocumentFormFieldDropdown.md -docs/TemplateResponseDocumentFormFieldHyperlink.md -docs/TemplateResponseDocumentFormFieldInitials.md -docs/TemplateResponseDocumentFormFieldRadio.md -docs/TemplateResponseDocumentFormFieldSignature.md -docs/TemplateResponseDocumentFormFieldText.md -docs/TemplateResponseDocumentStaticFieldBase.md -docs/TemplateResponseDocumentStaticFieldCheckbox.md -docs/TemplateResponseDocumentStaticFieldDateSigned.md -docs/TemplateResponseDocumentStaticFieldDropdown.md -docs/TemplateResponseDocumentStaticFieldHyperlink.md -docs/TemplateResponseDocumentStaticFieldInitials.md -docs/TemplateResponseDocumentStaticFieldRadio.md -docs/TemplateResponseDocumentStaticFieldSignature.md -docs/TemplateResponseDocumentStaticFieldText.md -docs/TemplateResponseFieldAvgTextLength.md -docs/TemplateResponseSignerRole.md -docs/TemplateUpdateFilesRequest.md -docs/TemplateUpdateFilesResponse.md -docs/TemplateUpdateFilesResponseTemplate.md -docs/UnclaimedDraftApi.md -docs/UnclaimedDraftCreateEmbeddedRequest.md -docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md -docs/UnclaimedDraftCreateRequest.md -docs/UnclaimedDraftCreateResponse.md -docs/UnclaimedDraftEditAndResendRequest.md -docs/UnclaimedDraftResponse.md -docs/WarningResponse.md -src/Dropbox.Sign/Api/AccountApi.cs -src/Dropbox.Sign/Api/ApiAppApi.cs -src/Dropbox.Sign/Api/BulkSendJobApi.cs -src/Dropbox.Sign/Api/EmbeddedApi.cs -src/Dropbox.Sign/Api/FaxLineApi.cs -src/Dropbox.Sign/Api/OAuthApi.cs -src/Dropbox.Sign/Api/ReportApi.cs -src/Dropbox.Sign/Api/SignatureRequestApi.cs -src/Dropbox.Sign/Api/TeamApi.cs -src/Dropbox.Sign/Api/TemplateApi.cs -src/Dropbox.Sign/Api/UnclaimedDraftApi.cs -src/Dropbox.Sign/Client/ApiClient.cs -src/Dropbox.Sign/Client/ApiException.cs -src/Dropbox.Sign/Client/ApiResponse.cs -src/Dropbox.Sign/Client/ClientUtils.cs -src/Dropbox.Sign/Client/Configuration.cs -src/Dropbox.Sign/Client/ExceptionFactory.cs -src/Dropbox.Sign/Client/GlobalConfiguration.cs -src/Dropbox.Sign/Client/HttpMethod.cs -src/Dropbox.Sign/Client/IApiAccessor.cs -src/Dropbox.Sign/Client/IAsynchronousClient.cs -src/Dropbox.Sign/Client/IReadableConfiguration.cs -src/Dropbox.Sign/Client/ISynchronousClient.cs -src/Dropbox.Sign/Client/Multimap.cs -src/Dropbox.Sign/Client/OpenAPIDateConverter.cs -src/Dropbox.Sign/Client/RequestOptions.cs -src/Dropbox.Sign/Client/RetryConfiguration.cs -src/Dropbox.Sign/Dropbox.Sign.csproj -src/Dropbox.Sign/EventCallbackHelper.cs -src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs -src/Dropbox.Sign/Model/AccountCreateRequest.cs -src/Dropbox.Sign/Model/AccountCreateResponse.cs -src/Dropbox.Sign/Model/AccountGetResponse.cs -src/Dropbox.Sign/Model/AccountResponse.cs -src/Dropbox.Sign/Model/AccountResponseQuotas.cs -src/Dropbox.Sign/Model/AccountResponseUsage.cs -src/Dropbox.Sign/Model/AccountUpdateRequest.cs -src/Dropbox.Sign/Model/AccountVerifyRequest.cs -src/Dropbox.Sign/Model/AccountVerifyResponse.cs -src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs -src/Dropbox.Sign/Model/ApiAppCreateRequest.cs -src/Dropbox.Sign/Model/ApiAppGetResponse.cs -src/Dropbox.Sign/Model/ApiAppListResponse.cs -src/Dropbox.Sign/Model/ApiAppResponse.cs -src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs -src/Dropbox.Sign/Model/ApiAppResponseOptions.cs -src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs -src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs -src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs -src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs -src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs -src/Dropbox.Sign/Model/BulkSendJobListResponse.cs -src/Dropbox.Sign/Model/BulkSendJobResponse.cs -src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs -src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs -src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs -src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs -src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs -src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs -src/Dropbox.Sign/Model/ErrorResponse.cs -src/Dropbox.Sign/Model/ErrorResponseError.cs -src/Dropbox.Sign/Model/EventCallbackRequest.cs -src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs -src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs -src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs -src/Dropbox.Sign/Model/FaxLineAreaCodeGetCountryEnum.cs -src/Dropbox.Sign/Model/FaxLineAreaCodeGetProvinceEnum.cs -src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs -src/Dropbox.Sign/Model/FaxLineAreaCodeGetStateEnum.cs -src/Dropbox.Sign/Model/FaxLineCreateRequest.cs -src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs -src/Dropbox.Sign/Model/FaxLineListResponse.cs -src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs -src/Dropbox.Sign/Model/FaxLineResponse.cs -src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs -src/Dropbox.Sign/Model/FileResponse.cs -src/Dropbox.Sign/Model/FileResponseDataUri.cs -src/Dropbox.Sign/Model/ListInfoResponse.cs -src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs -src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs -src/Dropbox.Sign/Model/OAuthTokenResponse.cs -src/Dropbox.Sign/Model/ReportCreateRequest.cs -src/Dropbox.Sign/Model/ReportCreateResponse.cs -src/Dropbox.Sign/Model/ReportResponse.cs -src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs -src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs -src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs -src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs -src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs -src/Dropbox.Sign/Model/SignatureRequestListResponse.cs -src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs -src/Dropbox.Sign/Model/SignatureRequestResponse.cs -src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs -src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs -src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs -src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs -src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldTypeEnum.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataTypeEnum.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs -src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs -src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs -src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs -src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs -src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs -src/Dropbox.Sign/Model/SubAttachment.cs -src/Dropbox.Sign/Model/SubBulkSignerList.cs -src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs -src/Dropbox.Sign/Model/SubCC.cs -src/Dropbox.Sign/Model/SubCustomField.cs -src/Dropbox.Sign/Model/SubEditorOptions.cs -src/Dropbox.Sign/Model/SubFieldOptions.cs -src/Dropbox.Sign/Model/SubFormFieldGroup.cs -src/Dropbox.Sign/Model/SubFormFieldRule.cs -src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs -src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentFontEnum.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs -src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTypeEnum.cs -src/Dropbox.Sign/Model/SubMergeField.cs -src/Dropbox.Sign/Model/SubOAuth.cs -src/Dropbox.Sign/Model/SubOptions.cs -src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs -src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs -src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs -src/Dropbox.Sign/Model/SubSigningOptions.cs -src/Dropbox.Sign/Model/SubTeamResponse.cs -src/Dropbox.Sign/Model/SubTemplateRole.cs -src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs -src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs -src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs -src/Dropbox.Sign/Model/TeamAddMemberRequest.cs -src/Dropbox.Sign/Model/TeamCreateRequest.cs -src/Dropbox.Sign/Model/TeamGetInfoResponse.cs -src/Dropbox.Sign/Model/TeamGetResponse.cs -src/Dropbox.Sign/Model/TeamInfoResponse.cs -src/Dropbox.Sign/Model/TeamInviteResponse.cs -src/Dropbox.Sign/Model/TeamInvitesResponse.cs -src/Dropbox.Sign/Model/TeamMemberResponse.cs -src/Dropbox.Sign/Model/TeamMembersResponse.cs -src/Dropbox.Sign/Model/TeamParentResponse.cs -src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs -src/Dropbox.Sign/Model/TeamResponse.cs -src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs -src/Dropbox.Sign/Model/TeamUpdateRequest.cs -src/Dropbox.Sign/Model/TemplateAddUserRequest.cs -src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs -src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs -src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs -src/Dropbox.Sign/Model/TemplateCreateRequest.cs -src/Dropbox.Sign/Model/TemplateCreateResponse.cs -src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs -src/Dropbox.Sign/Model/TemplateEditResponse.cs -src/Dropbox.Sign/Model/TemplateGetResponse.cs -src/Dropbox.Sign/Model/TemplateListResponse.cs -src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs -src/Dropbox.Sign/Model/TemplateResponse.cs -src/Dropbox.Sign/Model/TemplateResponseAccount.cs -src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs -src/Dropbox.Sign/Model/TemplateResponseCCRole.cs -src/Dropbox.Sign/Model/TemplateResponseDocument.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs -src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs -src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs -src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs -src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs -src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs -src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs -src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs -src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs -src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs -src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs -src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs -src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs -src/Dropbox.Sign/Model/WarningResponse.cs diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION deleted file mode 100644 index 09a6d30..0000000 --- a/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.8.0 diff --git a/LICENSE b/LICENSE index a381914..ef7ea60 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 dropbox.com +Copyright (c) 2024 dropbox.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 2f43373..3fbc810 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ directory that corresponds to the file you want updated. This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 3.0.0 -- SDK version: 1.6.0 +- SDK version: 1.6.1 - Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.CSharpClientCodegen diff --git a/VERSION b/VERSION index dc1e644..9c6d629 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.6.0 +1.6.1 diff --git a/docs/FaxLineApi.md b/docs/FaxLineApi.md index 4fd57ba..9fdd09b 100644 --- a/docs/FaxLineApi.md +++ b/docs/FaxLineApi.md @@ -322,7 +322,7 @@ public class Example var faxLineApi = new FaxLineApi(config); var data = new FaxLineDeleteRequest( - number: "[FAX_NUMBER]", + number: "[FAX_NUMBER]" ); try diff --git a/docs/TemplateApi.md b/docs/TemplateApi.md index 2f6cf98..d7f4c3b 100644 --- a/docs/TemplateApi.md +++ b/docs/TemplateApi.md @@ -1111,7 +1111,7 @@ public class Example }; var data = new TemplateUpdateFilesRequest( - files: files, + files: files ); var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; diff --git a/examples/FaxLineDelete.cs b/examples/FaxLineDelete.cs index a2cf8a9..810e268 100644 --- a/examples/FaxLineDelete.cs +++ b/examples/FaxLineDelete.cs @@ -15,7 +15,7 @@ public static void Main() var faxLineApi = new FaxLineApi(config); var data = new FaxLineDeleteRequest( - number: "[FAX_NUMBER]", + number: "[FAX_NUMBER]" ); try diff --git a/examples/TemplateUpdateFiles.cs b/examples/TemplateUpdateFiles.cs index 967721c..1ac81ef 100644 --- a/examples/TemplateUpdateFiles.cs +++ b/examples/TemplateUpdateFiles.cs @@ -28,7 +28,7 @@ public static void Main() }; var data = new TemplateUpdateFilesRequest( - files: files, + files: files ); var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536"; diff --git a/openapi-config.yaml b/openapi-config.yaml index f87cb23..be16c6f 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -6,7 +6,7 @@ additionalProperties: packageCompany: Dropbox Sign API Team packageCopyright: Dropbox 2024 packageDescription: Client library for using the Dropbox Sign API - packageVersion: 1.6.0 + packageVersion: 1.6.1 packageTitle: Dropbox Sign .Net SDK sortModelPropertiesByRequiredFlag: true optionalEmitDefaultValues: true @@ -14,11 +14,15 @@ additionalProperties: packageGuid: "{F8C8232D-7020-4603-8E04-18D060AE530B}" legacyDiscriminatorBehavior: true useCustomTemplateCode: true + licenseCopyrightYear: 2024 files: - EventCallbackHelper.cs: + dropbox-EventCallbackHelper.cs: templateType: SupportingFiles destinationFilename: src/Dropbox.Sign/EventCallbackHelper.cs - VERSION.mustache: + dropbox-LICENSE.mustache: + templateType: SupportingFiles + destinationFilename: LICENSE + dropbox-VERSION.mustache: templateType: SupportingFiles destinationFilename: VERSION globalProperties: diff --git a/run-build b/run-build index d928df3..808568a 100755 --- a/run-build +++ b/run-build @@ -15,6 +15,8 @@ docker run --rm \ -t "/local/templates" \ -o "/local/" +bash "${DIR}/bin/dotnet" dotnet format ./ + printf "\nInstalling composer dependencies ...\n" mkdir -p "${DIR}/vendor" bash "${DIR}/bin/php" composer install @@ -48,4 +50,3 @@ printf "Running tests ...\n" bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/ printf "Success!\n" - diff --git a/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs b/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs index 6829e93..ba25c01 100644 --- a/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs +++ b/src/Dropbox.Sign.Test/Api/SignatureRequestApiTests.cs @@ -53,7 +53,7 @@ public void SignatureRequestBulkSendWithTemplateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="POST /signature_request/cancel/{signature_request_id} skipped")] + [Fact(Skip = "POST /signature_request/cancel/{signature_request_id} skipped")] public void SignatureRequestCancelTest() { } @@ -106,7 +106,7 @@ public void SignatureRequestCreateEmbeddedWithTemplateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="GET /signature_request/files/{signature_request_id} skipped")] + [Fact(Skip = "GET /signature_request/files/{signature_request_id} skipped")] public void SignatureRequestFilesTest() { } @@ -168,7 +168,7 @@ public void SignatureRequestRemindTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="POST /signature_request/remove/{signature_request_id} skipped")] + [Fact(Skip = "POST /signature_request/remove/{signature_request_id} skipped")] public void SignatureRequestRemoveTest() { } diff --git a/src/Dropbox.Sign.Test/Api/TeamApiTests.cs b/src/Dropbox.Sign.Test/Api/TeamApiTests.cs index 9c9e0c1..0c7e7ee 100644 --- a/src/Dropbox.Sign.Test/Api/TeamApiTests.cs +++ b/src/Dropbox.Sign.Test/Api/TeamApiTests.cs @@ -35,7 +35,7 @@ public void TeamCreateTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="DELETE /team/destroy skipped")] + [Fact(Skip = "DELETE /team/destroy skipped")] public void TeamDeleteTest() { } diff --git a/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs b/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs index da28e38..f5630c3 100644 --- a/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs +++ b/src/Dropbox.Sign.Test/Api/TemplateApiTests.cs @@ -47,12 +47,12 @@ public void TemplateCreateEmbeddedDraftTest() TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson()); } - [Fact(Skip="POST /template/delete/{template_id} skipped")] + [Fact(Skip = "POST /template/delete/{template_id} skipped")] public void TemplateDeleteTest() { } - [Fact(Skip="GET /template/files/{signature_request_id} skipped")] + [Fact(Skip = "GET /template/files/{signature_request_id} skipped")] public void TemplateFilesTest() { } diff --git a/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs b/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs index 5a213a6..e6592ba 100644 --- a/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs +++ b/src/Dropbox.Sign.Test/EventCallbackHelperTests.cs @@ -36,7 +36,7 @@ public void IsValidTest() EventCallbackHelper.GetCallbackType(callbackEvent) ); } - + var app_keys = new List { "base", @@ -53,7 +53,7 @@ public void IsValidTest() 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/src/Dropbox.Sign.Test/MockRestClientHelper.cs b/src/Dropbox.Sign.Test/MockRestClientHelper.cs index 5e9ed02..3575cba 100644 --- a/src/Dropbox.Sign.Test/MockRestClientHelper.cs +++ b/src/Dropbox.Sign.Test/MockRestClientHelper.cs @@ -66,7 +66,7 @@ public static T CreateApiExpectContentContains(S data, .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)); }) @@ -85,13 +85,13 @@ private static T CreateApiInternal(MockHttpMessageHandler handler) 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. @@ -109,7 +109,7 @@ private static T CreateApiInternal(MockHttpMessageHandler handler) } }; } - + // see ApiClient::CustomJsonCodec internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer { diff --git a/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs b/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs index 7b6bd8d..c158458 100644 --- a/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs +++ b/src/Dropbox.Sign.Test/Model/SubFormFieldsPerDocumentTests.cs @@ -92,7 +92,7 @@ public static IEnumerable Data() var payload = JsonConvert.DeserializeObject>(r.ReadToEnd()); Assert.NotNull(payload); - return new List {new object[] {payload}}; + return new List { new object[] { payload } }; } } } diff --git a/src/Dropbox.Sign/Client/ApiClient.cs b/src/Dropbox.Sign/Client/ApiClient.cs index 2e1fe92..d43d6f7 100644 --- a/src/Dropbox.Sign/Client/ApiClient.cs +++ b/src/Dropbox.Sign/Client/ApiClient.cs @@ -224,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; @@ -479,7 +479,7 @@ private async Task> ExecClientAsync(Func> ExecClientAsync(Func DeserializeRestResponseFromPolicy(RestClient client, RestRequest request, PolicyResult policyResult) { - if (policyResult.Outcome == OutcomeType.Successful) + if (policyResult.Outcome == OutcomeType.Successful) { return client.Deserialize(policyResult.Result); } @@ -571,7 +571,7 @@ private RestResponse DeserializeRestResponseFromPolicy(RestClient client, }; } } - + private ApiResponse Exec(RestRequest request, RequestOptions options, IReadableConfiguration configuration) { Action setOptions = (clientOptions) => diff --git a/src/Dropbox.Sign/Client/ClientUtils.cs b/src/Dropbox.Sign/Client/ClientUtils.cs index 645421e..8fb7773 100644 --- a/src/Dropbox.Sign/Client/ClientUtils.cs +++ b/src/Dropbox.Sign/Client/ClientUtils.cs @@ -60,13 +60,15 @@ 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)); } } - else { + else + { foreach (DictionaryEntry entry in dictionary) { parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); @@ -105,7 +107,8 @@ 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) { + if (obj is ICollection collection) + { List entries = new List(); foreach (var entry in collection) entries.Add(ParameterToString(entry, configuration)); @@ -225,7 +228,7 @@ private static bool HasEnumMemberAttrValue(object enumVal) var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); if (attr != null) return true; - return false; + return false; } /// diff --git a/src/Dropbox.Sign/Client/Configuration.cs b/src/Dropbox.Sign/Client/Configuration.cs index dfcc2be..fdb5984 100644 --- a/src/Dropbox.Sign/Client/Configuration.cs +++ b/src/Dropbox.Sign/Client/Configuration.cs @@ -36,7 +36,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "1.6.0"; + public const string Version = "1.6.1"; /// /// Identifier for ISO 8601 DateTime Format @@ -120,7 +120,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.6.0/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.6.1/csharp"); BasePath = "https://api.hellosign.com/v3"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -210,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; } @@ -548,7 +548,7 @@ private string GetServerUrl(IList> servers, return url; } - + /// /// Gets and Sets the RemoteCertificateValidationCallback /// @@ -565,9 +565,9 @@ 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.6.0\n"; + report += " SDK Package Version: 1.6.1\n"; return report; } diff --git a/src/Dropbox.Sign/Dropbox.Sign.csproj b/src/Dropbox.Sign/Dropbox.Sign.csproj index 8739b42..469e93b 100644 --- a/src/Dropbox.Sign/Dropbox.Sign.csproj +++ b/src/Dropbox.Sign/Dropbox.Sign.csproj @@ -12,7 +12,7 @@ Client library for using the Dropbox Sign API Dropbox 2024 Dropbox.Sign - 1.6.0 + 1.6.1 bin\$(Configuration)\$(TargetFramework)\Dropbox.Sign.xml https://github.com/hellosign/dropbox-sign-dotnet.git git diff --git a/src/Dropbox.Sign/EventCallbackHelper.cs b/src/Dropbox.Sign/EventCallbackHelper.cs index 40fa9a2..02cfc3d 100644 --- a/src/Dropbox.Sign/EventCallbackHelper.cs +++ b/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 diff --git a/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs b/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs index 76b5174..bc8cebe 100644 --- a/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs +++ b/src/Dropbox.Sign/Model/AbstractOpenAPISchema.cs @@ -19,7 +19,7 @@ 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; } } diff --git a/src/Dropbox.Sign/Model/AccountCreateRequest.cs b/src/Dropbox.Sign/Model/AccountCreateRequest.cs index c8569fb..ebee4ca 100644 --- a/src/Dropbox.Sign/Model/AccountCreateRequest.cs +++ b/src/Dropbox.Sign/Model/AccountCreateRequest.cs @@ -47,7 +47,7 @@ protected AccountCreateRequest() { } /// 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)) { - + // to ensure "emailAddress" is required (not null) if (emailAddress == null) { @@ -81,28 +81,28 @@ 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) /// /// 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) /// /// 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. /// /// 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 /// @@ -149,22 +149,22 @@ public bool Equals(AccountCreateRequest input) { return false; } - return + 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 && @@ -213,25 +213,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_secret", Property = "ClientSecret", Type = "string", Value = ClientSecret, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "locale", Property = "Locale", Type = "string", diff --git a/src/Dropbox.Sign/Model/AccountCreateResponse.cs b/src/Dropbox.Sign/Model/AccountCreateResponse.cs index 498d367..dcd4d18 100644 --- a/src/Dropbox.Sign/Model/AccountCreateResponse.cs +++ b/src/Dropbox.Sign/Model/AccountCreateResponse.cs @@ -46,7 +46,7 @@ protected AccountCreateResponse() { } /// A list of warnings.. public AccountCreateResponse(AccountResponse account = default(AccountResponse), OAuthTokenResponse oauthData = default(OAuthTokenResponse), List warnings = default(List)) { - + // to ensure "account" is required (not null) if (account == null) { @@ -78,20 +78,20 @@ public static AccountCreateResponse Init(string jsonData) /// [DataMember(Name = "account", IsRequired = true, 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. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -137,17 +137,17 @@ public bool Equals(AccountCreateResponse input) { return false; } - return + 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 && @@ -193,19 +193,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account", Property = "Account", Type = "AccountResponse", Value = Account, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "oauth_data", Property = "OauthData", Type = "OAuthTokenResponse", Value = OauthData, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/AccountGetResponse.cs b/src/Dropbox.Sign/Model/AccountGetResponse.cs index 4e5c2f1..0cf03db 100644 --- a/src/Dropbox.Sign/Model/AccountGetResponse.cs +++ b/src/Dropbox.Sign/Model/AccountGetResponse.cs @@ -45,7 +45,7 @@ protected AccountGetResponse() { } /// A list of warnings.. public AccountGetResponse(AccountResponse account = default(AccountResponse), List warnings = default(List)) { - + // to ensure "account" is required (not null) if (account == null) { @@ -76,14 +76,14 @@ public static AccountGetResponse Init(string jsonData) /// [DataMember(Name = "account", IsRequired = true, EmitDefaultValue = true)] public AccountResponse Account { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(AccountGetResponse input) { return false; } - return + return ( this.Account == input.Account || (this.Account != null && this.Account.Equals(input.Account)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account", Property = "Account", Type = "AccountResponse", Value = Account, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/AccountResponse.cs b/src/Dropbox.Sign/Model/AccountResponse.cs index 39bd9bf..6d65726 100644 --- a/src/Dropbox.Sign/Model/AccountResponse.cs +++ b/src/Dropbox.Sign/Model/AccountResponse.cs @@ -54,7 +54,7 @@ protected AccountResponse() { } /// 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)) { - + this.AccountId = accountId; this.EmailAddress = emailAddress; this.IsLocked = isLocked; @@ -90,75 +90,75 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -212,54 +212,54 @@ public bool Equals(AccountResponse input) { return false; } - return + 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 && @@ -327,67 +327,78 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_locked", Property = "IsLocked", Type = "bool", Value = IsLocked, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_paid_hs", Property = "IsPaidHs", Type = "bool", Value = IsPaidHs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_paid_hf", Property = "IsPaidHf", Type = "bool", Value = IsPaidHf, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "quotas", Property = "Quotas", Type = "AccountResponseQuotas", Value = Quotas, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "callback_url", Property = "CallbackUrl", Type = "string", Value = CallbackUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "role_code", Property = "RoleCode", Type = "string", Value = RoleCode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team_id", Property = "TeamId", Type = "string", Value = TeamId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "locale", Property = "Locale", Type = "string", Value = Locale, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "usage", Property = "Usage", Type = "AccountResponseUsage", diff --git a/src/Dropbox.Sign/Model/AccountResponseQuotas.cs b/src/Dropbox.Sign/Model/AccountResponseQuotas.cs index 28a16d5..f72e272 100644 --- a/src/Dropbox.Sign/Model/AccountResponseQuotas.cs +++ b/src/Dropbox.Sign/Model/AccountResponseQuotas.cs @@ -49,7 +49,7 @@ protected AccountResponseQuotas() { } /// 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?)) { - + this.ApiSignatureRequestsLeft = apiSignatureRequestsLeft; this.DocumentsLeft = documentsLeft; this.TemplatesTotal = templatesTotal; @@ -80,42 +80,42 @@ 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. /// /// Signature requests remaining. [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int? DocumentsLeft { get; set; } - + /// /// Total API templates allowed. /// /// Total API templates allowed. [DataMember(Name = "templates_total", EmitDefaultValue = true)] public int? TemplatesTotal { get; set; } - + /// /// API templates remaining. /// /// API templates remaining. [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int? TemplatesLeft { get; set; } - + /// /// SMS verifications remaining. /// /// SMS verifications remaining. [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int? SmsVerificationsLeft { get; set; } - + /// /// Number of fax pages left /// /// 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 /// @@ -164,32 +164,32 @@ public bool Equals(AccountResponseQuotas input) { return false; } - return + 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 && @@ -246,37 +246,43 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_signature_requests_left", Property = "ApiSignatureRequestsLeft", Type = "int?", Value = ApiSignatureRequestsLeft, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "documents_left", Property = "DocumentsLeft", Type = "int?", Value = DocumentsLeft, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "templates_total", Property = "TemplatesTotal", Type = "int?", Value = TemplatesTotal, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "templates_left", Property = "TemplatesLeft", Type = "int?", Value = TemplatesLeft, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sms_verifications_left", Property = "SmsVerificationsLeft", Type = "int?", Value = SmsVerificationsLeft, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "num_fax_pages_left", Property = "NumFaxPagesLeft", Type = "int?", diff --git a/src/Dropbox.Sign/Model/AccountResponseUsage.cs b/src/Dropbox.Sign/Model/AccountResponseUsage.cs index 068f2a7..bd9e2e5 100644 --- a/src/Dropbox.Sign/Model/AccountResponseUsage.cs +++ b/src/Dropbox.Sign/Model/AccountResponseUsage.cs @@ -44,7 +44,7 @@ protected AccountResponseUsage() { } /// Number of fax pages sent. public AccountResponseUsage(int? faxPagesSent = default(int?)) { - + this.FaxPagesSent = faxPagesSent; } @@ -70,7 +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 /// @@ -114,7 +114,7 @@ public bool Equals(AccountResponseUsage input) { return false; } - return + return ( this.FaxPagesSent == input.FaxPagesSent || (this.FaxPagesSent != null && @@ -151,7 +151,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fax_pages_sent", Property = "FaxPagesSent", Type = "int?", diff --git a/src/Dropbox.Sign/Model/AccountUpdateRequest.cs b/src/Dropbox.Sign/Model/AccountUpdateRequest.cs index e0ce0ef..b74e355 100644 --- a/src/Dropbox.Sign/Model/AccountUpdateRequest.cs +++ b/src/Dropbox.Sign/Model/AccountUpdateRequest.cs @@ -46,7 +46,7 @@ protected AccountUpdateRequest() { } /// 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)) { - + this.AccountId = accountId; this.CallbackUrl = callbackUrl; this.Locale = locale; @@ -74,21 +74,21 @@ 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. /// /// 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. /// /// 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,17 +134,17 @@ public bool Equals(AccountUpdateRequest input) { return false; } - return + 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 && @@ -189,19 +189,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "callback_url", Property = "CallbackUrl", Type = "string", Value = CallbackUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "locale", Property = "Locale", Type = "string", diff --git a/src/Dropbox.Sign/Model/AccountVerifyRequest.cs b/src/Dropbox.Sign/Model/AccountVerifyRequest.cs index b13781a..e0c5a5d 100644 --- a/src/Dropbox.Sign/Model/AccountVerifyRequest.cs +++ b/src/Dropbox.Sign/Model/AccountVerifyRequest.cs @@ -44,7 +44,7 @@ protected AccountVerifyRequest() { } /// Email address to run the verification for. (required). public AccountVerifyRequest(string emailAddress = default(string)) { - + // to ensure "emailAddress" is required (not null) if (emailAddress == null) { @@ -75,7 +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 /// @@ -119,7 +119,7 @@ public bool Equals(AccountVerifyRequest input) { return false; } - return + return ( this.EmailAddress == input.EmailAddress || (this.EmailAddress != null && @@ -156,7 +156,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", diff --git a/src/Dropbox.Sign/Model/AccountVerifyResponse.cs b/src/Dropbox.Sign/Model/AccountVerifyResponse.cs index f8b0b8e..af369d0 100644 --- a/src/Dropbox.Sign/Model/AccountVerifyResponse.cs +++ b/src/Dropbox.Sign/Model/AccountVerifyResponse.cs @@ -45,7 +45,7 @@ protected AccountVerifyResponse() { } /// A list of warnings.. public AccountVerifyResponse(AccountVerifyResponseAccount account = default(AccountVerifyResponseAccount), List warnings = default(List)) { - + this.Account = account; this.Warnings = warnings; } @@ -71,14 +71,14 @@ public static AccountVerifyResponse Init(string jsonData) /// [DataMember(Name = "account", EmitDefaultValue = true)] public AccountVerifyResponseAccount Account { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -123,12 +123,12 @@ public bool Equals(AccountVerifyResponse input) { return false; } - return + return ( this.Account == input.Account || (this.Account != null && this.Account.Equals(input.Account)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -170,13 +170,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account", Property = "Account", Type = "AccountVerifyResponseAccount", Value = Account, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs b/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs index 8d56b23..836635c 100644 --- a/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs +++ b/src/Dropbox.Sign/Model/AccountVerifyResponseAccount.cs @@ -44,7 +44,7 @@ protected AccountVerifyResponseAccount() { } /// The email address associated with the Account.. public AccountVerifyResponseAccount(string emailAddress = default(string)) { - + this.EmailAddress = emailAddress; } @@ -70,7 +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 /// @@ -114,7 +114,7 @@ public bool Equals(AccountVerifyResponseAccount input) { return false; } - return + return ( this.EmailAddress == input.EmailAddress || (this.EmailAddress != null && @@ -151,7 +151,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", diff --git a/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs b/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs index 535fc80..a56889b 100644 --- a/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs +++ b/src/Dropbox.Sign/Model/ApiAppCreateRequest.cs @@ -50,7 +50,7 @@ protected ApiAppCreateRequest() { } /// 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)) { - + // to ensure "domains" is required (not null) if (domains == null) { @@ -92,46 +92,46 @@ 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. /// /// 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. /// /// 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) /// /// 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 /// @@ -181,38 +181,38 @@ public bool Equals(ApiAppCreateRequest input) { return false; } - return + 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 && @@ -273,43 +273,50 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "domains", Property = "Domains", Type = "List", Value = Domains, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "callback_url", Property = "CallbackUrl", Type = "string", Value = CallbackUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_logo_file", Property = "CustomLogoFile", Type = "System.IO.Stream", Value = CustomLogoFile, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "oauth", Property = "Oauth", Type = "SubOAuth", Value = Oauth, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "options", Property = "Options", Type = "SubOptions", Value = Options, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "white_labeling_options", Property = "WhiteLabelingOptions", Type = "SubWhiteLabelingOptions", diff --git a/src/Dropbox.Sign/Model/ApiAppGetResponse.cs b/src/Dropbox.Sign/Model/ApiAppGetResponse.cs index 5bc614d..febfeec 100644 --- a/src/Dropbox.Sign/Model/ApiAppGetResponse.cs +++ b/src/Dropbox.Sign/Model/ApiAppGetResponse.cs @@ -45,7 +45,7 @@ protected ApiAppGetResponse() { } /// A list of warnings.. public ApiAppGetResponse(ApiAppResponse apiApp = default(ApiAppResponse), List warnings = default(List)) { - + // to ensure "apiApp" is required (not null) if (apiApp == null) { @@ -76,14 +76,14 @@ public static ApiAppGetResponse Init(string jsonData) /// [DataMember(Name = "api_app", IsRequired = true, EmitDefaultValue = true)] public ApiAppResponse ApiApp { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(ApiAppGetResponse input) { return false; } - return + return ( this.ApiApp == input.ApiApp || (this.ApiApp != null && this.ApiApp.Equals(input.ApiApp)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_app", Property = "ApiApp", Type = "ApiAppResponse", Value = ApiApp, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/ApiAppListResponse.cs b/src/Dropbox.Sign/Model/ApiAppListResponse.cs index 26e2b28..96ae107 100644 --- a/src/Dropbox.Sign/Model/ApiAppListResponse.cs +++ b/src/Dropbox.Sign/Model/ApiAppListResponse.cs @@ -46,7 +46,7 @@ protected ApiAppListResponse() { } /// A list of warnings.. public ApiAppListResponse(List apiApps = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { - + // to ensure "apiApps" is required (not null) if (apiApps == null) { @@ -84,20 +84,20 @@ public static ApiAppListResponse Init(string jsonData) /// Contains information about API Apps. [DataMember(Name = "api_apps", IsRequired = true, EmitDefaultValue = true)] public List ApiApps { get; set; } - + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", IsRequired = true, EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -143,18 +143,18 @@ public bool Equals(ApiAppListResponse input) { return false; } - return + 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 && @@ -200,19 +200,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_apps", Property = "ApiApps", Type = "List", Value = ApiApps, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "list_info", Property = "ListInfo", Type = "ListInfoResponse", Value = ListInfo, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/ApiAppResponse.cs b/src/Dropbox.Sign/Model/ApiAppResponse.cs index e377917..f4e1da0 100644 --- a/src/Dropbox.Sign/Model/ApiAppResponse.cs +++ b/src/Dropbox.Sign/Model/ApiAppResponse.cs @@ -53,7 +53,7 @@ protected ApiAppResponse() { } /// 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)) { - + this.CallbackUrl = callbackUrl; this.ClientId = clientId; this.CreatedAt = createdAt; @@ -88,66 +88,66 @@ 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 /// /// The app's client id [DataMember(Name = "client_id", EmitDefaultValue = true)] public string ClientId { get; set; } - + /// /// The time that the app was created /// /// 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 /// /// The domain name(s) associated with the app [DataMember(Name = "domains", EmitDefaultValue = true)] public List Domains { get; set; } - + /// /// The name of the app /// /// The name of the app [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - + /// /// Boolean to indicate if the app has been approved /// /// 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 /// @@ -200,51 +200,51 @@ public bool Equals(ApiAppResponse input) { return false; } - return + 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 && @@ -311,61 +311,71 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "callback_url", Property = "CallbackUrl", Type = "string", Value = CallbackUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "created_at", Property = "CreatedAt", Type = "int", Value = CreatedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "domains", Property = "Domains", Type = "List", Value = Domains, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_approved", Property = "IsApproved", Type = "bool", Value = IsApproved, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "oauth", Property = "Oauth", Type = "ApiAppResponseOAuth", Value = Oauth, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "options", Property = "Options", Type = "ApiAppResponseOptions", Value = Options, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "owner_account", Property = "OwnerAccount", Type = "ApiAppResponseOwnerAccount", Value = OwnerAccount, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "white_labeling_options", Property = "WhiteLabelingOptions", Type = "ApiAppResponseWhiteLabelingOptions", diff --git a/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs b/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs index d1b7c49..d5ceebe 100644 --- a/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs +++ b/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs @@ -47,7 +47,7 @@ protected ApiAppResponseOAuth() { } /// 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)) { - + this.CallbackUrl = callbackUrl; this.Secret = secret; this.Scopes = scopes; @@ -76,28 +76,28 @@ 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -144,23 +144,23 @@ public bool Equals(ApiAppResponseOAuth input) { return false; } - return + 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,25 +205,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "callback_url", Property = "CallbackUrl", Type = "string", Value = CallbackUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "secret", Property = "Secret", Type = "string", Value = Secret, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "scopes", Property = "Scopes", Type = "List", Value = Scopes, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "charges_users", Property = "ChargesUsers", Type = "bool", diff --git a/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs b/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs index 55e16f2..10d6df9 100644 --- a/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs +++ b/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs @@ -44,7 +44,7 @@ protected ApiAppResponseOptions() { } /// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document. public ApiAppResponseOptions(bool canInsertEverywhere = default(bool)) { - + this.CanInsertEverywhere = canInsertEverywhere; } @@ -70,7 +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 /// @@ -114,7 +114,7 @@ public bool Equals(ApiAppResponseOptions input) { return false; } - return + return ( this.CanInsertEverywhere == input.CanInsertEverywhere || this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) @@ -147,7 +147,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "can_insert_everywhere", Property = "CanInsertEverywhere", Type = "bool", diff --git a/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs b/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs index 8a57bae..efb4722 100644 --- a/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs +++ b/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs @@ -45,7 +45,7 @@ protected ApiAppResponseOwnerAccount() { } /// The owner account's email address. public ApiAppResponseOwnerAccount(string accountId = default(string), string emailAddress = default(string)) { - + this.AccountId = accountId; this.EmailAddress = emailAddress; } @@ -72,14 +72,14 @@ 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 /// /// The owner account's email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - + /// /// Returns the string presentation of the object /// @@ -124,12 +124,12 @@ public bool Equals(ApiAppResponseOwnerAccount input) { return false; } - return + return ( this.AccountId == input.AccountId || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) && + ) && ( this.EmailAddress == input.EmailAddress || (this.EmailAddress != null && @@ -170,13 +170,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", diff --git a/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs b/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs index 602754b..095ef8e 100644 --- a/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs +++ b/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs @@ -57,7 +57,7 @@ protected ApiAppResponseWhiteLabelingOptions() { } /// 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)) { - + this.HeaderBackgroundColor = headerBackgroundColor; this.LegalVersion = legalVersion; this.LinkColor = linkColor; @@ -95,85 +95,85 @@ 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 /// @@ -230,72 +230,72 @@ public bool Equals(ApiAppResponseWhiteLabelingOptions input) { return false; } - return + 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 && @@ -384,85 +384,99 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "header_background_color", Property = "HeaderBackgroundColor", Type = "string", Value = HeaderBackgroundColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "legal_version", Property = "LegalVersion", Type = "string", Value = LegalVersion, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "link_color", Property = "LinkColor", Type = "string", Value = LinkColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "page_background_color", Property = "PageBackgroundColor", Type = "string", Value = PageBackgroundColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "primary_button_color", Property = "PrimaryButtonColor", Type = "string", Value = PrimaryButtonColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "primary_button_color_hover", Property = "PrimaryButtonColorHover", Type = "string", Value = PrimaryButtonColorHover, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "primary_button_text_color", Property = "PrimaryButtonTextColor", Type = "string", Value = PrimaryButtonTextColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "primary_button_text_color_hover", Property = "PrimaryButtonTextColorHover", Type = "string", Value = PrimaryButtonTextColorHover, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "secondary_button_color", Property = "SecondaryButtonColor", Type = "string", Value = SecondaryButtonColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "secondary_button_color_hover", Property = "SecondaryButtonColorHover", Type = "string", Value = SecondaryButtonColorHover, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "secondary_button_text_color", Property = "SecondaryButtonTextColor", Type = "string", Value = SecondaryButtonTextColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "secondary_button_text_color_hover", Property = "SecondaryButtonTextColorHover", Type = "string", Value = SecondaryButtonTextColorHover, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "text_color1", Property = "TextColor1", Type = "string", Value = TextColor1, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "text_color2", Property = "TextColor2", Type = "string", diff --git a/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs b/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs index 68faf35..c637482 100644 --- a/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs +++ b/src/Dropbox.Sign/Model/ApiAppUpdateRequest.cs @@ -50,7 +50,7 @@ protected ApiAppUpdateRequest() { } /// 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)) { - + this.CallbackUrl = callbackUrl; this.CustomLogoFile = customLogoFile; this.Domains = domains; @@ -82,46 +82,46 @@ 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) /// /// 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. /// /// 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. /// /// 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 /// @@ -171,38 +171,38 @@ public bool Equals(ApiAppUpdateRequest input) { return false; } - return + 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 && @@ -263,43 +263,50 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "callback_url", Property = "CallbackUrl", Type = "string", Value = CallbackUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_logo_file", Property = "CustomLogoFile", Type = "System.IO.Stream", Value = CustomLogoFile, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "domains", Property = "Domains", Type = "List", Value = Domains, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "oauth", Property = "Oauth", Type = "SubOAuth", Value = Oauth, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "options", Property = "Options", Type = "SubOptions", Value = Options, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "white_labeling_options", Property = "WhiteLabelingOptions", Type = "SubWhiteLabelingOptions", diff --git a/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs b/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs index 80a6c55..c4c9602 100644 --- a/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs +++ b/src/Dropbox.Sign/Model/BulkSendJobGetResponse.cs @@ -47,7 +47,7 @@ protected BulkSendJobGetResponse() { } /// A list of warnings.. public BulkSendJobGetResponse(BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), ListInfoResponse listInfo = default(ListInfoResponse), List signatureRequests = default(List), List warnings = default(List)) { - + // to ensure "bulkSendJob" is required (not null) if (bulkSendJob == null) { @@ -90,27 +90,27 @@ public static BulkSendJobGetResponse Init(string jsonData) /// [DataMember(Name = "bulk_send_job", IsRequired = true, EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } - + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", IsRequired = true, EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - + /// /// Contains information about the Signature Requests sent in bulk. /// /// Contains information about the Signature Requests sent in bulk. [DataMember(Name = "signature_requests", IsRequired = true, EmitDefaultValue = true)] public List SignatureRequests { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -157,23 +157,23 @@ public bool Equals(BulkSendJobGetResponse input) { return false; } - return + 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 && @@ -223,25 +223,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "bulk_send_job", Property = "BulkSendJob", Type = "BulkSendJobResponse", Value = BulkSendJob, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "list_info", Property = "ListInfo", Type = "ListInfoResponse", Value = ListInfo, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_requests", Property = "SignatureRequests", Type = "List", Value = SignatureRequests, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index ba7ff61..caf9011 100644 --- a/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -68,7 +68,7 @@ protected BulkSendJobGetResponseSignatureRequests() { } /// 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)) { - + // use default value if no "testMode" provided this.TestMode = testMode ?? false; this.SignatureRequestId = signatureRequestId; @@ -119,175 +119,175 @@ 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. /// /// 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. /// /// 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. /// /// The title the specified Account uses for the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - + /// /// Default Label for account. /// /// 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. /// /// 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. /// /// 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. /// /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } - + /// /// Time the signature request was created. /// /// 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. /// /// 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. /// /// 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. /// /// 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). /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// /// 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). /// /// 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` /// /// 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. /// /// 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. /// /// 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. /// /// An array of signature objects, 1 for each signer. [DataMember(Name = "signatures", EmitDefaultValue = true)] public List Signatures { get; set; } - + /// /// The id of the BulkSendJob. /// /// 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 /// @@ -355,128 +355,128 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) { return false; } - return + 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 && @@ -594,151 +594,176 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool?", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_request_id", Property = "SignatureRequestId", Type = "string", Value = SignatureRequestId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requester_email_address", Property = "RequesterEmailAddress", Type = "string", Value = RequesterEmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "original_title", Property = "OriginalTitle", Type = "string", Value = OriginalTitle, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Object", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "created_at", Property = "CreatedAt", Type = "int", Value = CreatedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int", Value = ExpiresAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_complete", Property = "IsComplete", Type = "bool", Value = IsComplete, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_declined", Property = "IsDeclined", Type = "bool", Value = IsDeclined, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "has_error", Property = "HasError", Type = "bool", Value = HasError, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files_url", Property = "FilesUrl", Type = "string", Value = FilesUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_url", Property = "SigningUrl", Type = "string", Value = SigningUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "details_url", Property = "DetailsUrl", Type = "string", Value = DetailsUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_email_addresses", Property = "CcEmailAddresses", Type = "List", Value = CcEmailAddresses, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "final_copy_uri", Property = "FinalCopyUri", Type = "string", Value = FinalCopyUri, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_ids", Property = "TemplateIds", Type = "List", Value = TemplateIds, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "response_data", Property = "ResponseData", Type = "List", Value = ResponseData, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signatures", Property = "Signatures", Type = "List", Value = Signatures, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "bulk_send_job_id", Property = "BulkSendJobId", Type = "string", diff --git a/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs b/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs index 51dff2a..043fd9f 100644 --- a/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs +++ b/src/Dropbox.Sign/Model/BulkSendJobListResponse.cs @@ -46,7 +46,7 @@ protected BulkSendJobListResponse() { } /// A list of warnings.. public BulkSendJobListResponse(List bulkSendJobs = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { - + // to ensure "bulkSendJobs" is required (not null) if (bulkSendJobs == null) { @@ -84,20 +84,20 @@ public static BulkSendJobListResponse Init(string jsonData) /// Contains a list of BulkSendJobs that the API caller has access to. [DataMember(Name = "bulk_send_jobs", IsRequired = true, EmitDefaultValue = true)] public List BulkSendJobs { get; set; } - + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", IsRequired = true, EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -143,18 +143,18 @@ public bool Equals(BulkSendJobListResponse input) { return false; } - return + 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 && @@ -200,19 +200,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "bulk_send_jobs", Property = "BulkSendJobs", Type = "List", Value = BulkSendJobs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "list_info", Property = "ListInfo", Type = "ListInfoResponse", Value = ListInfo, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/BulkSendJobResponse.cs b/src/Dropbox.Sign/Model/BulkSendJobResponse.cs index a471d66..ee798bc 100644 --- a/src/Dropbox.Sign/Model/BulkSendJobResponse.cs +++ b/src/Dropbox.Sign/Model/BulkSendJobResponse.cs @@ -47,7 +47,7 @@ protected BulkSendJobResponse() { } /// Time that the BulkSendJob was created.. 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; @@ -76,28 +76,28 @@ 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. /// /// 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. /// /// 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. /// /// Time that the BulkSendJob was created. [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - + /// /// Returns the string presentation of the object /// @@ -144,20 +144,20 @@ public bool Equals(BulkSendJobResponse input) { return false; } - return + 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) @@ -196,25 +196,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "bulk_send_job_id", Property = "BulkSendJobId", Type = "string", Value = BulkSendJobId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "total", Property = "Total", Type = "int", Value = Total, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_creator", Property = "IsCreator", Type = "bool", Value = IsCreator, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "created_at", Property = "CreatedAt", Type = "int", diff --git a/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs b/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs index ff2af86..1450805 100644 --- a/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs +++ b/src/Dropbox.Sign/Model/BulkSendJobSendResponse.cs @@ -45,7 +45,7 @@ protected BulkSendJobSendResponse() { } /// A list of warnings.. public BulkSendJobSendResponse(BulkSendJobResponse bulkSendJob = default(BulkSendJobResponse), List warnings = default(List)) { - + // to ensure "bulkSendJob" is required (not null) if (bulkSendJob == null) { @@ -76,14 +76,14 @@ public static BulkSendJobSendResponse Init(string jsonData) /// [DataMember(Name = "bulk_send_job", IsRequired = true, EmitDefaultValue = true)] public BulkSendJobResponse BulkSendJob { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(BulkSendJobSendResponse input) { return false; } - return + return ( this.BulkSendJob == input.BulkSendJob || (this.BulkSendJob != null && this.BulkSendJob.Equals(input.BulkSendJob)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "bulk_send_job", Property = "BulkSendJob", Type = "BulkSendJobResponse", Value = BulkSendJob, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs b/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs index a8af5ce..eef4ec7 100644 --- a/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs +++ b/src/Dropbox.Sign/Model/EmbeddedEditUrlRequest.cs @@ -53,7 +53,7 @@ protected EmbeddedEditUrlRequest() { } /// 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) { - + this.AllowEditCcs = allowEditCcs; this.CcRoles = ccRoles; this.EditorOptions = editorOptions; @@ -88,69 +88,69 @@ 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. /// /// 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. /// /// 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. /// /// 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 `[]`. /// /// 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). /// /// 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. /// /// 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. /// /// 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`. /// /// 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 /// @@ -203,48 +203,48 @@ public bool Equals(EmbeddedEditUrlRequest input) { return false; } - return + 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) @@ -295,61 +295,71 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_edit_ccs", Property = "AllowEditCcs", Type = "bool", Value = AllowEditCcs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_roles", Property = "CcRoles", Type = "List", Value = CcRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "editor_options", Property = "EditorOptions", Type = "SubEditorOptions", Value = EditorOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "force_signer_roles", Property = "ForceSignerRoles", Type = "bool", Value = ForceSignerRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "force_subject_message", Property = "ForceSubjectMessage", Type = "bool", Value = ForceSubjectMessage, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "merge_fields", Property = "MergeFields", Type = "List", Value = MergeFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "preview_only", Property = "PreviewOnly", Type = "bool", Value = PreviewOnly, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_preview", Property = "ShowPreview", Type = "bool", Value = ShowPreview, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_progress_stepper", Property = "ShowProgressStepper", Type = "bool", Value = ShowProgressStepper, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", diff --git a/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs b/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs index 27ff9ff..fb0ad3e 100644 --- a/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs +++ b/src/Dropbox.Sign/Model/EmbeddedEditUrlResponse.cs @@ -45,7 +45,7 @@ protected EmbeddedEditUrlResponse() { } /// A list of warnings.. public EmbeddedEditUrlResponse(EmbeddedEditUrlResponseEmbedded embedded = default(EmbeddedEditUrlResponseEmbedded), List warnings = default(List)) { - + // to ensure "embedded" is required (not null) if (embedded == null) { @@ -76,14 +76,14 @@ public static EmbeddedEditUrlResponse Init(string jsonData) /// [DataMember(Name = "embedded", IsRequired = true, EmitDefaultValue = true)] public EmbeddedEditUrlResponseEmbedded Embedded { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(EmbeddedEditUrlResponse input) { return false; } - return + return ( this.Embedded == input.Embedded || (this.Embedded != null && this.Embedded.Equals(input.Embedded)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "embedded", Property = "Embedded", Type = "EmbeddedEditUrlResponseEmbedded", Value = Embedded, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs b/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs index 39d86c9..41ebc19 100644 --- a/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs +++ b/src/Dropbox.Sign/Model/EmbeddedEditUrlResponseEmbedded.cs @@ -45,7 +45,7 @@ protected EmbeddedEditUrlResponseEmbedded() { } /// The specific time that the the `edit_url` link expires, in epoch.. public EmbeddedEditUrlResponseEmbedded(string editUrl = default(string), int expiresAt = default(int)) { - + this.EditUrl = editUrl; this.ExpiresAt = expiresAt; } @@ -72,14 +72,14 @@ 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. /// /// 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 /// @@ -124,12 +124,12 @@ public bool Equals(EmbeddedEditUrlResponseEmbedded input) { return false; } - return + return ( this.EditUrl == input.EditUrl || (this.EditUrl != null && this.EditUrl.Equals(input.EditUrl)) - ) && + ) && ( this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt) @@ -166,13 +166,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "edit_url", Property = "EditUrl", Type = "string", Value = EditUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int", diff --git a/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs b/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs index 6e7f347..12a75dc 100644 --- a/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs +++ b/src/Dropbox.Sign/Model/EmbeddedSignUrlResponse.cs @@ -45,7 +45,7 @@ protected EmbeddedSignUrlResponse() { } /// A list of warnings.. public EmbeddedSignUrlResponse(EmbeddedSignUrlResponseEmbedded embedded = default(EmbeddedSignUrlResponseEmbedded), List warnings = default(List)) { - + // to ensure "embedded" is required (not null) if (embedded == null) { @@ -76,14 +76,14 @@ public static EmbeddedSignUrlResponse Init(string jsonData) /// [DataMember(Name = "embedded", IsRequired = true, EmitDefaultValue = true)] public EmbeddedSignUrlResponseEmbedded Embedded { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(EmbeddedSignUrlResponse input) { return false; } - return + return ( this.Embedded == input.Embedded || (this.Embedded != null && this.Embedded.Equals(input.Embedded)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "embedded", Property = "Embedded", Type = "EmbeddedSignUrlResponseEmbedded", Value = Embedded, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs b/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs index ae0834e..e66a1ce 100644 --- a/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs +++ b/src/Dropbox.Sign/Model/EmbeddedSignUrlResponseEmbedded.cs @@ -45,7 +45,7 @@ protected EmbeddedSignUrlResponseEmbedded() { } /// The specific time that the the `sign_url` link expires, in epoch.. public EmbeddedSignUrlResponseEmbedded(string signUrl = default(string), int expiresAt = default(int)) { - + this.SignUrl = signUrl; this.ExpiresAt = expiresAt; } @@ -72,14 +72,14 @@ 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. /// /// 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 /// @@ -124,12 +124,12 @@ public bool Equals(EmbeddedSignUrlResponseEmbedded input) { return false; } - return + return ( this.SignUrl == input.SignUrl || (this.SignUrl != null && this.SignUrl.Equals(input.SignUrl)) - ) && + ) && ( this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt) @@ -166,13 +166,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sign_url", Property = "SignUrl", Type = "string", Value = SignUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int", diff --git a/src/Dropbox.Sign/Model/ErrorResponse.cs b/src/Dropbox.Sign/Model/ErrorResponse.cs index 7a89dff..301862c 100644 --- a/src/Dropbox.Sign/Model/ErrorResponse.cs +++ b/src/Dropbox.Sign/Model/ErrorResponse.cs @@ -44,7 +44,7 @@ protected ErrorResponse() { } /// error (required). public ErrorResponse(ErrorResponseError error = default(ErrorResponseError)) { - + // to ensure "error" is required (not null) if (error == null) { @@ -74,7 +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 /// @@ -118,7 +118,7 @@ public bool Equals(ErrorResponse input) { return false; } - return + return ( this.Error == input.Error || (this.Error != null && @@ -155,7 +155,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "error", Property = "Error", Type = "ErrorResponseError", diff --git a/src/Dropbox.Sign/Model/ErrorResponseError.cs b/src/Dropbox.Sign/Model/ErrorResponseError.cs index 15c9f7a..f1b9ca9 100644 --- a/src/Dropbox.Sign/Model/ErrorResponseError.cs +++ b/src/Dropbox.Sign/Model/ErrorResponseError.cs @@ -46,7 +46,7 @@ protected ErrorResponseError() { } /// Name of the error. (required). public ErrorResponseError(string errorMsg = default(string), string errorPath = default(string), string errorName = default(string)) { - + // to ensure "errorMsg" is required (not null) if (errorMsg == null) { @@ -84,21 +84,21 @@ 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. /// /// Name of the error. [DataMember(Name = "error_name", IsRequired = true, EmitDefaultValue = true)] public string ErrorName { get; set; } - + /// /// Path at which an error occurred. /// /// Path at which an error occurred. [DataMember(Name = "error_path", EmitDefaultValue = true)] public string ErrorPath { get; set; } - + /// /// Returns the string presentation of the object /// @@ -144,17 +144,17 @@ public bool Equals(ErrorResponseError input) { return false; } - return + 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 && @@ -199,19 +199,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "error_msg", Property = "ErrorMsg", Type = "string", Value = ErrorMsg, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "error_name", Property = "ErrorName", Type = "string", Value = ErrorName, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "error_path", Property = "ErrorPath", Type = "string", diff --git a/src/Dropbox.Sign/Model/EventCallbackRequest.cs b/src/Dropbox.Sign/Model/EventCallbackRequest.cs index dbe451c..fb125ff 100644 --- a/src/Dropbox.Sign/Model/EventCallbackRequest.cs +++ b/src/Dropbox.Sign/Model/EventCallbackRequest.cs @@ -47,7 +47,7 @@ protected EventCallbackRequest() { } /// template. 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) { @@ -80,25 +80,25 @@ 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 /// @@ -145,22 +145,22 @@ public bool Equals(EventCallbackRequest input) { return false; } - return + 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 && @@ -209,25 +209,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "event", Property = "Event", Type = "EventCallbackRequestEvent", Value = Event, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account", Property = "Account", Type = "AccountResponse", Value = Account, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_request", Property = "SignatureRequest", Type = "SignatureRequestResponse", Value = SignatureRequest, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template", Property = "Template", Type = "TemplateResponse", diff --git a/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs b/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs index 3058970..5308add 100644 --- a/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs +++ b/src/Dropbox.Sign/Model/EventCallbackRequestEvent.cs @@ -200,7 +200,7 @@ protected EventCallbackRequestEvent() { } /// eventMetadata. 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) { @@ -239,20 +239,20 @@ 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. /// /// 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 /// @@ -299,21 +299,21 @@ public bool Equals(EventCallbackRequestEvent input) { return false; } - return + 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 && @@ -359,25 +359,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "event_time", Property = "EventTime", Type = "string", Value = EventTime, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "event_type", Property = "EventType", Type = "string", Value = EventType, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "event_hash", Property = "EventHash", Type = "string", Value = EventHash, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "event_metadata", Property = "EventMetadata", Type = "EventCallbackRequestEventMetadata", diff --git a/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs b/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs index f3993c4..a19fca7 100644 --- a/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs +++ b/src/Dropbox.Sign/Model/EventCallbackRequestEventMetadata.cs @@ -47,7 +47,7 @@ protected EventCallbackRequestEventMetadata() { } /// 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)) { - + this.RelatedSignatureId = relatedSignatureId; this.ReportedForAccountId = reportedForAccountId; this.ReportedForAppId = reportedForAppId; @@ -76,28 +76,28 @@ 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -144,22 +144,22 @@ public bool Equals(EventCallbackRequestEventMetadata input) { return false; } - return + 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 && @@ -208,25 +208,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "related_signature_id", Property = "RelatedSignatureId", Type = "string", Value = RelatedSignatureId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "reported_for_account_id", Property = "ReportedForAccountId", Type = "string", Value = ReportedForAccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "reported_for_app_id", Property = "ReportedForAppId", Type = "string", Value = ReportedForAppId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "event_message", Property = "EventMessage", Type = "string", diff --git a/src/Dropbox.Sign/Model/FaxLine.cs b/src/Dropbox.Sign/Model/FaxLine.cs index 8ded1b1..bea9248 100644 --- a/src/Dropbox.Sign/Model/FaxLine.cs +++ b/src/Dropbox.Sign/Model/FaxLine.cs @@ -47,7 +47,7 @@ protected FaxLine() { } /// accounts. 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; @@ -143,22 +143,22 @@ public bool Equals(FaxLine input) { return false; } - return + 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 && @@ -199,25 +199,29 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "number", Property = "Number", Type = "string", Value = Number, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "created_at", Property = "CreatedAt", Type = "string", Value = CreatedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "updated_at", Property = "UpdatedAt", Type = "string", Value = UpdatedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "accounts", Property = "Accounts", Type = "List", diff --git a/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs b/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs index 564561b..55509a4 100644 --- a/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs +++ b/src/Dropbox.Sign/Model/FaxLineAddUserRequest.cs @@ -46,7 +46,7 @@ protected FaxLineAddUserRequest() { } /// Email address. public FaxLineAddUserRequest(string number = default(string), string accountId = default(string), string emailAddress = default(string)) { - + // to ensure "number" is required (not null) if (number == null) { @@ -79,7 +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 /// @@ -87,14 +87,14 @@ public static FaxLineAddUserRequest Init(string jsonData) /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - + /// /// Email address /// /// Email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - + /// /// Returns the string presentation of the object /// @@ -140,17 +140,17 @@ public bool Equals(FaxLineAddUserRequest input) { return false; } - return + 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 && @@ -195,19 +195,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "number", Property = "Number", Type = "string", Value = Number, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", diff --git a/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs b/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs index f4224f0..f81b7b8 100644 --- a/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs +++ b/src/Dropbox.Sign/Model/FaxLineAreaCodeGetResponse.cs @@ -44,7 +44,7 @@ protected FaxLineAreaCodeGetResponse() { } /// areaCodes (required). public FaxLineAreaCodeGetResponse(List areaCodes = default(List)) { - + // to ensure "areaCodes" is required (not null) if (areaCodes == null) { @@ -74,7 +74,7 @@ public static FaxLineAreaCodeGetResponse Init(string jsonData) /// [DataMember(Name = "area_codes", IsRequired = true, EmitDefaultValue = true)] public List AreaCodes { get; set; } - + /// /// Returns the string presentation of the object /// @@ -118,7 +118,7 @@ public bool Equals(FaxLineAreaCodeGetResponse input) { return false; } - return + return ( this.AreaCodes == input.AreaCodes || this.AreaCodes != null && @@ -156,7 +156,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "area_codes", Property = "AreaCodes", Type = "List", diff --git a/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs b/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs index 0f7157d..733cab7 100644 --- a/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs +++ b/src/Dropbox.Sign/Model/FaxLineCreateRequest.cs @@ -80,7 +80,7 @@ protected FaxLineCreateRequest() { } /// Account ID. 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; @@ -109,14 +109,14 @@ public static FaxLineCreateRequest Init(string jsonData) /// Area code [DataMember(Name = "area_code", IsRequired = true, EmitDefaultValue = true)] public int AreaCode { get; set; } - + /// /// City /// /// City [DataMember(Name = "city", EmitDefaultValue = true)] public string City { get; set; } - + /// /// Account ID /// @@ -124,7 +124,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 /// @@ -171,20 +171,20 @@ public bool Equals(FaxLineCreateRequest input) { return false; } - return + 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 && @@ -227,25 +227,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "area_code", Property = "AreaCode", Type = "int", Value = AreaCode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "country", Property = "Country", Type = "string", Value = Country, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "city", Property = "City", Type = "string", Value = City, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", diff --git a/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs b/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs index b806f21..cb5a273 100644 --- a/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs +++ b/src/Dropbox.Sign/Model/FaxLineDeleteRequest.cs @@ -44,7 +44,7 @@ protected FaxLineDeleteRequest() { } /// The Fax Line number. (required). public FaxLineDeleteRequest(string number = default(string)) { - + // to ensure "number" is required (not null) if (number == null) { @@ -75,7 +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 /// @@ -119,7 +119,7 @@ public bool Equals(FaxLineDeleteRequest input) { return false; } - return + return ( this.Number == input.Number || (this.Number != null && @@ -156,7 +156,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "number", Property = "Number", Type = "string", diff --git a/src/Dropbox.Sign/Model/FaxLineListResponse.cs b/src/Dropbox.Sign/Model/FaxLineListResponse.cs index 25bd1f7..f8b2cb7 100644 --- a/src/Dropbox.Sign/Model/FaxLineListResponse.cs +++ b/src/Dropbox.Sign/Model/FaxLineListResponse.cs @@ -46,7 +46,7 @@ protected FaxLineListResponse() { } /// warnings. public FaxLineListResponse(ListInfoResponse listInfo = default(ListInfoResponse), List faxLines = default(List), WarningResponse warnings = default(WarningResponse)) { - + // to ensure "listInfo" is required (not null) if (listInfo == null) { @@ -83,19 +83,19 @@ public static FaxLineListResponse Init(string jsonData) /// [DataMember(Name = "list_info", IsRequired = true, EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - + /// /// Gets or Sets FaxLines /// [DataMember(Name = "fax_lines", IsRequired = true, 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 /// @@ -141,18 +141,18 @@ public bool Equals(FaxLineListResponse input) { return false; } - return + 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 && @@ -197,19 +197,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "list_info", Property = "ListInfo", Type = "ListInfoResponse", Value = ListInfo, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fax_lines", Property = "FaxLines", Type = "List", Value = FaxLines, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "WarningResponse", diff --git a/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs b/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs index 4a7b22f..eed6d36 100644 --- a/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs +++ b/src/Dropbox.Sign/Model/FaxLineRemoveUserRequest.cs @@ -46,7 +46,7 @@ protected FaxLineRemoveUserRequest() { } /// Email address. public FaxLineRemoveUserRequest(string number = default(string), string accountId = default(string), string emailAddress = default(string)) { - + // to ensure "number" is required (not null) if (number == null) { @@ -79,7 +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 /// @@ -87,14 +87,14 @@ public static FaxLineRemoveUserRequest Init(string jsonData) /// ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97 [DataMember(Name = "account_id", EmitDefaultValue = true)] public string AccountId { get; set; } - + /// /// Email address /// /// Email address [DataMember(Name = "email_address", EmitDefaultValue = true)] public string EmailAddress { get; set; } - + /// /// Returns the string presentation of the object /// @@ -140,17 +140,17 @@ public bool Equals(FaxLineRemoveUserRequest input) { return false; } - return + 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 && @@ -195,19 +195,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "number", Property = "Number", Type = "string", Value = Number, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", diff --git a/src/Dropbox.Sign/Model/FaxLineResponse.cs b/src/Dropbox.Sign/Model/FaxLineResponse.cs index 33442e7..721bd7a 100644 --- a/src/Dropbox.Sign/Model/FaxLineResponse.cs +++ b/src/Dropbox.Sign/Model/FaxLineResponse.cs @@ -45,7 +45,7 @@ protected FaxLineResponse() { } /// warnings. public FaxLineResponse(FaxLineResponseFaxLine faxLine = default(FaxLineResponseFaxLine), WarningResponse warnings = default(WarningResponse)) { - + // to ensure "faxLine" is required (not null) if (faxLine == null) { @@ -76,13 +76,13 @@ public static FaxLineResponse Init(string jsonData) /// [DataMember(Name = "fax_line", IsRequired = true, 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 /// @@ -127,12 +127,12 @@ public bool Equals(FaxLineResponse input) { return false; } - return + return ( this.FaxLine == input.FaxLine || (this.FaxLine != null && this.FaxLine.Equals(input.FaxLine)) - ) && + ) && ( this.Warnings == input.Warnings || (this.Warnings != null && @@ -173,13 +173,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fax_line", Property = "FaxLine", Type = "FaxLineResponseFaxLine", Value = FaxLine, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "WarningResponse", diff --git a/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs b/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs index a07bd24..f523749 100644 --- a/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs +++ b/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs @@ -47,7 +47,7 @@ protected FaxLineResponseFaxLine() { } /// accounts. 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; @@ -76,27 +76,27 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Number [DataMember(Name = "number", EmitDefaultValue = true)] public string Number { get; set; } - + /// /// Created at /// /// Created at [DataMember(Name = "created_at", EmitDefaultValue = true)] public int CreatedAt { get; set; } - + /// /// Updated at /// /// 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 /// @@ -143,20 +143,20 @@ public bool Equals(FaxLineResponseFaxLine input) { return false; } - return + 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 && @@ -200,25 +200,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "number", Property = "Number", Type = "string", Value = Number, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "created_at", Property = "CreatedAt", Type = "int", Value = CreatedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "updated_at", Property = "UpdatedAt", Type = "int", Value = UpdatedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "accounts", Property = "Accounts", Type = "List", diff --git a/src/Dropbox.Sign/Model/FileResponse.cs b/src/Dropbox.Sign/Model/FileResponse.cs index fd5e27b..c098c3e 100644 --- a/src/Dropbox.Sign/Model/FileResponse.cs +++ b/src/Dropbox.Sign/Model/FileResponse.cs @@ -45,7 +45,7 @@ protected FileResponse() { } /// When the link expires. (required). public FileResponse(string fileUrl = default(string), int expiresAt = default(int)) { - + // to ensure "fileUrl" is required (not null) if (fileUrl == null) { @@ -77,14 +77,14 @@ public static FileResponse Init(string jsonData) /// URL to the file. [DataMember(Name = "file_url", IsRequired = true, EmitDefaultValue = true)] public string FileUrl { get; set; } - + /// /// When the link expires. /// /// When the link expires. [DataMember(Name = "expires_at", IsRequired = true, EmitDefaultValue = true)] public int ExpiresAt { get; set; } - + /// /// Returns the string presentation of the object /// @@ -129,12 +129,12 @@ public bool Equals(FileResponse input) { return false; } - return + return ( this.FileUrl == input.FileUrl || (this.FileUrl != null && this.FileUrl.Equals(input.FileUrl)) - ) && + ) && ( this.ExpiresAt == input.ExpiresAt || this.ExpiresAt.Equals(input.ExpiresAt) @@ -171,13 +171,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_url", Property = "FileUrl", Type = "string", Value = FileUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int", diff --git a/src/Dropbox.Sign/Model/FileResponseDataUri.cs b/src/Dropbox.Sign/Model/FileResponseDataUri.cs index bb84d48..c416ab2 100644 --- a/src/Dropbox.Sign/Model/FileResponseDataUri.cs +++ b/src/Dropbox.Sign/Model/FileResponseDataUri.cs @@ -44,7 +44,7 @@ protected FileResponseDataUri() { } /// File as base64 encoded string. (required). public FileResponseDataUri(string dataUri = default(string)) { - + // to ensure "dataUri" is required (not null) if (dataUri == null) { @@ -75,7 +75,7 @@ public static FileResponseDataUri Init(string jsonData) /// File as base64 encoded string. [DataMember(Name = "data_uri", IsRequired = true, EmitDefaultValue = true)] public string DataUri { get; set; } - + /// /// Returns the string presentation of the object /// @@ -119,7 +119,7 @@ public bool Equals(FileResponseDataUri input) { return false; } - return + return ( this.DataUri == input.DataUri || (this.DataUri != null && @@ -156,7 +156,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "data_uri", Property = "DataUri", Type = "string", diff --git a/src/Dropbox.Sign/Model/ListInfoResponse.cs b/src/Dropbox.Sign/Model/ListInfoResponse.cs index 4788422..aa68079 100644 --- a/src/Dropbox.Sign/Model/ListInfoResponse.cs +++ b/src/Dropbox.Sign/Model/ListInfoResponse.cs @@ -47,7 +47,7 @@ protected ListInfoResponse() { } /// Objects returned per page.. 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,28 +76,28 @@ 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. /// /// Total number of objects available. [DataMember(Name = "num_results", EmitDefaultValue = true)] public int? NumResults { get; set; } - + /// /// Number of the page being returned. /// /// Number of the page being returned. [DataMember(Name = "page", EmitDefaultValue = true)] public int Page { get; set; } - + /// /// Objects returned per page. /// /// Objects returned per page. [DataMember(Name = "page_size", EmitDefaultValue = true)] public int PageSize { get; set; } - + /// /// Returns the string presentation of the object /// @@ -144,20 +144,20 @@ public bool Equals(ListInfoResponse input) { return false; } - return + 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) @@ -196,25 +196,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "num_pages", Property = "NumPages", Type = "int", Value = NumPages, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "num_results", Property = "NumResults", Type = "int?", Value = NumResults, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "page", Property = "Page", Type = "int", Value = Page, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "page_size", Property = "PageSize", Type = "int", diff --git a/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs b/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs index 8410b28..5b0c1ed 100644 --- a/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs +++ b/src/Dropbox.Sign/Model/OAuthTokenGenerateRequest.cs @@ -48,7 +48,7 @@ protected OAuthTokenGenerateRequest() { } /// 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)) { - + // to ensure "clientId" is required (not null) if (clientId == null) { @@ -103,35 +103,35 @@ 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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 /// @@ -179,27 +179,27 @@ public bool Equals(OAuthTokenGenerateRequest input) { return false; } - return + 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 && @@ -252,31 +252,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_secret", Property = "ClientSecret", Type = "string", Value = ClientSecret, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "code", Property = "Code", Type = "string", Value = Code, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "grant_type", Property = "GrantType", Type = "string", Value = GrantType, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "state", Property = "State", Type = "string", diff --git a/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs b/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs index 3f85000..dbfb22b 100644 --- a/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs +++ b/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs @@ -45,7 +45,7 @@ protected OAuthTokenRefreshRequest() { } /// The token provided when you got the expired access token. (required). public OAuthTokenRefreshRequest(string grantType = @"refresh_token", string refreshToken = default(string)) { - + // to ensure "grantType" is required (not null) if (grantType == null) { @@ -82,14 +82,14 @@ 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. /// /// 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 /// @@ -134,12 +134,12 @@ public bool Equals(OAuthTokenRefreshRequest input) { return false; } - return + return ( this.GrantType == input.GrantType || (this.GrantType != null && this.GrantType.Equals(input.GrantType)) - ) && + ) && ( this.RefreshToken == input.RefreshToken || (this.RefreshToken != null && @@ -180,13 +180,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "grant_type", Property = "GrantType", Type = "string", Value = GrantType, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "refresh_token", Property = "RefreshToken", Type = "string", diff --git a/src/Dropbox.Sign/Model/OAuthTokenResponse.cs b/src/Dropbox.Sign/Model/OAuthTokenResponse.cs index fe8b724..bbe00f1 100644 --- a/src/Dropbox.Sign/Model/OAuthTokenResponse.cs +++ b/src/Dropbox.Sign/Model/OAuthTokenResponse.cs @@ -48,7 +48,7 @@ protected OAuthTokenResponse() { } /// state. 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,32 +77,32 @@ 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. /// /// 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 /// @@ -150,26 +150,26 @@ public bool Equals(OAuthTokenResponse input) { return false; } - return + 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 && @@ -219,31 +219,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "access_token", Property = "AccessToken", Type = "string", Value = AccessToken, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "token_type", Property = "TokenType", Type = "string", Value = TokenType, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "refresh_token", Property = "RefreshToken", Type = "string", Value = RefreshToken, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_in", Property = "ExpiresIn", Type = "int", Value = ExpiresIn, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "state", Property = "State", Type = "string", diff --git a/src/Dropbox.Sign/Model/ReportCreateRequest.cs b/src/Dropbox.Sign/Model/ReportCreateRequest.cs index 381e9dc..0340546 100644 --- a/src/Dropbox.Sign/Model/ReportCreateRequest.cs +++ b/src/Dropbox.Sign/Model/ReportCreateRequest.cs @@ -65,7 +65,7 @@ protected ReportCreateRequest() { } /// 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)) { - + // to ensure "endDate" is required (not null) if (endDate == null) { @@ -108,21 +108,21 @@ 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. /// /// 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 /// @@ -168,18 +168,18 @@ public bool Equals(ReportCreateRequest input) { return false; } - return + 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 && @@ -224,19 +224,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "end_date", Property = "EndDate", Type = "string", Value = EndDate, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "report_type", Property = "ReportType", Type = "List", Value = ReportType, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "start_date", Property = "StartDate", Type = "string", diff --git a/src/Dropbox.Sign/Model/ReportCreateResponse.cs b/src/Dropbox.Sign/Model/ReportCreateResponse.cs index 4ea4c3d..30e67ca 100644 --- a/src/Dropbox.Sign/Model/ReportCreateResponse.cs +++ b/src/Dropbox.Sign/Model/ReportCreateResponse.cs @@ -45,7 +45,7 @@ protected ReportCreateResponse() { } /// A list of warnings.. public ReportCreateResponse(ReportResponse report = default(ReportResponse), List warnings = default(List)) { - + // to ensure "report" is required (not null) if (report == null) { @@ -76,14 +76,14 @@ public static ReportCreateResponse Init(string jsonData) /// [DataMember(Name = "report", IsRequired = true, EmitDefaultValue = true)] public ReportResponse Report { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(ReportCreateResponse input) { return false; } - return + return ( this.Report == input.Report || (this.Report != null && this.Report.Equals(input.Report)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "report", Property = "Report", Type = "ReportResponse", Value = Report, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/ReportResponse.cs b/src/Dropbox.Sign/Model/ReportResponse.cs index 172243e..57c9218 100644 --- a/src/Dropbox.Sign/Model/ReportResponse.cs +++ b/src/Dropbox.Sign/Model/ReportResponse.cs @@ -66,7 +66,7 @@ protected ReportResponse() { } /// 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)) { - + this.Success = success; this.StartDate = startDate; this.EndDate = endDate; @@ -95,28 +95,28 @@ 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. /// /// 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. /// /// 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 /// @@ -163,22 +163,22 @@ public bool Equals(ReportResponse input) { return false; } - return + 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 && @@ -228,25 +228,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "success", Property = "Success", Type = "string", Value = Success, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "start_date", Property = "StartDate", Type = "string", Value = StartDate, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "end_date", Property = "EndDate", Type = "string", Value = EndDate, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "report_type", Property = "ReportType", Type = "List", diff --git a/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs index e5f910c..86d99ce 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.cs @@ -56,7 +56,7 @@ protected SignatureRequestBulkCreateEmbeddedWithTemplateRequest() { } /// 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)) { - + // to ensure "templateIds" is required (not null) if (templateIds == null) { @@ -104,91 +104,91 @@ 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. /// /// 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 ``` /// /// `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. /// /// `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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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 /// @@ -244,70 +244,70 @@ public bool Equals(SignatureRequestBulkCreateEmbeddedWithTemplateRequest input) { return false; } - return + 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 && @@ -384,19 +384,19 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -404,79 +404,92 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_ids", Property = "TemplateIds", Type = "List", Value = TemplateIds, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_file", Property = "SignerFile", Type = "System.IO.Stream", Value = SignerFile, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_list", Property = "SignerList", Type = "List", Value = SignerList, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "ccs", Property = "Ccs", Type = "List", Value = Ccs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs index 81b747a..f18f128 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestBulkSendWithTemplateRequest.cs @@ -56,7 +56,7 @@ protected SignatureRequestBulkSendWithTemplateRequest() { } /// 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)) { - + // to ensure "templateIds" is required (not null) if (templateIds == null) { @@ -99,91 +99,91 @@ 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 ``` /// /// `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. /// /// `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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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 /// @@ -239,70 +239,70 @@ public bool Equals(SignatureRequestBulkSendWithTemplateRequest input) { return false; } - return + 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 && @@ -379,19 +379,19 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -399,79 +399,92 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_ids", Property = "TemplateIds", Type = "List", Value = TemplateIds, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_file", Property = "SignerFile", Type = "System.IO.Stream", Value = SignerFile, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_list", Property = "SignerList", Type = "List", Value = SignerList, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "ccs", Property = "Ccs", Type = "List", Value = Ccs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs index be87871..3108022 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedRequest.cs @@ -67,7 +67,7 @@ protected SignatureRequestCreateEmbeddedRequest() { } /// 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?)) { - + // to ensure "clientId" is required (not null) if (clientId == null) { @@ -121,166 +121,166 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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 /// /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - + /// /// The email addresses that should be CCed. /// /// 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. /// /// 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`. /// /// 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`. /// /// 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` /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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`. /// /// 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. /// /// 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. /// /// 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,127 +347,127 @@ public bool Equals(SignatureRequestCreateEmbeddedRequest input) { return false; } - return + 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 && @@ -576,19 +576,19 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -596,145 +596,169 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "grouped_signers", Property = "GroupedSigners", Type = "List", Value = GroupedSigners, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_reassign", Property = "AllowReassign", Type = "bool", Value = AllowReassign, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_email_addresses", Property = "CcEmailAddresses", Type = "List", Value = CcEmailAddresses, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_options", Property = "FieldOptions", Type = "SubFieldOptions", Value = FieldOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_groups", Property = "FormFieldGroups", Type = "List", Value = FormFieldGroups, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_rules", Property = "FormFieldRules", Type = "List", Value = FormFieldRules, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_fields_per_document", Property = "FormFieldsPerDocument", Type = "List", Value = FormFieldsPerDocument, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "hide_text_tags", Property = "HideTextTags", Type = "bool", Value = HideTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_text_tags", Property = "UseTextTags", Type = "bool", Value = UseTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "populate_auto_fill_fields", Property = "PopulateAutoFillFields", Type = "bool", Value = PopulateAutoFillFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int?", diff --git a/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs index af8b50e..b0296ff 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestCreateEmbeddedWithTemplateRequest.cs @@ -58,7 +58,7 @@ protected SignatureRequestCreateEmbeddedWithTemplateRequest() { } /// 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) { - + // to ensure "templateIds" is required (not null) if (templateIds == null) { @@ -113,104 +113,104 @@ 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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. /// /// 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 /// @@ -268,82 +268,82 @@ public bool Equals(SignatureRequestCreateEmbeddedWithTemplateRequest input) { return false; } - return + 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) @@ -424,19 +424,19 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -444,91 +444,106 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_ids", Property = "TemplateIds", Type = "List", Value = TemplateIds, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "ccs", Property = "Ccs", Type = "List", Value = Ccs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "populate_auto_fill_fields", Property = "PopulateAutoFillFields", Type = "bool", diff --git a/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs index 8f9595f..ce07844 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedRequest.cs @@ -67,7 +67,7 @@ protected SignatureRequestEditEmbeddedRequest() { } /// 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?)) { - + // to ensure "clientId" is required (not null) if (clientId == null) { @@ -347,127 +347,127 @@ public bool Equals(SignatureRequestEditEmbeddedRequest input) { return false; } - return + 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 && @@ -569,145 +569,169 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "grouped_signers", Property = "GroupedSigners", Type = "List", Value = GroupedSigners, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_reassign", Property = "AllowReassign", Type = "bool", Value = AllowReassign, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_email_addresses", Property = "CcEmailAddresses", Type = "List", Value = CcEmailAddresses, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_options", Property = "FieldOptions", Type = "SubFieldOptions", Value = FieldOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_groups", Property = "FormFieldGroups", Type = "List", Value = FormFieldGroups, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_rules", Property = "FormFieldRules", Type = "List", Value = FormFieldRules, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_fields_per_document", Property = "FormFieldsPerDocument", Type = "List", Value = FormFieldsPerDocument, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "hide_text_tags", Property = "HideTextTags", Type = "bool", Value = HideTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_text_tags", Property = "UseTextTags", Type = "bool", Value = UseTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "populate_auto_fill_fields", Property = "PopulateAutoFillFields", Type = "bool", Value = PopulateAutoFillFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int?", @@ -727,19 +751,19 @@ public List GetOpenApiTypes() // 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/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs index f39ecc0..6d91c68 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestEditEmbeddedWithTemplateRequest.cs @@ -58,7 +58,7 @@ protected SignatureRequestEditEmbeddedWithTemplateRequest() { } /// 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) { - + // to ensure "templateIds" is required (not null) if (templateIds == null) { @@ -268,82 +268,82 @@ public bool Equals(SignatureRequestEditEmbeddedWithTemplateRequest input) { return false; } - return + 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,91 +417,106 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_ids", Property = "TemplateIds", Type = "List", Value = TemplateIds, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "ccs", Property = "Ccs", Type = "List", Value = Ccs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "populate_auto_fill_fields", Property = "PopulateAutoFillFields", Type = "bool", @@ -521,19 +536,19 @@ public List GetOpenApiTypes() // 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/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs index c2b13b0..02b19c2 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestEditRequest.cs @@ -69,7 +69,7 @@ protected SignatureRequestEditRequest() { } /// 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?)) { - + this.Files = files; this.FileUrls = fileUrls; this.Signers = signers; @@ -363,136 +363,136 @@ public bool Equals(SignatureRequestEditRequest input) { return false; } - return + 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 && @@ -599,157 +599,183 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "grouped_signers", Property = "GroupedSigners", Type = "List", Value = GroupedSigners, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_reassign", Property = "AllowReassign", Type = "bool", Value = AllowReassign, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_email_addresses", Property = "CcEmailAddresses", Type = "List", Value = CcEmailAddresses, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_options", Property = "FieldOptions", Type = "SubFieldOptions", Value = FieldOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_groups", Property = "FormFieldGroups", Type = "List", Value = FormFieldGroups, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_rules", Property = "FormFieldRules", Type = "List", Value = FormFieldRules, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_fields_per_document", Property = "FormFieldsPerDocument", Type = "List", Value = FormFieldsPerDocument, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "hide_text_tags", Property = "HideTextTags", Type = "bool", Value = HideTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_qualified_signature", Property = "IsQualifiedSignature", Type = "bool", Value = IsQualifiedSignature, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_eid", Property = "IsEid", Type = "bool", Value = IsEid, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_text_tags", Property = "UseTextTags", Type = "bool", Value = UseTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int?", @@ -769,19 +795,19 @@ public List GetOpenApiTypes() // 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/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs index 4467491..4370033 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestEditWithTemplateRequest.cs @@ -60,7 +60,7 @@ protected SignatureRequestEditWithTemplateRequest() { } /// 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)) { - + // to ensure "templateIds" is required (not null) if (templateIds == null) { @@ -284,90 +284,90 @@ public bool Equals(SignatureRequestEditWithTemplateRequest input) { return false; } - return + 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 && @@ -447,103 +447,120 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_ids", Property = "TemplateIds", Type = "List", Value = TemplateIds, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "ccs", Property = "Ccs", Type = "List", Value = Ccs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_qualified_signature", Property = "IsQualifiedSignature", Type = "bool", Value = IsQualifiedSignature, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_eid", Property = "IsEid", Type = "bool", Value = IsEid, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", @@ -563,19 +580,19 @@ public List GetOpenApiTypes() // 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/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs b/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs index fb7c89e..2bf0e19 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestGetResponse.cs @@ -45,7 +45,7 @@ protected SignatureRequestGetResponse() { } /// A list of warnings.. public SignatureRequestGetResponse(SignatureRequestResponse signatureRequest = default(SignatureRequestResponse), List warnings = default(List)) { - + // to ensure "signatureRequest" is required (not null) if (signatureRequest == null) { @@ -76,14 +76,14 @@ public static SignatureRequestGetResponse Init(string jsonData) /// [DataMember(Name = "signature_request", IsRequired = true, EmitDefaultValue = true)] public SignatureRequestResponse SignatureRequest { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(SignatureRequestGetResponse input) { return false; } - return + return ( this.SignatureRequest == input.SignatureRequest || (this.SignatureRequest != null && this.SignatureRequest.Equals(input.SignatureRequest)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_request", Property = "SignatureRequest", Type = "SignatureRequestResponse", Value = SignatureRequest, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs b/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs index c930e02..176cc8e 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestListResponse.cs @@ -46,7 +46,7 @@ protected SignatureRequestListResponse() { } /// A list of warnings.. public SignatureRequestListResponse(List signatureRequests = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { - + // to ensure "signatureRequests" is required (not null) if (signatureRequests == null) { @@ -84,20 +84,20 @@ public static SignatureRequestListResponse Init(string jsonData) /// Contains information about signature requests. [DataMember(Name = "signature_requests", IsRequired = true, EmitDefaultValue = true)] public List SignatureRequests { get; set; } - + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", IsRequired = true, EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -143,18 +143,18 @@ public bool Equals(SignatureRequestListResponse input) { return false; } - return + 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 && @@ -200,19 +200,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_requests", Property = "SignatureRequests", Type = "List", Value = SignatureRequests, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "list_info", Property = "ListInfo", Type = "ListInfoResponse", Value = ListInfo, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs index 186a374..b023597 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestRemindRequest.cs @@ -45,7 +45,7 @@ protected SignatureRequestRemindRequest() { } /// 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)) { - + // to ensure "emailAddress" is required (not null) if (emailAddress == null) { @@ -77,14 +77,14 @@ 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. /// /// 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 /// @@ -129,12 +129,12 @@ public bool Equals(SignatureRequestRemindRequest input) { return false; } - return + return ( this.EmailAddress == input.EmailAddress || (this.EmailAddress != null && this.EmailAddress.Equals(input.EmailAddress)) - ) && + ) && ( this.Name == input.Name || (this.Name != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index 4b06dc8..273a23e 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -68,7 +68,7 @@ protected SignatureRequestResponse() { } /// 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)) { - + // use default value if no "testMode" provided this.TestMode = testMode ?? false; this.SignatureRequestId = signatureRequestId; @@ -119,175 +119,175 @@ 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. /// /// 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. /// /// 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. /// /// The title the specified Account uses for the SignatureRequest. [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } - + /// /// Default Label for account. /// /// 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. /// /// 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. /// /// 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. /// /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] public Object Metadata { get; set; } - + /// /// Time the signature request was created. /// /// 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. /// /// 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. /// /// 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. /// /// 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). /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// /// 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). /// /// 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` /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -355,128 +355,128 @@ public bool Equals(SignatureRequestResponse input) { return false; } - return + 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 && @@ -594,151 +594,176 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool?", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_request_id", Property = "SignatureRequestId", Type = "string", Value = SignatureRequestId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requester_email_address", Property = "RequesterEmailAddress", Type = "string", Value = RequesterEmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "original_title", Property = "OriginalTitle", Type = "string", Value = OriginalTitle, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Object", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "created_at", Property = "CreatedAt", Type = "int", Value = CreatedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int", Value = ExpiresAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_complete", Property = "IsComplete", Type = "bool", Value = IsComplete, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_declined", Property = "IsDeclined", Type = "bool", Value = IsDeclined, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "has_error", Property = "HasError", Type = "bool", Value = HasError, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files_url", Property = "FilesUrl", Type = "string", Value = FilesUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_url", Property = "SigningUrl", Type = "string", Value = SigningUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "details_url", Property = "DetailsUrl", Type = "string", Value = DetailsUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_email_addresses", Property = "CcEmailAddresses", Type = "List", Value = CcEmailAddresses, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "final_copy_uri", Property = "FinalCopyUri", Type = "string", Value = FinalCopyUri, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_ids", Property = "TemplateIds", Type = "List", Value = TemplateIds, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "response_data", Property = "ResponseData", Type = "List", Value = ResponseData, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signatures", Property = "Signatures", Type = "List", Value = Signatures, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "bulk_send_job_id", Property = "BulkSendJobId", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs index 9444496..529f5d7 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseAttachment.cs @@ -49,7 +49,7 @@ protected SignatureRequestResponseAttachment() { } /// Timestamp when attachment was uploaded by Signer.. public SignatureRequestResponseAttachment(string id = default(string), Object signer = null, 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) { @@ -95,13 +95,14 @@ 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. /// /// The Signer this attachment is assigned to. [DataMember(Name = "signer", IsRequired = true, EmitDefaultValue = true)] - public object Signer { + public object Signer + { get => this._signer; set => this._signer = Convert.ToString(value); } @@ -113,28 +114,28 @@ public object Signer { /// 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. /// /// A boolean value denoting if this attachment is required. [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] public bool Required { get; set; } - + /// /// Instructions for Signer. /// /// Instructions for Signer. [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } - + /// /// Timestamp when attachment was uploaded by Signer. /// /// 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 /// @@ -183,31 +184,31 @@ public bool Equals(SignatureRequestResponseAttachment input) { return false; } - return + 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 && @@ -261,37 +262,43 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "id", Property = "Id", Type = "string", Value = Id, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer", Property = "Signer", Type = "string", Value = Signer, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "instructions", Property = "Instructions", Type = "string", Value = Instructions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "uploaded_at", Property = "UploadedAt", Type = "int?", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs index 817d977..39f9104 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldBase.cs @@ -52,7 +52,7 @@ protected SignatureRequestResponseCustomFieldBase() { } /// 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)) { - + // to ensure "type" is required (not null) if (type == null) { @@ -92,35 +92,35 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -168,26 +168,26 @@ public bool Equals(SignatureRequestResponseCustomFieldBase input) { return false; } - return + 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 && @@ -247,31 +247,36 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "editor", Property = "Editor", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs index 719ce06..ad01220 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldCheckbox.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseCustomFieldCheckbox() { } this.Required = required; this.ApiId = apiId; this.Editor = editor; - + // to ensure "type" is required (not null) if (type == null) { @@ -85,14 +85,14 @@ 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 /// /// A true/false for checkbox fields [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -138,12 +138,12 @@ public bool Equals(SignatureRequestResponseCustomFieldCheckbox input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || this.Value.Equals(input.Value) @@ -194,13 +194,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "bool", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs index aea87dd..2c9e394 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseCustomFieldText.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseCustomFieldText() { } this.Required = required; this.ApiId = apiId; this.Editor = editor; - + // to ensure "type" is required (not null) if (type == null) { @@ -85,14 +85,14 @@ 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 /// /// A text string for text fields [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -138,12 +138,12 @@ public bool Equals(SignatureRequestResponseCustomFieldText input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || (this.Value != null && @@ -198,13 +198,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs index 42d2946..d77b189 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataBase.cs @@ -59,7 +59,7 @@ protected SignatureRequestResponseDataBase() { } /// type. 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; @@ -89,34 +89,34 @@ 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -164,26 +164,26 @@ public bool Equals(SignatureRequestResponseDataBase input) { return false; } - return + 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 && @@ -243,31 +243,36 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_id", Property = "SignatureId", Type = "string", Value = SignatureId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs index 25ae1ff..51709af 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckbox.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseDataValueCheckbox() { } this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "checkbox"; this.Value = value; @@ -81,14 +81,14 @@ 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. /// /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(SignatureRequestResponseDataValueCheckbox input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || this.Value.Equals(input.Value) @@ -190,13 +190,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "bool", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs index 093bf26..4c12d9c 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueCheckboxMerge.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseDataValueCheckboxMerge() { } this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "checkbox-merge"; this.Value = value; @@ -81,14 +81,14 @@ 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. /// /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(SignatureRequestResponseDataValueCheckboxMerge input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || (this.Value != null && @@ -194,13 +194,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs index f5f43e0..a8fb0d5 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDateSigned.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseDataValueDateSigned() { } this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "date_signed"; this.Value = value; @@ -81,14 +81,14 @@ public static SignatureRequestResponseDataValueDateSigned Init(string jsonData) /// A date [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } - + /// /// The value of the form field. /// /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(SignatureRequestResponseDataValueDateSigned input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || (this.Value != null && @@ -194,13 +194,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs index f7be6cb..d60b72a 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueDropdown.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseDataValueDropdown() { } this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "dropdown"; this.Value = value; @@ -81,14 +81,14 @@ 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. /// /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(SignatureRequestResponseDataValueDropdown input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || (this.Value != null && @@ -194,13 +194,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index dda612c..28c5973 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseDataValueInitials() { } this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "initials"; this.Value = value; @@ -81,14 +81,14 @@ 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. /// /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(SignatureRequestResponseDataValueInitials input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || (this.Value != null && @@ -194,13 +194,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs index 9533351..258846b 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueRadio.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseDataValueRadio() { } this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "radio"; this.Value = value; @@ -81,14 +81,14 @@ 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. /// /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public bool Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(SignatureRequestResponseDataValueRadio input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || this.Value.Equals(input.Value) @@ -190,13 +190,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "bool", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index 828a871..c5c2d53 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseDataValueSignature() { } this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "signature"; this.Value = value; @@ -81,14 +81,14 @@ 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. /// /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(SignatureRequestResponseDataValueSignature input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || (this.Value != null && @@ -194,13 +194,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs index 2355796..4372a0e 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueText.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseDataValueText() { } this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "text"; this.Value = value; @@ -81,14 +81,14 @@ 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. /// /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(SignatureRequestResponseDataValueText input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || (this.Value != null && @@ -194,13 +194,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs index 9bc4543..74e9a1a 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueTextMerge.cs @@ -53,7 +53,7 @@ protected SignatureRequestResponseDataValueTextMerge() { } this.SignatureId = signatureId; this.Name = name; this.Required = required; - + // use default value if no "type" provided this.Type = type ?? "text-merge"; this.Value = value; @@ -81,14 +81,14 @@ 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. /// /// The value of the form field. [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(SignatureRequestResponseDataValueTextMerge input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Value == input.Value || (this.Value != null && @@ -194,13 +194,15 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs index 5b1e3d6..38bc768 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseSignatures.cs @@ -62,7 +62,7 @@ protected SignatureRequestResponseSignatures() { } /// 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)) { - + this.SignatureId = signatureId; this.SignerGroupGuid = signerGroupGuid; this.SignerEmailAddress = signerEmailAddress; @@ -106,133 +106,133 @@ public static SignatureRequestResponseSignatures Init(string jsonData) /// Signature identifier. [DataMember(Name = "signature_id", EmitDefaultValue = true)] public string SignatureId { get; set; } - + /// /// Signer Group GUID /// /// Signer Group GUID [DataMember(Name = "signer_group_guid", EmitDefaultValue = true)] public string SignerGroupGuid { get; set; } - + /// /// The email address of the signer. /// /// The email address of the signer. [DataMember(Name = "signer_email_address", EmitDefaultValue = true)] public string SignerEmailAddress { get; set; } - + /// /// The name of the signer. /// /// The name of the signer. [DataMember(Name = "signer_name", EmitDefaultValue = true)] public string SignerName { get; set; } - + /// /// The role of the signer. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// Reason provided by original signer who reassigned to this signer. [DataMember(Name = "reassignment_reason", EmitDefaultValue = true)] public string ReassignmentReason { get; set; } - + /// /// Previous signature identifier. /// /// Previous signature identifier. [DataMember(Name = "reassigned_from", EmitDefaultValue = true)] public string ReassignedFrom { get; set; } - + /// /// Error message pertaining to this signer, or null. /// /// 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,96 +294,96 @@ public bool Equals(SignatureRequestResponseSignatures input) { return false; } - return + 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 && @@ -489,115 +489,134 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_id", Property = "SignatureId", Type = "string", Value = SignatureId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_group_guid", Property = "SignerGroupGuid", Type = "string", Value = SignerGroupGuid, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_email_address", Property = "SignerEmailAddress", Type = "string", Value = SignerEmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_name", Property = "SignerName", Type = "string", Value = SignerName, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_role", Property = "SignerRole", Type = "string", Value = SignerRole, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "order", Property = "Order", Type = "int?", Value = Order, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "status_code", Property = "StatusCode", Type = "string", Value = StatusCode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "decline_reason", Property = "DeclineReason", Type = "string", Value = DeclineReason, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signed_at", Property = "SignedAt", Type = "int?", Value = SignedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "last_viewed_at", Property = "LastViewedAt", Type = "int?", Value = LastViewedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "last_reminded_at", Property = "LastRemindedAt", Type = "int?", Value = LastRemindedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "has_pin", Property = "HasPin", Type = "bool", Value = HasPin, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "has_sms_auth", Property = "HasSmsAuth", Type = "bool?", Value = HasSmsAuth, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "has_sms_delivery", Property = "HasSmsDelivery", Type = "bool?", Value = HasSmsDelivery, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sms_phone_number", Property = "SmsPhoneNumber", Type = "string", Value = SmsPhoneNumber, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "reassigned_by", Property = "ReassignedBy", Type = "string", Value = ReassignedBy, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "reassignment_reason", Property = "ReassignmentReason", Type = "string", Value = ReassignmentReason, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "reassigned_from", Property = "ReassignedFrom", Type = "string", Value = ReassignedFrom, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "error", Property = "Error", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs index 56e90b0..51c0d97 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs @@ -69,7 +69,7 @@ protected SignatureRequestSendRequest() { } /// 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?)) { - + this.Files = files; this.FileUrls = fileUrls; this.Signers = signers; @@ -120,104 +120,104 @@ 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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 /// /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - + /// /// The email addresses that should be CCed. /// /// 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. /// /// 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. /// /// 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`. /// /// 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`. /// /// 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` /// /// 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. /// /// 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,76 +225,76 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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`. /// /// 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. /// /// 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 /// @@ -363,136 +363,136 @@ public bool Equals(SignatureRequestSendRequest input) { return false; } - return + 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 && @@ -606,19 +606,19 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -626,157 +626,183 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "grouped_signers", Property = "GroupedSigners", Type = "List", Value = GroupedSigners, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_reassign", Property = "AllowReassign", Type = "bool", Value = AllowReassign, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_email_addresses", Property = "CcEmailAddresses", Type = "List", Value = CcEmailAddresses, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_options", Property = "FieldOptions", Type = "SubFieldOptions", Value = FieldOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_groups", Property = "FormFieldGroups", Type = "List", Value = FormFieldGroups, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_rules", Property = "FormFieldRules", Type = "List", Value = FormFieldRules, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_fields_per_document", Property = "FormFieldsPerDocument", Type = "List", Value = FormFieldsPerDocument, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "hide_text_tags", Property = "HideTextTags", Type = "bool", Value = HideTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_qualified_signature", Property = "IsQualifiedSignature", Type = "bool", Value = IsQualifiedSignature, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_eid", Property = "IsEid", Type = "bool", Value = IsEid, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_text_tags", Property = "UseTextTags", Type = "bool", Value = UseTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int?", diff --git a/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs index 4beed06..071627d 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs @@ -60,7 +60,7 @@ protected SignatureRequestSendWithTemplateRequest() { } /// 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)) { - + // to ensure "templateIds" is required (not null) if (templateIds == null) { @@ -112,56 +112,56 @@ 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. /// /// 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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,62 +169,62 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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 /// @@ -284,90 +284,90 @@ public bool Equals(SignatureRequestSendWithTemplateRequest input) { return false; } - return + 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 && @@ -454,19 +454,19 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -474,103 +474,120 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_ids", Property = "TemplateIds", Type = "List", Value = TemplateIds, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "ccs", Property = "Ccs", Type = "List", Value = Ccs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_qualified_signature", Property = "IsQualifiedSignature", Type = "bool", Value = IsQualifiedSignature, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_eid", Property = "IsEid", Type = "bool", Value = IsEid, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", diff --git a/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs b/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs index eb7b8bc..9aef296 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestUpdateRequest.cs @@ -47,7 +47,7 @@ protected SignatureRequestUpdateRequest() { } /// 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?)) { - + // to ensure "signatureId" is required (not null) if (signatureId == null) { @@ -81,28 +81,28 @@ 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -149,22 +149,22 @@ public bool Equals(SignatureRequestUpdateRequest input) { return false; } - return + 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 && @@ -213,25 +213,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_id", Property = "SignatureId", Type = "string", Value = SignatureId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int?", diff --git a/src/Dropbox.Sign/Model/SubAttachment.cs b/src/Dropbox.Sign/Model/SubAttachment.cs index e941ee5..1d9765d 100644 --- a/src/Dropbox.Sign/Model/SubAttachment.cs +++ b/src/Dropbox.Sign/Model/SubAttachment.cs @@ -47,7 +47,7 @@ protected SubAttachment() { } /// 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)) { - + // to ensure "name" is required (not null) if (name == null) { @@ -81,28 +81,28 @@ 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. /// /// 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. /// /// The instructions for uploading the attachment. [DataMember(Name = "instructions", EmitDefaultValue = true)] public string Instructions { get; set; } - + /// /// Determines if the attachment must be uploaded. /// /// Determines if the attachment must be uploaded. [DataMember(Name = "required", EmitDefaultValue = true)] public bool Required { get; set; } - + /// /// Returns the string presentation of the object /// @@ -149,21 +149,21 @@ public bool Equals(SubAttachment input) { return false; } - return + 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) @@ -205,25 +205,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_index", Property = "SignerIndex", Type = "int", Value = SignerIndex, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "instructions", Property = "Instructions", Type = "string", Value = Instructions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", diff --git a/src/Dropbox.Sign/Model/SubBulkSignerList.cs b/src/Dropbox.Sign/Model/SubBulkSignerList.cs index 1f05616..3651de6 100644 --- a/src/Dropbox.Sign/Model/SubBulkSignerList.cs +++ b/src/Dropbox.Sign/Model/SubBulkSignerList.cs @@ -45,7 +45,7 @@ protected SubBulkSignerList() { } /// 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)) { - + this.CustomFields = customFields; this.Signers = signers; } @@ -72,14 +72,14 @@ 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. /// /// 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 /// @@ -124,13 +124,13 @@ public bool Equals(SubBulkSignerList input) { return false; } - return + return ( this.CustomFields == input.CustomFields || this.CustomFields != null && input.CustomFields != null && this.CustomFields.SequenceEqual(input.CustomFields) - ) && + ) && ( this.Signers == input.Signers || this.Signers != null && @@ -172,13 +172,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", diff --git a/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs b/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs index 0c81056..d6b286d 100644 --- a/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs +++ b/src/Dropbox.Sign/Model/SubBulkSignerListCustomField.cs @@ -45,7 +45,7 @@ protected SubBulkSignerListCustomField() { } /// The value of the custom field. (required). public SubBulkSignerListCustomField(string name = default(string), string value = default(string)) { - + // to ensure "name" is required (not null) if (name == null) { @@ -82,14 +82,14 @@ 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. /// /// 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 /// @@ -134,12 +134,12 @@ public bool Equals(SubBulkSignerListCustomField input) { return false; } - return + return ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) - ) && + ) && ( this.Value == input.Value || (this.Value != null && @@ -180,13 +180,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubCC.cs b/src/Dropbox.Sign/Model/SubCC.cs index 1097fb4..86ee8a6 100644 --- a/src/Dropbox.Sign/Model/SubCC.cs +++ b/src/Dropbox.Sign/Model/SubCC.cs @@ -45,7 +45,7 @@ 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) { @@ -82,14 +82,14 @@ 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. /// /// 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 /// @@ -134,12 +134,12 @@ public bool Equals(SubCC input) { return false; } - return + return ( this.Role == input.Role || (this.Role != null && this.Role.Equals(input.Role)) - ) && + ) && ( this.EmailAddress == input.EmailAddress || (this.EmailAddress != null && @@ -180,13 +180,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "role", Property = "Role", Type = "string", Value = Role, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubCustomField.cs b/src/Dropbox.Sign/Model/SubCustomField.cs index c6a0211..34aeb81 100644 --- a/src/Dropbox.Sign/Model/SubCustomField.cs +++ b/src/Dropbox.Sign/Model/SubCustomField.cs @@ -47,7 +47,7 @@ protected SubCustomField() { } /// 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)) { - + // to ensure "name" is required (not null) if (name == null) { @@ -81,28 +81,28 @@ 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. /// /// 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`. /// /// 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. /// /// 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 /// @@ -149,21 +149,21 @@ public bool Equals(SubCustomField input) { return false; } - return + 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 && @@ -209,25 +209,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "editor", Property = "Editor", Type = "string", Value = Editor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubEditorOptions.cs b/src/Dropbox.Sign/Model/SubEditorOptions.cs index 531f778..7eb43e9 100644 --- a/src/Dropbox.Sign/Model/SubEditorOptions.cs +++ b/src/Dropbox.Sign/Model/SubEditorOptions.cs @@ -45,7 +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,14 +72,14 @@ 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 /// /// 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 /// @@ -124,11 +124,11 @@ public bool Equals(SubEditorOptions input) { return false; } - return + return ( this.AllowEditSigners == input.AllowEditSigners || this.AllowEditSigners.Equals(input.AllowEditSigners) - ) && + ) && ( this.AllowEditDocuments == input.AllowEditDocuments || this.AllowEditDocuments.Equals(input.AllowEditDocuments) @@ -162,13 +162,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_edit_signers", Property = "AllowEditSigners", Type = "bool", Value = AllowEditSigners, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_edit_documents", Property = "AllowEditDocuments", Type = "bool", diff --git a/src/Dropbox.Sign/Model/SubFieldOptions.cs b/src/Dropbox.Sign/Model/SubFieldOptions.cs index b281394..c575759 100644 --- a/src/Dropbox.Sign/Model/SubFieldOptions.cs +++ b/src/Dropbox.Sign/Model/SubFieldOptions.cs @@ -95,7 +95,7 @@ protected SubFieldOptions() { } /// 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; } @@ -158,7 +158,7 @@ public bool Equals(SubFieldOptions input) { return false; } - return + return ( this.DateFormat == input.DateFormat || this.DateFormat.Equals(input.DateFormat) @@ -191,7 +191,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "date_format", Property = "DateFormat", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubFormFieldGroup.cs b/src/Dropbox.Sign/Model/SubFormFieldGroup.cs index 78910c7..d1497db 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldGroup.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldGroup.cs @@ -46,7 +46,7 @@ protected SubFormFieldGroup() { } /// 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)) { - + // to ensure "groupId" is required (not null) if (groupId == null) { @@ -89,21 +89,21 @@ 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 /// /// 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. /// /// 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 /// @@ -149,17 +149,17 @@ public bool Equals(SubFormFieldGroup input) { return false; } - return + 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 && @@ -204,19 +204,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group_id", Property = "GroupId", Type = "string", Value = GroupId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group_label", Property = "GroupLabel", Type = "string", Value = GroupLabel, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requirement", Property = "Requirement", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubFormFieldRule.cs b/src/Dropbox.Sign/Model/SubFormFieldRule.cs index e385fd1..b2b37f5 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldRule.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldRule.cs @@ -47,7 +47,7 @@ protected SubFormFieldRule() { } /// 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)) { - + // to ensure "id" is required (not null) if (id == null) { @@ -96,28 +96,28 @@ 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -164,23 +164,23 @@ public bool Equals(SubFormFieldRule input) { return false; } - return + 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 && @@ -230,25 +230,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "id", Property = "Id", Type = "string", Value = Id, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "trigger_operator", Property = "TriggerOperator", Type = "string", Value = TriggerOperator, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "triggers", Property = "Triggers", Type = "List", Value = Triggers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "actions", Property = "Actions", Type = "List", diff --git a/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs b/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs index b7a5d0a..a15a63f 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldRuleAction.cs @@ -72,7 +72,7 @@ protected SubFormFieldRuleAction() { } /// type (required). 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; @@ -101,21 +101,21 @@ 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. /// /// **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. /// /// **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 /// @@ -162,20 +162,20 @@ public bool Equals(SubFormFieldRuleAction input) { return false; } - return + 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 && @@ -218,25 +218,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "hidden", Property = "Hidden", Type = "bool", Value = Hidden, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_id", Property = "FieldId", Type = "string", Value = FieldId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group_id", Property = "GroupId", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs b/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs index af6728f..e39fc07 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldRuleTrigger.cs @@ -92,7 +92,7 @@ protected SubFormFieldRuleTrigger() { } /// **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)) { - + // to ensure "id" is required (not null) if (id == null) { @@ -126,21 +126,21 @@ 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` /// /// **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` /// /// **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 /// @@ -187,21 +187,21 @@ public bool Equals(SubFormFieldRuleTrigger input) { return false; } - return + 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 && @@ -248,25 +248,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "id", Property = "Id", Type = "string", Value = Id, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "operator", Property = "Operator", Type = "string", Value = Operator, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "value", Property = "Value", Type = "string", Value = Value, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "values", Property = "Values", Type = "List", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs index 3b90d36..fd57c54 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentBase.cs @@ -66,7 +66,7 @@ protected SubFormFieldsPerDocumentBase() { } /// 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)) { - + this.DocumentIndex = documentIndex; // to ensure "apiId" is required (not null) if (apiId == null) @@ -117,34 +117,35 @@ 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. /// /// 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. /// /// Size of the field in pixels. [DataMember(Name = "height", IsRequired = true, EmitDefaultValue = true)] public int Height { get; set; } - + /// /// Whether this field is required. /// /// 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); } @@ -155,42 +156,42 @@ public object Signer { /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - + /// /// Size of the field in pixels. /// /// 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. /// /// 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. /// /// Location coordinates of the field in pixels. [DataMember(Name = "y", IsRequired = true, EmitDefaultValue = true)] public int Y { get; set; } - + /// /// Display name for the field. /// /// 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. /// /// 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,51 +245,51 @@ public bool Equals(SubFormFieldsPerDocumentBase input) { return false; } - return + 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 && @@ -357,67 +358,78 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "document_index", Property = "DocumentIndex", Type = "int", Value = DocumentIndex, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "height", Property = "Height", Type = "int", Value = Height, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer", Property = "Signer", Type = "string", Value = Signer, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "width", Property = "Width", Type = "int", Value = Width, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "x", Property = "X", Type = "int", Value = X, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "y", Property = "Y", Type = "int", Value = Y, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "page", Property = "Page", Type = "int?", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs index 5123fdd..12eb68f 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckbox.cs @@ -66,7 +66,7 @@ protected SubFormFieldsPerDocumentCheckbox() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -99,21 +99,21 @@ 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`. /// /// `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. /// /// 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 /// @@ -160,16 +160,16 @@ public bool Equals(SubFormFieldsPerDocumentCheckbox input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.IsChecked == input.IsChecked || this.IsChecked.Equals(input.IsChecked) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Group == input.Group || (this.Group != null && @@ -225,19 +225,22 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_checked", Property = "IsChecked", Type = "bool", Value = IsChecked, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs index f3e5785..7ac3eb8 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentCheckboxMerge.cs @@ -64,7 +64,7 @@ protected SubFormFieldsPerDocumentCheckboxMerge() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -95,7 +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 /// @@ -140,7 +140,7 @@ public bool Equals(SubFormFieldsPerDocumentCheckboxMerge input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -191,7 +191,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs index 0706d57..485c02d 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDateSigned.cs @@ -177,7 +177,7 @@ protected SubFormFieldsPerDocumentDateSigned() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -210,14 +210,14 @@ 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. /// /// 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 /// @@ -264,16 +264,16 @@ public bool Equals(SubFormFieldsPerDocumentDateSigned input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize) @@ -325,19 +325,22 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_family", Property = "FontFamily", Type = "string", Value = FontFamily, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_size", Property = "FontSize", Type = "int", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs index c996ae2..4671037 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentDropdown.cs @@ -179,7 +179,7 @@ protected SubFormFieldsPerDocumentDropdown() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -219,28 +219,28 @@ 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -289,27 +289,27 @@ public bool Equals(SubFormFieldsPerDocumentDropdown input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Options == input.Options || this.Options != null && input.Options != null && this.Options.SequenceEqual(input.Options) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Content == input.Content || (this.Content != null && this.Content.Equals(input.Content)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize) @@ -369,31 +369,36 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "options", Property = "Options", Type = "List", Value = Options, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "content", Property = "Content", Type = "string", Value = Content, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_family", Property = "FontFamily", Type = "string", Value = FontFamily, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_size", Property = "FontSize", Type = "int", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs index 52961a7..d766865 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentHyperlink.cs @@ -179,7 +179,7 @@ protected SubFormFieldsPerDocumentHyperlink() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -224,28 +224,28 @@ 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. /// /// Link Text. [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] public string Content { get; set; } - + /// /// Link URL. /// /// 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. /// /// 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 /// @@ -294,26 +294,26 @@ public bool Equals(SubFormFieldsPerDocumentHyperlink input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Content == input.Content || (this.Content != null && this.Content.Equals(input.Content)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.ContentUrl == input.ContentUrl || (this.ContentUrl != null && this.ContentUrl.Equals(input.ContentUrl)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize) @@ -373,31 +373,36 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "content", Property = "Content", Type = "string", Value = Content, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "content_url", Property = "ContentUrl", Type = "string", Value = ContentUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_family", Property = "FontFamily", Type = "string", Value = FontFamily, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_size", Property = "FontSize", Type = "int", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs index 729c873..59fd275 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentInitials.cs @@ -64,7 +64,7 @@ protected SubFormFieldsPerDocumentInitials() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -95,7 +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 /// @@ -140,7 +140,7 @@ public bool Equals(SubFormFieldsPerDocumentInitials input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -191,7 +191,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs index 10fc88e..752a2cb 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentRadio.cs @@ -66,7 +66,7 @@ protected SubFormFieldsPerDocumentRadio() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -104,21 +104,21 @@ 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. /// /// 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`. /// /// `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 /// @@ -165,17 +165,17 @@ public bool Equals(SubFormFieldsPerDocumentRadio input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Group == input.Group || (this.Group != null && this.Group.Equals(input.Group)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.IsChecked == input.IsChecked || this.IsChecked.Equals(input.IsChecked) @@ -230,19 +230,22 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", Value = Group, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_checked", Property = "IsChecked", Type = "bool", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs index bff60b6..c495d15 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentSignature.cs @@ -64,7 +64,7 @@ protected SubFormFieldsPerDocumentSignature() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -95,7 +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 /// @@ -140,7 +140,7 @@ public bool Equals(SubFormFieldsPerDocumentSignature input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -191,7 +191,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs index e0244d8..c514d0f 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentText.cs @@ -260,7 +260,7 @@ protected SubFormFieldsPerDocumentText() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -301,61 +301,61 @@ 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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 /// /// 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. /// /// 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 /// @@ -410,54 +410,54 @@ public bool Equals(SubFormFieldsPerDocumentText input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Placeholder == input.Placeholder || (this.Placeholder != null && this.Placeholder.Equals(input.Placeholder)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.AutoFillType == input.AutoFillType || (this.AutoFillType != null && this.AutoFillType.Equals(input.AutoFillType)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.LinkId == input.LinkId || (this.LinkId != null && this.LinkId.Equals(input.LinkId)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Masked == input.Masked || this.Masked.Equals(input.Masked) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.ValidationType == input.ValidationType || this.ValidationType.Equals(input.ValidationType) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.ValidationCustomRegex == input.ValidationCustomRegex || (this.ValidationCustomRegex != null && this.ValidationCustomRegex.Equals(input.ValidationCustomRegex)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.ValidationCustomRegexFormatLabel == input.ValidationCustomRegexFormatLabel || (this.ValidationCustomRegexFormatLabel != null && this.ValidationCustomRegexFormatLabel.Equals(input.ValidationCustomRegexFormatLabel)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.Content == input.Content || (this.Content != null && this.Content.Equals(input.Content)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize) @@ -535,67 +535,78 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "placeholder", Property = "Placeholder", Type = "string", Value = Placeholder, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "auto_fill_type", Property = "AutoFillType", Type = "string", Value = AutoFillType, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "link_id", Property = "LinkId", Type = "string", Value = LinkId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "masked", Property = "Masked", Type = "bool", Value = Masked, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "validation_type", Property = "ValidationType", Type = "string", Value = ValidationType, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "validation_custom_regex", Property = "ValidationCustomRegex", Type = "string", Value = ValidationCustomRegex, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "validation_custom_regex_format_label", Property = "ValidationCustomRegexFormatLabel", Type = "string", Value = ValidationCustomRegexFormatLabel, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "content", Property = "Content", Type = "string", Value = Content, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_family", Property = "FontFamily", Type = "string", Value = FontFamily, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_size", Property = "FontSize", Type = "int", diff --git a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs index 127d20c..d2d0c64 100644 --- a/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs +++ b/src/Dropbox.Sign/Model/SubFormFieldsPerDocumentTextMerge.cs @@ -177,7 +177,7 @@ protected SubFormFieldsPerDocumentTextMerge() { } this.Y = y; this.Name = name; this.Page = page; - + // to ensure "type" is required (not null) if (type == null) { @@ -210,14 +210,14 @@ 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. /// /// 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 /// @@ -264,16 +264,16 @@ public bool Equals(SubFormFieldsPerDocumentTextMerge input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontFamily == input.FontFamily || this.FontFamily.Equals(input.FontFamily) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontSize == input.FontSize || this.FontSize.Equals(input.FontSize) @@ -325,19 +325,22 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_family", Property = "FontFamily", Type = "string", Value = FontFamily, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "font_size", Property = "FontSize", Type = "int", diff --git a/src/Dropbox.Sign/Model/SubMergeField.cs b/src/Dropbox.Sign/Model/SubMergeField.cs index 1799993..ff9eeec 100644 --- a/src/Dropbox.Sign/Model/SubMergeField.cs +++ b/src/Dropbox.Sign/Model/SubMergeField.cs @@ -72,7 +72,7 @@ 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) { @@ -104,7 +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 /// @@ -149,12 +149,12 @@ public bool Equals(SubMergeField input) { return false; } - return + return ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) - ) && + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -191,13 +191,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubOAuth.cs b/src/Dropbox.Sign/Model/SubOAuth.cs index 288a8d3..be1cf83 100644 --- a/src/Dropbox.Sign/Model/SubOAuth.cs +++ b/src/Dropbox.Sign/Model/SubOAuth.cs @@ -100,7 +100,7 @@ protected SubOAuth() { } /// 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)) { - + this.CallbackUrl = callbackUrl; this.Scopes = scopes; } @@ -127,14 +127,14 @@ 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 /// @@ -179,12 +179,12 @@ public bool Equals(SubOAuth input) { return false; } - return + return ( this.CallbackUrl == input.CallbackUrl || (this.CallbackUrl != null && this.CallbackUrl.Equals(input.CallbackUrl)) - ) && + ) && ( this.Scopes == input.Scopes || this.Scopes != null && @@ -226,13 +226,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "callback_url", Property = "CallbackUrl", Type = "string", Value = CallbackUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "scopes", Property = "Scopes", Type = "List", diff --git a/src/Dropbox.Sign/Model/SubOptions.cs b/src/Dropbox.Sign/Model/SubOptions.cs index 1df55a3..726d534 100644 --- a/src/Dropbox.Sign/Model/SubOptions.cs +++ b/src/Dropbox.Sign/Model/SubOptions.cs @@ -44,7 +44,7 @@ protected SubOptions() { } /// 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,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 /// @@ -114,7 +114,7 @@ public bool Equals(SubOptions input) { return false; } - return + return ( this.CanInsertEverywhere == input.CanInsertEverywhere || this.CanInsertEverywhere.Equals(input.CanInsertEverywhere) @@ -147,7 +147,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "can_insert_everywhere", Property = "CanInsertEverywhere", Type = "bool", diff --git a/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs b/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs index 7f1e2fa..d172c3e 100644 --- a/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs +++ b/src/Dropbox.Sign/Model/SubSignatureRequestGroupedSigners.cs @@ -46,7 +46,7 @@ protected SubSignatureRequestGroupedSigners() { } /// 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)) { - + // to ensure "group" is required (not null) if (group == null) { @@ -84,21 +84,21 @@ 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. /// /// 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`. /// /// 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 /// @@ -144,18 +144,18 @@ public bool Equals(SubSignatureRequestGroupedSigners input) { return false; } - return + 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 && @@ -200,19 +200,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", Value = Group, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "order", Property = "Order", Type = "int?", diff --git a/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs b/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs index 7b3a3f9..a71fd1b 100644 --- a/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs +++ b/src/Dropbox.Sign/Model/SubSignatureRequestSigner.cs @@ -76,7 +76,7 @@ protected SubSignatureRequestSigner() { } /// 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?)) { - + // to ensure "name" is required (not null) if (name == null) { @@ -117,35 +117,35 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -194,32 +194,32 @@ public bool Equals(SubSignatureRequestSigner input) { return false; } - return + 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,13 +270,13 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -284,37 +284,43 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "order", Property = "Order", Type = "int?", Value = Order, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "pin", Property = "Pin", Type = "string", Value = Pin, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sms_phone_number", Property = "SmsPhoneNumber", Type = "string", Value = SmsPhoneNumber, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sms_phone_number_type", Property = "SmsPhoneNumberType", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs b/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs index 629a94d..ef2f6ac 100644 --- a/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs +++ b/src/Dropbox.Sign/Model/SubSignatureRequestTemplateSigner.cs @@ -76,7 +76,7 @@ protected SubSignatureRequestTemplateSigner() { } /// 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?)) { - + // to ensure "role" is required (not null) if (role == null) { @@ -122,35 +122,35 @@ 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. /// /// The name of the signer. [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } - + /// /// The email address of the signer. /// /// 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. /// /// 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. /// /// 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 /// @@ -199,32 +199,32 @@ public bool Equals(SubSignatureRequestTemplateSigner input) { return false; } - return + 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,13 +275,13 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -289,37 +289,43 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "role", Property = "Role", Type = "string", Value = Role, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "pin", Property = "Pin", Type = "string", Value = Pin, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sms_phone_number", Property = "SmsPhoneNumber", Type = "string", Value = SmsPhoneNumber, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sms_phone_number_type", Property = "SmsPhoneNumberType", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubSigningOptions.cs b/src/Dropbox.Sign/Model/SubSigningOptions.cs index c3d7007..03e60af 100644 --- a/src/Dropbox.Sign/Model/SubSigningOptions.cs +++ b/src/Dropbox.Sign/Model/SubSigningOptions.cs @@ -87,7 +87,7 @@ protected SubSigningOptions() { } /// 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) { - + this.DefaultType = defaultType; this.Draw = draw; this.Phone = phone; @@ -117,28 +117,28 @@ 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 /// /// Allows using a smartphone to email the signature [DataMember(Name = "phone", EmitDefaultValue = true)] public bool Phone { get; set; } - + /// /// Allows typing the signature /// /// Allows typing the signature [DataMember(Name = "type", EmitDefaultValue = true)] public bool Type { get; set; } - + /// /// Allows uploading the signature /// /// Allows uploading the signature [DataMember(Name = "upload", EmitDefaultValue = true)] public bool Upload { get; set; } - + /// /// Returns the string presentation of the object /// @@ -186,23 +186,23 @@ public bool Equals(SubSigningOptions input) { return false; } - return + 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) @@ -239,31 +239,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "default_type", Property = "DefaultType", Type = "string", Value = DefaultType, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "draw", Property = "Draw", Type = "bool", Value = Draw, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "phone", Property = "Phone", Type = "bool", Value = Phone, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "bool", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "upload", Property = "Upload", Type = "bool", diff --git a/src/Dropbox.Sign/Model/SubTeamResponse.cs b/src/Dropbox.Sign/Model/SubTeamResponse.cs index 53a6152..75bfec9 100644 --- a/src/Dropbox.Sign/Model/SubTeamResponse.cs +++ b/src/Dropbox.Sign/Model/SubTeamResponse.cs @@ -45,7 +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,14 +72,14 @@ 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 /// /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - + /// /// Returns the string presentation of the object /// @@ -124,12 +124,12 @@ public bool Equals(SubTeamResponse input) { return false; } - return + return ( this.TeamId == input.TeamId || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) - ) && + ) && ( this.Name == input.Name || (this.Name != null && @@ -170,13 +170,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team_id", Property = "TeamId", Type = "string", Value = TeamId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubTemplateRole.cs b/src/Dropbox.Sign/Model/SubTemplateRole.cs index 6611d25..c5afcce 100644 --- a/src/Dropbox.Sign/Model/SubTemplateRole.cs +++ b/src/Dropbox.Sign/Model/SubTemplateRole.cs @@ -45,7 +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,14 +72,14 @@ 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. /// /// 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 /// @@ -124,12 +124,12 @@ public bool Equals(SubTemplateRole input) { return false; } - return + return ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) - ) && + ) && ( this.Order == input.Order || (this.Order != null && @@ -170,13 +170,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "order", Property = "Order", Type = "int?", diff --git a/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs b/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs index fe9f934..9d4bbea 100644 --- a/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs +++ b/src/Dropbox.Sign/Model/SubUnclaimedDraftSigner.cs @@ -46,7 +46,7 @@ protected SubUnclaimedDraftSigner() { } /// The order the signer is required to sign in.. public SubUnclaimedDraftSigner(string emailAddress = default(string), string name = default(string), int? order = default(int?)) { - + // to ensure "emailAddress" is required (not null) if (emailAddress == null) { @@ -84,21 +84,21 @@ 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. /// /// 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. /// /// 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 /// @@ -144,17 +144,17 @@ public bool Equals(SubUnclaimedDraftSigner input) { return false; } - return + 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 && @@ -199,19 +199,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "order", Property = "Order", Type = "int?", diff --git a/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs b/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs index 3a2a6b8..ebabf38 100644 --- a/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs +++ b/src/Dropbox.Sign/Model/SubUnclaimedDraftTemplateSigner.cs @@ -46,7 +46,7 @@ protected SubUnclaimedDraftTemplateSigner() { } /// 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)) { - + // to ensure "role" is required (not null) if (role == null) { @@ -89,21 +89,21 @@ 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`. /// /// 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`. /// /// 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 /// @@ -149,17 +149,17 @@ public bool Equals(SubUnclaimedDraftTemplateSigner input) { return false; } - return + 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 && @@ -204,19 +204,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "role", Property = "Role", Type = "string", Value = Role, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", diff --git a/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs b/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs index 6f11e2b..a38eaa0 100644 --- a/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs +++ b/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs @@ -83,7 +83,7 @@ protected SubWhiteLabelingOptions() { } /// 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)) { - + // use default value if no "headerBackgroundColor" provided this.HeaderBackgroundColor = headerBackgroundColor ?? "#1A1A1A"; this.LegalVersion = legalVersion; @@ -135,86 +135,86 @@ 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. /// /// 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 /// @@ -272,76 +272,76 @@ public bool Equals(SubWhiteLabelingOptions input) { return false; } - return + 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) @@ -427,91 +427,106 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "header_background_color", Property = "HeaderBackgroundColor", Type = "string", Value = HeaderBackgroundColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "legal_version", Property = "LegalVersion", Type = "string", Value = LegalVersion, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "link_color", Property = "LinkColor", Type = "string", Value = LinkColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "page_background_color", Property = "PageBackgroundColor", Type = "string", Value = PageBackgroundColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "primary_button_color", Property = "PrimaryButtonColor", Type = "string", Value = PrimaryButtonColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "primary_button_color_hover", Property = "PrimaryButtonColorHover", Type = "string", Value = PrimaryButtonColorHover, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "primary_button_text_color", Property = "PrimaryButtonTextColor", Type = "string", Value = PrimaryButtonTextColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "primary_button_text_color_hover", Property = "PrimaryButtonTextColorHover", Type = "string", Value = PrimaryButtonTextColorHover, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "secondary_button_color", Property = "SecondaryButtonColor", Type = "string", Value = SecondaryButtonColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "secondary_button_color_hover", Property = "SecondaryButtonColorHover", Type = "string", Value = SecondaryButtonColorHover, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "secondary_button_text_color", Property = "SecondaryButtonTextColor", Type = "string", Value = SecondaryButtonTextColor, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "secondary_button_text_color_hover", Property = "SecondaryButtonTextColorHover", Type = "string", Value = SecondaryButtonTextColorHover, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "text_color1", Property = "TextColor1", Type = "string", Value = TextColor1, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "text_color2", Property = "TextColor2", Type = "string", Value = TextColor2, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "reset_to_default", Property = "ResetToDefault", Type = "bool", diff --git a/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs b/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs index 9c988a2..1ebfec6 100644 --- a/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs +++ b/src/Dropbox.Sign/Model/TeamAddMemberRequest.cs @@ -85,7 +85,7 @@ protected TeamAddMemberRequest() { } /// 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?)) { - + this.AccountId = accountId; this.EmailAddress = emailAddress; this.Role = role; @@ -113,14 +113,14 @@ 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. /// /// `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 /// @@ -166,17 +166,17 @@ public bool Equals(TeamAddMemberRequest input) { return false; } - return + 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) @@ -217,19 +217,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "role", Property = "Role", Type = "string", diff --git a/src/Dropbox.Sign/Model/TeamCreateRequest.cs b/src/Dropbox.Sign/Model/TeamCreateRequest.cs index a73122b..28d6638 100644 --- a/src/Dropbox.Sign/Model/TeamCreateRequest.cs +++ b/src/Dropbox.Sign/Model/TeamCreateRequest.cs @@ -44,7 +44,7 @@ protected TeamCreateRequest() { } /// 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,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 /// @@ -115,7 +115,7 @@ public bool Equals(TeamCreateRequest input) { return false; } - return + return ( this.Name == input.Name || (this.Name != null && @@ -152,7 +152,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", diff --git a/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs b/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs index 47afb05..4040182 100644 --- a/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs +++ b/src/Dropbox.Sign/Model/TeamGetInfoResponse.cs @@ -45,7 +45,7 @@ protected TeamGetInfoResponse() { } /// A list of warnings.. public TeamGetInfoResponse(TeamInfoResponse team = default(TeamInfoResponse), List warnings = default(List)) { - + // to ensure "team" is required (not null) if (team == null) { @@ -76,14 +76,14 @@ public static TeamGetInfoResponse Init(string jsonData) /// [DataMember(Name = "team", IsRequired = true, EmitDefaultValue = true)] public TeamInfoResponse Team { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(TeamGetInfoResponse input) { return false; } - return + return ( this.Team == input.Team || (this.Team != null && this.Team.Equals(input.Team)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team", Property = "Team", Type = "TeamInfoResponse", Value = Team, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TeamGetResponse.cs b/src/Dropbox.Sign/Model/TeamGetResponse.cs index db7efe0..3e1a652 100644 --- a/src/Dropbox.Sign/Model/TeamGetResponse.cs +++ b/src/Dropbox.Sign/Model/TeamGetResponse.cs @@ -45,7 +45,7 @@ protected TeamGetResponse() { } /// A list of warnings.. public TeamGetResponse(TeamResponse team = default(TeamResponse), List warnings = default(List)) { - + // to ensure "team" is required (not null) if (team == null) { @@ -76,14 +76,14 @@ public static TeamGetResponse Init(string jsonData) /// [DataMember(Name = "team", IsRequired = true, EmitDefaultValue = true)] public TeamResponse Team { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(TeamGetResponse input) { return false; } - return + return ( this.Team == input.Team || (this.Team != null && this.Team.Equals(input.Team)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team", Property = "Team", Type = "TeamResponse", Value = Team, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TeamInfoResponse.cs b/src/Dropbox.Sign/Model/TeamInfoResponse.cs index b35c7a8..0f47db1 100644 --- a/src/Dropbox.Sign/Model/TeamInfoResponse.cs +++ b/src/Dropbox.Sign/Model/TeamInfoResponse.cs @@ -48,7 +48,7 @@ protected TeamInfoResponse() { } /// 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)) { - + this.TeamId = teamId; this.TeamParent = teamParent; this.Name = name; @@ -78,34 +78,34 @@ 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 /// /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - + /// /// Number of members within a team /// /// Number of members within a team [DataMember(Name = "num_members", EmitDefaultValue = true)] public int NumMembers { get; set; } - + /// /// Number of sub teams within a team /// /// 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 /// @@ -153,26 +153,26 @@ public bool Equals(TeamInfoResponse input) { return false; } - return + 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) @@ -218,31 +218,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team_id", Property = "TeamId", Type = "string", Value = TeamId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team_parent", Property = "TeamParent", Type = "TeamParentResponse", Value = TeamParent, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "num_members", Property = "NumMembers", Type = "int", Value = NumMembers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "num_sub_teams", Property = "NumSubTeams", Type = "int", diff --git a/src/Dropbox.Sign/Model/TeamInviteResponse.cs b/src/Dropbox.Sign/Model/TeamInviteResponse.cs index 2361183..71e4be0 100644 --- a/src/Dropbox.Sign/Model/TeamInviteResponse.cs +++ b/src/Dropbox.Sign/Model/TeamInviteResponse.cs @@ -49,7 +49,7 @@ protected TeamInviteResponse() { } /// 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)) { - + this.EmailAddress = emailAddress; this.TeamId = teamId; this.Role = role; @@ -80,42 +80,42 @@ 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. /// /// Id of the team. [DataMember(Name = "team_id", EmitDefaultValue = true)] public string TeamId { get; set; } - + /// /// Role of the user invited to this team. /// /// Role of the user invited to this team. [DataMember(Name = "role", EmitDefaultValue = true)] public string Role { get; set; } - + /// /// Timestamp when the invitation was sent. /// /// Timestamp when the invitation was sent. [DataMember(Name = "sent_at", EmitDefaultValue = true)] public int SentAt { get; set; } - + /// /// Timestamp when the invitation was redeemed. /// /// Timestamp when the invitation was redeemed. [DataMember(Name = "redeemed_at", EmitDefaultValue = true)] public int RedeemedAt { get; set; } - + /// /// Timestamp when the invitation is expiring. /// /// Timestamp when the invitation is expiring. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - + /// /// Returns the string presentation of the object /// @@ -164,30 +164,30 @@ public bool Equals(TeamInviteResponse input) { return false; } - return + 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) @@ -234,37 +234,43 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team_id", Property = "TeamId", Type = "string", Value = TeamId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "role", Property = "Role", Type = "string", Value = Role, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sent_at", Property = "SentAt", Type = "int", Value = SentAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "redeemed_at", Property = "RedeemedAt", Type = "int", Value = RedeemedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int", diff --git a/src/Dropbox.Sign/Model/TeamInvitesResponse.cs b/src/Dropbox.Sign/Model/TeamInvitesResponse.cs index b4d6570..78b2178 100644 --- a/src/Dropbox.Sign/Model/TeamInvitesResponse.cs +++ b/src/Dropbox.Sign/Model/TeamInvitesResponse.cs @@ -45,7 +45,7 @@ protected TeamInvitesResponse() { } /// warnings. public TeamInvitesResponse(List teamInvites = default(List), List warnings = default(List)) { - + // to ensure "teamInvites" is required (not null) if (teamInvites == null) { @@ -77,13 +77,13 @@ public static TeamInvitesResponse Init(string jsonData) /// Contains a list of team invites and their roles. [DataMember(Name = "team_invites", IsRequired = true, 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 /// @@ -128,13 +128,13 @@ public bool Equals(TeamInvitesResponse input) { return false; } - return + return ( this.TeamInvites == input.TeamInvites || this.TeamInvites != null && input.TeamInvites != null && this.TeamInvites.SequenceEqual(input.TeamInvites) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -176,13 +176,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team_invites", Property = "TeamInvites", Type = "List", Value = TeamInvites, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TeamMemberResponse.cs b/src/Dropbox.Sign/Model/TeamMemberResponse.cs index 5eb2d0c..a01c6e2 100644 --- a/src/Dropbox.Sign/Model/TeamMemberResponse.cs +++ b/src/Dropbox.Sign/Model/TeamMemberResponse.cs @@ -46,7 +46,7 @@ protected TeamMemberResponse() { } /// The specific role a member has on the team.. public TeamMemberResponse(string accountId = default(string), string emailAddress = default(string), string role = default(string)) { - + this.AccountId = accountId; this.EmailAddress = emailAddress; this.Role = role; @@ -74,21 +74,21 @@ 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. /// /// 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. /// /// 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 /// @@ -134,17 +134,17 @@ public bool Equals(TeamMemberResponse input) { return false; } - return + 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 && @@ -189,19 +189,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "role", Property = "Role", Type = "string", diff --git a/src/Dropbox.Sign/Model/TeamMembersResponse.cs b/src/Dropbox.Sign/Model/TeamMembersResponse.cs index e4ed27d..e2fe9d9 100644 --- a/src/Dropbox.Sign/Model/TeamMembersResponse.cs +++ b/src/Dropbox.Sign/Model/TeamMembersResponse.cs @@ -46,7 +46,7 @@ protected TeamMembersResponse() { } /// warnings. public TeamMembersResponse(List teamMembers = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { - + // to ensure "teamMembers" is required (not null) if (teamMembers == null) { @@ -84,19 +84,19 @@ public static TeamMembersResponse Init(string jsonData) /// Contains a list of team members and their roles for a specific team. [DataMember(Name = "team_members", IsRequired = true, EmitDefaultValue = true)] public List TeamMembers { get; set; } - + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", IsRequired = true, 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 /// @@ -142,18 +142,18 @@ public bool Equals(TeamMembersResponse input) { return false; } - return + 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 && @@ -199,19 +199,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team_members", Property = "TeamMembers", Type = "List", Value = TeamMembers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "list_info", Property = "ListInfo", Type = "ListInfoResponse", Value = ListInfo, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TeamParentResponse.cs b/src/Dropbox.Sign/Model/TeamParentResponse.cs index 30730d6..37c5136 100644 --- a/src/Dropbox.Sign/Model/TeamParentResponse.cs +++ b/src/Dropbox.Sign/Model/TeamParentResponse.cs @@ -45,7 +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,14 +72,14 @@ 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 /// /// The name of a team [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - + /// /// Returns the string presentation of the object /// @@ -124,12 +124,12 @@ public bool Equals(TeamParentResponse input) { return false; } - return + return ( this.TeamId == input.TeamId || (this.TeamId != null && this.TeamId.Equals(input.TeamId)) - ) && + ) && ( this.Name == input.Name || (this.Name != null && @@ -170,13 +170,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "team_id", Property = "TeamId", Type = "string", Value = TeamId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", diff --git a/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs b/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs index 2d8d606..62959d1 100644 --- a/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs +++ b/src/Dropbox.Sign/Model/TeamRemoveMemberRequest.cs @@ -87,7 +87,7 @@ protected TeamRemoveMemberRequest() { } /// 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?)) { - + this.AccountId = accountId; this.EmailAddress = emailAddress; this.NewOwnerEmailAddress = newOwnerEmailAddress; @@ -117,28 +117,28 @@ 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. /// /// **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. /// /// 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. /// /// Id of the new Team. [DataMember(Name = "new_team_id", EmitDefaultValue = true)] public string NewTeamId { get; set; } - + /// /// Returns the string presentation of the object /// @@ -186,27 +186,27 @@ public bool Equals(TeamRemoveMemberRequest input) { return false; } - return + 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) @@ -255,31 +255,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "new_owner_email_address", Property = "NewOwnerEmailAddress", Type = "string", Value = NewOwnerEmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "new_team_id", Property = "NewTeamId", Type = "string", Value = NewTeamId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "new_role", Property = "NewRole", Type = "string", diff --git a/src/Dropbox.Sign/Model/TeamResponse.cs b/src/Dropbox.Sign/Model/TeamResponse.cs index fd47071..56d78eb 100644 --- a/src/Dropbox.Sign/Model/TeamResponse.cs +++ b/src/Dropbox.Sign/Model/TeamResponse.cs @@ -47,7 +47,7 @@ protected TeamResponse() { } /// 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)) { - + this.Name = name; this.Accounts = accounts; this.InvitedAccounts = invitedAccounts; @@ -76,27 +76,27 @@ 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`. /// /// 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. /// /// 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 /// @@ -143,24 +143,24 @@ public bool Equals(TeamResponse input) { return false; } - return + 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 && @@ -210,25 +210,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "accounts", Property = "Accounts", Type = "List", Value = Accounts, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "invited_accounts", Property = "InvitedAccounts", Type = "List", Value = InvitedAccounts, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "invited_emails", Property = "InvitedEmails", Type = "List", diff --git a/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs b/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs index 5c525df..17e44d7 100644 --- a/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs +++ b/src/Dropbox.Sign/Model/TeamSubTeamsResponse.cs @@ -46,7 +46,7 @@ protected TeamSubTeamsResponse() { } /// warnings. public TeamSubTeamsResponse(List subTeams = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { - + // to ensure "subTeams" is required (not null) if (subTeams == null) { @@ -84,19 +84,19 @@ public static TeamSubTeamsResponse Init(string jsonData) /// Contains a list with sub teams. [DataMember(Name = "sub_teams", IsRequired = true, EmitDefaultValue = true)] public List SubTeams { get; set; } - + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", IsRequired = true, 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 /// @@ -142,18 +142,18 @@ public bool Equals(TeamSubTeamsResponse input) { return false; } - return + 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 && @@ -199,19 +199,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sub_teams", Property = "SubTeams", Type = "List", Value = SubTeams, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "list_info", Property = "ListInfo", Type = "ListInfoResponse", Value = ListInfo, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TeamUpdateRequest.cs b/src/Dropbox.Sign/Model/TeamUpdateRequest.cs index 4d555f8..6b1a1ad 100644 --- a/src/Dropbox.Sign/Model/TeamUpdateRequest.cs +++ b/src/Dropbox.Sign/Model/TeamUpdateRequest.cs @@ -44,7 +44,7 @@ protected TeamUpdateRequest() { } /// The name of your Team.. public TeamUpdateRequest(string name = default(string)) { - + this.Name = name; } @@ -70,7 +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 /// @@ -114,7 +114,7 @@ public bool Equals(TeamUpdateRequest input) { return false; } - return + return ( this.Name == input.Name || (this.Name != null && @@ -151,7 +151,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs b/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs index 658f781..dc4c522 100644 --- a/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs +++ b/src/Dropbox.Sign/Model/TemplateAddUserRequest.cs @@ -46,7 +46,7 @@ protected TemplateAddUserRequest() { } /// 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) { - + this.AccountId = accountId; this.EmailAddress = emailAddress; this.SkipNotification = skipNotification; @@ -74,21 +74,21 @@ 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. /// /// 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`. /// /// 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 /// @@ -134,17 +134,17 @@ public bool Equals(TemplateAddUserRequest input) { return false; } - return + 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) @@ -185,19 +185,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "skip_notification", Property = "SkipNotification", Type = "bool", diff --git a/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs b/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs index 2bcd918..4220dc5 100644 --- a/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs +++ b/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftRequest.cs @@ -68,7 +68,7 @@ protected TemplateCreateEmbeddedDraftRequest() { } /// 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) { - + // to ensure "clientId" is required (not null) if (clientId == null) { @@ -123,173 +123,173 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// /// 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 /// /// 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. /// /// 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. /// /// 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`. /// /// 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`. /// /// 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` /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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). /// /// 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`. /// /// 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. /// /// 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`). /// /// 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 /// @@ -357,129 +357,129 @@ public bool Equals(TemplateCreateEmbeddedDraftRequest input) { return false; } - return + 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) @@ -582,13 +582,13 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -596,151 +596,176 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_ccs", Property = "AllowCcs", Type = "bool", Value = AllowCcs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_reassign", Property = "AllowReassign", Type = "bool", Value = AllowReassign, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_roles", Property = "CcRoles", Type = "List", Value = CcRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "editor_options", Property = "EditorOptions", Type = "SubEditorOptions", Value = EditorOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_options", Property = "FieldOptions", Type = "SubFieldOptions", Value = FieldOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "force_signer_roles", Property = "ForceSignerRoles", Type = "bool", Value = ForceSignerRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "force_subject_message", Property = "ForceSubjectMessage", Type = "bool", Value = ForceSubjectMessage, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_groups", Property = "FormFieldGroups", Type = "List", Value = FormFieldGroups, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_rules", Property = "FormFieldRules", Type = "List", Value = FormFieldRules, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_fields_per_document", Property = "FormFieldsPerDocument", Type = "List", Value = FormFieldsPerDocument, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "merge_fields", Property = "MergeFields", Type = "List", Value = MergeFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_preview", Property = "ShowPreview", Type = "bool", Value = ShowPreview, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_progress_stepper", Property = "ShowProgressStepper", Type = "bool", Value = ShowProgressStepper, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_roles", Property = "SignerRoles", Type = "List", Value = SignerRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "skip_me_now", Property = "SkipMeNow", Type = "bool", Value = SkipMeNow, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_preexisting_fields", Property = "UsePreexistingFields", Type = "bool", diff --git a/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs b/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs index 4bdc647..0318ae6 100644 --- a/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs +++ b/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponse.cs @@ -45,7 +45,7 @@ protected TemplateCreateEmbeddedDraftResponse() { } /// A list of warnings.. public TemplateCreateEmbeddedDraftResponse(TemplateCreateEmbeddedDraftResponseTemplate template = default(TemplateCreateEmbeddedDraftResponseTemplate), List warnings = default(List)) { - + // to ensure "template" is required (not null) if (template == null) { @@ -76,14 +76,14 @@ public static TemplateCreateEmbeddedDraftResponse Init(string jsonData) /// [DataMember(Name = "template", IsRequired = true, EmitDefaultValue = true)] public TemplateCreateEmbeddedDraftResponseTemplate Template { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(TemplateCreateEmbeddedDraftResponse input) { return false; } - return + return ( this.Template == input.Template || (this.Template != null && this.Template.Equals(input.Template)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template", Property = "Template", Type = "TemplateCreateEmbeddedDraftResponseTemplate", Value = Template, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs b/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs index 23510e0..fb8ca47 100644 --- a/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs +++ b/src/Dropbox.Sign/Model/TemplateCreateEmbeddedDraftResponseTemplate.cs @@ -47,7 +47,7 @@ protected TemplateCreateEmbeddedDraftResponseTemplate() { } /// A list of warnings.. 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; @@ -76,21 +76,21 @@ 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. /// /// Link to edit the template. [DataMember(Name = "edit_url", EmitDefaultValue = true)] public string EditUrl { get; set; } - + /// /// When the link expires. /// /// When the link expires. [DataMember(Name = "expires_at", EmitDefaultValue = true)] public int ExpiresAt { get; set; } - + /// /// A list of warnings. /// @@ -98,7 +98,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 /// @@ -145,21 +145,21 @@ public bool Equals(TemplateCreateEmbeddedDraftResponseTemplate input) { return false; } - return + 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 && @@ -206,25 +206,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_id", Property = "TemplateId", Type = "string", Value = TemplateId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "edit_url", Property = "EditUrl", Type = "string", Value = EditUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int", Value = ExpiresAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TemplateCreateRequest.cs b/src/Dropbox.Sign/Model/TemplateCreateRequest.cs index 424439e..5db1a03 100644 --- a/src/Dropbox.Sign/Model/TemplateCreateRequest.cs +++ b/src/Dropbox.Sign/Model/TemplateCreateRequest.cs @@ -61,7 +61,7 @@ protected TemplateCreateRequest() { } /// 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) { - + // to ensure "formFieldsPerDocument" is required (not null) if (formFieldsPerDocument == null) { @@ -114,125 +114,125 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// /// 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 /// /// 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. /// /// 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`. /// /// 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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). /// /// 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`. /// /// 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. /// /// 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`). /// /// 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 /// @@ -293,100 +293,100 @@ public bool Equals(TemplateCreateRequest input) { return false; } - return + 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) @@ -479,13 +479,13 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -493,109 +493,127 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_fields_per_document", Property = "FormFieldsPerDocument", Type = "List", Value = FormFieldsPerDocument, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_roles", Property = "SignerRoles", Type = "List", Value = SignerRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_reassign", Property = "AllowReassign", Type = "bool", Value = AllowReassign, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_roles", Property = "CcRoles", Type = "List", Value = CcRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_options", Property = "FieldOptions", Type = "SubFieldOptions", Value = FieldOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_groups", Property = "FormFieldGroups", Type = "List", Value = FormFieldGroups, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_rules", Property = "FormFieldRules", Type = "List", Value = FormFieldRules, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "merge_fields", Property = "MergeFields", Type = "List", Value = MergeFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_preexisting_fields", Property = "UsePreexistingFields", Type = "bool", diff --git a/src/Dropbox.Sign/Model/TemplateCreateResponse.cs b/src/Dropbox.Sign/Model/TemplateCreateResponse.cs index 93f8983..75494f1 100644 --- a/src/Dropbox.Sign/Model/TemplateCreateResponse.cs +++ b/src/Dropbox.Sign/Model/TemplateCreateResponse.cs @@ -45,7 +45,7 @@ protected TemplateCreateResponse() { } /// A list of warnings.. public TemplateCreateResponse(TemplateCreateResponseTemplate template = default(TemplateCreateResponseTemplate), List warnings = default(List)) { - + // to ensure "template" is required (not null) if (template == null) { @@ -76,14 +76,14 @@ public static TemplateCreateResponse Init(string jsonData) /// [DataMember(Name = "template", IsRequired = true, EmitDefaultValue = true)] public TemplateCreateResponseTemplate Template { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(TemplateCreateResponse input) { return false; } - return + return ( this.Template == input.Template || (this.Template != null && this.Template.Equals(input.Template)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template", Property = "Template", Type = "TemplateCreateResponseTemplate", Value = Template, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs b/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs index 2ba366d..1c362dd 100644 --- a/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs +++ b/src/Dropbox.Sign/Model/TemplateCreateResponseTemplate.cs @@ -44,7 +44,7 @@ protected TemplateCreateResponseTemplate() { } /// The id of the Template.. public TemplateCreateResponseTemplate(string templateId = default(string)) { - + this.TemplateId = templateId; } @@ -70,7 +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 /// @@ -114,7 +114,7 @@ public bool Equals(TemplateCreateResponseTemplate input) { return false; } - return + return ( this.TemplateId == input.TemplateId || (this.TemplateId != null && @@ -151,7 +151,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_id", Property = "TemplateId", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateEditResponse.cs b/src/Dropbox.Sign/Model/TemplateEditResponse.cs index ee5f658..f76b5eb 100644 --- a/src/Dropbox.Sign/Model/TemplateEditResponse.cs +++ b/src/Dropbox.Sign/Model/TemplateEditResponse.cs @@ -44,7 +44,7 @@ protected TemplateEditResponse() { } /// The id of the Template. (required). public TemplateEditResponse(string templateId = default(string)) { - + // to ensure "templateId" is required (not null) if (templateId == null) { @@ -75,7 +75,7 @@ public static TemplateEditResponse Init(string jsonData) /// The id of the Template. [DataMember(Name = "template_id", IsRequired = true, EmitDefaultValue = true)] public string TemplateId { get; set; } - + /// /// Returns the string presentation of the object /// @@ -119,7 +119,7 @@ public bool Equals(TemplateEditResponse input) { return false; } - return + return ( this.TemplateId == input.TemplateId || (this.TemplateId != null && @@ -156,7 +156,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_id", Property = "TemplateId", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateGetResponse.cs b/src/Dropbox.Sign/Model/TemplateGetResponse.cs index 2ead886..4e3bd70 100644 --- a/src/Dropbox.Sign/Model/TemplateGetResponse.cs +++ b/src/Dropbox.Sign/Model/TemplateGetResponse.cs @@ -45,7 +45,7 @@ protected TemplateGetResponse() { } /// A list of warnings.. public TemplateGetResponse(TemplateResponse template = default(TemplateResponse), List warnings = default(List)) { - + // to ensure "template" is required (not null) if (template == null) { @@ -76,14 +76,14 @@ public static TemplateGetResponse Init(string jsonData) /// [DataMember(Name = "template", IsRequired = true, EmitDefaultValue = true)] public TemplateResponse Template { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(TemplateGetResponse input) { return false; } - return + return ( this.Template == input.Template || (this.Template != null && this.Template.Equals(input.Template)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template", Property = "Template", Type = "TemplateResponse", Value = Template, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TemplateListResponse.cs b/src/Dropbox.Sign/Model/TemplateListResponse.cs index 9c20b3d..75cdefa 100644 --- a/src/Dropbox.Sign/Model/TemplateListResponse.cs +++ b/src/Dropbox.Sign/Model/TemplateListResponse.cs @@ -46,7 +46,7 @@ protected TemplateListResponse() { } /// A list of warnings.. public TemplateListResponse(List templates = default(List), ListInfoResponse listInfo = default(ListInfoResponse), List warnings = default(List)) { - + // to ensure "templates" is required (not null) if (templates == null) { @@ -84,20 +84,20 @@ public static TemplateListResponse Init(string jsonData) /// List of templates that the API caller has access to. [DataMember(Name = "templates", IsRequired = true, EmitDefaultValue = true)] public List Templates { get; set; } - + /// /// Gets or Sets ListInfo /// [DataMember(Name = "list_info", IsRequired = true, EmitDefaultValue = true)] public ListInfoResponse ListInfo { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -143,18 +143,18 @@ public bool Equals(TemplateListResponse input) { return false; } - return + 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 && @@ -200,19 +200,22 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "templates", Property = "Templates", Type = "List", Value = Templates, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "list_info", Property = "ListInfo", Type = "ListInfoResponse", Value = ListInfo, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs b/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs index 69e9fcf..8ad7343 100644 --- a/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs +++ b/src/Dropbox.Sign/Model/TemplateRemoveUserRequest.cs @@ -45,7 +45,7 @@ protected TemplateRemoveUserRequest() { } /// 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)) { - + this.AccountId = accountId; this.EmailAddress = emailAddress; } @@ -72,14 +72,14 @@ 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. /// /// 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 /// @@ -124,12 +124,12 @@ public bool Equals(TemplateRemoveUserRequest input) { return false; } - return + return ( this.AccountId == input.AccountId || (this.AccountId != null && this.AccountId.Equals(input.AccountId)) - ) && + ) && ( this.EmailAddress == input.EmailAddress || (this.EmailAddress != null && @@ -170,13 +170,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponse.cs b/src/Dropbox.Sign/Model/TemplateResponse.cs index db054a3..6ec3587 100644 --- a/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -58,7 +58,7 @@ protected TemplateResponse() { } /// 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)) { - + this.TemplateId = templateId; this.Title = title; this.Message = message; @@ -98,84 +98,84 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// `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. /// /// `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). /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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,7 +183,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,14 +191,14 @@ 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. /// /// 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 /// @@ -256,81 +256,81 @@ public bool Equals(TemplateResponse input) { return false; } - return + 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 && @@ -421,91 +421,106 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_id", Property = "TemplateId", Type = "string", Value = TemplateId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "updated_at", Property = "UpdatedAt", Type = "int", Value = UpdatedAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_embedded", Property = "IsEmbedded", Type = "bool?", Value = IsEmbedded, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_creator", Property = "IsCreator", Type = "bool?", Value = IsCreator, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "can_edit", Property = "CanEdit", Type = "bool?", Value = CanEdit, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_locked", Property = "IsLocked", Type = "bool?", Value = IsLocked, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Object", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer_roles", Property = "SignerRoles", Type = "List", Value = SignerRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_roles", Property = "CcRoles", Type = "List", Value = CcRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "documents", Property = "Documents", Type = "List", Value = Documents, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "named_form_fields", Property = "NamedFormFields", Type = "List", Value = NamedFormFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "accounts", Property = "Accounts", Type = "List", diff --git a/src/Dropbox.Sign/Model/TemplateResponseAccount.cs b/src/Dropbox.Sign/Model/TemplateResponseAccount.cs index 315b8a5..0a40c55 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseAccount.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseAccount.cs @@ -49,7 +49,7 @@ protected TemplateResponseAccount() { } /// 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)) { - + this.AccountId = accountId; this.EmailAddress = emailAddress; this.IsLocked = isLocked; @@ -80,41 +80,41 @@ 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -163,29 +163,29 @@ public bool Equals(TemplateResponseAccount input) { return false; } - return + 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 && @@ -233,37 +233,43 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "account_id", Property = "AccountId", Type = "string", Value = AccountId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "email_address", Property = "EmailAddress", Type = "string", Value = EmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_locked", Property = "IsLocked", Type = "bool", Value = IsLocked, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_paid_hs", Property = "IsPaidHs", Type = "bool", Value = IsPaidHs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_paid_hf", Property = "IsPaidHf", Type = "bool", Value = IsPaidHf, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "quotas", Property = "Quotas", Type = "TemplateResponseAccountQuota", diff --git a/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs b/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs index 9ed9b17..5a67d88 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseAccountQuota.cs @@ -47,7 +47,7 @@ protected TemplateResponseAccountQuota() { } /// SMS verifications remaining.. 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; @@ -76,28 +76,28 @@ public static TemplateResponseAccountQuota Init(string jsonData) /// API templates remaining. [DataMember(Name = "templates_left", EmitDefaultValue = true)] public int TemplatesLeft { get; set; } - + /// /// API signature requests remaining. /// /// API signature requests remaining. [DataMember(Name = "api_signature_requests_left", EmitDefaultValue = true)] public int ApiSignatureRequestsLeft { get; set; } - + /// /// Signature requests remaining. /// /// Signature requests remaining. [DataMember(Name = "documents_left", EmitDefaultValue = true)] public int DocumentsLeft { get; set; } - + /// /// SMS verifications remaining. /// /// SMS verifications remaining. [DataMember(Name = "sms_verifications_left", EmitDefaultValue = true)] public int SmsVerificationsLeft { get; set; } - + /// /// Returns the string presentation of the object /// @@ -144,19 +144,19 @@ public bool Equals(TemplateResponseAccountQuota input) { return false; } - return + 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) @@ -192,25 +192,29 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "templates_left", Property = "TemplatesLeft", Type = "int", Value = TemplatesLeft, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_signature_requests_left", Property = "ApiSignatureRequestsLeft", Type = "int", Value = ApiSignatureRequestsLeft, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "documents_left", Property = "DocumentsLeft", Type = "int", Value = DocumentsLeft, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "sms_verifications_left", Property = "SmsVerificationsLeft", Type = "int", diff --git a/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs b/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs index 7cb5bf5..e153a68 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseCCRole.cs @@ -44,7 +44,7 @@ protected TemplateResponseCCRole() { } /// The name of the Role.. public TemplateResponseCCRole(string name = default(string)) { - + this.Name = name; } @@ -70,7 +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 /// @@ -114,7 +114,7 @@ public bool Equals(TemplateResponseCCRole input) { return false; } - return + return ( this.Name == input.Name || (this.Name != null && @@ -151,7 +151,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs b/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs index 288a9ff..39e50fb 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseCustomField.cs @@ -84,7 +84,7 @@ protected TemplateResponseCustomField() { } /// 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)) { - + this.Name = name; this.Type = type; this.X = x; @@ -254,61 +254,61 @@ public bool Equals(TemplateResponseCustomField input) { return false; } - return + 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 && @@ -366,79 +366,92 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "x", Property = "X", Type = "int", Value = X, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "y", Property = "Y", Type = "int", Value = Y, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "width", Property = "Width", Type = "int", Value = Width, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "height", Property = "Height", Type = "int", Value = Height, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", Value = Group, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "avg_text_length", Property = "AvgTextLength", Type = "TemplateResponseFieldAvgTextLength", Value = AvgTextLength, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "isMultiline", Property = "IsMultiline", Type = "bool?", Value = IsMultiline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "originalFontSize", Property = "OriginalFontSize", Type = "int?", Value = OriginalFontSize, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fontFamily", Property = "FontFamily", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocument.cs b/src/Dropbox.Sign/Model/TemplateResponseDocument.cs index 38d7743..461b2f2 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocument.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocument.cs @@ -49,7 +49,7 @@ protected TemplateResponseDocument() { } /// 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)) { - + this.Name = name; this.Index = index; this.FieldGroups = fieldGroups; @@ -80,42 +80,42 @@ 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). /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -164,34 +164,34 @@ public bool Equals(TemplateResponseDocument input) { return false; } - return + 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 && @@ -246,37 +246,43 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "index", Property = "Index", Type = "int", Value = Index, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_groups", Property = "FieldGroups", Type = "List", Value = FieldGroups, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_fields", Property = "FormFields", Type = "List", Value = FormFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "static_fields", Property = "StaticFields", Type = "List", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs index 617f255..958f759 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomField.cs @@ -87,7 +87,7 @@ protected TemplateResponseDocumentCustomField() { } /// 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)) { - + this.Name = name; this.Type = type; this.Signer = signer; @@ -285,76 +285,76 @@ public bool Equals(TemplateResponseDocumentCustomField input) { return false; } - return + 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 && @@ -424,97 +424,113 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer", Property = "Signer", Type = "string", Value = Signer, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "x", Property = "X", Type = "int", Value = X, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "y", Property = "Y", Type = "int", Value = Y, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "width", Property = "Width", Type = "int", Value = Width, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "height", Property = "Height", Type = "int", Value = Height, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", Value = Group, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "avg_text_length", Property = "AvgTextLength", Type = "TemplateResponseFieldAvgTextLength", Value = AvgTextLength, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "isMultiline", Property = "IsMultiline", Type = "bool?", Value = IsMultiline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "originalFontSize", Property = "OriginalFontSize", Type = "int?", Value = OriginalFontSize, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fontFamily", Property = "FontFamily", Type = "string", Value = FontFamily, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "named_form_fields", Property = "NamedFormFields", Type = "Object", Value = NamedFormFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "reusable_form_id", Property = "ReusableFormId", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs index c952de1..de66ae6 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldBase.cs @@ -57,7 +57,7 @@ protected TemplateResponseDocumentCustomFieldBase() { } /// 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), Object signer = null, 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) { @@ -96,27 +96,28 @@ public static TemplateResponseDocumentCustomFieldBase Init(string jsonData) /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } - + /// /// The unique ID for this field. /// /// The unique ID for this field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - + /// /// The name of the Custom Field. /// /// 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). /// /// The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender). [DataMember(Name = "signer", EmitDefaultValue = true)] - public object Signer { + public object Signer + { get => this._signer; set => this._signer = Convert.ToString(value); } @@ -128,42 +129,42 @@ public object Signer { /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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 /// @@ -216,47 +217,47 @@ public bool Equals(TemplateResponseDocumentCustomFieldBase input) { return false; } - return + 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 && @@ -324,61 +325,71 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer", Property = "Signer", Type = "string", Value = Signer, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "x", Property = "X", Type = "int", Value = X, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "y", Property = "Y", Type = "int", Value = Y, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "width", Property = "Width", Type = "int", Value = Width, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "height", Property = "Height", Type = "int", Value = Height, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs index 7ab6621..dde2bef 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldCheckbox.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentCustomFieldCheckbox() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentCustomFieldCheckbox input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs index 8ac152e..1e85081 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentCustomFieldText.cs @@ -66,7 +66,7 @@ protected TemplateResponseDocumentCustomFieldText() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -101,34 +101,34 @@ 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -177,25 +177,25 @@ public bool Equals(TemplateResponseDocumentCustomFieldText input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.AvgTextLength == input.AvgTextLength || (this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.IsMultiline == input.IsMultiline || this.IsMultiline.Equals(input.IsMultiline) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.OriginalFontSize == input.OriginalFontSize || this.OriginalFontSize.Equals(input.OriginalFontSize) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontFamily == input.FontFamily || (this.FontFamily != null && @@ -256,31 +256,36 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "avg_text_length", Property = "AvgTextLength", Type = "TemplateResponseFieldAvgTextLength", Value = AvgTextLength, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "isMultiline", Property = "IsMultiline", Type = "bool", Value = IsMultiline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "originalFontSize", Property = "OriginalFontSize", Type = "int", Value = OriginalFontSize, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fontFamily", Property = "FontFamily", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs index 63d9fa6..019491e 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroup.cs @@ -45,7 +45,7 @@ protected TemplateResponseDocumentFieldGroup() { } /// rule. public TemplateResponseDocumentFieldGroup(string name = default(string), TemplateResponseDocumentFieldGroupRule rule = default(TemplateResponseDocumentFieldGroupRule)) { - + this.Name = name; this.Rule = rule; } @@ -72,13 +72,13 @@ 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 /// @@ -123,12 +123,12 @@ public bool Equals(TemplateResponseDocumentFieldGroup input) { return false; } - return + return ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) - ) && + ) && ( this.Rule == input.Rule || (this.Rule != null && @@ -169,13 +169,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "rule", Property = "Rule", Type = "TemplateResponseDocumentFieldGroupRule", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs index 68a46ff..ad19e0e 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFieldGroupRule.cs @@ -45,7 +45,7 @@ protected TemplateResponseDocumentFieldGroupRule() { } /// Name of the group. public TemplateResponseDocumentFieldGroupRule(string requirement = default(string), string groupLabel = default(string)) { - + this.Requirement = requirement; this.GroupLabel = groupLabel; } @@ -72,14 +72,14 @@ 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 /// /// Name of the group [DataMember(Name = "groupLabel", EmitDefaultValue = true)] public string GroupLabel { get; set; } - + /// /// Returns the string presentation of the object /// @@ -124,12 +124,12 @@ public bool Equals(TemplateResponseDocumentFieldGroupRule input) { return false; } - return + return ( this.Requirement == input.Requirement || (this.Requirement != null && this.Requirement.Equals(input.Requirement)) - ) && + ) && ( this.GroupLabel == input.GroupLabel || (this.GroupLabel != null && @@ -170,13 +170,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requirement", Property = "Requirement", Type = "string", Value = Requirement, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "groupLabel", Property = "GroupLabel", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs index 07b7e04..9a84275 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormField.cs @@ -133,7 +133,7 @@ protected TemplateResponseDocumentFormField() { } /// 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)) { - + this.ApiId = apiId; this.Name = name; this.Type = type; @@ -312,66 +312,66 @@ public bool Equals(TemplateResponseDocumentFormField input) { return false; } - return + 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 && @@ -433,85 +433,99 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer", Property = "Signer", Type = "string", Value = Signer, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "x", Property = "X", Type = "int", Value = X, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "y", Property = "Y", Type = "int", Value = Y, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "width", Property = "Width", Type = "int", Value = Width, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "height", Property = "Height", Type = "int", Value = Height, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", Value = Group, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "avg_text_length", Property = "AvgTextLength", Type = "TemplateResponseFieldAvgTextLength", Value = AvgTextLength, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "isMultiline", Property = "IsMultiline", Type = "bool?", Value = IsMultiline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "originalFontSize", Property = "OriginalFontSize", Type = "int?", Value = OriginalFontSize, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fontFamily", Property = "FontFamily", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs index f8ce1a2..45f1eef 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldBase.cs @@ -63,7 +63,7 @@ protected TemplateResponseDocumentFormFieldBase() { } /// 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), Object signer = null, 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) { @@ -102,27 +102,28 @@ 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. /// /// A unique id for the form field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - + /// /// The name of the form field. /// /// The name of the form field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - + /// /// The signer of the Form Field. /// /// The signer of the Form Field. [DataMember(Name = "signer", EmitDefaultValue = true)] - public object Signer { + public object Signer + { get => this._signer; set => this._signer = Convert.ToString(value); } @@ -134,42 +135,42 @@ public object Signer { /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -222,47 +223,47 @@ public bool Equals(TemplateResponseDocumentFormFieldBase input) { return false; } - return + 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 && @@ -330,61 +331,71 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer", Property = "Signer", Type = "string", Value = Signer, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "x", Property = "X", Type = "int", Value = X, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "y", Property = "Y", Type = "int", Value = Y, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "width", Property = "Width", Type = "int", Value = Width, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "height", Property = "Height", Type = "int", Value = Height, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs index 360c160..81107ed 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldCheckbox.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentFormFieldCheckbox() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentFormFieldCheckbox input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs index 54eeb6d..6178867 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDateSigned.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentFormFieldDateSigned() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentFormFieldDateSigned input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs index 737adb5..e402f7f 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentFormFieldDropdown input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs index 3c6c4ad..5f874e6 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldHyperlink.cs @@ -66,7 +66,7 @@ protected TemplateResponseDocumentFormFieldHyperlink() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -101,34 +101,34 @@ 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -177,25 +177,25 @@ public bool Equals(TemplateResponseDocumentFormFieldHyperlink input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.AvgTextLength == input.AvgTextLength || (this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.IsMultiline == input.IsMultiline || this.IsMultiline.Equals(input.IsMultiline) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.OriginalFontSize == input.OriginalFontSize || this.OriginalFontSize.Equals(input.OriginalFontSize) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontFamily == input.FontFamily || (this.FontFamily != null && @@ -256,31 +256,36 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "avg_text_length", Property = "AvgTextLength", Type = "TemplateResponseFieldAvgTextLength", Value = AvgTextLength, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "isMultiline", Property = "IsMultiline", Type = "bool", Value = IsMultiline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "originalFontSize", Property = "OriginalFontSize", Type = "int", Value = OriginalFontSize, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fontFamily", Property = "FontFamily", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs index 3d7328b..3eb9296 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldInitials.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentFormFieldInitials() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentFormFieldInitials input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs index cc3c00a..2bf695e 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldRadio.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentFormFieldRadio() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentFormFieldRadio input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs index 39e0edf..79119e4 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldSignature.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentFormFieldSignature() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentFormFieldSignature input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs index 31538b4..ee0686b 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs @@ -142,7 +142,7 @@ protected TemplateResponseDocumentFormFieldText() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -178,34 +178,34 @@ 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -255,30 +255,30 @@ public bool Equals(TemplateResponseDocumentFormFieldText input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.AvgTextLength == input.AvgTextLength || (this.AvgTextLength != null && this.AvgTextLength.Equals(input.AvgTextLength)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.IsMultiline == input.IsMultiline || this.IsMultiline.Equals(input.IsMultiline) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.OriginalFontSize == input.OriginalFontSize || this.OriginalFontSize.Equals(input.OriginalFontSize) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.FontFamily == input.FontFamily || (this.FontFamily != null && this.FontFamily.Equals(input.FontFamily)) - ) && base.Equals(input) && + ) && base.Equals(input) && ( this.ValidationType == input.ValidationType || this.ValidationType.Equals(input.ValidationType) @@ -339,37 +339,43 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "avg_text_length", Property = "AvgTextLength", Type = "TemplateResponseFieldAvgTextLength", Value = AvgTextLength, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "isMultiline", Property = "IsMultiline", Type = "bool", Value = IsMultiline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "originalFontSize", Property = "OriginalFontSize", Type = "int", Value = OriginalFontSize, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fontFamily", Property = "FontFamily", Type = "string", Value = FontFamily, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "validation_type", Property = "ValidationType", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs index 3ba2c59..85f472c 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticField.cs @@ -53,7 +53,7 @@ protected TemplateResponseDocumentStaticField() { } /// 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)) { - + this.Name = name; this.Type = type; this.Signer = signer; @@ -204,47 +204,47 @@ public bool Equals(TemplateResponseDocumentStaticField input) { return false; } - return + 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 && @@ -293,61 +293,71 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer", Property = "Signer", Type = "string", Value = Signer, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "x", Property = "X", Type = "int", Value = X, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "y", Property = "Y", Type = "int", Value = Y, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "width", Property = "Width", Type = "int", Value = Width, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "height", Property = "Height", Type = "int", Value = Height, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs index 4d663c7..69281b3 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldBase.cs @@ -63,7 +63,7 @@ protected TemplateResponseDocumentStaticFieldBase() { } /// 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)) { - + // to ensure "type" is required (not null) if (type == null) { @@ -103,70 +103,70 @@ 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. /// /// A unique id for the static field. [DataMember(Name = "api_id", EmitDefaultValue = true)] public string ApiId { get; set; } - + /// /// The name of the static field. /// /// The name of the static field. [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } - + /// /// The signer of the Static Field. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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 /// @@ -219,47 +219,47 @@ public bool Equals(TemplateResponseDocumentStaticFieldBase input) { return false; } - return + 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 && @@ -327,61 +327,71 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer", Property = "Signer", Type = "string", Value = Signer, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "x", Property = "X", Type = "int", Value = X, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "y", Property = "Y", Type = "int", Value = Y, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "width", Property = "Width", Type = "int", Value = Width, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "height", Property = "Height", Type = "int", Value = Height, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs index fec41a9..0d5fce1 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldCheckbox.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentStaticFieldCheckbox() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentStaticFieldCheckbox input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs index e029aa8..4d30a20 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDateSigned.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentStaticFieldDateSigned() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentStaticFieldDateSigned input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs index ce159eb..423e983 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldDropdown.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentStaticFieldDropdown() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentStaticFieldDropdown input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs index c27885a..78b8bd0 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldHyperlink.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentStaticFieldHyperlink() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentStaticFieldHyperlink input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs index d4caf27..cc55263 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldInitials.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentStaticFieldInitials() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentStaticFieldInitials input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs index 365b450..24f09b8 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldRadio.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentStaticFieldRadio() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentStaticFieldRadio input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs index 50744be..0d7ea03 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldSignature.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentStaticFieldSignature() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentStaticFieldSignature input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs index 69695eb..48c59ea 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentStaticFieldText.cs @@ -62,7 +62,7 @@ protected TemplateResponseDocumentStaticFieldText() { } this.Height = height; this.Required = required; this.Group = group; - + // to ensure "type" is required (not null) if (type == null) { @@ -93,7 +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 /// @@ -138,7 +138,7 @@ public bool Equals(TemplateResponseDocumentStaticFieldText input) { return false; } - return base.Equals(input) && + return base.Equals(input) && ( this.Type == input.Type || (this.Type != null && @@ -189,7 +189,8 @@ protected IEnumerable BaseValidate(ValidationContext validatio public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs b/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs index bebe8a6..3d3ae1d 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseFieldAvgTextLength.cs @@ -45,7 +45,7 @@ protected TemplateResponseFieldAvgTextLength() { } /// Number of characters per line.. public TemplateResponseFieldAvgTextLength(int numLines = default(int), int numCharsPerLine = default(int)) { - + this.NumLines = numLines; this.NumCharsPerLine = numCharsPerLine; } @@ -72,14 +72,14 @@ 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. /// /// 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 /// @@ -124,11 +124,11 @@ public bool Equals(TemplateResponseFieldAvgTextLength input) { return false; } - return + return ( this.NumLines == input.NumLines || this.NumLines.Equals(input.NumLines) - ) && + ) && ( this.NumCharsPerLine == input.NumCharsPerLine || this.NumCharsPerLine.Equals(input.NumCharsPerLine) @@ -162,13 +162,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "num_lines", Property = "NumLines", Type = "int", Value = NumLines, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "num_chars_per_line", Property = "NumCharsPerLine", Type = "int", diff --git a/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs b/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs index e596f1e..d6dfd5f 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseNamedFormField.cs @@ -57,7 +57,7 @@ protected TemplateResponseNamedFormField() { } /// 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)) { - + this.Name = name; this.Type = type; this.Signer = signer; @@ -243,67 +243,67 @@ public bool Equals(TemplateResponseNamedFormField input) { return false; } - return + 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 && @@ -368,85 +368,99 @@ public override int GetHashCode() public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signer", Property = "Signer", Type = "string", Value = Signer, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "x", Property = "X", Type = "int", Value = X, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "y", Property = "Y", Type = "int", Value = Y, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "width", Property = "Width", Type = "int", Value = Width, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "height", Property = "Height", Type = "int", Value = Height, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "required", Property = "Required", Type = "bool", Value = Required, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "api_id", Property = "ApiId", Type = "string", Value = ApiId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "group", Property = "Group", Type = "string", Value = Group, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "avg_text_length", Property = "AvgTextLength", Type = "TemplateResponseFieldAvgTextLength", Value = AvgTextLength, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "isMultiline", Property = "IsMultiline", Type = "bool?", Value = IsMultiline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "originalFontSize", Property = "OriginalFontSize", Type = "int?", Value = OriginalFontSize, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "fontFamily", Property = "FontFamily", Type = "string", diff --git a/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs b/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs index d7b0438..db464fd 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseSignerRole.cs @@ -45,7 +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; } @@ -72,14 +72,14 @@ 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. /// /// 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 /// @@ -124,12 +124,12 @@ public bool Equals(TemplateResponseSignerRole input) { return false; } - return + return ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) - ) && + ) && ( this.Order == input.Order || this.Order.Equals(input.Order) @@ -166,13 +166,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "name", Property = "Name", Type = "string", Value = Name, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "order", Property = "Order", Type = "int", diff --git a/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs b/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs index c32ef2c..f91ece3 100644 --- a/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs +++ b/src/Dropbox.Sign/Model/TemplateUpdateFilesRequest.cs @@ -49,7 +49,7 @@ protected TemplateUpdateFilesRequest() { } /// 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) { - + this.ClientId = clientId; this.Files = files; this.FileUrls = fileUrls; @@ -80,42 +80,42 @@ 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. /// /// 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. /// /// 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. /// /// The new default template email message. [DataMember(Name = "message", EmitDefaultValue = true)] public string Message { get; set; } - + /// /// The new default template email subject. /// /// 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`. /// /// 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 /// @@ -164,34 +164,34 @@ public bool Equals(TemplateUpdateFilesRequest input) { return false; } - return + 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) @@ -242,13 +242,13 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -256,37 +256,43 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", diff --git a/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs b/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs index 4c2fe85..395f0b3 100644 --- a/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs +++ b/src/Dropbox.Sign/Model/TemplateUpdateFilesResponse.cs @@ -44,7 +44,7 @@ protected TemplateUpdateFilesResponse() { } /// template (required). public TemplateUpdateFilesResponse(TemplateUpdateFilesResponseTemplate template = default(TemplateUpdateFilesResponseTemplate)) { - + // to ensure "template" is required (not null) if (template == null) { @@ -74,7 +74,7 @@ public static TemplateUpdateFilesResponse Init(string jsonData) /// [DataMember(Name = "template", IsRequired = true, EmitDefaultValue = true)] public TemplateUpdateFilesResponseTemplate Template { get; set; } - + /// /// Returns the string presentation of the object /// @@ -118,7 +118,7 @@ public bool Equals(TemplateUpdateFilesResponse input) { return false; } - return + return ( this.Template == input.Template || (this.Template != null && @@ -155,7 +155,8 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template", Property = "Template", Type = "TemplateUpdateFilesResponseTemplate", diff --git a/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs b/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs index 4a04e8a..4a88633 100644 --- a/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs +++ b/src/Dropbox.Sign/Model/TemplateUpdateFilesResponseTemplate.cs @@ -45,7 +45,7 @@ protected TemplateUpdateFilesResponseTemplate() { } /// A list of warnings.. public TemplateUpdateFilesResponseTemplate(string templateId = default(string), List warnings = default(List)) { - + this.TemplateId = templateId; this.Warnings = warnings; } @@ -72,7 +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,7 +80,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 /// @@ -125,12 +125,12 @@ public bool Equals(TemplateUpdateFilesResponseTemplate input) { return false; } - return + return ( this.TemplateId == input.TemplateId || (this.TemplateId != null && this.TemplateId.Equals(input.TemplateId)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -172,13 +172,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_id", Property = "TemplateId", Type = "string", Value = TemplateId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs b/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs index 6b25115..00ece67 100644 --- a/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs +++ b/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedRequest.cs @@ -106,7 +106,7 @@ protected UnclaimedDraftCreateEmbeddedRequest() { } /// 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?)) { - + // to ensure "clientId" is required (not null) if (clientId == null) { @@ -177,242 +177,242 @@ 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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 /// /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - + /// /// The email addresses that should be CCed. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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`. /// /// 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` /// /// 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. /// /// 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`. /// /// 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -491,176 +491,176 @@ public bool Equals(UnclaimedDraftCreateEmbeddedRequest input) { return false; } - return + 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 && @@ -787,13 +787,13 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -801,217 +801,253 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requester_email_address", Property = "RequesterEmailAddress", Type = "string", Value = RequesterEmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_ccs", Property = "AllowCcs", Type = "bool", Value = AllowCcs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_reassign", Property = "AllowReassign", Type = "bool", Value = AllowReassign, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_email_addresses", Property = "CcEmailAddresses", Type = "List", Value = CcEmailAddresses, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "editor_options", Property = "EditorOptions", Type = "SubEditorOptions", Value = EditorOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_options", Property = "FieldOptions", Type = "SubFieldOptions", Value = FieldOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "force_signer_page", Property = "ForceSignerPage", Type = "bool", Value = ForceSignerPage, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "force_subject_message", Property = "ForceSubjectMessage", Type = "bool", Value = ForceSubjectMessage, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_groups", Property = "FormFieldGroups", Type = "List", Value = FormFieldGroups, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_rules", Property = "FormFieldRules", Type = "List", Value = FormFieldRules, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_fields_per_document", Property = "FormFieldsPerDocument", Type = "List", Value = FormFieldsPerDocument, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "hide_text_tags", Property = "HideTextTags", Type = "bool", Value = HideTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "hold_request", Property = "HoldRequest", Type = "bool", Value = HoldRequest, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_for_embedded_signing", Property = "IsForEmbeddedSigning", Type = "bool", Value = IsForEmbeddedSigning, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requesting_redirect_url", Property = "RequestingRedirectUrl", Type = "string", Value = RequestingRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_preview", Property = "ShowPreview", Type = "bool", Value = ShowPreview, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_progress_stepper", Property = "ShowProgressStepper", Type = "bool", Value = ShowProgressStepper, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "skip_me_now", Property = "SkipMeNow", Type = "bool", Value = SkipMeNow, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_preexisting_fields", Property = "UsePreexistingFields", Type = "bool", Value = UsePreexistingFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_text_tags", Property = "UseTextTags", Type = "bool", Value = UseTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "populate_auto_fill_fields", Property = "PopulateAutoFillFields", Type = "bool", Value = PopulateAutoFillFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int?", diff --git a/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs b/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs index 5f46598..05ee292 100644 --- a/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs +++ b/src/Dropbox.Sign/Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.cs @@ -73,7 +73,7 @@ protected UnclaimedDraftCreateEmbeddedWithTemplateRequest() { } /// 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) { - + // to ensure "clientId" is required (not null) if (clientId == null) { @@ -143,207 +143,207 @@ 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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`. /// /// 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. /// /// 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. /// /// 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). /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -416,147 +416,147 @@ public bool Equals(UnclaimedDraftCreateEmbeddedWithTemplateRequest input) { return false; } - return + 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) @@ -667,19 +667,19 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -687,181 +687,211 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requester_email_address", Property = "RequesterEmailAddress", Type = "string", Value = RequesterEmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "template_ids", Property = "TemplateIds", Type = "List", Value = TemplateIds, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_reassign", Property = "AllowReassign", Type = "bool", Value = AllowReassign, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "ccs", Property = "Ccs", Type = "List", Value = Ccs, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "editor_options", Property = "EditorOptions", Type = "SubEditorOptions", Value = EditorOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_options", Property = "FieldOptions", Type = "SubFieldOptions", Value = FieldOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "force_signer_roles", Property = "ForceSignerRoles", Type = "bool", Value = ForceSignerRoles, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "force_subject_message", Property = "ForceSubjectMessage", Type = "bool", Value = ForceSubjectMessage, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "hold_request", Property = "HoldRequest", Type = "bool", Value = HoldRequest, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_for_embedded_signing", Property = "IsForEmbeddedSigning", Type = "bool", Value = IsForEmbeddedSigning, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "preview_only", Property = "PreviewOnly", Type = "bool", Value = PreviewOnly, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requesting_redirect_url", Property = "RequestingRedirectUrl", Type = "string", Value = RequestingRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_preview", Property = "ShowPreview", Type = "bool", Value = ShowPreview, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_progress_stepper", Property = "ShowProgressStepper", Type = "bool", Value = ShowProgressStepper, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "skip_me_now", Property = "SkipMeNow", Type = "bool", Value = SkipMeNow, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "title", Property = "Title", Type = "string", Value = Title, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "populate_auto_fill_fields", Property = "PopulateAutoFillFields", Type = "bool", Value = PopulateAutoFillFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_ccs", Property = "AllowCcs", Type = "bool", diff --git a/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs b/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs index fd0e654..065407e 100644 --- a/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs +++ b/src/Dropbox.Sign/Model/UnclaimedDraftCreateRequest.cs @@ -94,7 +94,7 @@ protected UnclaimedDraftCreateRequest() { } /// 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?)) { - + this.Type = type; this.Files = files; this.FileUrls = fileUrls; @@ -143,159 +143,159 @@ 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. /// /// 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`. /// /// 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 /// /// A list describing the attachments [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - + /// /// The email addresses that should be CCed. /// /// 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. /// /// 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. /// /// 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`. /// /// 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`. /// /// 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` /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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 /// @@ -362,125 +362,125 @@ public bool Equals(UnclaimedDraftCreateRequest input) { return false; } - return + 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 && @@ -586,13 +586,13 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali // 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; @@ -600,145 +600,169 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "type", Property = "Type", Type = "string", Value = Type, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "files", Property = "Files", Type = "List", Value = Files, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "file_urls", Property = "FileUrls", Type = "List", Value = FileUrls, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "allow_decline", Property = "AllowDecline", Type = "bool", Value = AllowDecline, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "attachments", Property = "Attachments", Type = "List", Value = Attachments, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "cc_email_addresses", Property = "CcEmailAddresses", Type = "List", Value = CcEmailAddresses, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "custom_fields", Property = "CustomFields", Type = "List", Value = CustomFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "field_options", Property = "FieldOptions", Type = "SubFieldOptions", Value = FieldOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_groups", Property = "FormFieldGroups", Type = "List", Value = FormFieldGroups, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_field_rules", Property = "FormFieldRules", Type = "List", Value = FormFieldRules, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "form_fields_per_document", Property = "FormFieldsPerDocument", Type = "List", Value = FormFieldsPerDocument, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "hide_text_tags", Property = "HideTextTags", Type = "bool", Value = HideTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "message", Property = "Message", Type = "string", Value = Message, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "metadata", Property = "Metadata", Type = "Dictionary", Value = Metadata, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_progress_stepper", Property = "ShowProgressStepper", Type = "bool", Value = ShowProgressStepper, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signers", Property = "Signers", Type = "List", Value = Signers, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_options", Property = "SigningOptions", Type = "SubSigningOptions", Value = SigningOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "subject", Property = "Subject", Type = "string", Value = Subject, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", Value = TestMode, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_preexisting_fields", Property = "UsePreexistingFields", Type = "bool", Value = UsePreexistingFields, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "use_text_tags", Property = "UseTextTags", Type = "bool", Value = UseTextTags, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int?", diff --git a/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs b/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs index e780a23..ec01e05 100644 --- a/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs +++ b/src/Dropbox.Sign/Model/UnclaimedDraftCreateResponse.cs @@ -45,7 +45,7 @@ protected UnclaimedDraftCreateResponse() { } /// A list of warnings.. public UnclaimedDraftCreateResponse(UnclaimedDraftResponse unclaimedDraft = default(UnclaimedDraftResponse), List warnings = default(List)) { - + // to ensure "unclaimedDraft" is required (not null) if (unclaimedDraft == null) { @@ -76,14 +76,14 @@ public static UnclaimedDraftCreateResponse Init(string jsonData) /// [DataMember(Name = "unclaimed_draft", IsRequired = true, EmitDefaultValue = true)] public UnclaimedDraftResponse UnclaimedDraft { get; set; } - + /// /// A list of warnings. /// /// A list of warnings. [DataMember(Name = "warnings", EmitDefaultValue = true)] public List Warnings { get; set; } - + /// /// Returns the string presentation of the object /// @@ -128,12 +128,12 @@ public bool Equals(UnclaimedDraftCreateResponse input) { return false; } - return + return ( this.UnclaimedDraft == input.UnclaimedDraft || (this.UnclaimedDraft != null && this.UnclaimedDraft.Equals(input.UnclaimedDraft)) - ) && + ) && ( this.Warnings == input.Warnings || this.Warnings != null && @@ -175,13 +175,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "unclaimed_draft", Property = "UnclaimedDraft", Type = "UnclaimedDraftResponse", Value = UnclaimedDraft, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warnings", Property = "Warnings", Type = "List", diff --git a/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs b/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs index 9639d3f..f26ba78 100644 --- a/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs +++ b/src/Dropbox.Sign/Model/UnclaimedDraftEditAndResendRequest.cs @@ -51,7 +51,7 @@ protected UnclaimedDraftEditAndResendRequest() { } /// 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) { - + // to ensure "clientId" is required (not null) if (clientId == null) { @@ -89,55 +89,55 @@ 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`. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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`. /// /// 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 /// @@ -188,40 +188,40 @@ public bool Equals(UnclaimedDraftEditAndResendRequest input) { return false; } - return + 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) @@ -276,49 +276,57 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "client_id", Property = "ClientId", Type = "string", Value = ClientId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "editor_options", Property = "EditorOptions", Type = "SubEditorOptions", Value = EditorOptions, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "is_for_embedded_signing", Property = "IsForEmbeddedSigning", Type = "bool", Value = IsForEmbeddedSigning, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requester_email_address", Property = "RequesterEmailAddress", Type = "string", Value = RequesterEmailAddress, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requesting_redirect_url", Property = "RequestingRedirectUrl", Type = "string", Value = RequestingRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "show_progress_stepper", Property = "ShowProgressStepper", Type = "bool", Value = ShowProgressStepper, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", diff --git a/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs b/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs index 284195c..e670d6b 100644 --- a/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs +++ b/src/Dropbox.Sign/Model/UnclaimedDraftResponse.cs @@ -49,7 +49,7 @@ protected UnclaimedDraftResponse() { } /// 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)) { - + this.SignatureRequestId = signatureRequestId; this.ClaimUrl = claimUrl; this.SigningRedirectUrl = signingRedirectUrl; @@ -80,42 +80,42 @@ 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. /// /// 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. /// /// 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.). /// /// 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. /// /// 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. /// /// 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 /// @@ -164,32 +164,32 @@ public bool Equals(UnclaimedDraftResponse input) { return false; } - return + 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) @@ -242,37 +242,43 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signature_request_id", Property = "SignatureRequestId", Type = "string", Value = SignatureRequestId, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "claim_url", Property = "ClaimUrl", Type = "string", Value = ClaimUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "signing_redirect_url", Property = "SigningRedirectUrl", Type = "string", Value = SigningRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "requesting_redirect_url", Property = "RequestingRedirectUrl", Type = "string", Value = RequestingRedirectUrl, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "expires_at", Property = "ExpiresAt", Type = "int?", Value = ExpiresAt, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "test_mode", Property = "TestMode", Type = "bool", diff --git a/src/Dropbox.Sign/Model/WarningResponse.cs b/src/Dropbox.Sign/Model/WarningResponse.cs index 7dcfa66..f57c41f 100644 --- a/src/Dropbox.Sign/Model/WarningResponse.cs +++ b/src/Dropbox.Sign/Model/WarningResponse.cs @@ -45,7 +45,7 @@ protected WarningResponse() { } /// Warning name (required). public WarningResponse(string warningMsg = default(string), string warningName = default(string)) { - + // to ensure "warningMsg" is required (not null) if (warningMsg == null) { @@ -82,14 +82,14 @@ public static WarningResponse Init(string jsonData) /// Warning message [DataMember(Name = "warning_msg", IsRequired = true, EmitDefaultValue = true)] public string WarningMsg { get; set; } - + /// /// Warning name /// /// Warning name [DataMember(Name = "warning_name", IsRequired = true, EmitDefaultValue = true)] public string WarningName { get; set; } - + /// /// Returns the string presentation of the object /// @@ -134,12 +134,12 @@ public bool Equals(WarningResponse input) { return false; } - return + return ( this.WarningMsg == input.WarningMsg || (this.WarningMsg != null && this.WarningMsg.Equals(input.WarningMsg)) - ) && + ) && ( this.WarningName == input.WarningName || (this.WarningName != null && @@ -180,13 +180,15 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali public List GetOpenApiTypes() { var types = new List(); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warning_msg", Property = "WarningMsg", Type = "string", Value = WarningMsg, }); - types.Add(new OpenApiType(){ + types.Add(new OpenApiType() + { Name = "warning_name", Property = "WarningName", Type = "string", diff --git a/templates/EventCallbackHelper.cs b/templates/dropbox-EventCallbackHelper.cs similarity index 100% rename from templates/EventCallbackHelper.cs rename to templates/dropbox-EventCallbackHelper.cs diff --git a/templates/dropbox-LICENSE.mustache b/templates/dropbox-LICENSE.mustache new file mode 100644 index 0000000..22039a6 --- /dev/null +++ b/templates/dropbox-LICENSE.mustache @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) {{licenseCopyrightYear}} dropbox.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/templates/VERSION.mustache b/templates/dropbox-VERSION.mustache similarity index 100% rename from templates/VERSION.mustache rename to templates/dropbox-VERSION.mustache diff --git a/templates/libraries/generichost/ApiResponseEventArgs.mustache b/templates/libraries/generichost/ApiResponseEventArgs.mustache deleted file mode 100644 index 5ff1619..0000000 --- a/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/templates/libraries/generichost/OpenAPIDateConverter.mustache b/templates/libraries/generichost/OpenAPIDateConverter.mustache deleted file mode 100644 index 144ac73..0000000 --- a/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/templates/libraries/generichost/README.mustache b/templates/libraries/generichost/README.mustache deleted file mode 100644 index 28ace9b..0000000 --- a/templates/libraries/generichost/README.mustache +++ /dev/null @@ -1,214 +0,0 @@ -# Created with Openapi Generator - - -## Run the following powershell command to generate the library - -```ps1 -$properties = @( - 'apiName={{apiName}}', - 'targetFramework={{targetFramework}}', - 'validatable={{validatable}}', - 'nullableReferenceTypes={{nullableReferenceTypes}}', - 'hideGenerationTimestamp={{hideGenerationTimestamp}}', - 'packageVersion={{packageVersion}}', - 'packageAuthors={{packageAuthors}}', - 'packageCompany={{packageCompany}}', - 'packageCopyright={{packageCopyright}}', - 'packageDescription={{packageDescription}}',{{#licenseId}} - 'licenseId={{.}}',{{/licenseId}} - 'packageName={{packageName}}', - 'packageTags={{packageTags}}', - 'packageTitle={{packageTitle}}' -) -join "," - -$global = @( - 'apiDocs={{generateApiDocs}}', - 'modelDocs={{generateModelDocs}}', - 'apiTests={{generateApiTests}}', - 'modelTests={{generateModelTests}}' -) -join "," - -java -jar "/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar" generate ` - -g csharp-netcore ` - -i .yaml ` - -o ` - --library generichost ` - --additional-properties $properties ` - --global-property $global ` - --git-host "{{gitHost}}" ` - --git-repo-id "{{gitRepoId}}" ` - --git-user-id "{{gitUserId}}" ` - --release-note "{{releaseNote}}" - # -t templates -``` - - -## Using the library in your project - -```cs -using System; -using System.Threading.Tasks; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.DependencyInjection; -using {{packageName}}.Api; -using {{packageName}}.Client; -using {{packageName}}.Model; - -namespace YourProject -{ - public class Program - { - 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}} - } - - 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(""); - options.AddTokens(token); - - // optionally choose the method the tokens will be provided with, default is RateLimitProvider - options.UseProvider, ApiKeyToken>(); - - {{/authMethods}}options.ConfigureJsonOptions((jsonOptions) => - { - // your custom converters if any - }); - - options.Add{{apiName}}HttpClients(builder: builder => builder - .AddRetryPolicy(2) - .AddTimeoutPolicy(TimeSpan.FromSeconds(5)) - .AddCircuitBreakerPolicy(10, TimeSpan.FromSeconds(30)) - // add whatever middleware you prefer - ); - }); - } -} -``` - -## Questions - -- What about HttpRequest failures and retries? - If supportsRetry is enabled, you can configure Polly in the ConfigureClients method. -- How are tokens used? - Tokens are provided by a TokenProvider class. The default is RateLimitProvider which will perform client side rate limiting. - Other providers can be used with the UseProvider method. -- Does an HttpRequest throw an error when the server response is not Ok? - 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. - - -## 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}} -- [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}}}* - -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}} - - -### {{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}} -- **Type**: OAuth -- **Flow**: {{flow}} -- **Authorization URL**: {{authorizationUrl}} -- **Scopes**: {{^scopes}}N/A{{/scopes}}{{#scopes}} -- {{scope}}: {{description}}{{/scopes}}{{/isOAuth}}{{/authMethods}} - -## Build -- SDK version: {{packageVersion}}{{^hideGenerationTimestamp}} -- Build date: {{generatedDate}}{{/hideGenerationTimestamp}} -- Build package: {{generatorClass}} - -## Api Information -- appName: {{appName}} -- appVersion: {{appVersion}} -- appDescription: {{appDescription}} - -## [OpenApi Global properties](https://openapi-generator.tech/docs/globals) -- generateAliasAsModel: {{generateAliasAsModel}} -- supportingFiles: {{supportingFiles}} -- models: omitted for brevity -- apis: omitted for brevity -- apiDocs: {{generateApiDocs}} -- modelDocs: {{generateModelDocs}} -- apiTests: {{generateApiTests}} -- modelTests: {{generateModelTests}} -- withXml: {{withXml}} - -## [OpenApi Generator Parameteres](https://openapi-generator.tech/docs/generators/csharp-netcore) -- allowUnicodeIdentifiers: {{allowUnicodeIdentifiers}} -- apiName: {{apiName}} -- caseInsensitiveResponseHeaders: {{caseInsensitiveResponseHeaders}} -- conditionalSerialization: {{conditionalSerialization}} -- disallowAdditionalPropertiesIfNotPresent: {{disallowAdditionalPropertiesIfNotPresent}} -- gitHost: {{gitHost}} -- gitRepoId: {{gitRepoId}} -- gitUserId: {{gitUserId}} -- hideGenerationTimestamp: {{hideGenerationTimestamp}} -- interfacePrefix: {{interfacePrefix}} -- library: {{library}} -- licenseId: {{licenseId}} -- modelPropertyNaming: {{modelPropertyNaming}} -- netCoreProjectFile: {{netCoreProjectFile}} -- nonPublicApi: {{nonPublicApi}} -- nullableReferenceTypes: {{nullableReferenceTypes}} -- optionalAssemblyInfo: {{optionalAssemblyInfo}} -- optionalEmitDefaultValues: {{optionalEmitDefaultValues}} -- optionalMethodArgument: {{optionalMethodArgument}} -- optionalProjectFile: {{optionalProjectFile}} -- packageAuthors: {{packageAuthors}} -- packageCompany: {{packageCompany}} -- packageCopyright: {{packageCopyright}} -- packageDescription: {{packageDescription}} -- packageGuid: {{packageGuid}} -- packageName: {{packageName}} -- packageTags: {{packageTags}} -- packageTitle: {{packageTitle}} -- packageVersion: {{packageVersion}} -- releaseNote: {{releaseNote}} -- returnICollection: {{returnICollection}} -- sortParamsByRequiredFlag: {{sortParamsByRequiredFlag}} -- sourceFolder: {{sourceFolder}} -- targetFramework: {{targetFramework}} -- useCollection: {{useCollection}} -- useDateTimeOffset: {{useDateTimeOffset}} -- useOneOfDiscriminatorLookup: {{useOneOfDiscriminatorLookup}} -- validatable: {{validatable}}{{#infoUrl}} -For more information, please visit [{{{.}}}]({{{.}}}){{/infoUrl}} - -This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project.