├── .gitignore
├── .swagger-codegen-ignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── sdk
├── .doxygenconfig
├── .gitignore
├── .swagger-codegen
│ └── VERSION
├── DocuSign.eSign.sln
├── appveyor.yml
├── csharp-build.ps1
├── mono_nunit_test.sh
└── src
│ └── DocuSign.eSign
│ ├── Api
│ ├── AccountsApi.cs
│ ├── AuthenticationApi.cs
│ ├── BillingApi.cs
│ ├── BulkEnvelopesApi.cs
│ ├── BulkProcessDataApi.cs
│ ├── BulkProcessDataSendApi.cs
│ ├── CloudStorageApi.cs
│ ├── ConnectApi.cs
│ ├── CustomTabsApi.cs
│ ├── DiagnosticsApi.cs
│ ├── EmailArchiveApi.cs
│ ├── EnvelopesApi.cs
│ ├── FoldersApi.cs
│ ├── GroupsApi.cs
│ ├── NotaryApi.cs
│ ├── OrganizationsApi.cs
│ ├── PowerFormsApi.cs
│ ├── SigningGroupsApi.cs
│ ├── TemplatesApi.cs
│ ├── TrustServiceProvidersApi.cs
│ ├── UsersApi.cs
│ └── WorkspacesApi.cs
│ ├── Client
│ ├── ApiClient.cs
│ ├── ApiException.cs
│ ├── ApiResponse.cs
│ ├── Auth
│ │ └── OAuth.cs
│ ├── Configuration.cs
│ ├── DocuSignClient.cs
│ ├── DocuSignRequest.cs
│ ├── DocuSignResponse.cs
│ ├── ExceptionFactory.cs
│ ├── GlobalConfiguration.cs
│ ├── IApiAccessor.cs
│ ├── IHttpClient.cs
│ ├── IReadableConfiguration.cs
│ ├── SwaggerDateConverter.cs
│ └── SystemNetHttpClient.cs
│ ├── DocuSign.eSign.csproj
│ ├── Model
│ ├── AccessCodeFormat.cs
│ ├── AccountAddress.cs
│ ├── AccountBillingPlan.cs
│ ├── AccountBillingPlanResponse.cs
│ ├── AccountIdentityInputOption.cs
│ ├── AccountIdentityVerificationResponse.cs
│ ├── AccountIdentityVerificationStep.cs
│ ├── AccountIdentityVerificationWorkflow.cs
│ ├── AccountInformation.cs
│ ├── AccountMinimumPasswordLength.cs
│ ├── AccountNotification.cs
│ ├── AccountPasswordExpirePasswordDays.cs
│ ├── AccountPasswordLockoutDurationMinutes.cs
│ ├── AccountPasswordLockoutDurationType.cs
│ ├── AccountPasswordMinimumPasswordAgeDays.cs
│ ├── AccountPasswordQuestionsRequired.cs
│ ├── AccountPasswordRules.cs
│ ├── AccountPasswordStrengthType.cs
│ ├── AccountPasswordStrengthTypeOption.cs
│ ├── AccountRoleSettings.cs
│ ├── AccountSeals.cs
│ ├── AccountSettingsInformation.cs
│ ├── AccountSharedAccess.cs
│ ├── AccountSignature.cs
│ ├── AccountSignatureDefinition.cs
│ ├── AccountSignatureProvider.cs
│ ├── AccountSignatureProviderOption.cs
│ ├── AccountSignatureProviders.cs
│ ├── AccountSignaturesInformation.cs
│ ├── AccountUISettings.cs
│ ├── AddOn.cs
│ ├── AddressInformation.cs
│ ├── AddressInformationInput.cs
│ ├── AddressInformationV2.cs
│ ├── AdminMessage.cs
│ ├── Agent.cs
│ ├── ApiRequestLog.cs
│ ├── ApiRequestLogsResult.cs
│ ├── AppStoreProduct.cs
│ ├── AppStoreReceipt.cs
│ ├── Approve.cs
│ ├── AskAnAdmin.cs
│ ├── Attachment.cs
│ ├── AuthenticationMethod.cs
│ ├── AuthenticationStatus.cs
│ ├── AuthorizationUser.cs
│ ├── BccEmailAddress.cs
│ ├── BccEmailArchive.cs
│ ├── BccEmailArchiveHistory.cs
│ ├── BccEmailArchiveHistoryList.cs
│ ├── BccEmailArchiveList.cs
│ ├── BillingCharge.cs
│ ├── BillingChargeResponse.cs
│ ├── BillingDiscount.cs
│ ├── BillingEntityInformationResponse.cs
│ ├── BillingInvoice.cs
│ ├── BillingInvoiceItem.cs
│ ├── BillingInvoicesResponse.cs
│ ├── BillingInvoicesSummary.cs
│ ├── BillingPayment.cs
│ ├── BillingPaymentItem.cs
│ ├── BillingPaymentRequest.cs
│ ├── BillingPaymentResponse.cs
│ ├── BillingPaymentsResponse.cs
│ ├── BillingPlan.cs
│ ├── BillingPlanInformation.cs
│ ├── BillingPlanPreview.cs
│ ├── BillingPlanResponse.cs
│ ├── BillingPlanUpdateResponse.cs
│ ├── BillingPlansResponse.cs
│ ├── BillingPrice.cs
│ ├── Brand.cs
│ ├── BrandEmailContent.cs
│ ├── BrandLink.cs
│ ├── BrandLogos.cs
│ ├── BrandRequest.cs
│ ├── BrandResourceUrls.cs
│ ├── BrandResources.cs
│ ├── BrandResourcesList.cs
│ ├── BrandsRequest.cs
│ ├── BrandsResponse.cs
│ ├── BulkEnvelope.cs
│ ├── BulkEnvelopeStatus.cs
│ ├── BulkEnvelopesResponse.cs
│ ├── BulkProcessRequest.cs
│ ├── BulkProcessResponse.cs
│ ├── BulkProcessResult.cs
│ ├── BulkProcessingListSummaries.cs
│ ├── BulkProcessingListSummary.cs
│ ├── BulkProcessingLists.cs
│ ├── BulkRecipient.cs
│ ├── BulkRecipientSignatureProvider.cs
│ ├── BulkRecipientTabLabel.cs
│ ├── BulkRecipientsRequest.cs
│ ├── BulkRecipientsResponse.cs
│ ├── BulkRecipientsSummaryResponse.cs
│ ├── BulkRecipientsUpdateResponse.cs
│ ├── BulkSendBatchActionRequest.cs
│ ├── BulkSendBatchError.cs
│ ├── BulkSendBatchRequest.cs
│ ├── BulkSendBatchStatus.cs
│ ├── BulkSendBatchSummaries.cs
│ ├── BulkSendBatchSummary.cs
│ ├── BulkSendEnvelopesInfo.cs
│ ├── BulkSendErrorStatus.cs
│ ├── BulkSendRequest.cs
│ ├── BulkSendResponse.cs
│ ├── BulkSendTestResponse.cs
│ ├── BulkSendingCopy.cs
│ ├── BulkSendingCopyCustomField.cs
│ ├── BulkSendingCopyDocGenFormFieldRowValue.cs
│ ├── BulkSendingCopyRecipient.cs
│ ├── BulkSendingCopyTab.cs
│ ├── BulkSendingList.cs
│ ├── BulkSendingListSummaries.cs
│ ├── BulkSendingListSummary.cs
│ ├── BulksendingCopyDocGenFormField.cs
│ ├── CaptiveRecipient.cs
│ ├── CaptiveRecipientInformation.cs
│ ├── CarbonCopy.cs
│ ├── CertifiedDelivery.cs
│ ├── Checkbox.cs
│ ├── ChunkedUploadPart.cs
│ ├── ChunkedUploadRequest.cs
│ ├── ChunkedUploadResponse.cs
│ ├── CloudStorageProvider.cs
│ ├── CloudStorageProviders.cs
│ ├── Comment.cs
│ ├── CommentHistoryResult.cs
│ ├── CommentPublish.cs
│ ├── CommentThread.cs
│ ├── CommentsPublish.cs
│ ├── CommissionCounty.cs
│ ├── CommissionExpiration.cs
│ ├── CommissionNumber.cs
│ ├── CommissionState.cs
│ ├── Company.cs
│ ├── CompleteSignHashResponse.cs
│ ├── CompleteSignRequest.cs
│ ├── CompositeTemplate.cs
│ ├── ConciergeQueryRequest.cs
│ ├── ConciergeQueryResponse.cs
│ ├── ConditionalRecipientRule.cs
│ ├── ConditionalRecipientRuleCondition.cs
│ ├── ConditionalRecipientRuleFilter.cs
│ ├── ConnectConfigResults.cs
│ ├── ConnectCustomConfiguration.cs
│ ├── ConnectDebugLog.cs
│ ├── ConnectDeleteFailureResult.cs
│ ├── ConnectEventData.cs
│ ├── ConnectFailureFilter.cs
│ ├── ConnectFailureResult.cs
│ ├── ConnectFailureResults.cs
│ ├── ConnectHistoricalEnvelopeRepublish.cs
│ ├── ConnectLog.cs
│ ├── ConnectLogs.cs
│ ├── ConnectOAuthConfig.cs
│ ├── ConnectSalesforceField.cs
│ ├── ConnectSalesforceObject.cs
│ ├── ConnectUserInfo.cs
│ ├── ConnectUserObject.cs
│ ├── ConnectedData.cs
│ ├── ConnectedObjectDetails.cs
│ ├── ConnectionInstance.cs
│ ├── ConsentDetails.cs
│ ├── ConsoleViewRequest.cs
│ ├── ConsumerDisclosure.cs
│ ├── Contact.cs
│ ├── ContactGetResponse.cs
│ ├── ContactModRequest.cs
│ ├── ContactPhoneNumber.cs
│ ├── ContactUpdateResponse.cs
│ ├── CorrectViewRequest.cs
│ ├── Country.cs
│ ├── Credential.cs
│ ├── CreditCardInformation.cs
│ ├── CreditCardTypes.cs
│ ├── Currency.cs
│ ├── CurrencyFeatureSetPrice.cs
│ ├── CurrencyPlanPrice.cs
│ ├── CustomField.cs
│ ├── CustomFieldV2.cs
│ ├── CustomFields.cs
│ ├── CustomFieldsEnvelope.cs
│ ├── CustomSettingsInformation.cs
│ ├── Date.cs
│ ├── DateSigned.cs
│ ├── DateStampProperties.cs
│ ├── Decline.cs
│ ├── DelayedRouting.cs
│ ├── DelayedRoutingApiModel.cs
│ ├── DelegationInfo.cs
│ ├── DiagnosticsSettingsInformation.cs
│ ├── DirectDebitProcessorInformation.cs
│ ├── DisplayApplianceAccount.cs
│ ├── DisplayApplianceDocument.cs
│ ├── DisplayApplianceDocumentPage.cs
│ ├── DisplayApplianceEnvelope.cs
│ ├── DisplayApplianceInfo.cs
│ ├── DisplayAppliancePage.cs
│ ├── DisplayAppliancePdf.cs
│ ├── DisplayApplianceRecipient.cs
│ ├── DisplayApplianceSignerAttachment.cs
│ ├── DobInformationInput.cs
│ ├── DocGenFormField.cs
│ ├── DocGenFormFieldOption.cs
│ ├── DocGenFormFieldRequest.cs
│ ├── DocGenFormFieldResponse.cs
│ ├── DocGenFormFieldRowValue.cs
│ ├── DocGenFormFieldValidation.cs
│ ├── DocGenFormFields.cs
│ ├── DocGenSyntaxError.cs
│ ├── Document.cs
│ ├── DocumentFieldsInformation.cs
│ ├── DocumentHtmlCollapsibleDisplaySettings.cs
│ ├── DocumentHtmlDefinition.cs
│ ├── DocumentHtmlDefinitionOriginal.cs
│ ├── DocumentHtmlDefinitionOriginals.cs
│ ├── DocumentHtmlDefinitions.cs
│ ├── DocumentHtmlDisplayAnchor.cs
│ ├── DocumentHtmlDisplaySettings.cs
│ ├── DocumentSecurityStore.cs
│ ├── DocumentTemplate.cs
│ ├── DocumentTemplateList.cs
│ ├── DocumentUpdateInfo.cs
│ ├── DocumentVisibility.cs
│ ├── DocumentVisibilityList.cs
│ ├── DowngradRequestBillingInfoResponse.cs
│ ├── DowngradeBillingPlanInformation.cs
│ ├── DowngradePlanUpdateResponse.cs
│ ├── DowngradeRequestInformation.cs
│ ├── Draw.cs
│ ├── ENoteConfiguration.cs
│ ├── Editor.cs
│ ├── Email.cs
│ ├── EmailAddress.cs
│ ├── EmailSettings.cs
│ ├── Envelope.cs
│ ├── EnvelopeAttachment.cs
│ ├── EnvelopeAttachmentsRequest.cs
│ ├── EnvelopeAttachmentsResult.cs
│ ├── EnvelopeAuditEvent.cs
│ ├── EnvelopeAuditEventResponse.cs
│ ├── EnvelopeCustomMetadata.cs
│ ├── EnvelopeDefinition.cs
│ ├── EnvelopeDelayRule.cs
│ ├── EnvelopeDelayRuleApiModel.cs
│ ├── EnvelopeDocument.cs
│ ├── EnvelopeDocumentsResult.cs
│ ├── EnvelopeEvent.cs
│ ├── EnvelopeFormData.cs
│ ├── EnvelopeFormDataPrefillFormData.cs
│ ├── EnvelopeId.cs
│ ├── EnvelopeIdsRequest.cs
│ ├── EnvelopeMetadata.cs
│ ├── EnvelopeNotificationRequest.cs
│ ├── EnvelopePublishRequest.cs
│ ├── EnvelopePublishTransaction.cs
│ ├── EnvelopePublishTransactionErrorRollup.cs
│ ├── EnvelopePublishTransactionList.cs
│ ├── EnvelopePurgeConfiguration.cs
│ ├── EnvelopeSummary.cs
│ ├── EnvelopeTemplate.cs
│ ├── EnvelopeTemplateDefinition.cs
│ ├── EnvelopeTemplateResult.cs
│ ├── EnvelopeTemplateResults.cs
│ ├── EnvelopeTransactionStatus.cs
│ ├── EnvelopeTransferRule.cs
│ ├── EnvelopeTransferRuleInformation.cs
│ ├── EnvelopeTransferRuleRequest.cs
│ ├── EnvelopeUpdateSummary.cs
│ ├── EnvelopeViewDocumentSettings.cs
│ ├── EnvelopeViewEnvelopeCustomFieldSettings.cs
│ ├── EnvelopeViewRecipientSettings.cs
│ ├── EnvelopeViewRequest.cs
│ ├── EnvelopeViewSettings.cs
│ ├── EnvelopeViewTaggerSettings.cs
│ ├── EnvelopeViewTemplateSettings.cs
│ ├── EnvelopesInformation.cs
│ ├── ErrorDetails.cs
│ ├── EventNotification.cs
│ ├── EventResult.cs
│ ├── Expirations.cs
│ ├── ExtensionData.cs
│ ├── ExternalClaim.cs
│ ├── ExternalDocServiceErrorDetails.cs
│ ├── ExternalDocumentSources.cs
│ ├── ExternalFile.cs
│ ├── ExternalFolder.cs
│ ├── ExternalPrimaryAccountRecipientAuthRequirements.cs
│ ├── FavoriteTemplatesContentItem.cs
│ ├── FavoriteTemplatesInfo.cs
│ ├── FeatureAvailableMetadata.cs
│ ├── FeatureSet.cs
│ ├── FileType.cs
│ ├── FileTypeList.cs
│ ├── Filter.cs
│ ├── FirstName.cs
│ ├── Folder.cs
│ ├── FolderItem.cs
│ ├── FolderItemResponse.cs
│ ├── FolderItemV2.cs
│ ├── FolderItemsResponse.cs
│ ├── FolderSharedItem.cs
│ ├── FoldersRequest.cs
│ ├── FoldersResponse.cs
│ ├── ForgottenPasswordInformation.cs
│ ├── FormDataItem.cs
│ ├── FormulaTab.cs
│ ├── FullName.cs
│ ├── GraphicsContext.cs
│ ├── Group.cs
│ ├── GroupBrands.cs
│ ├── GroupInformation.cs
│ ├── IdCheckConfiguration.cs
│ ├── IdCheckInformationInput.cs
│ ├── IdCheckSecurityStep.cs
│ ├── IdEvidenceResourceToken.cs
│ ├── IdEvidenceViewLink.cs
│ ├── InPersonSigner.cs
│ ├── InitialHere.cs
│ ├── InlineTemplate.cs
│ ├── IntegratedConnectUserInfoList.cs
│ ├── IntegratedUserInfoList.cs
│ ├── Intermediary.cs
│ ├── Jurisdiction.cs
│ ├── JurisdictionSummary.cs
│ ├── LastName.cs
│ ├── LinkedExternalPrimaryAccount.cs
│ ├── List.cs
│ ├── ListCustomField.cs
│ ├── ListItem.cs
│ ├── LocalePolicy.cs
│ ├── LocalePolicyTab.cs
│ ├── LockInformation.cs
│ ├── LockRequest.cs
│ ├── LoginAccount.cs
│ ├── LoginInformation.cs
│ ├── MatchBox.cs
│ ├── MemberGroupSharedItem.cs
│ ├── MemberSharedItems.cs
│ ├── MergeField.cs
│ ├── MobileNotifierConfiguration.cs
│ ├── MobileNotifierConfigurationInformation.cs
│ ├── Money.cs
│ ├── NameValue.cs
│ ├── NewAccountDefinition.cs
│ ├── NewAccountSummary.cs
│ ├── NewUser.cs
│ ├── NewUsersDefinition.cs
│ ├── NewUsersSummary.cs
│ ├── Notarize.cs
│ ├── Notary.cs
│ ├── NotaryCertificate.cs
│ ├── NotaryContactDetails.cs
│ ├── NotaryHost.cs
│ ├── NotaryJournal.cs
│ ├── NotaryJournalCredibleWitness.cs
│ ├── NotaryJournalList.cs
│ ├── NotaryJournalMetaData.cs
│ ├── NotaryJurisdiction.cs
│ ├── NotaryJurisdictionList.cs
│ ├── NotaryRecipient.cs
│ ├── NotaryResult.cs
│ ├── NotarySeal.cs
│ ├── Note.cs
│ ├── Notification.cs
│ ├── NotificationDefaultSettings.cs
│ ├── NotificationDefaults.cs
│ ├── Number.cs
│ ├── Numerical.cs
│ ├── OauthAccess.cs
│ ├── OcrRequest.cs
│ ├── OfflineAttributes.cs
│ ├── Page.cs
│ ├── PageImages.cs
│ ├── PageRequest.cs
│ ├── PageSize.cs
│ ├── PaletteItemSettings.cs
│ ├── PaletteSettings.cs
│ ├── Participant.cs
│ ├── PathExtendedElement.cs
│ ├── PayPalLegacySettings.cs
│ ├── PaymentDetails.cs
│ ├── PaymentGatewayAccount.cs
│ ├── PaymentGatewayAccountSetting.cs
│ ├── PaymentGatewayAccountsInfo.cs
│ ├── PaymentLineItem.cs
│ ├── PaymentMethodWithOptions.cs
│ ├── PaymentProcessorInformation.cs
│ ├── PaymentSignerValues.cs
│ ├── PermissionProfile.cs
│ ├── PermissionProfileInformation.cs
│ ├── PhoneNumber.cs
│ ├── PlanInformation.cs
│ ├── PolyLine.cs
│ ├── PolyLineOverlay.cs
│ ├── PowerForm.cs
│ ├── PowerFormFormDataEnvelope.cs
│ ├── PowerFormFormDataRecipient.cs
│ ├── PowerFormRecipient.cs
│ ├── PowerFormSendersResponse.cs
│ ├── PowerFormsFormDataResponse.cs
│ ├── PowerFormsRequest.cs
│ ├── PowerFormsResponse.cs
│ ├── PrefillFormData.cs
│ ├── PrefillTabs.cs
│ ├── ProofServiceResourceToken.cs
│ ├── ProofServiceViewLink.cs
│ ├── PropertyMetadata.cs
│ ├── Province.cs
│ ├── ProvisioningInformation.cs
│ ├── PurchasedEnvelopesInformation.cs
│ ├── Radio.cs
│ ├── RadioGroup.cs
│ ├── RecipientAdditionalNotification.cs
│ ├── RecipientAttachment.cs
│ ├── RecipientDomain.cs
│ ├── RecipientEmail.cs
│ ├── RecipientEmailNotification.cs
│ ├── RecipientEvent.cs
│ ├── RecipientFormData.cs
│ ├── RecipientGroup.cs
│ ├── RecipientIdentityInputOption.cs
│ ├── RecipientIdentityPhoneNumber.cs
│ ├── RecipientIdentityVerification.cs
│ ├── RecipientNamesResponse.cs
│ ├── RecipientOption.cs
│ ├── RecipientPhoneAuthentication.cs
│ ├── RecipientPhoneNumber.cs
│ ├── RecipientPreviewRequest.cs
│ ├── RecipientProofFile.cs
│ ├── RecipientRouting.cs
│ ├── RecipientRules.cs
│ ├── RecipientSAMLAuthentication.cs
│ ├── RecipientSMSAuthentication.cs
│ ├── RecipientSignatureInformation.cs
│ ├── RecipientSignatureProvider.cs
│ ├── RecipientSignatureProviderOptions.cs
│ ├── RecipientTokenClientURLs.cs
│ ├── RecipientUpdateResponse.cs
│ ├── RecipientViewRequest.cs
│ ├── Recipients.cs
│ ├── RecipientsUpdateSummary.cs
│ ├── ReferralInformation.cs
│ ├── Reminders.cs
│ ├── ReportInProductCsvRunRequest.cs
│ ├── ReportInProductField.cs
│ ├── ReportInProductGet.cs
│ ├── ReportInProductList.cs
│ ├── ReportInProductListItem.cs
│ ├── ReportInProductRunRequest.cs
│ ├── ReportInProductRunResponse.cs
│ ├── ReportInProductRunResponseRow.cs
│ ├── ReportInProductRunResponseRowFields.cs
│ ├── ReportInProductSaveResponse.cs
│ ├── ReportInProductSentByDetails.cs
│ ├── ReservedDomainExistence.cs
│ ├── ResourceInformation.cs
│ ├── ReturnUrlRequest.cs
│ ├── Revision.cs
│ ├── SamlAssertionAttribute.cs
│ ├── ScheduledSending.cs
│ ├── ScheduledSendingApiModel.cs
│ ├── Seal.cs
│ ├── SealIdentifier.cs
│ ├── SealSign.cs
│ ├── SeatDiscount.cs
│ ├── Sender.cs
│ ├── SenderCompany.cs
│ ├── SenderEmailNotifications.cs
│ ├── SenderName.cs
│ ├── ServerTemplate.cs
│ ├── ServiceInformation.cs
│ ├── ServiceVersion.cs
│ ├── SettingsMetadata.cs
│ ├── SharedItem.cs
│ ├── SignHashDocument.cs
│ ├── SignHashSessionInfoResponse.cs
│ ├── SignHere.cs
│ ├── SignSessionInfoRequest.cs
│ ├── SignatureDataInfo.cs
│ ├── SignatureGroup.cs
│ ├── SignatureGroupDef.cs
│ ├── SignatureProperties.cs
│ ├── SignatureProviderRequiredOption.cs
│ ├── SignatureType.cs
│ ├── SignatureUser.cs
│ ├── SignatureUserDef.cs
│ ├── Signer.cs
│ ├── SignerAttachment.cs
│ ├── SignerEmailNotifications.cs
│ ├── SigningGroup.cs
│ ├── SigningGroupInformation.cs
│ ├── SigningGroupUser.cs
│ ├── SigningGroupUsers.cs
│ ├── SmartContractInformation.cs
│ ├── SmartSection.cs
│ ├── SmartSectionAnchorPosition.cs
│ ├── SmartSectionCollapsibleDisplaySettings.cs
│ ├── SmartSectionDisplaySettings.cs
│ ├── SocialAccountInformation.cs
│ ├── SocialAuthentication.cs
│ ├── Ssn.cs
│ ├── Ssn4InformationInput.cs
│ ├── Ssn9InformationInput.cs
│ ├── Stamp.cs
│ ├── SupportedLanguages.cs
│ ├── TabAccountSettings.cs
│ ├── TabGroup.cs
│ ├── TabMetadata.cs
│ ├── TabMetadataList.cs
│ ├── Tabs.cs
│ ├── TemplateAutoMatch.cs
│ ├── TemplateAutoMatchList.cs
│ ├── TemplateCustomFields.cs
│ ├── TemplateDocumentVisibilityList.cs
│ ├── TemplateDocumentsResult.cs
│ ├── TemplateInformation.cs
│ ├── TemplateMatch.cs
│ ├── TemplateNotificationRequest.cs
│ ├── TemplateRecipients.cs
│ ├── TemplateRole.cs
│ ├── TemplateSharedItem.cs
│ ├── TemplateSummary.cs
│ ├── TemplateTabs.cs
│ ├── TemplateUpdateSummary.cs
│ ├── TemplateViewRequest.cs
│ ├── Text.cs
│ ├── TextCustomField.cs
│ ├── TimeStampField.cs
│ ├── Title.cs
│ ├── TspHealthCheckRequest.cs
│ ├── TspHealthCheckStatusDescription.cs
│ ├── UpdateTransactionRequest.cs
│ ├── UpdateTransactionResponse.cs
│ ├── UsageHistory.cs
│ ├── User.cs
│ ├── UserAccountManagementGranularInformation.cs
│ ├── UserAuthorization.cs
│ ├── UserAuthorizationCreateRequest.cs
│ ├── UserAuthorizationCreateRequestWithId.cs
│ ├── UserAuthorizationIdWithStatus.cs
│ ├── UserAuthorizationUpdateRequest.cs
│ ├── UserAuthorizationWithStatus.cs
│ ├── UserAuthorizations.cs
│ ├── UserAuthorizationsDeleteRequest.cs
│ ├── UserAuthorizationsDeleteResponse.cs
│ ├── UserAuthorizationsRequest.cs
│ ├── UserAuthorizationsResponse.cs
│ ├── UserInfo.cs
│ ├── UserInfoList.cs
│ ├── UserInfoResponse.cs
│ ├── UserInformation.cs
│ ├── UserInformationList.cs
│ ├── UserPasswordInformation.cs
│ ├── UserPasswordRules.cs
│ ├── UserProfile.cs
│ ├── UserSettingsInformation.cs
│ ├── UserSharedItem.cs
│ ├── UserSignature.cs
│ ├── UserSignatureDefinition.cs
│ ├── UserSignaturesInformation.cs
│ ├── UserSocialIdResult.cs
│ ├── UsersResponse.cs
│ ├── View.cs
│ ├── ViewLinkRequest.cs
│ ├── ViewUrl.cs
│ ├── Watermark.cs
│ ├── Witness.cs
│ ├── Workflow.cs
│ ├── WorkflowStep.cs
│ ├── Workspace.cs
│ ├── WorkspaceFolderContents.cs
│ ├── WorkspaceItem.cs
│ ├── WorkspaceItemList.cs
│ ├── WorkspaceList.cs
│ ├── WorkspaceSettings.cs
│ ├── WorkspaceUser.cs
│ ├── WorkspaceUserAuthorization.cs
│ └── Zip.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ └── icon.png
└── test
├── .gitignore
├── SdkNetCoreTests
├── AccountApiNetCoreUnitTests.cs
├── CreateEnvelopeMethod.cs
├── CustomClientUnitTests.cs
├── DiagnosticApiNetCoreUnitTests.cs
├── EnvelopesApiNetCoreUnitTests.cs
├── FoldersApiNetCoreUnitTests.cs
├── JwtAuthNetCoreUnitTests.cs
├── JwtLoginMethod.cs
├── SdkNetCoreTests.csproj
├── TemplatesApiNetCoreUnitTests.cs
├── TestConfig.cs
├── UsersApiNetCoreUnitTests.cs
└── docs
│ ├── SignTest1.docx
│ ├── SignTest1.pdf
│ └── SignTest2.pdf
├── SdkTests.sln
├── SdkTests
├── AccountApiUnitTests.cs
├── CreateEnvelopeMethod.cs
├── CustomClientUnitTests.cs
├── DiagnosticApiUnitTests.cs
├── EnvelopesApiUnitTests.cs
├── FoldersApiUnitTests.cs
├── JwtAuthUnitTests.cs
├── JwtLoginMethod.cs
├── Properties
│ └── AssemblyInfo.cs
├── SdkTests.csproj
├── TemplatesApiUnitTests.cs
├── TestConfig.cs
├── TestConfig.cs.sample
├── UsersApiUnitTests.cs
├── app.config
├── docs
│ ├── SignTest1.docx
│ └── SignTest1.pdf
└── packages.config
└── SdkTests462
├── AccountsApiUnitTests.cs
├── CreateEnvelopeMethod.cs
├── CustomClientUnitTests.cs
├── DiagnosticApiUnitTests.cs
├── EnvelopesApiUnitTests.cs
├── FoldersApiUnitTests.cs
├── JwtAuthUnitTests.cs
├── JwtLoginMethod.cs
├── Properties
└── AssemblyInfo.cs
├── SdkTests462.csproj
├── TemplatesApiUnitTests.cs
├── TestConfig.cs
├── UsersApiUnitTests.cs
├── app.config
├── docs
├── SignTest1.docx
└── SignTest1.pdf
└── packages.config
/.gitignore:
--------------------------------------------------------------------------------
1 | # Ref: https://gist.github.com/kmorcinek/2710267
2 | # Download this file using PowerShell v3 under Windows with the following comand
3 | # Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
4 |
5 | # User-specific files
6 | *.suo
7 | *.user
8 | *.sln.docstates
9 | *.vs
10 | *.vscode
11 | ./nuget
12 |
13 | # Build results
14 |
15 | [Dd]ebug/
16 | [Rr]elease/
17 | x64/
18 | build/
19 | [Bb]in/
20 | [Oo]bj/
21 |
22 | # NuGet Packages
23 | *.nupkg
24 | # The packages folder can be ignored because of Package Restore
25 | **/packages/*
26 | # except build/, which is used as an MSBuild target.
27 | !**/packages/build/
28 | # Uncomment if necessary however generally it will be regenerated when needed
29 | #!**/packages/repositories.config
30 |
31 | # MSTest test Results
32 | [Tt]est[Rr]esult*/
33 | [Bb]uild[Ll]og.*
34 |
35 | *_i.c
36 | *_p.c
37 | *.ilk
38 | *.meta
39 | *.obj
40 | *.pch
41 | *.pdb
42 | *.pgc
43 | *.pgd
44 | *.rsp
45 | *.sbr
46 | *.tlb
47 | *.tli
48 | *.tlh
49 | *.tmp
50 | *.tmp_proj
51 | *.log
52 | *.vspscc
53 | *.vssscc
54 | .builds
55 | *.pidb
56 | *.log
57 | *.scc
58 |
59 | # OS generated files #
60 | .DS_Store*
61 | ehthumbs.db
62 | Icon?
63 | Thumbs.db
64 |
65 | # Visual C++ cache files
66 | ipch/
67 | *.aps
68 | *.ncb
69 | *.opensdf
70 | *.sdf
71 | *.cachefile
72 |
73 | # Visual Studio profiler
74 | *.psess
75 | *.vsp
76 | *.vspx
77 |
78 | # Guidance Automation Toolkit
79 | *.gpState
80 |
81 | # ReSharper is a .NET coding add-in
82 | _ReSharper*/
83 | *.[Rr]e[Ss]harper
84 |
85 | # TeamCity is a build add-in
86 | _TeamCity*
87 |
88 | # DotCover is a Code Coverage Tool
89 | *.dotCover
90 |
91 | # NCrunch
92 | *.ncrunch*
93 | .*crunch*.local.xml
94 |
95 | # Installshield output folder
96 | [Ee]xpress/
97 |
98 | # DocProject is a documentation generator add-in
99 | DocProject/buildhelp/
100 | DocProject/Help/*.HxT
101 | DocProject/Help/*.HxC
102 | DocProject/Help/*.hhc
103 | DocProject/Help/*.hhk
104 | DocProject/Help/*.hhp
105 | DocProject/Help/Html2
106 | DocProject/Help/html
107 |
108 | # Click-Once directory
109 | publish/
110 |
111 | # Publish Web Output
112 | *.Publish.xml
113 |
114 | # Windows Azure Build Output
115 | csx
116 | *.build.csdef
117 |
118 | # Windows Store app package directory
119 | AppPackages/
120 |
121 | # Others
122 | sql/
123 | *.Cache
124 | ClientBin/
125 | [Ss]tyle[Cc]op.*
126 | ~$*
127 | *~
128 | *.dbmdl
129 | *.[Pp]ublish.xml
130 | *.pfx
131 | *.publishsettings
132 | modulesbin/
133 | tempbin/
134 |
135 | # EPiServer Site file (VPP)
136 | AppData/
137 |
138 | # RIA/Silverlight projects
139 | Generated_Code/
140 |
141 | # Backup & report files from converting an old project file to a newer
142 | # Visual Studio version. Backup files are not needed, because we have git ;-)
143 | _UpgradeReport_Files/
144 | Backup*/
145 | UpgradeLog*.XML
146 | UpgradeLog*.htm
147 |
148 | # vim
149 | *.txt~
150 | *.swp
151 | *.swo
152 |
153 | # svn
154 | .svn
155 |
156 | # SQL Server files
157 | **/App_Data/*.mdf
158 | **/App_Data/*.ldf
159 | **/App_Data/*.sdf
160 |
161 |
162 | #LightSwitch generated files
163 | GeneratedArtifacts/
164 | _Pvt_Extensions/
165 | ModelManifest.xml
166 |
167 | # =========================
168 | # Windows detritus
169 | # =========================
170 |
171 | # Windows image file caches
172 | Thumbs.db
173 | ehthumbs.db
174 |
175 | # Folder config file
176 | Desktop.ini
177 |
178 | # Recycle Bin used on file shares
179 | $RECYCLE.BIN/
180 |
181 | # Mac desktop service store files
182 | .DS_Store
183 |
184 | # SASS Compiler cache
185 | .sass-cache
186 |
187 | # Visual Studio 2014 CTP
188 | **/*.sln.ide
189 |
190 |
191 | # =========================
192 | # Project Specific Files
193 | # =========================
194 |
195 | **/DocuSign.Maestro/packages.config
196 | sdk/.swagger-codegen-ignore
197 | sdk/build.sh
198 | sdk/.travis.yml
199 | sdk/git_push.sh
200 | sdk/build.bat
201 | **/*.pubxml
202 | *.snk
--------------------------------------------------------------------------------
/.swagger-codegen-ignore:
--------------------------------------------------------------------------------
1 | # Swagger Codegen Ignore
2 |
3 | # Use this file to prevent files from being overwritten by the generator.
4 | # The patterns follow closely to .gitignore or .dockerignore.
5 |
6 | # As an example, the C# client generator defines ApiClient.cs.
7 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
8 | #ApiClient.cs
9 |
10 | # You can match any string of characters against a directory, file or extension with a single asterisk (*):
11 | #foo/*/qux
12 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
13 |
14 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
15 | #foo/**/qux
16 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
17 |
18 | # You can also negate patterns with an exclamation (!).
19 | # For example, you can ignore all files in a docs folder with the file extension .md:
20 | #docs/*.md
21 | # Then explicitly reverse the ignore rule for a single file:
22 | #!docs/README.md
23 |
24 | # Swagger and Git files
25 | .swagger-codegen-ignore
26 | .gitignore
27 | CHANGELOG.md
28 | README.md
29 | sdk/git_push.sh
30 | sdk/.swagger-codegen-ignore
31 | sdk/.gitignore
32 | sdk/README.md
33 | sdk/CHANGELOG.md
34 | sdk/best_practices.md
35 |
36 | # Project files
37 | LICENSE
38 | sdk/.travis.yml
39 | sdk/appveyor.yml
40 | sdk/DocuSign.eSign.sln
41 | sdk/build.bat
42 | sdk/build.sh
43 | sdk/csharp-build.ps1
44 | sdk/mono_nunit_test.sh
45 |
46 | # Specific src and test files
47 | src/DocuSign.eSign/packages.config
48 | # src/DocuSign.eSign/Api/EnvelopesApi.cs
49 |
50 | # Nuspec files
51 | src/**/*.nuspec
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2021 - Docusign, Inc. (https://www.docusign.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/sdk/.gitignore:
--------------------------------------------------------------------------------
1 | # Ref: https://gist.github.com/kmorcinek/2710267
2 | # Download this file using PowerShell v3 under Windows with the following comand
3 | # Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
4 |
5 | # User-specific files
6 | *.suo
7 | *.user
8 | *.sln.docstates
9 | *.vs
10 |
11 | # Build results
12 |
13 | [Dd]ebug/
14 | [Rr]elease/
15 | x64/
16 | build/
17 | [Bb]in/
18 | [Oo]bj/
19 |
20 | # NuGet Packages
21 | *.nupkg
22 | # The packages folder can be ignored because of Package Restore
23 | **/packages/*
24 | # except build/, which is used as an MSBuild target.
25 | !**/packages/build/
26 | # Uncomment if necessary however generally it will be regenerated when needed
27 | #!**/packages/repositories.config
28 |
29 | # MSTest test Results
30 | [Tt]est[Rr]esult*/
31 | [Bb]uild[Ll]og.*
32 |
33 | *_i.c
34 | *_p.c
35 | *.ilk
36 | *.meta
37 | *.obj
38 | *.pch
39 | *.pdb
40 | *.pgc
41 | *.pgd
42 | *.rsp
43 | *.sbr
44 | *.tlb
45 | *.tli
46 | *.tlh
47 | *.tmp
48 | *.tmp_proj
49 | *.log
50 | *.vspscc
51 | *.vssscc
52 | .builds
53 | *.pidb
54 | *.log
55 | *.scc
56 |
57 | # OS generated files #
58 | .DS_Store*
59 | ehthumbs.db
60 | Icon?
61 | Thumbs.db
62 |
63 | # Visual C++ cache files
64 | ipch/
65 | *.aps
66 | *.ncb
67 | *.opensdf
68 | *.sdf
69 | *.cachefile
70 |
71 | # Visual Studio profiler
72 | *.psess
73 | *.vsp
74 | *.vspx
75 |
76 | # Guidance Automation Toolkit
77 | *.gpState
78 |
79 | # ReSharper is a .NET coding add-in
80 | _ReSharper*/
81 | *.[Rr]e[Ss]harper
82 |
83 | # TeamCity is a build add-in
84 | _TeamCity*
85 |
86 | # DotCover is a Code Coverage Tool
87 | *.dotCover
88 |
89 | # NCrunch
90 | *.ncrunch*
91 | .*crunch*.local.xml
92 |
93 | # Installshield output folder
94 | [Ee]xpress/
95 |
96 | # DocProject is a documentation generator add-in
97 | DocProject/buildhelp/
98 | DocProject/Help/*.HxT
99 | DocProject/Help/*.HxC
100 | DocProject/Help/*.hhc
101 | DocProject/Help/*.hhk
102 | DocProject/Help/*.hhp
103 | DocProject/Help/Html2
104 | DocProject/Help/html
105 |
106 | # Click-Once directory
107 | publish/
108 |
109 | # Publish Web Output
110 | *.Publish.xml
111 |
112 | # Windows Azure Build Output
113 | csx
114 | *.build.csdef
115 |
116 | # Windows Store app package directory
117 | AppPackages/
118 |
119 | # Others
120 | sql/
121 | *.Cache
122 | ClientBin/
123 | [Ss]tyle[Cc]op.*
124 | ~$*
125 | *~
126 | *.dbmdl
127 | *.[Pp]ublish.xml
128 | *.pfx
129 | *.publishsettings
130 | modulesbin/
131 | tempbin/
132 |
133 | # EPiServer Site file (VPP)
134 | AppData/
135 |
136 | # RIA/Silverlight projects
137 | Generated_Code/
138 |
139 | # Backup & report files from converting an old project file to a newer
140 | # Visual Studio version. Backup files are not needed, because we have git ;-)
141 | _UpgradeReport_Files/
142 | Backup*/
143 | UpgradeLog*.XML
144 | UpgradeLog*.htm
145 |
146 | # vim
147 | *.txt~
148 | *.swp
149 | *.swo
150 |
151 | # svn
152 | .svn
153 |
154 | # SQL Server files
155 | **/App_Data/*.mdf
156 | **/App_Data/*.ldf
157 | **/App_Data/*.sdf
158 |
159 |
160 | #LightSwitch generated files
161 | GeneratedArtifacts/
162 | _Pvt_Extensions/
163 | ModelManifest.xml
164 |
165 | # =========================
166 | # Windows detritus
167 | # =========================
168 |
169 | # Windows image file caches
170 | Thumbs.db
171 | ehthumbs.db
172 |
173 | # Folder config file
174 | Desktop.ini
175 |
176 | # Recycle Bin used on file shares
177 | $RECYCLE.BIN/
178 |
179 | # Mac desktop service store files
180 | .DS_Store
181 |
182 | # SASS Compiler cache
183 | .sass-cache
184 |
185 | # Visual Studio 2014 CTP
186 | **/*.sln.ide
187 |
--------------------------------------------------------------------------------
/sdk/.swagger-codegen/VERSION:
--------------------------------------------------------------------------------
1 | 2.4.21
--------------------------------------------------------------------------------
/sdk/DocuSign.eSign.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2012
3 | VisualStudioVersion = 12.0.0.0
4 | MinimumVisualStudioVersion = 10.0.0.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocuSign.eSign", "src\DocuSign.eSign\DocuSign.eSign.csproj", "{1DC3A90B-4AB0-4044-8744-59BD52F9ADC9}"
6 | EndProject
7 | Global
8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
9 | Debug|Any CPU = Debug|Any CPU
10 | Release|Any CPU = Release|Any CPU
11 | EndGlobalSection
12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
13 | {1DC3A90B-4AB0-4044-8744-59BD52F9ADC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14 | {1DC3A90B-4AB0-4044-8744-59BD52F9ADC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
15 | {1DC3A90B-4AB0-4044-8744-59BD52F9ADC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
16 | {1DC3A90B-4AB0-4044-8744-59BD52F9ADC9}.Release|Any CPU.Build.0 = Release|Any CPU
17 | EndGlobalSection
18 | GlobalSection(SolutionProperties) = preSolution
19 | HideSolutionNode = FALSE
20 | EndGlobalSection
21 | EndGlobal
--------------------------------------------------------------------------------
/sdk/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: 4.0.0.{build}
2 | image: Visual Studio 2017
3 | branches:
4 | only:
5 | - master
6 | build_script:
7 | - ps: . ./csharp-build.ps1
8 | test_script:
9 | - ps: >-
10 | nuget install ./test/SdkTests/packages.config -OutputDirectory ./test/packages
11 |
12 | dotnet build --framework net45 ./test/SdkTests/SdkTests.csproj
13 |
14 | dotnet build --framework netcoreapp2.0 ./test/SdkNetCoreTests/SdkNetCoreTests.csproj
15 |
16 | dotnet test ./test/SdkTests/SdkTests.csproj
17 |
18 | dotnet test ./test/SdkNetCoreTests/SdkNetCoreTests.csproj
--------------------------------------------------------------------------------
/sdk/csharp-build.ps1:
--------------------------------------------------------------------------------
1 | try
2 | {
3 | Write-Host "`nCleaning DocuSign.eSign!" -ForegroundColor Yellow
4 | msbuild ./sdk/src/DocuSign.eSign/DocuSign.eSign.csproj /t:clean /verbosity:minimal
5 | if ($lastExitCode -ne 0) { exit $lastExitCode }
6 |
7 | Write-Host "Restore DocuSign.eSign" -ForegroundColor Yellow
8 | msbuild ./sdk/src/DocuSign.eSign/DocuSign.eSign.csproj /t:restore /p:TargetFramework=net45 /verbosity:minimal
9 | if ($lastExitCode -ne 0) { exit $lastExitCode }
10 |
11 | Write-Host "`nBuilding DocuSign.eSign for Net45" -ForegroundColor Yellow
12 | msbuild ./sdk/src/DocuSign.eSign/DocuSign.eSign.csproj /p:TargetFramework=net45 /p:Configuration=Debug /verbosity:minimal
13 | if ($lastExitCode -ne 0) { exit $lastExitCode }
14 |
15 | Write-Host "`nRestore DocuSign.eSign for NetStandard2.0" -ForegroundColor Yellow
16 | msbuild ./sdk/src/DocuSign.eSign/DocuSign.eSign.csproj /t:restore /p:TargetFramework=netstandard2.0 /verbosity:minimal
17 | if ($lastExitCode -ne 0) { exit $lastExitCode }
18 |
19 | Write-Host "`nBuilding DocuSign.eSign for NetStandard2.0" -ForegroundColor Yellow
20 | msbuild ./sdk/src/DocuSign.eSign/DocuSign.eSign.csproj /p:TargetFramework=netstandard2.0 /p:Configuration=Debug /verbosity:minimal
21 | if ($lastExitCode -ne 0) { exit $lastExitCode }
22 | }
23 | catch {
24 | Write-Host "`nSomething went wrong!" -ForegroundColor Red
25 | Write-Host "`nException Type: $($_.Exception.GetType().FullName)" -ForegroundColor Red
26 | Write-Host "`nException Message: $($_.Exception.Message)" -ForegroundColor Red
27 | exit 1
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/mono_nunit_test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | #
3 | # Generated by: https://github.com/swagger-api/swagger-codegen.git
4 | #
5 |
6 | wget -nc https://nuget.org/nuget.exe
7 | mozroots --import --sync
8 |
9 | echo "[INFO] remove bin/Debug/SwaggerClientTest.dll"
10 | rm src/IO.Swagger.Test/bin/Debug/DocuSign.eSign.Test.dll 2> /dev/null
11 |
12 | echo "[INFO] install NUnit runners via NuGet"
13 | wget -nc https://nuget.org/nuget.exe
14 | mozroots --import --sync
15 | mono nuget.exe install src/DocuSign.eSign.Test/packages.config -o packages
16 |
17 | echo "[INFO] Install NUnit runners via NuGet"
18 | mono nuget.exe install NUnit.Runners -Version 2.6.4 -OutputDirectory packages
19 |
20 | echo "[INFO] Build the solution and run the unit test"
21 | xbuild DocuSign.eSign.sln && \
22 | mono ./packages/NUnit.Runners.2.6.4/tools/nunit-console.exe src/DocuSign.eSign.Test/bin/Debug/DocuSign.eSign.Test.dll
23 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/ApiClient.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Net;
13 | using System.Net.Http;
14 |
15 | namespace DocuSign.eSign.Client
16 | {
17 | ///
18 | /// API client is mainly responsible for making the HTTP call to the API backend.
19 | ///
20 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient instead.", false)]
21 | public class ApiClient : DocuSignClient
22 | {
23 | ///
24 | /// Initializes a new instance of the class
25 | /// with default configuration and base path (https://demo.docusign.net/restapi).
26 | ///
27 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient() instead.", false)]
28 | public ApiClient() : base() { }
29 |
30 | ///
31 | /// Initializes a new instance of the class
32 | /// with default base path (https://demo.docusign.net/restapi).
33 | ///
34 | /// An instance of Configuration.
35 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(Configuration) instead.", false)]
36 | public ApiClient(Configuration configuration) : base(configuration) { }
37 |
38 | ///
39 | /// Initializes a new instance of the class
40 | /// with default configuration.
41 | ///
42 | /// The base path.
43 | /// An optional WebProxy instance.
44 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(string, IWebProxy) instead.", false)]
45 | public ApiClient(String apiBase, IWebProxy proxy = null) : base(apiBase, proxy) { }
46 |
47 | ///
48 | /// Initializes a new instance of the class
49 | /// with default configuration.
50 | ///
51 | /// The base path.
52 | /// The oAuth base path.
53 | /// An optional WebProxy instance.
54 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(String, String, WebProxy) instead.", false)]
55 | public ApiClient(String apiBase, String oAuthBase, IWebProxy proxy = null) : base(apiBase, oAuthBase, proxy) { }
56 | }
57 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/ApiException.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 |
12 | using System;
13 | using System.Collections.Generic;
14 | using System.Linq;
15 |
16 | namespace DocuSign.eSign.Client
17 | {
18 | ///
19 | /// API Exception
20 | ///
21 | public class ApiException : Exception
22 | {
23 | ///
24 | /// Gets or sets the error code (HTTP status code)
25 | ///
26 | /// The error code (HTTP status code).
27 | public int ErrorCode { get; set; }
28 |
29 | ///
30 | /// Gets or sets the error content (body json object)
31 | ///
32 | /// The error content (Http response body).
33 | public dynamic ErrorContent { get; private set; }
34 |
35 | ///
36 | /// Gets or sets the error message
37 | ///
38 | /// The error message.
39 | public string ErrorMessage { get; set; }
40 |
41 | ///
42 | /// Gets or sets the HTTP headers
43 | ///
44 | /// HTTP headers
45 | public IDictionary Headers { get; private set; }
46 |
47 | ///
48 | /// Initializes a new instance of the class.
49 | ///
50 | public ApiException() { }
51 |
52 | ///
53 | /// Initializes a new instance of the class.
54 | ///
55 | /// HTTP status code.
56 | /// Error message.
57 | public ApiException(int errorCode, string message) : base(message)
58 | {
59 | this.ErrorCode = errorCode;
60 | this.ErrorMessage = message;
61 | }
62 |
63 | ///
64 | /// Initializes a new instance of the class.
65 | ///
66 | /// HTTP status code.
67 | /// Error message.
68 | /// Error content.
69 | /// DocuSignResponse object.
70 | public ApiException(int errorCode, string message, dynamic errorContent = null, DocuSignResponse response = null) : base(response.Exception?.Message ?? message, response.Exception?.InnerException)
71 | {
72 | this.ErrorCode = errorCode;
73 | this.ErrorContent = errorContent;
74 | if (response != null && response.Headers != null)
75 | {
76 | this.ErrorMessage = response.ErrorMessage;
77 | this.Headers = response.Headers.ToDictionary(x => x.Key, x => x.Value.ToString());
78 | }
79 | }
80 | }
81 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/ApiResponse.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 |
14 | namespace DocuSign.eSign.Client
15 | {
16 | ///
17 | /// API Response
18 | ///
19 | public class ApiResponse
20 | {
21 | ///
22 | /// Gets or sets the status code (HTTP status code)
23 | ///
24 | /// The status code.
25 | public int StatusCode { get; private set; }
26 |
27 | ///
28 | /// Gets or sets the HTTP headers
29 | ///
30 | /// HTTP headers
31 | public IDictionary Headers { get; private set; }
32 |
33 | ///
34 | /// Gets or sets the data (parsed HTTP body)
35 | ///
36 | /// The data.
37 | public T Data { get; private set; }
38 |
39 | ///
40 | /// Initializes a new instance of the class.
41 | ///
42 | /// HTTP status code.
43 | /// HTTP headers.
44 | /// Data (parsed HTTP body)
45 | public ApiResponse(int statusCode, IDictionary headers, T data)
46 | {
47 | this.StatusCode= statusCode;
48 | this.Headers = headers;
49 | this.Data = data;
50 | }
51 |
52 | }
53 |
54 | }
55 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/DocuSignRequest.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.Linq;
14 | using System.Net.Http;
15 | using System.Text;
16 | using System.Threading.Tasks;
17 |
18 | namespace DocuSign.eSign.Client
19 | {
20 | public class FileParameter
21 | {
22 | public FileParameter(string name, string fileName, string contentDisposition, byte[] content)
23 | {
24 | Name = name;
25 | FileName = fileName;
26 | ContentDisposition = contentDisposition;
27 | Content = content;
28 | }
29 |
30 | public string Name { get; set; }
31 |
32 | public string FileName { get; set; }
33 |
34 | public string ContentDisposition { get; set; }
35 |
36 | public byte[] Content { get; set; }
37 |
38 | }
39 |
40 | public class DocuSignRequest
41 | {
42 | public HttpMethod Method { get; }
43 |
44 | public string Url { get; }
45 |
46 | public Object BodyContent { get; set; }
47 |
48 | public String ContentType { get; set; }
49 |
50 | public String ContentDisposition { get; set; }
51 |
52 | ///
53 | /// Query parameters
54 | ///
55 | public List> QueryParams { get; private set; }
56 |
57 | ///
58 | /// Post parameters
59 | ///
60 | public List> PostParams { get; private set; }
61 |
62 | ///
63 | /// Header parameters
64 | ///
65 | public List> HeaderParams { get; private set; }
66 |
67 | ///
68 | /// Path parameters
69 | ///
70 | public List> PathParams { get; private set; }
71 |
72 | public List FileParams { get; private set; }
73 |
74 | public DocuSignRequest(HttpMethod method, string path) : this(method, path, null, null, null, null, null, null, null, null) { }
75 |
76 | public DocuSignRequest(HttpMethod method, string path, string contentType) : this(method, path, null, null, null, null, null, null, contentType, null) { }
77 |
78 | public DocuSignRequest(HttpMethod method, string path, List> queryParams = null, Object bodyContent = null,
79 | List> headerParams = null, List> postParams = null, List> pathParams = null,
80 | List fileParams = null, string contentType = null, string contentDisposition = null)
81 | {
82 | Method = method;
83 |
84 | Url = path;
85 | ContentType = contentType;
86 | ContentDisposition = contentDisposition;
87 | BodyContent = bodyContent;
88 | QueryParams = queryParams ?? new List>();
89 | PostParams = postParams ?? new List>();
90 | HeaderParams = headerParams ?? new List>();
91 | PathParams = pathParams ?? new List>();
92 | FileParams = fileParams ?? new List();
93 | }
94 |
95 | public void AddHeaderParameter(string name, string value) => HeaderParams.Add(new KeyValuePair(name, value));
96 |
97 | public void AddPostParameter(string name, string value) => PostParams.Add(new KeyValuePair(name, value));
98 |
99 | public void AddQueryParameter(string name, string value) => QueryParams.Add(new KeyValuePair(name, value));
100 |
101 | public void AddPathParameter(string name, string value) => PathParams.Add(new KeyValuePair(name, value));
102 |
103 | public void AddFileParameter(string name, string fileName, string contentDisposition, byte[] content) => FileParams.Add(new FileParameter(name, fileName, contentDisposition, content));
104 | }
105 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/DocuSignResponse.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.Net;
14 | using System.Net.Http.Headers;
15 |
16 | namespace DocuSign.eSign.Client
17 | {
18 | public class DocuSignResponse
19 | {
20 | readonly HttpStatusCode statusCode = HttpStatusCode.OK;
21 | readonly IDictionary headers = null;
22 | readonly string errorMessage = string.Empty;
23 | readonly string contentType = string.Empty;
24 | readonly byte[] rawBytes = null;
25 | readonly Exception exception = null;
26 |
27 | public byte[] RawBytes => rawBytes;
28 |
29 | public string ContentType => contentType;
30 |
31 | public HttpStatusCode StatusCode => statusCode;
32 |
33 | public string Content => rawBytes != null ? System.Text.Encoding.UTF8.GetString(rawBytes) : null;
34 |
35 | public string ErrorMessage => errorMessage;
36 |
37 | public IDictionary Headers => headers;
38 |
39 | public Exception Exception => exception;
40 |
41 | public DocuSignResponse(HttpStatusCode _statusCode, IDictionary _headers, byte[] _rawBytes, string _contentType)
42 | {
43 | statusCode = _statusCode;
44 | headers = _headers;
45 | rawBytes = _rawBytes;
46 | contentType = _contentType;
47 | }
48 |
49 | public DocuSignResponse(Exception _exception, HttpStatusCode _statusCode = HttpStatusCode.InternalServerError)
50 | {
51 | exception = _exception;
52 | errorMessage = _exception?.Message ?? string.Empty;
53 | statusCode = _statusCode;
54 | }
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/ExceptionFactory.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 |
12 | using System;
13 |
14 | namespace DocuSign.eSign.Client
15 | {
16 | ///
17 | /// A delegate to ExceptionFactory method
18 | ///
19 | /// Method name
20 | /// Response
21 | /// Exceptions
22 | public delegate Exception ExceptionFactory(string methodName, DocuSignResponse response);
23 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/GlobalConfiguration.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 |
12 | using System;
13 | using System.Reflection;
14 | using System.Collections.Generic;
15 | using System.IO;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading;
19 |
20 | namespace DocuSign.eSign.Client
21 | {
22 | ///
23 | /// provides a compile-time extension point for globally configuring
24 | /// API Clients.
25 | ///
26 | ///
27 | /// A customized implementation via partial class may reside in another file and may
28 | /// be excluded from automatic generation via a .swagger-codegen-ignore file.
29 | ///
30 | public partial class GlobalConfiguration : Configuration
31 | {
32 |
33 | }
34 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/IApiAccessor.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 |
12 | using System;
13 |
14 | namespace DocuSign.eSign.Client
15 | {
16 | ///
17 | /// Represents configuration aspects required to interact with the API endpoints.
18 | ///
19 | public interface IApiAccessor
20 | {
21 | ///
22 | /// Gets or sets the ApiClient object
23 | ///
24 | /// An instance of the ApiClient
25 | DocuSignClient ApiClient {get; set;}
26 |
27 | ///
28 | /// Gets the base path of the API client.
29 | ///
30 | /// The base path
31 | String GetBasePath();
32 |
33 | ///
34 | /// Provides a factory method hook for the creation of exceptions.
35 | ///
36 | ExceptionFactory ExceptionFactory { get; set; }
37 | }
38 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/IHttpClient.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System.Net;
12 | using System.Threading;
13 | using System.Threading.Tasks;
14 |
15 | namespace DocuSign.eSign.Client
16 | {
17 | public interface IHttpClient
18 | {
19 | void AddDefaultRequestHeader(string header, string value);
20 |
21 | DocuSignResponse SendRequest(DocuSignRequest request);
22 |
23 | Task SendRequestAsync(DocuSignRequest request, CancellationToken cancellationToken);
24 | }
25 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/IReadableConfiguration.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 |
12 | using System.Collections.Generic;
13 |
14 | namespace DocuSign.eSign.Client
15 | {
16 | ///
17 | /// Represents a readable-only configuration contract.
18 | ///
19 | public interface IReadableConfiguration
20 | {
21 | ///
22 | /// Gets the access token.
23 | ///
24 | /// Access token.
25 | string AccessToken { get; }
26 |
27 | ///
28 | /// Gets the API key.
29 | ///
30 | /// API key.
31 | IDictionary ApiKey { get; }
32 |
33 | ///
34 | /// Gets the API key prefix.
35 | ///
36 | /// API key prefix.
37 | IDictionary ApiKeyPrefix { get; }
38 |
39 | ///
40 | /// Gets the base path.
41 | ///
42 | /// Base path.
43 | string BasePath { get; }
44 |
45 | ///
46 | /// Gets the date time format.
47 | ///
48 | /// Date time foramt.
49 | string DateTimeFormat { get; }
50 |
51 | ///
52 | /// Gets the default header.
53 | ///
54 | /// Default header.
55 | IDictionary DefaultHeader { get; }
56 |
57 | ///
58 | /// Gets the temp folder path.
59 | ///
60 | /// Temp folder path.
61 | string TempFolderPath { get; }
62 |
63 | ///
64 | /// Gets the HTTP connection timeout (in milliseconds)
65 | ///
66 | /// HTTP connection timeout.
67 | int Timeout { get; }
68 |
69 | ///
70 | /// Gets the user agent.
71 | ///
72 | /// User agent.
73 | string UserAgent { get; }
74 |
75 | ///
76 | /// Gets the username.
77 | ///
78 | /// Username.
79 | string Username { get; }
80 |
81 | ///
82 | /// Gets the password.
83 | ///
84 | /// Password.
85 | string Password { get; }
86 |
87 | ///
88 | /// Gets the API key with prefix.
89 | ///
90 | /// API key identifier (authentication scheme).
91 | /// API key with prefix.
92 | string GetApiKeyWithPrefix(string apiKeyIdentifier);
93 | }
94 | }
95 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Client/SwaggerDateConverter.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using Newtonsoft.Json.Converters;
12 |
13 | namespace DocuSign.eSign.Client
14 | {
15 | ///
16 | /// Formatter for 'date' swagger formats ss defined by full-date - RFC3339
17 | /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types
18 | ///
19 | public class SwaggerDateConverter : IsoDateTimeConverter
20 | {
21 | ///
22 | /// Initializes a new instance of the class.
23 | ///
24 | public SwaggerDateConverter()
25 | {
26 | // full-date = date-fullyear "-" date-month "-" date-mday
27 | DateTimeFormat = "yyyy-MM-dd";
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/DocuSign.eSign.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net462;netstandard2.0
5 | true
6 | DocuSign.eSign.dll
7 | The Docusign NuGet package makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-esign-csharp-client repository. Join the eSign revolution!
8 | DocuSign Inc.
9 | DocuSign
10 | Copyright © Docusign 2025
11 | DocuSign.eSign
12 | DocuSign
13 | Library
14 | $(NoWarn);CS1591
15 | Properties
16 | DocuSign.eSign
17 | DocuSign.eSign
18 | en-US
19 | 8.1.0
20 |
21 | true
22 | true
23 | Docusign.eSign;REST;eSign;docusign;eSignature;api
24 | icon.png
25 | https://github.com/docusign/docusign-esign-csharp-client
26 | https://github.com/docusign/docusign-esign-csharp-client/blob/master/LICENSE
27 | https://github.com/docusign/docusign-esign-csharp-client
28 | git
29 | [v8.1.0] - ESignature API v2.1-25.1.00.02 - 4/14/2025
30 |
31 |
32 | NET462
33 |
34 |
35 | NETSTANDARD2_0
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/AccountSeals.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// AccountSeals
26 | ///
27 | [DataContract]
28 | public partial class AccountSeals : IEquatable, IValidatableObject
29 | {
30 | public AccountSeals()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Seals.
39 | public AccountSeals(List Seals = default(List))
40 | {
41 | this.Seals = Seals;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Seals
46 | ///
47 | [DataMember(Name="seals", EmitDefaultValue=false)]
48 | public List Seals { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class AccountSeals {\n");
57 | sb.Append(" Seals: ").Append(Seals).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as AccountSeals);
80 | }
81 |
82 | ///
83 | /// Returns true if AccountSeals instances are equal
84 | ///
85 | /// Instance of AccountSeals to be compared
86 | /// Boolean
87 | public bool Equals(AccountSeals other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Seals == other.Seals ||
96 | this.Seals != null &&
97 | this.Seals.SequenceEqual(other.Seals)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Seals != null)
113 | hash = hash * 59 + this.Seals.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/BrandRequest.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// This request object contains information about a specific brand.
26 | ///
27 | [DataContract]
28 | public partial class BrandRequest : IEquatable, IValidatableObject
29 | {
30 | public BrandRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// The ID of the brand used in API calls.
39 | public BrandRequest(string BrandId = default(string))
40 | {
41 | this.BrandId = BrandId;
42 | }
43 |
44 | ///
45 | /// The ID of the brand used in API calls
46 | ///
47 | /// The ID of the brand used in API calls
48 | [DataMember(Name="brandId", EmitDefaultValue=false)]
49 | public string BrandId { get; set; }
50 | ///
51 | /// Returns the string presentation of the object
52 | ///
53 | /// String presentation of the object
54 | public override string ToString()
55 | {
56 | var sb = new StringBuilder();
57 | sb.Append("class BrandRequest {\n");
58 | sb.Append(" BrandId: ").Append(BrandId).Append("\n");
59 | sb.Append("}\n");
60 | return sb.ToString();
61 | }
62 |
63 | ///
64 | /// Returns the JSON string presentation of the object
65 | ///
66 | /// JSON string presentation of the object
67 | public string ToJson()
68 | {
69 | return JsonConvert.SerializeObject(this, Formatting.Indented);
70 | }
71 |
72 | ///
73 | /// Returns true if objects are equal
74 | ///
75 | /// Object to be compared
76 | /// Boolean
77 | public override bool Equals(object obj)
78 | {
79 | // credit: http://stackoverflow.com/a/10454552/677735
80 | return this.Equals(obj as BrandRequest);
81 | }
82 |
83 | ///
84 | /// Returns true if BrandRequest instances are equal
85 | ///
86 | /// Instance of BrandRequest to be compared
87 | /// Boolean
88 | public bool Equals(BrandRequest other)
89 | {
90 | // credit: http://stackoverflow.com/a/10454552/677735
91 | if (other == null)
92 | return false;
93 |
94 | return
95 | (
96 | this.BrandId == other.BrandId ||
97 | this.BrandId != null &&
98 | this.BrandId.Equals(other.BrandId)
99 | );
100 | }
101 |
102 | ///
103 | /// Gets the hash code
104 | ///
105 | /// Hash code
106 | public override int GetHashCode()
107 | {
108 | // credit: http://stackoverflow.com/a/263416/677735
109 | unchecked // Overflow is fine, just wrap
110 | {
111 | int hash = 41;
112 | // Suitable nullity checks etc, of course :)
113 | if (this.BrandId != null)
114 | hash = hash * 59 + this.BrandId.GetHashCode();
115 | return hash;
116 | }
117 | }
118 |
119 | public IEnumerable Validate(ValidationContext validationContext)
120 | {
121 | yield break;
122 | }
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/BrandsRequest.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// Details about one or more brands.
26 | ///
27 | [DataContract]
28 | public partial class BrandsRequest : IEquatable, IValidatableObject
29 | {
30 | public BrandsRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// The list of brands..
39 | public BrandsRequest(List Brands = default(List))
40 | {
41 | this.Brands = Brands;
42 | }
43 |
44 | ///
45 | /// The list of brands.
46 | ///
47 | /// The list of brands.
48 | [DataMember(Name="brands", EmitDefaultValue=false)]
49 | public List Brands { get; set; }
50 | ///
51 | /// Returns the string presentation of the object
52 | ///
53 | /// String presentation of the object
54 | public override string ToString()
55 | {
56 | var sb = new StringBuilder();
57 | sb.Append("class BrandsRequest {\n");
58 | sb.Append(" Brands: ").Append(Brands).Append("\n");
59 | sb.Append("}\n");
60 | return sb.ToString();
61 | }
62 |
63 | ///
64 | /// Returns the JSON string presentation of the object
65 | ///
66 | /// JSON string presentation of the object
67 | public string ToJson()
68 | {
69 | return JsonConvert.SerializeObject(this, Formatting.Indented);
70 | }
71 |
72 | ///
73 | /// Returns true if objects are equal
74 | ///
75 | /// Object to be compared
76 | /// Boolean
77 | public override bool Equals(object obj)
78 | {
79 | // credit: http://stackoverflow.com/a/10454552/677735
80 | return this.Equals(obj as BrandsRequest);
81 | }
82 |
83 | ///
84 | /// Returns true if BrandsRequest instances are equal
85 | ///
86 | /// Instance of BrandsRequest to be compared
87 | /// Boolean
88 | public bool Equals(BrandsRequest other)
89 | {
90 | // credit: http://stackoverflow.com/a/10454552/677735
91 | if (other == null)
92 | return false;
93 |
94 | return
95 | (
96 | this.Brands == other.Brands ||
97 | this.Brands != null &&
98 | this.Brands.SequenceEqual(other.Brands)
99 | );
100 | }
101 |
102 | ///
103 | /// Gets the hash code
104 | ///
105 | /// Hash code
106 | public override int GetHashCode()
107 | {
108 | // credit: http://stackoverflow.com/a/263416/677735
109 | unchecked // Overflow is fine, just wrap
110 | {
111 | int hash = 41;
112 | // Suitable nullity checks etc, of course :)
113 | if (this.Brands != null)
114 | hash = hash * 59 + this.Brands.GetHashCode();
115 | return hash;
116 | }
117 | }
118 |
119 | public IEnumerable Validate(ValidationContext validationContext)
120 | {
121 | yield break;
122 | }
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/BulkSendBatchRequest.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// BulkSendBatchRequest
26 | ///
27 | [DataContract]
28 | public partial class BulkSendBatchRequest : IEquatable, IValidatableObject
29 | {
30 | public BulkSendBatchRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// BatchName.
39 | public BulkSendBatchRequest(string BatchName = default(string))
40 | {
41 | this.BatchName = BatchName;
42 | }
43 |
44 | ///
45 | /// Gets or Sets BatchName
46 | ///
47 | [DataMember(Name="batchName", EmitDefaultValue=false)]
48 | public string BatchName { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class BulkSendBatchRequest {\n");
57 | sb.Append(" BatchName: ").Append(BatchName).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as BulkSendBatchRequest);
80 | }
81 |
82 | ///
83 | /// Returns true if BulkSendBatchRequest instances are equal
84 | ///
85 | /// Instance of BulkSendBatchRequest to be compared
86 | /// Boolean
87 | public bool Equals(BulkSendBatchRequest other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.BatchName == other.BatchName ||
96 | this.BatchName != null &&
97 | this.BatchName.Equals(other.BatchName)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.BatchName != null)
113 | hash = hash * 59 + this.BatchName.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/ConnectDeleteFailureResult.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// ConnectDeleteFailureResult
26 | ///
27 | [DataContract]
28 | public partial class ConnectDeleteFailureResult : IEquatable, IValidatableObject
29 | {
30 |
31 | ///
32 | /// Initializes a new instance of the class.
33 | ///
34 | [JsonConstructorAttribute]
35 | public ConnectDeleteFailureResult()
36 | {
37 | }
38 |
39 | ///
40 | /// Returns the string presentation of the object
41 | ///
42 | /// String presentation of the object
43 | public override string ToString()
44 | {
45 | var sb = new StringBuilder();
46 | sb.Append("class ConnectDeleteFailureResult {\n");
47 | sb.Append("}\n");
48 | return sb.ToString();
49 | }
50 |
51 | ///
52 | /// Returns the JSON string presentation of the object
53 | ///
54 | /// JSON string presentation of the object
55 | public string ToJson()
56 | {
57 | return JsonConvert.SerializeObject(this, Formatting.Indented);
58 | }
59 |
60 | ///
61 | /// Returns true if objects are equal
62 | ///
63 | /// Object to be compared
64 | /// Boolean
65 | public override bool Equals(object obj)
66 | {
67 | // credit: http://stackoverflow.com/a/10454552/677735
68 | return this.Equals(obj as ConnectDeleteFailureResult);
69 | }
70 |
71 | ///
72 | /// Returns true if ConnectDeleteFailureResult instances are equal
73 | ///
74 | /// Instance of ConnectDeleteFailureResult to be compared
75 | /// Boolean
76 | public bool Equals(ConnectDeleteFailureResult other)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | if (other == null)
80 | return false;
81 |
82 | return false;
83 | }
84 |
85 | ///
86 | /// Gets the hash code
87 | ///
88 | /// Hash code
89 | public override int GetHashCode()
90 | {
91 | // credit: http://stackoverflow.com/a/263416/677735
92 | unchecked // Overflow is fine, just wrap
93 | {
94 | int hash = 41;
95 | // Suitable nullity checks etc, of course :)
96 | return hash;
97 | }
98 | }
99 |
100 | public IEnumerable Validate(ValidationContext validationContext)
101 | {
102 | yield break;
103 | }
104 | }
105 | }
106 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/ConnectedObjectDetails.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// ConnectedObjectDetails
26 | ///
27 | [DataContract]
28 | public partial class ConnectedObjectDetails : IEquatable, IValidatableObject
29 | {
30 | public ConnectedObjectDetails()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// RecordId.
39 | public ConnectedObjectDetails(string RecordId = default(string))
40 | {
41 | this.RecordId = RecordId;
42 | }
43 |
44 | ///
45 | /// Gets or Sets RecordId
46 | ///
47 | [DataMember(Name="recordId", EmitDefaultValue=false)]
48 | public string RecordId { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class ConnectedObjectDetails {\n");
57 | sb.Append(" RecordId: ").Append(RecordId).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as ConnectedObjectDetails);
80 | }
81 |
82 | ///
83 | /// Returns true if ConnectedObjectDetails instances are equal
84 | ///
85 | /// Instance of ConnectedObjectDetails to be compared
86 | /// Boolean
87 | public bool Equals(ConnectedObjectDetails other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.RecordId == other.RecordId ||
96 | this.RecordId != null &&
97 | this.RecordId.Equals(other.RecordId)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.RecordId != null)
113 | hash = hash * 59 + this.RecordId.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/ContactUpdateResponse.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// This response objects shows the updated details for the contacts.
26 | ///
27 | [DataContract]
28 | public partial class ContactUpdateResponse : IEquatable, IValidatableObject
29 | {
30 | public ContactUpdateResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Contacts.
39 | public ContactUpdateResponse(List Contacts = default(List))
40 | {
41 | this.Contacts = Contacts;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Contacts
46 | ///
47 | [DataMember(Name="contacts", EmitDefaultValue=false)]
48 | public List Contacts { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class ContactUpdateResponse {\n");
57 | sb.Append(" Contacts: ").Append(Contacts).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as ContactUpdateResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if ContactUpdateResponse instances are equal
84 | ///
85 | /// Instance of ContactUpdateResponse to be compared
86 | /// Boolean
87 | public bool Equals(ContactUpdateResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Contacts == other.Contacts ||
96 | this.Contacts != null &&
97 | this.Contacts.SequenceEqual(other.Contacts)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Contacts != null)
113 | hash = hash * 59 + this.Contacts.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/DisplayApplianceInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * DocuSign REST API
3 | *
4 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Linq;
13 | using System.IO;
14 | using System.Text;
15 | using System.Text.RegularExpressions;
16 | using System.Collections;
17 | using System.Collections.Generic;
18 | using System.Collections.ObjectModel;
19 | using System.Runtime.Serialization;
20 | using Newtonsoft.Json;
21 | using Newtonsoft.Json.Converters;
22 | using System.ComponentModel.DataAnnotations;
23 | using SwaggerDateConverter = DocuSign.eSign.Client.SwaggerDateConverter;
24 |
25 | namespace DocuSign.eSign.Model
26 | {
27 | ///
28 | /// DisplayApplianceInfo
29 | ///
30 | [DataContract]
31 | public partial class DisplayApplianceInfo : IEquatable, IValidatableObject
32 | {
33 | public DisplayApplianceInfo()
34 | {
35 | // Empty Constructor
36 | }
37 |
38 | ///
39 | /// Returns the string presentation of the object
40 | ///
41 | /// String presentation of the object
42 | public override string ToString()
43 | {
44 | var sb = new StringBuilder();
45 | sb.Append("class DisplayApplianceInfo {\n");
46 | sb.Append("}\n");
47 | return sb.ToString();
48 | }
49 |
50 | ///
51 | /// Returns the JSON string presentation of the object
52 | ///
53 | /// JSON string presentation of the object
54 | public string ToJson()
55 | {
56 | return JsonConvert.SerializeObject(this, Formatting.Indented);
57 | }
58 |
59 | ///
60 | /// Returns true if objects are equal
61 | ///
62 | /// Object to be compared
63 | /// Boolean
64 | public override bool Equals(object obj)
65 | {
66 | // credit: http://stackoverflow.com/a/10454552/677735
67 | return this.Equals(obj as DisplayApplianceInfo);
68 | }
69 |
70 | ///
71 | /// Returns true if DisplayApplianceInfo instances are equal
72 | ///
73 | /// Instance of DisplayApplianceInfo to be compared
74 | /// Boolean
75 | public bool Equals(DisplayApplianceInfo other)
76 | {
77 | // credit: http://stackoverflow.com/a/10454552/677735
78 | if (other == null)
79 | return false;
80 |
81 | return false;
82 | }
83 |
84 | ///
85 | /// Gets the hash code
86 | ///
87 | /// Hash code
88 | public override int GetHashCode()
89 | {
90 | // credit: http://stackoverflow.com/a/263416/677735
91 | unchecked // Overflow is fine, just wrap
92 | {
93 | int hash = 41;
94 | // Suitable nullity checks etc, of course :)
95 | return hash;
96 | }
97 | }
98 |
99 | public IEnumerable Validate(ValidationContext validationContext)
100 | {
101 | yield break;
102 | }
103 | }
104 | }
105 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/DisplayAppliancePdf.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * DocuSign REST API
3 | *
4 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Linq;
13 | using System.IO;
14 | using System.Text;
15 | using System.Text.RegularExpressions;
16 | using System.Collections;
17 | using System.Collections.Generic;
18 | using System.Collections.ObjectModel;
19 | using System.Runtime.Serialization;
20 | using Newtonsoft.Json;
21 | using Newtonsoft.Json.Converters;
22 | using System.ComponentModel.DataAnnotations;
23 | using SwaggerDateConverter = DocuSign.eSign.Client.SwaggerDateConverter;
24 |
25 | namespace DocuSign.eSign.Model
26 | {
27 | ///
28 | /// DisplayAppliancePdf
29 | ///
30 | [DataContract]
31 | public partial class DisplayAppliancePdf : IEquatable, IValidatableObject
32 | {
33 | public DisplayAppliancePdf()
34 | {
35 | // Empty Constructor
36 | }
37 |
38 | ///
39 | /// Returns the string presentation of the object
40 | ///
41 | /// String presentation of the object
42 | public override string ToString()
43 | {
44 | var sb = new StringBuilder();
45 | sb.Append("class DisplayAppliancePdf {\n");
46 | sb.Append("}\n");
47 | return sb.ToString();
48 | }
49 |
50 | ///
51 | /// Returns the JSON string presentation of the object
52 | ///
53 | /// JSON string presentation of the object
54 | public string ToJson()
55 | {
56 | return JsonConvert.SerializeObject(this, Formatting.Indented);
57 | }
58 |
59 | ///
60 | /// Returns true if objects are equal
61 | ///
62 | /// Object to be compared
63 | /// Boolean
64 | public override bool Equals(object obj)
65 | {
66 | // credit: http://stackoverflow.com/a/10454552/677735
67 | return this.Equals(obj as DisplayAppliancePdf);
68 | }
69 |
70 | ///
71 | /// Returns true if DisplayAppliancePdf instances are equal
72 | ///
73 | /// Instance of DisplayAppliancePdf to be compared
74 | /// Boolean
75 | public bool Equals(DisplayAppliancePdf other)
76 | {
77 | // credit: http://stackoverflow.com/a/10454552/677735
78 | if (other == null)
79 | return false;
80 |
81 | return false;
82 | }
83 |
84 | ///
85 | /// Gets the hash code
86 | ///
87 | /// Hash code
88 | public override int GetHashCode()
89 | {
90 | // credit: http://stackoverflow.com/a/263416/677735
91 | unchecked // Overflow is fine, just wrap
92 | {
93 | int hash = 41;
94 | // Suitable nullity checks etc, of course :)
95 | return hash;
96 | }
97 | }
98 |
99 | public IEnumerable Validate(ValidationContext validationContext)
100 | {
101 | yield break;
102 | }
103 | }
104 | }
105 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/DisplayApplianceSignerAttachment.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * DocuSign REST API
3 | *
4 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Linq;
13 | using System.IO;
14 | using System.Text;
15 | using System.Text.RegularExpressions;
16 | using System.Collections;
17 | using System.Collections.Generic;
18 | using System.Collections.ObjectModel;
19 | using System.Runtime.Serialization;
20 | using Newtonsoft.Json;
21 | using Newtonsoft.Json.Converters;
22 | using System.ComponentModel.DataAnnotations;
23 | using SwaggerDateConverter = DocuSign.eSign.Client.SwaggerDateConverter;
24 |
25 | namespace DocuSign.eSign.Model
26 | {
27 | ///
28 | /// DisplayApplianceSignerAttachment
29 | ///
30 | [DataContract]
31 | public partial class DisplayApplianceSignerAttachment : IEquatable, IValidatableObject
32 | {
33 | public DisplayApplianceSignerAttachment()
34 | {
35 | // Empty Constructor
36 | }
37 |
38 | ///
39 | /// Returns the string presentation of the object
40 | ///
41 | /// String presentation of the object
42 | public override string ToString()
43 | {
44 | var sb = new StringBuilder();
45 | sb.Append("class DisplayApplianceSignerAttachment {\n");
46 | sb.Append("}\n");
47 | return sb.ToString();
48 | }
49 |
50 | ///
51 | /// Returns the JSON string presentation of the object
52 | ///
53 | /// JSON string presentation of the object
54 | public string ToJson()
55 | {
56 | return JsonConvert.SerializeObject(this, Formatting.Indented);
57 | }
58 |
59 | ///
60 | /// Returns true if objects are equal
61 | ///
62 | /// Object to be compared
63 | /// Boolean
64 | public override bool Equals(object obj)
65 | {
66 | // credit: http://stackoverflow.com/a/10454552/677735
67 | return this.Equals(obj as DisplayApplianceSignerAttachment);
68 | }
69 |
70 | ///
71 | /// Returns true if DisplayApplianceSignerAttachment instances are equal
72 | ///
73 | /// Instance of DisplayApplianceSignerAttachment to be compared
74 | /// Boolean
75 | public bool Equals(DisplayApplianceSignerAttachment other)
76 | {
77 | // credit: http://stackoverflow.com/a/10454552/677735
78 | if (other == null)
79 | return false;
80 |
81 | return false;
82 | }
83 |
84 | ///
85 | /// Gets the hash code
86 | ///
87 | /// Hash code
88 | public override int GetHashCode()
89 | {
90 | // credit: http://stackoverflow.com/a/263416/677735
91 | unchecked // Overflow is fine, just wrap
92 | {
93 | int hash = 41;
94 | // Suitable nullity checks etc, of course :)
95 | return hash;
96 | }
97 | }
98 |
99 | public IEnumerable Validate(ValidationContext validationContext)
100 | {
101 | yield break;
102 | }
103 | }
104 | }
105 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/EnvelopeAuditEvent.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// EnvelopeAuditEvent
26 | ///
27 | [DataContract]
28 | public partial class EnvelopeAuditEvent : IEquatable, IValidatableObject
29 | {
30 | public EnvelopeAuditEvent()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// EventFields.
39 | public EnvelopeAuditEvent(List EventFields = default(List))
40 | {
41 | this.EventFields = EventFields;
42 | }
43 |
44 | ///
45 | /// Gets or Sets EventFields
46 | ///
47 | [DataMember(Name="eventFields", EmitDefaultValue=false)]
48 | public List EventFields { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class EnvelopeAuditEvent {\n");
57 | sb.Append(" EventFields: ").Append(EventFields).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as EnvelopeAuditEvent);
80 | }
81 |
82 | ///
83 | /// Returns true if EnvelopeAuditEvent instances are equal
84 | ///
85 | /// Instance of EnvelopeAuditEvent to be compared
86 | /// Boolean
87 | public bool Equals(EnvelopeAuditEvent other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.EventFields == other.EventFields ||
96 | this.EventFields != null &&
97 | this.EventFields.SequenceEqual(other.EventFields)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.EventFields != null)
113 | hash = hash * 59 + this.EventFields.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/FileTypeList.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// FileTypeList
26 | ///
27 | [DataContract]
28 | public partial class FileTypeList : IEquatable, IValidatableObject
29 | {
30 | public FileTypeList()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// A collection of file types..
39 | public FileTypeList(List FileTypes = default(List))
40 | {
41 | this.FileTypes = FileTypes;
42 | }
43 |
44 | ///
45 | /// A collection of file types.
46 | ///
47 | /// A collection of file types.
48 | [DataMember(Name="fileTypes", EmitDefaultValue=false)]
49 | public List FileTypes { get; set; }
50 | ///
51 | /// Returns the string presentation of the object
52 | ///
53 | /// String presentation of the object
54 | public override string ToString()
55 | {
56 | var sb = new StringBuilder();
57 | sb.Append("class FileTypeList {\n");
58 | sb.Append(" FileTypes: ").Append(FileTypes).Append("\n");
59 | sb.Append("}\n");
60 | return sb.ToString();
61 | }
62 |
63 | ///
64 | /// Returns the JSON string presentation of the object
65 | ///
66 | /// JSON string presentation of the object
67 | public string ToJson()
68 | {
69 | return JsonConvert.SerializeObject(this, Formatting.Indented);
70 | }
71 |
72 | ///
73 | /// Returns true if objects are equal
74 | ///
75 | /// Object to be compared
76 | /// Boolean
77 | public override bool Equals(object obj)
78 | {
79 | // credit: http://stackoverflow.com/a/10454552/677735
80 | return this.Equals(obj as FileTypeList);
81 | }
82 |
83 | ///
84 | /// Returns true if FileTypeList instances are equal
85 | ///
86 | /// Instance of FileTypeList to be compared
87 | /// Boolean
88 | public bool Equals(FileTypeList other)
89 | {
90 | // credit: http://stackoverflow.com/a/10454552/677735
91 | if (other == null)
92 | return false;
93 |
94 | return
95 | (
96 | this.FileTypes == other.FileTypes ||
97 | this.FileTypes != null &&
98 | this.FileTypes.SequenceEqual(other.FileTypes)
99 | );
100 | }
101 |
102 | ///
103 | /// Gets the hash code
104 | ///
105 | /// Hash code
106 | public override int GetHashCode()
107 | {
108 | // credit: http://stackoverflow.com/a/263416/677735
109 | unchecked // Overflow is fine, just wrap
110 | {
111 | int hash = 41;
112 | // Suitable nullity checks etc, of course :)
113 | if (this.FileTypes != null)
114 | hash = hash * 59 + this.FileTypes.GetHashCode();
115 | return hash;
116 | }
117 | }
118 |
119 | public IEnumerable Validate(ValidationContext validationContext)
120 | {
121 | yield break;
122 | }
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/IdCheckSecurityStep.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// IdCheckSecurityStep
26 | ///
27 | [DataContract]
28 | public partial class IdCheckSecurityStep : IEquatable, IValidatableObject
29 | {
30 | public IdCheckSecurityStep()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// AuthType.
39 | public IdCheckSecurityStep(string AuthType = default(string))
40 | {
41 | this.AuthType = AuthType;
42 | }
43 |
44 | ///
45 | /// Gets or Sets AuthType
46 | ///
47 | [DataMember(Name="authType", EmitDefaultValue=false)]
48 | public string AuthType { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class IdCheckSecurityStep {\n");
57 | sb.Append(" AuthType: ").Append(AuthType).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as IdCheckSecurityStep);
80 | }
81 |
82 | ///
83 | /// Returns true if IdCheckSecurityStep instances are equal
84 | ///
85 | /// Instance of IdCheckSecurityStep to be compared
86 | /// Boolean
87 | public bool Equals(IdCheckSecurityStep other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.AuthType == other.AuthType ||
96 | this.AuthType != null &&
97 | this.AuthType.Equals(other.AuthType)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.AuthType != null)
113 | hash = hash * 59 + this.AuthType.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/IdEvidenceViewLink.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// IdEvidenceViewLink
26 | ///
27 | [DataContract]
28 | public partial class IdEvidenceViewLink : IEquatable, IValidatableObject
29 | {
30 | public IdEvidenceViewLink()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// ViewLink.
39 | public IdEvidenceViewLink(string ViewLink = default(string))
40 | {
41 | this.ViewLink = ViewLink;
42 | }
43 |
44 | ///
45 | /// Gets or Sets ViewLink
46 | ///
47 | [DataMember(Name="viewLink", EmitDefaultValue=false)]
48 | public string ViewLink { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class IdEvidenceViewLink {\n");
57 | sb.Append(" ViewLink: ").Append(ViewLink).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as IdEvidenceViewLink);
80 | }
81 |
82 | ///
83 | /// Returns true if IdEvidenceViewLink instances are equal
84 | ///
85 | /// Instance of IdEvidenceViewLink to be compared
86 | /// Boolean
87 | public bool Equals(IdEvidenceViewLink other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.ViewLink == other.ViewLink ||
96 | this.ViewLink != null &&
97 | this.ViewLink.Equals(other.ViewLink)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.ViewLink != null)
113 | hash = hash * 59 + this.ViewLink.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/NewUsersDefinition.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// NewUsersDefinition
26 | ///
27 | [DataContract]
28 | public partial class NewUsersDefinition : IEquatable, IValidatableObject
29 | {
30 | public NewUsersDefinition()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// NewUsers.
39 | public NewUsersDefinition(List NewUsers = default(List))
40 | {
41 | this.NewUsers = NewUsers;
42 | }
43 |
44 | ///
45 | /// Gets or Sets NewUsers
46 | ///
47 | [DataMember(Name="newUsers", EmitDefaultValue=false)]
48 | public List NewUsers { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class NewUsersDefinition {\n");
57 | sb.Append(" NewUsers: ").Append(NewUsers).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as NewUsersDefinition);
80 | }
81 |
82 | ///
83 | /// Returns true if NewUsersDefinition instances are equal
84 | ///
85 | /// Instance of NewUsersDefinition to be compared
86 | /// Boolean
87 | public bool Equals(NewUsersDefinition other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.NewUsers == other.NewUsers ||
96 | this.NewUsers != null &&
97 | this.NewUsers.SequenceEqual(other.NewUsers)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.NewUsers != null)
113 | hash = hash * 59 + this.NewUsers.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/NewUsersSummary.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// Object representing a summary of data for new users.
26 | ///
27 | [DataContract]
28 | public partial class NewUsersSummary : IEquatable, IValidatableObject
29 | {
30 | public NewUsersSummary()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// NewUsers.
39 | public NewUsersSummary(List NewUsers = default(List))
40 | {
41 | this.NewUsers = NewUsers;
42 | }
43 |
44 | ///
45 | /// Gets or Sets NewUsers
46 | ///
47 | [DataMember(Name="newUsers", EmitDefaultValue=false)]
48 | public List NewUsers { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class NewUsersSummary {\n");
57 | sb.Append(" NewUsers: ").Append(NewUsers).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as NewUsersSummary);
80 | }
81 |
82 | ///
83 | /// Returns true if NewUsersSummary instances are equal
84 | ///
85 | /// Instance of NewUsersSummary to be compared
86 | /// Boolean
87 | public bool Equals(NewUsersSummary other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.NewUsers == other.NewUsers ||
96 | this.NewUsers != null &&
97 | this.NewUsers.SequenceEqual(other.NewUsers)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.NewUsers != null)
113 | hash = hash * 59 + this.NewUsers.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/PaletteItemSettings.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// PaletteItemSettings
26 | ///
27 | [DataContract]
28 | public partial class PaletteItemSettings : IEquatable, IValidatableObject
29 | {
30 | public PaletteItemSettings()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Show.
39 | public PaletteItemSettings(string Show = default(string))
40 | {
41 | this.Show = Show;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Show
46 | ///
47 | [DataMember(Name="show", EmitDefaultValue=false)]
48 | public string Show { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class PaletteItemSettings {\n");
57 | sb.Append(" Show: ").Append(Show).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as PaletteItemSettings);
80 | }
81 |
82 | ///
83 | /// Returns true if PaletteItemSettings instances are equal
84 | ///
85 | /// Instance of PaletteItemSettings to be compared
86 | /// Boolean
87 | public bool Equals(PaletteItemSettings other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Show == other.Show ||
96 | this.Show != null &&
97 | this.Show.Equals(other.Show)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Show != null)
113 | hash = hash * 59 + this.Show.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/PaymentSignerValues.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// PaymentSignerValues
26 | ///
27 | [DataContract]
28 | public partial class PaymentSignerValues : IEquatable, IValidatableObject
29 | {
30 | public PaymentSignerValues()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// PaymentOption.
39 | public PaymentSignerValues(string PaymentOption = default(string))
40 | {
41 | this.PaymentOption = PaymentOption;
42 | }
43 |
44 | ///
45 | /// Gets or Sets PaymentOption
46 | ///
47 | [DataMember(Name="paymentOption", EmitDefaultValue=false)]
48 | public string PaymentOption { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class PaymentSignerValues {\n");
57 | sb.Append(" PaymentOption: ").Append(PaymentOption).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as PaymentSignerValues);
80 | }
81 |
82 | ///
83 | /// Returns true if PaymentSignerValues instances are equal
84 | ///
85 | /// Instance of PaymentSignerValues to be compared
86 | /// Boolean
87 | public bool Equals(PaymentSignerValues other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.PaymentOption == other.PaymentOption ||
96 | this.PaymentOption != null &&
97 | this.PaymentOption.Equals(other.PaymentOption)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.PaymentOption != null)
113 | hash = hash * 59 + this.PaymentOption.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/PowerFormsRequest.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// PowerFormsRequest
26 | ///
27 | [DataContract]
28 | public partial class PowerFormsRequest : IEquatable, IValidatableObject
29 | {
30 | public PowerFormsRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// PowerForms.
39 | public PowerFormsRequest(List PowerForms = default(List))
40 | {
41 | this.PowerForms = PowerForms;
42 | }
43 |
44 | ///
45 | /// Gets or Sets PowerForms
46 | ///
47 | [DataMember(Name="powerForms", EmitDefaultValue=false)]
48 | public List PowerForms { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class PowerFormsRequest {\n");
57 | sb.Append(" PowerForms: ").Append(PowerForms).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as PowerFormsRequest);
80 | }
81 |
82 | ///
83 | /// Returns true if PowerFormsRequest instances are equal
84 | ///
85 | /// Instance of PowerFormsRequest to be compared
86 | /// Boolean
87 | public bool Equals(PowerFormsRequest other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.PowerForms == other.PowerForms ||
96 | this.PowerForms != null &&
97 | this.PowerForms.SequenceEqual(other.PowerForms)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.PowerForms != null)
113 | hash = hash * 59 + this.PowerForms.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/RecipientRouting.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// Describes the recipient routing rules.
26 | ///
27 | [DataContract]
28 | public partial class RecipientRouting : IEquatable, IValidatableObject
29 | {
30 | public RecipientRouting()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// The recipient routing rules..
39 | public RecipientRouting(RecipientRules Rules = default(RecipientRules))
40 | {
41 | this.Rules = Rules;
42 | }
43 |
44 | ///
45 | /// The recipient routing rules.
46 | ///
47 | /// The recipient routing rules.
48 | [DataMember(Name="rules", EmitDefaultValue=false)]
49 | public RecipientRules Rules { get; set; }
50 | ///
51 | /// Returns the string presentation of the object
52 | ///
53 | /// String presentation of the object
54 | public override string ToString()
55 | {
56 | var sb = new StringBuilder();
57 | sb.Append("class RecipientRouting {\n");
58 | sb.Append(" Rules: ").Append(Rules).Append("\n");
59 | sb.Append("}\n");
60 | return sb.ToString();
61 | }
62 |
63 | ///
64 | /// Returns the JSON string presentation of the object
65 | ///
66 | /// JSON string presentation of the object
67 | public string ToJson()
68 | {
69 | return JsonConvert.SerializeObject(this, Formatting.Indented);
70 | }
71 |
72 | ///
73 | /// Returns true if objects are equal
74 | ///
75 | /// Object to be compared
76 | /// Boolean
77 | public override bool Equals(object obj)
78 | {
79 | // credit: http://stackoverflow.com/a/10454552/677735
80 | return this.Equals(obj as RecipientRouting);
81 | }
82 |
83 | ///
84 | /// Returns true if RecipientRouting instances are equal
85 | ///
86 | /// Instance of RecipientRouting to be compared
87 | /// Boolean
88 | public bool Equals(RecipientRouting other)
89 | {
90 | // credit: http://stackoverflow.com/a/10454552/677735
91 | if (other == null)
92 | return false;
93 |
94 | return
95 | (
96 | this.Rules == other.Rules ||
97 | this.Rules != null &&
98 | this.Rules.Equals(other.Rules)
99 | );
100 | }
101 |
102 | ///
103 | /// Gets the hash code
104 | ///
105 | /// Hash code
106 | public override int GetHashCode()
107 | {
108 | // credit: http://stackoverflow.com/a/263416/677735
109 | unchecked // Overflow is fine, just wrap
110 | {
111 | int hash = 41;
112 | // Suitable nullity checks etc, of course :)
113 | if (this.Rules != null)
114 | hash = hash * 59 + this.Rules.GetHashCode();
115 | return hash;
116 | }
117 | }
118 |
119 | public IEnumerable Validate(ValidationContext validationContext)
120 | {
121 | yield break;
122 | }
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/ResourceInformation.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// ResourceInformation
26 | ///
27 | [DataContract]
28 | public partial class ResourceInformation : IEquatable, IValidatableObject
29 | {
30 | public ResourceInformation()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Resources.
39 | public ResourceInformation(List Resources = default(List))
40 | {
41 | this.Resources = Resources;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Resources
46 | ///
47 | [DataMember(Name="resources", EmitDefaultValue=false)]
48 | public List Resources { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class ResourceInformation {\n");
57 | sb.Append(" Resources: ").Append(Resources).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as ResourceInformation);
80 | }
81 |
82 | ///
83 | /// Returns true if ResourceInformation instances are equal
84 | ///
85 | /// Instance of ResourceInformation to be compared
86 | /// Boolean
87 | public bool Equals(ResourceInformation other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Resources == other.Resources ||
96 | this.Resources != null &&
97 | this.Resources.SequenceEqual(other.Resources)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Resources != null)
113 | hash = hash * 59 + this.Resources.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/SigningGroupUsers.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// SigningGroupUsers
26 | ///
27 | [DataContract]
28 | public partial class SigningGroupUsers : IEquatable, IValidatableObject
29 | {
30 | public SigningGroupUsers()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Users.
39 | public SigningGroupUsers(List Users = default(List))
40 | {
41 | this.Users = Users;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Users
46 | ///
47 | [DataMember(Name="users", EmitDefaultValue=false)]
48 | public List Users { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class SigningGroupUsers {\n");
57 | sb.Append(" Users: ").Append(Users).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as SigningGroupUsers);
80 | }
81 |
82 | ///
83 | /// Returns true if SigningGroupUsers instances are equal
84 | ///
85 | /// Instance of SigningGroupUsers to be compared
86 | /// Boolean
87 | public bool Equals(SigningGroupUsers other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Users == other.Users ||
96 | this.Users != null &&
97 | this.Users.SequenceEqual(other.Users)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Users != null)
113 | hash = hash * 59 + this.Users.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/SupportedLanguages.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// A list of supported languages.
26 | ///
27 | [DataContract]
28 | public partial class SupportedLanguages : IEquatable, IValidatableObject
29 | {
30 | public SupportedLanguages()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Languages.
39 | public SupportedLanguages(List Languages = default(List))
40 | {
41 | this.Languages = Languages;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Languages
46 | ///
47 | [DataMember(Name="languages", EmitDefaultValue=false)]
48 | public List Languages { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class SupportedLanguages {\n");
57 | sb.Append(" Languages: ").Append(Languages).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as SupportedLanguages);
80 | }
81 |
82 | ///
83 | /// Returns true if SupportedLanguages instances are equal
84 | ///
85 | /// Instance of SupportedLanguages to be compared
86 | /// Boolean
87 | public bool Equals(SupportedLanguages other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Languages == other.Languages ||
96 | this.Languages != null &&
97 | this.Languages.SequenceEqual(other.Languages)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Languages != null)
113 | hash = hash * 59 + this.Languages.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/TabMetadataList.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// TabMetadataList
26 | ///
27 | [DataContract]
28 | public partial class TabMetadataList : IEquatable, IValidatableObject
29 | {
30 | public TabMetadataList()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Tabs.
39 | public TabMetadataList(List Tabs = default(List))
40 | {
41 | this.Tabs = Tabs;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Tabs
46 | ///
47 | [DataMember(Name="tabs", EmitDefaultValue=false)]
48 | public List Tabs { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class TabMetadataList {\n");
57 | sb.Append(" Tabs: ").Append(Tabs).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as TabMetadataList);
80 | }
81 |
82 | ///
83 | /// Returns true if TabMetadataList instances are equal
84 | ///
85 | /// Instance of TabMetadataList to be compared
86 | /// Boolean
87 | public bool Equals(TabMetadataList other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Tabs == other.Tabs ||
96 | this.Tabs != null &&
97 | this.Tabs.SequenceEqual(other.Tabs)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Tabs != null)
113 | hash = hash * 59 + this.Tabs.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/TemplateInformation.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// TemplateInformation
26 | ///
27 | [DataContract]
28 | public partial class TemplateInformation : IEquatable, IValidatableObject
29 | {
30 | public TemplateInformation()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Templates.
39 | public TemplateInformation(List Templates = default(List))
40 | {
41 | this.Templates = Templates;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Templates
46 | ///
47 | [DataMember(Name="templates", EmitDefaultValue=false)]
48 | public List Templates { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class TemplateInformation {\n");
57 | sb.Append(" Templates: ").Append(Templates).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as TemplateInformation);
80 | }
81 |
82 | ///
83 | /// Returns true if TemplateInformation instances are equal
84 | ///
85 | /// Instance of TemplateInformation to be compared
86 | /// Boolean
87 | public bool Equals(TemplateInformation other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Templates == other.Templates ||
96 | this.Templates != null &&
97 | this.Templates.SequenceEqual(other.Templates)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Templates != null)
113 | hash = hash * 59 + this.Templates.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/UserInfoList.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// UserInfoList
26 | ///
27 | [DataContract]
28 | public partial class UserInfoList : IEquatable, IValidatableObject
29 | {
30 | public UserInfoList()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Users.
39 | public UserInfoList(List Users = default(List))
40 | {
41 | this.Users = Users;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Users
46 | ///
47 | [DataMember(Name="users", EmitDefaultValue=false)]
48 | public List Users { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class UserInfoList {\n");
57 | sb.Append(" Users: ").Append(Users).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as UserInfoList);
80 | }
81 |
82 | ///
83 | /// Returns true if UserInfoList instances are equal
84 | ///
85 | /// Instance of UserInfoList to be compared
86 | /// Boolean
87 | public bool Equals(UserInfoList other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Users == other.Users ||
96 | this.Users != null &&
97 | this.Users.SequenceEqual(other.Users)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Users != null)
113 | hash = hash * 59 + this.Users.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/ViewUrl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// ViewUrl
26 | ///
27 | [DataContract]
28 | public partial class ViewUrl : IEquatable, IValidatableObject
29 | {
30 | public ViewUrl()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// The view URL to be navigated to..
39 | public ViewUrl(string Url = default(string))
40 | {
41 | this.Url = Url;
42 | }
43 |
44 | ///
45 | /// The view URL to be navigated to.
46 | ///
47 | /// The view URL to be navigated to.
48 | [DataMember(Name="url", EmitDefaultValue=false)]
49 | public string Url { get; set; }
50 | ///
51 | /// Returns the string presentation of the object
52 | ///
53 | /// String presentation of the object
54 | public override string ToString()
55 | {
56 | var sb = new StringBuilder();
57 | sb.Append("class ViewUrl {\n");
58 | sb.Append(" Url: ").Append(Url).Append("\n");
59 | sb.Append("}\n");
60 | return sb.ToString();
61 | }
62 |
63 | ///
64 | /// Returns the JSON string presentation of the object
65 | ///
66 | /// JSON string presentation of the object
67 | public string ToJson()
68 | {
69 | return JsonConvert.SerializeObject(this, Formatting.Indented);
70 | }
71 |
72 | ///
73 | /// Returns true if objects are equal
74 | ///
75 | /// Object to be compared
76 | /// Boolean
77 | public override bool Equals(object obj)
78 | {
79 | // credit: http://stackoverflow.com/a/10454552/677735
80 | return this.Equals(obj as ViewUrl);
81 | }
82 |
83 | ///
84 | /// Returns true if ViewUrl instances are equal
85 | ///
86 | /// Instance of ViewUrl to be compared
87 | /// Boolean
88 | public bool Equals(ViewUrl other)
89 | {
90 | // credit: http://stackoverflow.com/a/10454552/677735
91 | if (other == null)
92 | return false;
93 |
94 | return
95 | (
96 | this.Url == other.Url ||
97 | this.Url != null &&
98 | this.Url.Equals(other.Url)
99 | );
100 | }
101 |
102 | ///
103 | /// Gets the hash code
104 | ///
105 | /// Hash code
106 | public override int GetHashCode()
107 | {
108 | // credit: http://stackoverflow.com/a/263416/677735
109 | unchecked // Overflow is fine, just wrap
110 | {
111 | int hash = 41;
112 | // Suitable nullity checks etc, of course :)
113 | if (this.Url != null)
114 | hash = hash * 59 + this.Url.GetHashCode();
115 | return hash;
116 | }
117 | }
118 |
119 | public IEnumerable Validate(ValidationContext validationContext)
120 | {
121 | yield break;
122 | }
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Model/WorkspaceItemList.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Docusign eSignature REST API
3 | *
4 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
5 | *
6 | * OpenAPI spec version: v2.1
7 | * Contact: devcenter@docusign.com
8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 | */
10 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.eSign.Model
23 | {
24 | ///
25 | /// Provides properties that describe the items contained in a workspace.
26 | ///
27 | [DataContract]
28 | public partial class WorkspaceItemList : IEquatable, IValidatableObject
29 | {
30 | public WorkspaceItemList()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Items.
39 | public WorkspaceItemList(List Items = default(List))
40 | {
41 | this.Items = Items;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Items
46 | ///
47 | [DataMember(Name="items", EmitDefaultValue=false)]
48 | public List Items { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class WorkspaceItemList {\n");
57 | sb.Append(" Items: ").Append(Items).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as WorkspaceItemList);
80 | }
81 |
82 | ///
83 | /// Returns true if WorkspaceItemList instances are equal
84 | ///
85 | /// Instance of WorkspaceItemList to be compared
86 | /// Boolean
87 | public bool Equals(WorkspaceItemList other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Items == other.Items ||
96 | this.Items != null &&
97 | this.Items.SequenceEqual(other.Items)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Items != null)
113 | hash = hash * 59 + this.Items.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 |
8 | // Setting ComVisible to false makes the types in this assembly not visible
9 | // to COM components. If you need to access a type in this assembly from
10 | // COM, set the ComVisible attribute to true on that type.
11 | [assembly: ComVisible(false)]
12 |
13 | // Version information for an assembly consists of the following four values:
14 | //
15 | // Major Version
16 | // Minor Version
17 | // Build Number
18 | // Revision
19 | //
20 | // You can specify all the values or you can default the Build and Revision Numbers
21 | // by using the '*' as shown below:
22 | // [assembly: AssemblyVersion("1.0.*")]
23 | internal class AssemblyInformation
24 | {
25 | public const string AssemblyInformationalVersion = "8.1.0";
26 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.eSign/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-esign-csharp-client/4a595a17bdb08a1891cf0ae0d820e48c8ceca58a/sdk/src/DocuSign.eSign/icon.png
--------------------------------------------------------------------------------
/test/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | *.suo
3 | *.user
4 | *.sln.docstates
5 |
6 | [Dd]ebug/
7 | [Rr]elease/
8 | x64/
9 | build/
10 | [Bb]in/
11 | [Oo]bj/
12 |
13 | /SdkNetCoreTests/bin
14 | /SdkNetCoreTests/obj
15 | /SdkTests/bin
16 | /SdkTests/obj
17 | /SdkTests/packages
18 |
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/AccountApiNetCoreUnitTests.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Microsoft.VisualStudio.TestTools.UnitTesting;
3 | using DocuSign.eSign.Model;
4 | using DocuSign.eSign.Api;
5 | using System.IO;
6 |
7 | namespace SdkNetCoreTests
8 | {
9 | [TestClass]
10 | public class AccountApiNetCoreUnitTests
11 | {
12 | private TestConfig _testConfig;
13 | private AccountsApi _accountsApi;
14 |
15 | [TestInitialize]
16 | public void TestInitialize()
17 | {
18 | _testConfig = new TestConfig();
19 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
20 | _accountsApi = new AccountsApi(_testConfig.ApiClient);
21 | }
22 |
23 | [TestMethod]
24 | public void ListBrands_CorrectAccountId_ReturnsBrandsResponse()
25 | {
26 |
27 | BrandsResponse brandsResponse = _accountsApi.ListBrands(_testConfig.AccountId);
28 |
29 | Assert.IsNotNull(brandsResponse);
30 | }
31 |
32 | [TestMethod]
33 | public void UpdateBrandLogoByType_CorectInputs_ReturnsNoErrors()
34 | {
35 | var logoType = "primary";
36 | if (string.IsNullOrEmpty(_testConfig.BrandId))
37 | {
38 | CreateBrand_CorrectAccountIdAndBrand_ReturnBrandsResponse();
39 | }
40 |
41 | byte[] brandLogoByteArray = Convert.FromBase64String(_testConfig.BrandLogo);
42 | _accountsApi.UpdateBrandLogoByType(_testConfig.AccountId, _testConfig.BrandId, logoType, brandLogoByteArray);
43 |
44 | Stream stream = _accountsApi.GetBrandLogoByType(_testConfig.AccountId, _testConfig.BrandId, logoType);
45 |
46 | Assert.IsNotNull(stream);
47 |
48 | using (var ms = new MemoryStream())
49 | {
50 | stream.CopyTo(ms);
51 | byte[] brandLogoFromApi = ms.ToArray();
52 | Assert.AreEqual(Convert.ToBase64String(brandLogoByteArray), Convert.ToBase64String(brandLogoFromApi));
53 | }
54 | }
55 |
56 | [TestMethod]
57 | public void GetBrandLogoByType_CorrectInputParameters_ReturnStream()
58 | {
59 | if (string.IsNullOrEmpty(_testConfig.BrandId))
60 | {
61 | CreateBrand_CorrectAccountIdAndBrand_ReturnBrandsResponse();
62 | }
63 | var logoType = "primary";
64 | byte[] brandLogoByteArray = Convert.FromBase64String(_testConfig.BrandLogo);
65 |
66 | Stream stream = _accountsApi.GetBrandLogoByType(_testConfig.AccountId, _testConfig.BrandId, logoType);
67 |
68 | Assert.IsNotNull(stream);
69 |
70 | using (var ms = new MemoryStream())
71 | {
72 | stream.CopyTo(ms);
73 | byte[] brandLogoFromApi = ms.ToArray();
74 | Assert.AreEqual(Convert.ToBase64String(brandLogoByteArray), Convert.ToBase64String(brandLogoFromApi));
75 | }
76 | }
77 |
78 | private void CreateBrand_CorrectAccountIdAndBrand_ReturnBrandsResponse()
79 | {
80 | var brand = new Brand
81 | {
82 | BrandName = "C# Brand"
83 | };
84 |
85 | BrandsResponse brands = _accountsApi.CreateBrand(_testConfig.AccountId, brand);
86 |
87 | foreach (Brand singleBrand in brands.Brands)
88 | {
89 | if (singleBrand.BrandName == brand.BrandName)
90 | {
91 | _testConfig.BrandId = singleBrand.BrandId;
92 | }
93 | }
94 | }
95 |
96 | [TestMethod]
97 | public void GetAccountInformation_CorrectAccountId_ReturnAccountInformation()
98 | {
99 | AccountInformation accountInformation = _accountsApi.GetAccountInformation(_testConfig.AccountId);
100 |
101 | Assert.IsNotNull(accountInformation?.AccountIdGuid);
102 | Assert.IsNotNull(accountInformation?.AccountName);
103 | Assert.IsNotNull(accountInformation?.BillingProfile);
104 | }
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/CreateEnvelopeMethod.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using DocuSign.eSign.Api;
5 | using DocuSign.eSign.Model;
6 | using Microsoft.VisualStudio.TestTools.UnitTesting;
7 |
8 | namespace SdkNetCoreTests
9 | {
10 | class CreateEnvelopeMethod
11 | {
12 | public static void CreateEnvelope_CorrectAccountIdAndEnvelopeDefinition_ReturnEnvelopeSummary(ref TestConfig testConfig, string status = "sent")
13 | {
14 | var signTest1File = @"../../../docs/SignTest1.pdf";
15 |
16 | byte[] fileBytes = File.ReadAllBytes(signTest1File);
17 |
18 | var envDef = new EnvelopeDefinition
19 | {
20 | EmailSubject = "[DocuSign C# SDK] - Please sign this doc"
21 | };
22 |
23 | var doc = new Document
24 | {
25 | DocumentBase64 = Convert.ToBase64String(fileBytes),
26 | Name = "TestFile.pdf",
27 | DocumentId = "1"
28 | };
29 |
30 | envDef.Documents = new List { doc };
31 |
32 | var signer = new Signer
33 | {
34 | Email = testConfig.RecipientEmail,
35 | Name = testConfig.RecipientName,
36 | RecipientId = "1",
37 | ClientUserId = "1234",
38 | Tabs = new Tabs
39 | {
40 | SignHereTabs = new List()
41 | }
42 | };
43 |
44 | var signHere = new SignHere
45 | {
46 | DocumentId = "1",
47 | PageNumber = "1",
48 | RecipientId = "1",
49 | XPosition = "100",
50 | YPosition = "100",
51 | ScaleValue = ".5"
52 | };
53 | signer.Tabs.SignHereTabs.Add(signHere);
54 |
55 | envDef.Recipients = new Recipients
56 | {
57 | Signers = new List { signer }
58 | };
59 |
60 | envDef.Status = status;
61 |
62 | var envelopesApi = new EnvelopesApi(testConfig.ApiClient);
63 | EnvelopeSummary envelopeSummary = envelopesApi.CreateEnvelope(testConfig.AccountId, envDef);
64 |
65 | Assert.IsNotNull(envelopeSummary?.EnvelopeId);
66 |
67 | testConfig.EnvelopeId = envelopeSummary.EnvelopeId;
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/DiagnosticApiNetCoreUnitTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using DocuSign.eSign.Model;
3 | using DocuSign.eSign.Api;
4 |
5 | namespace SdkNetCoreTests
6 | {
7 | [TestClass]
8 | public class DiagnosticApiNetCoreUnitTests
9 | {
10 | private TestConfig _testConfig;
11 | private DiagnosticsApi _diagnosticsApi;
12 |
13 | [TestInitialize]
14 | public void TestInitialize()
15 | {
16 | _testConfig = new TestConfig();
17 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
18 | _diagnosticsApi = new DiagnosticsApi(_testConfig.ApiClient);
19 | }
20 |
21 | [TestMethod]
22 | public void GetSetting_ReturnDiagnosticsSettingsInformation()
23 | {
24 | DiagnosticsSettingsInformation diagnosticsSettingsInformation = _diagnosticsApi.GetRequestLogSettings();
25 |
26 | Assert.IsNotNull(diagnosticsSettingsInformation?.ApiRequestLogMaxEntries);
27 | Assert.IsNotNull(diagnosticsSettingsInformation?.ApiRequestLogRemainingEntries);
28 | Assert.IsNotNull(diagnosticsSettingsInformation?.ApiRequestLogging);
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/FoldersApiNetCoreUnitTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using DocuSign.eSign.Model;
3 | using DocuSign.eSign.Api;
4 | using System.Collections.Generic;
5 |
6 | namespace SdkNetCoreTests
7 | {
8 | [TestClass]
9 | public class FoldersApiNetCoreUnitTests
10 | {
11 | private TestConfig _testConfig;
12 | private FoldersApi _foldersApi;
13 |
14 | [TestInitialize]
15 | public void TestInitialize()
16 | {
17 | _testConfig = new TestConfig();
18 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
19 | _foldersApi = new FoldersApi(_testConfig.ApiClient);
20 | }
21 |
22 | [TestMethod]
23 | public void MoveEnvelopes_CorrectInputParameters_ReturnFolderResponse()
24 | {
25 | CreateEnvelopeMethod.CreateEnvelope_CorrectAccountIdAndEnvelopeDefinition_ReturnEnvelopeSummary(ref _testConfig);
26 |
27 | var envelopesApi = new EnvelopesApi(_testConfig.ApiClient);
28 |
29 | Envelope envelope = envelopesApi.GetEnvelope(_testConfig.AccountId, _testConfig.EnvelopeId);
30 | Assert.IsNull(envelope?.VoidedDateTime);
31 | var foldersRequest = new FoldersRequest(new List { _testConfig.EnvelopeId });
32 |
33 | var ToFolderId = "recyclebin";
34 |
35 | _foldersApi.MoveEnvelopes(_testConfig.AccountId, ToFolderId, foldersRequest);
36 |
37 | envelope = envelopesApi.GetEnvelope(_testConfig.AccountId, _testConfig.EnvelopeId);
38 | Assert.IsNotNull(envelope?.VoidedDateTime);
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/JwtLoginMethod.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.IO;
3 | using DocuSign.eSign.Client;
4 | using DocuSign.eSign.Client.Auth;
5 | using Microsoft.VisualStudio.TestTools.UnitTesting;
6 |
7 | namespace SdkNetCoreTests
8 | {
9 | class JwtLoginMethod
10 | {
11 | [TestMethod]
12 | public static void RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref TestConfig testConfig)
13 | {
14 | testConfig.ApiClient = new DocuSignClient(testConfig.Host);
15 |
16 | Assert.IsNotNull(testConfig?.PrivateKey);
17 |
18 | byte[] privateKeyStream = testConfig.PrivateKey;
19 |
20 | var scopes = new List { OAuth.Scope_SIGNATURE, OAuth.Scope_IMPERSONATION };
21 |
22 | OAuth.OAuthToken tokenInfo = testConfig.ApiClient.RequestJWTUserToken(
23 | testConfig.IntegratorKey,
24 | testConfig.UserId,
25 | testConfig.OAuthBasePath,
26 | privateKeyStream,
27 | testConfig.ExpiresInHours,
28 | scopes);
29 |
30 | Assert.IsNotNull(tokenInfo.access_token);
31 |
32 | using (MemoryStream ms = new MemoryStream(privateKeyStream))
33 | {
34 | OAuth.OAuthToken tokenInfoFromStream = testConfig.ApiClient.RequestJWTUserToken(
35 | testConfig.IntegratorKey,
36 | testConfig.UserId,
37 | testConfig.OAuthBasePath,
38 | ms,
39 | testConfig.ExpiresInHours,
40 | scopes);
41 |
42 | Assert.IsNotNull(tokenInfoFromStream.access_token);
43 | }
44 |
45 | OAuth.UserInfo userInfo = testConfig.ApiClient.GetUserInfo(tokenInfo.access_token);
46 |
47 | Assert.IsNotNull(userInfo?.Accounts);
48 |
49 | foreach (OAuth.UserInfo.Account item in userInfo.Accounts)
50 | {
51 | if (item.IsDefault == "true")
52 | {
53 | testConfig.AccountId = item.AccountId;
54 | testConfig.ApiClient.SetBasePath(item.BaseUri + "/restapi");
55 | break;
56 | }
57 | }
58 |
59 | Assert.IsNotNull(testConfig?.AccountId);
60 | CreateEnvelopeMethod.CreateEnvelope_CorrectAccountIdAndEnvelopeDefinition_ReturnEnvelopeSummary(ref testConfig);
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/SdkNetCoreTests.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net6.0
5 | false
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | ..\..\sdk\src\DocuSign.eSign\bin\Debug\netstandard2.0\DocuSign.eSign.dll
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/TemplatesApiNetCoreUnitTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using DocuSign.eSign.Model;
3 | using DocuSign.eSign.Api;
4 | using System.Linq;
5 |
6 | namespace SdkNetCoreTests
7 | {
8 | [TestClass]
9 | public class TemplatesApiNetCoreUnitTests
10 | {
11 | private TestConfig _testConfig;
12 | private TemplatesApi _templatesApi;
13 |
14 | [TestInitialize]
15 | public void TestInitialize()
16 | {
17 | _testConfig = new TestConfig();
18 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
19 | _templatesApi = new TemplatesApi(_testConfig.ApiClient);
20 | }
21 |
22 | [TestMethod]
23 | public void JwtGetTemplates_CorrectAccountId_ReturnEnvelopeTemplateResults()
24 | {
25 | EnvelopeTemplateResults envelopeTemplateResults = _templatesApi.ListTemplates(_testConfig.AccountId);
26 |
27 | Assert.IsNotNull(envelopeTemplateResults?.EnvelopeTemplates?.FirstOrDefault()?.TemplateId);
28 | }
29 |
30 | [TestMethod]
31 | public void JwtGetTemplate_CorrectAccountIdAndTemplateId_ReturnEnvelopeTemplate()
32 | {
33 | EnvelopeTemplateResults envelopeTemplateResults = _templatesApi.ListTemplates(_testConfig.AccountId);
34 | string templateId = envelopeTemplateResults.EnvelopeTemplates.FirstOrDefault()?.TemplateId;
35 |
36 | Assert.IsNotNull(envelopeTemplateResults?.EnvelopeTemplates);
37 | Assert.IsNotNull(templateId);
38 |
39 | EnvelopeTemplate envelopeTemplate = _templatesApi.Get(_testConfig.AccountId, templateId);
40 |
41 | Assert.AreEqual(envelopeTemplate?.TemplateId, templateId);
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/UsersApiNetCoreUnitTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using DocuSign.eSign.Model;
3 | using DocuSign.eSign.Api;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 |
7 | namespace SdkNetCoreTests
8 | {
9 | [TestClass]
10 | public class UsersApiNetCoreUnitTests
11 | {
12 | private TestConfig _testConfig;
13 | private UsersApi _usersApi;
14 |
15 | [TestInitialize]
16 | public void TestInitialize()
17 | {
18 | _testConfig = new TestConfig();
19 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
20 | _usersApi = new UsersApi(_testConfig.ApiClient);
21 | }
22 |
23 | [TestMethod]
24 | public void JwtGetUsers_CorrectAccountId_ReturnUserInformationList()
25 | {
26 | UserInformationList userInformationList = _usersApi.List(_testConfig.AccountId);
27 |
28 | Assert.IsNotNull(userInformationList?.Users?.FirstOrDefault()?.UserId);
29 | }
30 |
31 | [TestMethod]
32 | public void JwtPostUsers_CorrectAccountIdAndNewUsersDefinition_ReturnNewUsersSummary()
33 | {
34 | var user = new UserInformation();
35 | var userInformation = new List();
36 | var usersDefinition = new NewUsersDefinition();
37 |
38 | user.Email = "test@test.com";
39 | user.UserName = "Test User";
40 |
41 | userInformation.Add(user);
42 | usersDefinition.NewUsers = userInformation;
43 |
44 | NewUsersSummary userInformationList = _usersApi.Create(_testConfig.AccountId, usersDefinition);
45 |
46 | Assert.IsNotNull(userInformationList?.NewUsers?.Exists(x => x.Email == user.Email && x.UserName == user.UserName));
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/docs/SignTest1.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-esign-csharp-client/4a595a17bdb08a1891cf0ae0d820e48c8ceca58a/test/SdkNetCoreTests/docs/SignTest1.docx
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/docs/SignTest1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-esign-csharp-client/4a595a17bdb08a1891cf0ae0d820e48c8ceca58a/test/SdkNetCoreTests/docs/SignTest1.pdf
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/docs/SignTest2.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-esign-csharp-client/4a595a17bdb08a1891cf0ae0d820e48c8ceca58a/test/SdkNetCoreTests/docs/SignTest2.pdf
--------------------------------------------------------------------------------
/test/SdkTests.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.1.32319.34
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SdkTests", "SdkTests\SdkTests.csproj", "{603F7955-D911-4DF1-AE58-DFC3D015D3B0}"
7 | EndProject
8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SdkNetCoreTests", "SdkNetCoreTests\SdkNetCoreTests.csproj", "{9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SdkTests462", "SdkTests462\SdkTests462.csproj", "{2D19CBFB-DE23-4A26-A83A-D6F21FAFDEC1}"
11 | EndProject
12 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Configuration", "Configuration", "{6D3985EA-63C6-4114-913D-E41F1FBC3DC2}"
13 | ProjectSection(SolutionItems) = preProject
14 | private.key = private.key
15 | EndProjectSection
16 | EndProject
17 | Global
18 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
19 | Debug|Any CPU = Debug|Any CPU
20 | Release|Any CPU = Release|Any CPU
21 | EndGlobalSection
22 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
23 | {603F7955-D911-4DF1-AE58-DFC3D015D3B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24 | {603F7955-D911-4DF1-AE58-DFC3D015D3B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
25 | {603F7955-D911-4DF1-AE58-DFC3D015D3B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
26 | {603F7955-D911-4DF1-AE58-DFC3D015D3B0}.Release|Any CPU.Build.0 = Release|Any CPU
27 | {9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28 | {9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
29 | {9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
30 | {9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}.Release|Any CPU.Build.0 = Release|Any CPU
31 | {2D19CBFB-DE23-4A26-A83A-D6F21FAFDEC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32 | {2D19CBFB-DE23-4A26-A83A-D6F21FAFDEC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
33 | {2D19CBFB-DE23-4A26-A83A-D6F21FAFDEC1}.Release|Any CPU.ActiveCfg = Release|Any CPU
34 | {2D19CBFB-DE23-4A26-A83A-D6F21FAFDEC1}.Release|Any CPU.Build.0 = Release|Any CPU
35 | EndGlobalSection
36 | GlobalSection(SolutionProperties) = preSolution
37 | HideSolutionNode = FALSE
38 | EndGlobalSection
39 | GlobalSection(ExtensibilityGlobals) = postSolution
40 | SolutionGuid = {10DCC3EC-815B-4DE3-A9E8-C4AADE9AB546}
41 | EndGlobalSection
42 | EndGlobal
43 |
--------------------------------------------------------------------------------
/test/SdkTests/AccountApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Microsoft.VisualStudio.TestTools.UnitTesting;
3 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
4 | using DocuSign.eSign.Model;
5 | using DocuSign.eSign.Api;
6 | using System.IO;
7 |
8 | namespace SdkTests
9 | {
10 | [TestClass]
11 | public class AccountApiUnitTests
12 | {
13 | private TestConfig _testConfig;
14 | private AccountsApi _accountsApi;
15 |
16 | [TestInitialize]
17 | public void TestInitialize()
18 | {
19 | _testConfig = new TestConfig();
20 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
21 | _accountsApi = new AccountsApi(_testConfig.ApiClient);
22 | }
23 |
24 | [TestMethod]
25 | public void ListBrands_CorrectAccountId_ReturnsBrandsResponse()
26 | {
27 | BrandsResponse brandsResponse = _accountsApi.ListBrands(_testConfig.AccountId);
28 |
29 | Assert.IsNotNull(brandsResponse);
30 | }
31 |
32 | [TestMethod]
33 | public void UpdateBrandLogoByType_CorectInputs_ReturnsNoErrors()
34 | {
35 | var logoType = "primary";
36 | if (string.IsNullOrEmpty(_testConfig.BrandId))
37 | {
38 | CreateBrand_CorrectAccountIdAndBrand_ReturnBrandsResponse();
39 | }
40 |
41 | byte[] brandLogoByteArray = Convert.FromBase64String(_testConfig.BrandLogo);
42 | _accountsApi.UpdateBrandLogoByType(_testConfig.AccountId, _testConfig.BrandId, logoType, brandLogoByteArray);
43 |
44 | Stream stream = _accountsApi.GetBrandLogoByType(_testConfig.AccountId, _testConfig.BrandId, logoType);
45 |
46 | Assert.IsNotNull(stream);
47 |
48 | using (var ms = new MemoryStream())
49 | {
50 | stream.CopyTo(ms);
51 | byte[] brandLogoFromApi = ms.ToArray();
52 | Assert.AreEqual(Convert.ToBase64String(brandLogoByteArray), Convert.ToBase64String(brandLogoFromApi));
53 | }
54 | }
55 |
56 | [TestMethod]
57 | public void GetBrandLogoByType_CorrectInputParameters_ReturnStream()
58 | {
59 | if (string.IsNullOrEmpty(_testConfig.BrandId))
60 | {
61 | CreateBrand_CorrectAccountIdAndBrand_ReturnBrandsResponse();
62 | }
63 | var logoType = "primary";
64 | byte[] brandLogoByteArray = Convert.FromBase64String(_testConfig.BrandLogo);
65 |
66 | Stream stream = _accountsApi.GetBrandLogoByType(_testConfig.AccountId, _testConfig.BrandId, logoType);
67 |
68 | Assert.IsNotNull(stream);
69 |
70 | using (var ms = new MemoryStream())
71 | {
72 | stream.CopyTo(ms);
73 | byte[] brandLogoFromApi = ms.ToArray();
74 | Assert.AreEqual(Convert.ToBase64String(brandLogoByteArray), Convert.ToBase64String(brandLogoFromApi));
75 | }
76 | }
77 |
78 | private void CreateBrand_CorrectAccountIdAndBrand_ReturnBrandsResponse()
79 | {
80 | var brand = new Brand
81 | {
82 | BrandName = "C# Brand"
83 | };
84 |
85 | BrandsResponse brands = _accountsApi.CreateBrand(_testConfig.AccountId, brand);
86 |
87 | foreach (Brand singleBrand in brands.Brands)
88 | {
89 | if (singleBrand.BrandName == brand.BrandName)
90 | {
91 | _testConfig.BrandId = singleBrand.BrandId;
92 | }
93 | }
94 | }
95 |
96 | [TestMethod]
97 | public void GetAccountInformation_CorrectAccountId_ReturnAccountInformation()
98 | {
99 | AccountInformation accountInformation = _accountsApi.GetAccountInformation(_testConfig.AccountId);
100 |
101 | Assert.IsNotNull(accountInformation?.AccountIdGuid);
102 | Assert.IsNotNull(accountInformation?.AccountName);
103 | Assert.IsNotNull(accountInformation?.BillingProfile);
104 | }
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/test/SdkTests/CreateEnvelopeMethod.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using DocuSign.eSign.Api;
5 | using DocuSign.eSign.Model;
6 | using Microsoft.VisualStudio.TestTools.UnitTesting;
7 |
8 | namespace SdkTests
9 | {
10 | class CreateEnvelopeMethod
11 | {
12 | public static void CreateEnvelope_CorrectAccountIdAndEnvelopeDefinition_ReturnEnvelopeSummary(ref TestConfig testConfig, string status = "sent")
13 | {
14 | var signTest1File = @"../../docs/SignTest1.pdf";
15 |
16 | byte[] fileBytes = File.ReadAllBytes(signTest1File);
17 |
18 | var envDef = new EnvelopeDefinition
19 | {
20 | EmailSubject = "[DocuSign C# SDK] - Please sign this doc"
21 | };
22 |
23 | var doc = new Document
24 | {
25 | DocumentBase64 = Convert.ToBase64String(fileBytes),
26 | Name = "TestFile.pdf",
27 | DocumentId = "1"
28 | };
29 |
30 | envDef.Documents = new List { doc };
31 |
32 | var signer = new Signer
33 | {
34 | Email = testConfig.RecipientEmail,
35 | Name = testConfig.RecipientName,
36 | RecipientId = "1",
37 | ClientUserId = "1234",
38 | Tabs = new Tabs
39 | {
40 | SignHereTabs = new List()
41 | }
42 | };
43 |
44 | var signHere = new SignHere
45 | {
46 | DocumentId = "1",
47 | PageNumber = "1",
48 | RecipientId = "1",
49 | XPosition = "100",
50 | YPosition = "100",
51 | ScaleValue = ".5"
52 | };
53 | signer.Tabs.SignHereTabs.Add(signHere);
54 |
55 | envDef.Recipients = new Recipients
56 | {
57 | Signers = new List { signer }
58 | };
59 |
60 | envDef.Status = status;
61 |
62 | var envelopesApi = new EnvelopesApi(testConfig.ApiClient);
63 | EnvelopeSummary envelopeSummary = envelopesApi.CreateEnvelope(testConfig.AccountId, envDef);
64 |
65 | Assert.IsNotNull(envelopeSummary?.EnvelopeId);
66 |
67 | testConfig.EnvelopeId = envelopeSummary.EnvelopeId;
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/test/SdkTests/DiagnosticApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
3 | using DocuSign.eSign.Model;
4 | using DocuSign.eSign.Api;
5 |
6 | namespace SdkTests
7 | {
8 | [TestClass]
9 | public class DiagnosticApiUnitTests
10 | {
11 | private TestConfig _testConfig;
12 | private DiagnosticsApi _diagnosticsApi;
13 |
14 | [TestInitialize]
15 | public void TestInitialize()
16 | {
17 | _testConfig = new TestConfig();
18 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
19 | _diagnosticsApi = new DiagnosticsApi(_testConfig.ApiClient);
20 | }
21 |
22 | [TestMethod]
23 | public void GetSetting_ReturnDiagnosticsSettingsInformation()
24 | {
25 | DiagnosticsSettingsInformation diagnosticsSettingsInformation = _diagnosticsApi.GetRequestLogSettings();
26 |
27 | Assert.IsNotNull(diagnosticsSettingsInformation?.ApiRequestLogMaxEntries);
28 | Assert.IsNotNull(diagnosticsSettingsInformation?.ApiRequestLogRemainingEntries);
29 | Assert.IsNotNull(diagnosticsSettingsInformation?.ApiRequestLogging);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/test/SdkTests/FoldersApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
3 | using DocuSign.eSign.Model;
4 | using DocuSign.eSign.Api;
5 | using System.Collections.Generic;
6 |
7 | namespace SdkTests
8 | {
9 | [TestClass]
10 | public class FoldersApiUnitTests
11 | {
12 | private TestConfig _testConfig;
13 | private FoldersApi _foldersApi;
14 |
15 | [TestInitialize]
16 | public void TestInitialize()
17 | {
18 | _testConfig = new TestConfig();
19 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
20 | _foldersApi = new FoldersApi(_testConfig.ApiClient);
21 | }
22 |
23 | [TestMethod]
24 | public void MoveEnvelopes_CorrectInputParameters_ReturnFolderResponse()
25 | {
26 | CreateEnvelopeMethod.CreateEnvelope_CorrectAccountIdAndEnvelopeDefinition_ReturnEnvelopeSummary(ref _testConfig);
27 |
28 | var envelopesApi = new EnvelopesApi(_testConfig.ApiClient);
29 |
30 | Envelope envelope = envelopesApi.GetEnvelope(_testConfig.AccountId, _testConfig.EnvelopeId);
31 | Assert.IsNull(envelope?.VoidedDateTime);
32 | var foldersRequest = new FoldersRequest(new List { _testConfig.EnvelopeId });
33 |
34 | var ToFolderId = "recyclebin";
35 |
36 | _foldersApi.MoveEnvelopes(_testConfig.AccountId, ToFolderId, foldersRequest);
37 |
38 | envelope = envelopesApi.GetEnvelope(_testConfig.AccountId, _testConfig.EnvelopeId);
39 | Assert.IsNotNull(envelope?.VoidedDateTime);
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/test/SdkTests/JwtLoginMethod.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.IO;
3 | using DocuSign.eSign.Client;
4 | using DocuSign.eSign.Client.Auth;
5 | using Microsoft.VisualStudio.TestTools.UnitTesting;
6 |
7 | namespace SdkTests
8 | {
9 | class JwtLoginMethod
10 | {
11 | [TestMethod]
12 | public static void RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref TestConfig testConfig)
13 | {
14 | testConfig.ApiClient = new ApiClient(testConfig.Host);
15 |
16 | Assert.IsNotNull(testConfig?.PrivateKey);
17 |
18 | byte[] privateKeyStream = testConfig.PrivateKey;
19 |
20 | var scopes = new List { OAuth.Scope_SIGNATURE, OAuth.Scope_IMPERSONATION };
21 |
22 | OAuth.OAuthToken tokenInfo = testConfig.ApiClient.RequestJWTUserToken(
23 | testConfig.IntegratorKey,
24 | testConfig.UserId,
25 | testConfig.OAuthBasePath,
26 | privateKeyStream,
27 | testConfig.ExpiresInHours,
28 | scopes);
29 |
30 | Assert.IsNotNull(tokenInfo.access_token);
31 |
32 | using (MemoryStream ms = new MemoryStream(privateKeyStream))
33 | {
34 | OAuth.OAuthToken tokenInfoFromStream = testConfig.ApiClient.RequestJWTUserToken(
35 | testConfig.IntegratorKey,
36 | testConfig.UserId,
37 | testConfig.OAuthBasePath,
38 | ms,
39 | testConfig.ExpiresInHours,
40 | scopes);
41 |
42 | Assert.IsNotNull(tokenInfoFromStream.access_token);
43 | }
44 |
45 | OAuth.UserInfo userInfo = testConfig.ApiClient.GetUserInfo(tokenInfo.access_token);
46 |
47 | Assert.IsNotNull(userInfo?.Accounts);
48 |
49 | foreach (OAuth.UserInfo.Account item in userInfo.Accounts)
50 | {
51 | if (item.IsDefault == "true")
52 | {
53 | testConfig.AccountId = item.AccountId;
54 | testConfig.ApiClient.SetBasePath(item.BaseUri + "/restapi");
55 | break;
56 | }
57 | }
58 |
59 | Assert.IsNotNull(testConfig?.AccountId);
60 | CreateEnvelopeMethod.CreateEnvelope_CorrectAccountIdAndEnvelopeDefinition_ReturnEnvelopeSummary(ref testConfig);
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/test/SdkTests/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("SdkTests")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("DocuSign")]
12 | [assembly: AssemblyProduct("SdkTests")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("a84588ae-a5ff-4d5c-8c5b-ca0bd1332060")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/test/SdkTests/TemplatesApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
3 | using DocuSign.eSign.Model;
4 | using DocuSign.eSign.Api;
5 | using System.Linq;
6 |
7 | namespace SdkTests
8 | {
9 | [TestClass]
10 | public class TemplatesApiUnitTests
11 | {
12 | private TestConfig _testConfig;
13 | private TemplatesApi _templatesApi;
14 |
15 | [TestInitialize]
16 | public void TestInitialize()
17 | {
18 | _testConfig = new TestConfig();
19 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
20 | _templatesApi = new TemplatesApi(_testConfig.ApiClient);
21 | }
22 |
23 | [TestMethod]
24 | public void JwtGetTemplates_CorrectAccountId_ReturnEnvelopeTemplateResults()
25 | {
26 | EnvelopeTemplateResults envelopeTemplateResults = _templatesApi.ListTemplates(_testConfig.AccountId);
27 |
28 | Assert.IsNotNull(envelopeTemplateResults?.EnvelopeTemplates?.FirstOrDefault()?.TemplateId);
29 | }
30 |
31 | [TestMethod]
32 | public void JwtGetTemplate_CorrectAccountIdAndTemplateId_ReturnEnvelopeTemplate()
33 | {
34 | EnvelopeTemplateResults envelopeTemplateResults = _templatesApi.ListTemplates(_testConfig.AccountId);
35 | string templateId = envelopeTemplateResults.EnvelopeTemplates.FirstOrDefault()?.TemplateId;
36 |
37 | Assert.IsNotNull(envelopeTemplateResults?.EnvelopeTemplates);
38 | Assert.IsNotNull(templateId);
39 |
40 | EnvelopeTemplate envelopeTemplate = _templatesApi.Get(_testConfig.AccountId, templateId);
41 |
42 | Assert.AreEqual(envelopeTemplate?.TemplateId, templateId);
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/test/SdkTests/TestConfig.cs.sample:
--------------------------------------------------------------------------------
1 | using DocuSign.eSign.Client;
2 |
3 | namespace SdkTests
4 | {
5 | class TestConfig
6 | {
7 | public string Username { get; set; }
8 | public string Password { get; set; }
9 | public string IntegratorKey { get; set; }
10 | public string Host { get; set; }
11 | public ApiClient ApiClient { get; set; }
12 | //public Configuration Configuration { get; set; }
13 | public string AccountId { get; set; }
14 | public string RecipientEmail { get; set; }
15 | public string RecipientName { get; set; }
16 | public string TemplateRoleName { get; set; }
17 | public string TemplateId { get; set; }
18 | public string EnvelopeId { get; set; }
19 | public string ReturnUrl { get; set; }
20 | public string UserId { get; set; }
21 | public string OAuthBasePath { get; set; }
22 | public string PrivateKeyFilename { get; set; }
23 | public int ExpiresInHours { get; set; }
24 |
25 | public TestConfig(string username = null, string password = null, string integratorKey = null, string host = null, string recipientEmail = null, string recipientName = null, string templateRoleName = null, string templateId = null, string returnUrl = null)
26 | {
27 | this.Host = (host != null) ? host : "REQUIRED";
28 | this.Username = (username != null) ? username : "REQUIRED";
29 | this.Password = (password != null) ? password : "REQUIRED";
30 | this.IntegratorKey = (integratorKey != null) ? integratorKey : "REQUIRED";
31 |
32 | this.RecipientEmail = (recipientEmail != null) ? recipientEmail : "REQUIRED";
33 | this.RecipientName = (recipientName != null) ? recipientName : "REQUIRED";
34 |
35 | this.TemplateRoleName = (templateRoleName != null) ? templateRoleName : "REQUIRED";
36 | this.TemplateId = (templateId != null) ? templateId : "REQUIRED";
37 |
38 | this.ReturnUrl = (returnUrl != null) ? returnUrl : "https://www.docusign.com/devcenter";
39 |
40 | this.UserId = "REQUIRED";
41 | this.OAuthBasePath = "account-d.docusign.com";
42 | this.PrivateKeyFilename = "REQUIRED";
43 | this.ExpiresInHours = 1;
44 |
45 | //this.Configuration = new Configuration();
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/test/SdkTests/UsersApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
3 | using DocuSign.eSign.Model;
4 | using DocuSign.eSign.Api;
5 | using System.Collections.Generic;
6 | using System.Linq;
7 |
8 | namespace SdkTests
9 | {
10 | [TestClass]
11 | public class UsersApiUnitTests
12 | {
13 | private TestConfig _testConfig;
14 | private UsersApi _usersApi;
15 |
16 | [TestInitialize]
17 | public void TestInitialize()
18 | {
19 | _testConfig = new TestConfig();
20 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
21 | _usersApi = new UsersApi(_testConfig.ApiClient);
22 | }
23 |
24 | [TestMethod]
25 | public void JwtGetUsers_CorrectAccountId_ReturnUserInformationList()
26 | {
27 | UserInformationList userInformationList = _usersApi.List(_testConfig.AccountId);
28 |
29 | Assert.IsNotNull(userInformationList?.Users?.FirstOrDefault()?.UserId);
30 | }
31 |
32 | [TestMethod]
33 | public void JwtPostUsers_CorrectAccountIdAndNewUsersDefinition_ReturnNewUsersSummary()
34 | {
35 | var user = new UserInformation();
36 | var userInformation = new List();
37 | var usersDefinition = new NewUsersDefinition();
38 |
39 | user.Email = "test@test.com";
40 | user.UserName = "Test User";
41 | userInformation.Add(user);
42 | usersDefinition.NewUsers = userInformation;
43 |
44 | NewUsersSummary userInformationList = _usersApi.Create(_testConfig.AccountId, usersDefinition);
45 |
46 | Assert.IsNotNull(userInformationList?.NewUsers?.Exists(x => x.Email == user.Email && x.UserName == user.UserName));
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/test/SdkTests/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/SdkTests/docs/SignTest1.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-esign-csharp-client/4a595a17bdb08a1891cf0ae0d820e48c8ceca58a/test/SdkTests/docs/SignTest1.docx
--------------------------------------------------------------------------------
/test/SdkTests/docs/SignTest1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-esign-csharp-client/4a595a17bdb08a1891cf0ae0d820e48c8ceca58a/test/SdkTests/docs/SignTest1.pdf
--------------------------------------------------------------------------------
/test/SdkTests462/AccountsApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Microsoft.VisualStudio.TestTools.UnitTesting;
3 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
4 | using DocuSign.eSign.Model;
5 | using DocuSign.eSign.Api;
6 | using System.IO;
7 |
8 | namespace SdkTests462
9 | {
10 | [TestClass]
11 | public class AccountsApiUnitTests
12 | {
13 | private TestConfig _testConfig;
14 | private AccountsApi _accountsApi;
15 |
16 | [TestInitialize]
17 | public void TestInitialize()
18 | {
19 | _testConfig = new TestConfig();
20 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
21 | _accountsApi = new AccountsApi(_testConfig.ApiClient);
22 | }
23 |
24 | [TestMethod]
25 | public void ListBrands_CorrectAccountId_ReturnsBrandsResponse()
26 | {
27 | BrandsResponse brandsResponse = _accountsApi.ListBrands(_testConfig.AccountId);
28 |
29 | Assert.IsNotNull(brandsResponse);
30 | }
31 |
32 | [TestMethod]
33 | public void UpdateBrandLogoByType_CorectInputs_ReturnsNoErrors()
34 | {
35 | var logoType = "primary";
36 | if (string.IsNullOrEmpty(_testConfig.BrandId))
37 | {
38 | CreateBrand_CorrectAccountIdAndBrand_ReturnBrandsResponse();
39 | }
40 |
41 | byte[] brandLogoByteArray = Convert.FromBase64String(_testConfig.BrandLogo);
42 | _accountsApi.UpdateBrandLogoByType(_testConfig.AccountId, _testConfig.BrandId, logoType, brandLogoByteArray);
43 |
44 | Stream stream = _accountsApi.GetBrandLogoByType(_testConfig.AccountId, _testConfig.BrandId, logoType);
45 |
46 | Assert.IsNotNull(stream);
47 |
48 | using (var ms = new MemoryStream())
49 | {
50 | stream.CopyTo(ms);
51 | byte[] brandLogoFromApi = ms.ToArray();
52 | Assert.AreEqual(Convert.ToBase64String(brandLogoByteArray), Convert.ToBase64String(brandLogoFromApi));
53 | }
54 | }
55 |
56 | [TestMethod]
57 | public void GetBrandLogoByType_CorrectInputParameters_ReturnStream()
58 | {
59 | if (string.IsNullOrEmpty(_testConfig.BrandId))
60 | {
61 | CreateBrand_CorrectAccountIdAndBrand_ReturnBrandsResponse();
62 | }
63 | var logoType = "primary";
64 | byte[] brandLogoByteArray = Convert.FromBase64String(_testConfig.BrandLogo);
65 |
66 | Stream stream = _accountsApi.GetBrandLogoByType(_testConfig.AccountId, _testConfig.BrandId, logoType);
67 |
68 | Assert.IsNotNull(stream);
69 |
70 | using (var ms = new MemoryStream())
71 | {
72 | stream.CopyTo(ms);
73 | byte[] brandLogoFromApi = ms.ToArray();
74 | Assert.AreEqual(Convert.ToBase64String(brandLogoByteArray), Convert.ToBase64String(brandLogoFromApi));
75 | }
76 | }
77 |
78 | private void CreateBrand_CorrectAccountIdAndBrand_ReturnBrandsResponse()
79 | {
80 | var brand = new Brand
81 | {
82 | BrandName = "C# Brand"
83 | };
84 |
85 | BrandsResponse brands = _accountsApi.CreateBrand(_testConfig.AccountId, brand);
86 |
87 | foreach (Brand singleBrand in brands.Brands)
88 | {
89 | if (singleBrand.BrandName == brand.BrandName)
90 | {
91 | _testConfig.BrandId = singleBrand.BrandId;
92 | }
93 | }
94 | }
95 |
96 | [TestMethod]
97 | public void GetAccountInformation_CorrectAccountId_ReturnAccountInformation()
98 | {
99 | AccountInformation accountInformation = _accountsApi.GetAccountInformation(_testConfig.AccountId);
100 |
101 | Assert.IsNotNull(accountInformation?.AccountIdGuid);
102 | Assert.IsNotNull(accountInformation?.AccountName);
103 | Assert.IsNotNull(accountInformation?.BillingProfile);
104 | }
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/test/SdkTests462/CreateEnvelopeMethod.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using DocuSign.eSign.Api;
5 | using DocuSign.eSign.Model;
6 | using Microsoft.VisualStudio.TestTools.UnitTesting;
7 |
8 | namespace SdkTests462
9 | {
10 | class CreateEnvelopeMethod
11 | {
12 | public static void CreateEnvelope_CorrectAccountIdAndEnvelopeDefinition_ReturnEnvelopeSummary(ref TestConfig testConfig, string status = "sent")
13 | {
14 | var signTest1File = @"../../docs/SignTest1.pdf";
15 |
16 | byte[] fileBytes = File.ReadAllBytes(signTest1File);
17 |
18 | var envDef = new EnvelopeDefinition
19 | {
20 | EmailSubject = "[DocuSign C# SDK] - Please sign this doc"
21 | };
22 |
23 | var doc = new Document
24 | {
25 | DocumentBase64 = Convert.ToBase64String(fileBytes),
26 | Name = "TestFile.pdf",
27 | DocumentId = "1"
28 | };
29 |
30 | envDef.Documents = new List { doc };
31 |
32 | var signer = new Signer
33 | {
34 | Email = testConfig.RecipientEmail,
35 | Name = testConfig.RecipientName,
36 | RecipientId = "1",
37 | ClientUserId = "1234",
38 | Tabs = new Tabs
39 | {
40 | SignHereTabs = new List()
41 | }
42 | };
43 |
44 | var signHere = new SignHere
45 | {
46 | DocumentId = "1",
47 | PageNumber = "1",
48 | RecipientId = "1",
49 | XPosition = "100",
50 | YPosition = "100",
51 | ScaleValue = ".5"
52 | };
53 | signer.Tabs.SignHereTabs.Add(signHere);
54 |
55 | envDef.Recipients = new Recipients
56 | {
57 | Signers = new List { signer }
58 | };
59 |
60 | envDef.Status = status;
61 |
62 | var envelopesApi = new EnvelopesApi(testConfig.ApiClient);
63 | EnvelopeSummary envelopeSummary = envelopesApi.CreateEnvelope(testConfig.AccountId, envDef);
64 |
65 | Assert.IsNotNull(envelopeSummary?.EnvelopeId);
66 |
67 | testConfig.EnvelopeId = envelopeSummary.EnvelopeId;
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/test/SdkTests462/DiagnosticApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using DocuSign.eSign.Api;
2 | using DocuSign.eSign.Model;
3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
4 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
5 |
6 | namespace SdkTests462
7 | {
8 | [TestClass]
9 | public class DiagnosticApiUnitTests
10 | {
11 | private TestConfig _testConfig;
12 | private DiagnosticsApi _diagnosticsApi;
13 |
14 | [TestInitialize]
15 | public void TestInitialize()
16 | {
17 | _testConfig = new TestConfig();
18 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
19 | _diagnosticsApi = new DiagnosticsApi(_testConfig.ApiClient);
20 | }
21 |
22 | [TestMethod]
23 | public void GetSetting_ReturnDiagnosticsSettingsInformation()
24 | {
25 |
26 | DiagnosticsSettingsInformation diagnosticsSettingsInformation = _diagnosticsApi.GetRequestLogSettings();
27 |
28 | Assert.IsNotNull(diagnosticsSettingsInformation?.ApiRequestLogMaxEntries);
29 | Assert.IsNotNull(diagnosticsSettingsInformation?.ApiRequestLogRemainingEntries);
30 | Assert.IsNotNull(diagnosticsSettingsInformation?.ApiRequestLogging);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/test/SdkTests462/FoldersApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using DocuSign.eSign.Api;
3 | using DocuSign.eSign.Model;
4 | using Microsoft.VisualStudio.TestTools.UnitTesting;
5 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
6 |
7 | namespace SdkTests462
8 | {
9 | [TestClass]
10 | public class FoldersApiUnitTests
11 | {
12 | private TestConfig _testConfig;
13 | private FoldersApi _foldersApi;
14 |
15 | [TestInitialize]
16 | public void TestInitialize()
17 | {
18 | _testConfig = new TestConfig();
19 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
20 | _foldersApi = new FoldersApi(_testConfig.ApiClient);
21 | }
22 |
23 | [TestMethod]
24 | public void MoveEnvelopes_CorrectInputParameters_ReturnFolderResponse()
25 | {
26 | CreateEnvelopeMethod.CreateEnvelope_CorrectAccountIdAndEnvelopeDefinition_ReturnEnvelopeSummary(ref _testConfig);
27 |
28 | var envelopesApi = new EnvelopesApi(_testConfig.ApiClient);
29 |
30 | Envelope envelope = envelopesApi.GetEnvelope(_testConfig.AccountId, _testConfig.EnvelopeId);
31 | Assert.IsNull(envelope?.VoidedDateTime);
32 | var foldersRequest = new FoldersRequest(new List { _testConfig.EnvelopeId });
33 |
34 | var ToFolderId = "recyclebin";
35 |
36 | _foldersApi.MoveEnvelopes(_testConfig.AccountId, ToFolderId, foldersRequest);
37 |
38 | envelope = envelopesApi.GetEnvelope(_testConfig.AccountId, _testConfig.EnvelopeId);
39 | Assert.IsNotNull(envelope?.VoidedDateTime);
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/test/SdkTests462/JwtLoginMethod.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.IO;
3 | using DocuSign.eSign.Client;
4 | using DocuSign.eSign.Client.Auth;
5 | using Microsoft.VisualStudio.TestTools.UnitTesting;
6 |
7 | namespace SdkTests462
8 | {
9 | class JwtLoginMethod
10 | {
11 | [TestMethod]
12 | public static void RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref TestConfig testConfig)
13 | {
14 | testConfig.ApiClient = new DocuSignClient(testConfig.Host);
15 |
16 | Assert.IsNotNull(testConfig?.PrivateKey);
17 |
18 | byte[] privateKeyStream = testConfig.PrivateKey;
19 |
20 | var scopes = new List { OAuth.Scope_SIGNATURE, OAuth.Scope_IMPERSONATION };
21 |
22 | OAuth.OAuthToken tokenInfo = testConfig.ApiClient.RequestJWTUserToken(
23 | testConfig.IntegratorKey,
24 | testConfig.UserId,
25 | testConfig.OAuthBasePath,
26 | privateKeyStream,
27 | testConfig.ExpiresInHours,
28 | scopes);
29 |
30 | Assert.IsNotNull(tokenInfo.access_token);
31 |
32 | using (MemoryStream ms = new MemoryStream(privateKeyStream)) {
33 | OAuth.OAuthToken tokenInfoFromStream = testConfig.ApiClient.RequestJWTUserToken(
34 | testConfig.IntegratorKey,
35 | testConfig.UserId,
36 | testConfig.OAuthBasePath,
37 | ms,
38 | testConfig.ExpiresInHours,
39 | scopes);
40 |
41 | Assert.IsNotNull(tokenInfoFromStream.access_token);
42 | }
43 |
44 | OAuth.UserInfo userInfo = testConfig.ApiClient.GetUserInfo(tokenInfo.access_token);
45 |
46 | Assert.IsNotNull(userInfo?.Accounts);
47 |
48 | foreach (OAuth.UserInfo.Account item in userInfo.Accounts)
49 | {
50 | if (item.IsDefault == "true")
51 | {
52 | testConfig.AccountId = item.AccountId;
53 | testConfig.ApiClient.SetBasePath(item.BaseUri + "/restapi");
54 | break;
55 | }
56 | }
57 |
58 | Assert.IsNotNull(testConfig?.AccountId);
59 | CreateEnvelopeMethod.CreateEnvelope_CorrectAccountIdAndEnvelopeDefinition_ReturnEnvelopeSummary(ref testConfig);
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/test/SdkTests462/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | [assembly: AssemblyTitle("SdkTests462")]
6 | [assembly: AssemblyDescription("")]
7 | [assembly: AssemblyConfiguration("")]
8 | [assembly: AssemblyCompany("")]
9 | [assembly: AssemblyProduct("SdkTests462")]
10 | [assembly: AssemblyCopyright("Copyright © 2019")]
11 | [assembly: AssemblyTrademark("")]
12 | [assembly: AssemblyCulture("")]
13 |
14 | [assembly: ComVisible(false)]
15 |
16 | [assembly: Guid("2d19cbfb-de23-4a26-a83a-d6f21fafdec1")]
17 |
18 | // [assembly: AssemblyVersion("1.0.*")]
19 | [assembly: AssemblyVersion("1.0.0.0")]
20 | [assembly: AssemblyFileVersion("1.0.0.0")]
21 |
--------------------------------------------------------------------------------
/test/SdkTests462/TemplatesApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using DocuSign.eSign.Api;
3 | using DocuSign.eSign.Model;
4 | using Microsoft.VisualStudio.TestTools.UnitTesting;
5 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
6 |
7 | namespace SdkTests462
8 | {
9 | [TestClass]
10 | public class TemplatesApiUnitTests
11 | {
12 | private TestConfig _testConfig;
13 | private TemplatesApi _templatesApi;
14 |
15 | [TestInitialize]
16 | public void TestInitialize()
17 | {
18 | _testConfig = new TestConfig();
19 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
20 | _templatesApi = new TemplatesApi(_testConfig.ApiClient);
21 | }
22 |
23 |
24 | [TestMethod]
25 | public void JwtGetTemplates_CorrectAccountId_ReturnEnvelopeTemplateResults()
26 | {
27 | EnvelopeTemplateResults envelopeTemplateResults = _templatesApi.ListTemplates(_testConfig.AccountId);
28 |
29 | Assert.IsNotNull(envelopeTemplateResults?.EnvelopeTemplates?.FirstOrDefault()?.TemplateId);
30 | }
31 |
32 | [TestMethod]
33 | public void JwtGetTemplate_CorrectAccountIdAndTemplateId_ReturnEnvelopeTemplate()
34 | {
35 | EnvelopeTemplateResults envelopeTemplateResults = _templatesApi.ListTemplates(_testConfig.AccountId);
36 | string templateId = envelopeTemplateResults.EnvelopeTemplates.FirstOrDefault()?.TemplateId;
37 |
38 | Assert.IsNotNull(envelopeTemplateResults?.EnvelopeTemplates);
39 | Assert.IsNotNull(templateId);
40 |
41 | EnvelopeTemplate envelopeTemplate = _templatesApi.Get(_testConfig.AccountId, templateId);
42 |
43 | Assert.AreEqual(envelopeTemplate?.TemplateId, templateId);
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/test/SdkTests462/UsersApiUnitTests.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Linq;
3 | using DocuSign.eSign.Api;
4 | using DocuSign.eSign.Model;
5 | using Microsoft.VisualStudio.TestTools.UnitTesting;
6 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
7 |
8 | namespace SdkTests462
9 | {
10 | [TestClass]
11 | public class UsersApiUnitTests
12 | {
13 | private TestConfig _testConfig;
14 | private UsersApi _usersApi;
15 |
16 | [TestInitialize]
17 | public void TestInitialize()
18 | {
19 | _testConfig = new TestConfig();
20 | JwtLoginMethod.RequestJWTUserToken_CorrectInputParameters_ReturnsOAuthToken(ref _testConfig);
21 | _usersApi = new UsersApi(_testConfig.ApiClient);
22 | }
23 |
24 | [TestMethod]
25 | public void JwtGetUsers_CorrectAccountId_ReturnUserInformationList()
26 | {
27 | UserInformationList userInformationList = _usersApi.List(_testConfig.AccountId);
28 |
29 | Assert.IsNotNull(userInformationList?.Users?.FirstOrDefault()?.UserId);
30 | }
31 |
32 | [TestMethod]
33 | public void JwtPostUsers_CorrectAccountIdAndNewUsersDefinition_ReturnNewUsersSummary()
34 | {
35 | var user = new UserInformation
36 | {
37 | Email = "test@test.com",
38 | UserName = "Test User"
39 | };
40 | var userInformation = new List { user };
41 | var usersDefinition = new NewUsersDefinition
42 | {
43 | NewUsers = userInformation
44 | };
45 |
46 | NewUsersSummary userInformationList = _usersApi.Create(_testConfig.AccountId, usersDefinition);
47 |
48 | Assert.IsNotNull(userInformationList?.NewUsers?.Exists(x => x.Email == user.Email && x.UserName == user.UserName));
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/test/SdkTests462/docs/SignTest1.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-esign-csharp-client/4a595a17bdb08a1891cf0ae0d820e48c8ceca58a/test/SdkTests462/docs/SignTest1.docx
--------------------------------------------------------------------------------
/test/SdkTests462/docs/SignTest1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-esign-csharp-client/4a595a17bdb08a1891cf0ae0d820e48c8ceca58a/test/SdkTests462/docs/SignTest1.pdf
--------------------------------------------------------------------------------