├── .doclets.yml ├── .gitignore ├── .jsdoc.json ├── .swagger-codegen-ignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── jsconfig.json ├── loanco.png ├── package.json ├── scripts └── check-config.js ├── src ├── ApiClient.js ├── Configuration.js ├── OAuth.js ├── RestApi.js ├── api │ ├── AccountsApi.js │ ├── AuthenticationApi.js │ ├── BillingApi.js │ ├── BulkEnvelopesApi.js │ ├── BulkProcessDataApi.js │ ├── BulkProcessDataSendApi.js │ ├── CloudStorageApi.js │ ├── ConnectApi.js │ ├── CustomTabsApi.js │ ├── DataFeedApi.js │ ├── DiagnosticsApi.js │ ├── EmailArchiveApi.js │ ├── EnvelopeApplianceApi.js │ ├── EnvelopesApi.js │ ├── FoldersApi.js │ ├── GroupsApi.js │ ├── NotaryApi.js │ ├── OrganizationsApi.js │ ├── PowerFormsApi.js │ ├── SignatureApi.js │ ├── SigningGroupsApi.js │ ├── TemplatesApi.js │ ├── TrustServiceProvidersApi.js │ ├── UsersApi.js │ └── WorkspacesApi.js ├── auth │ ├── OAuthClient.js │ ├── errors │ │ ├── docusignapierror.js │ │ ├── docusignauthorizationerror.js │ │ └── docusigntokenerror.js │ ├── profile.js │ └── strategy.js ├── index.js ├── model │ ├── AccessCodeFormat.js │ ├── AccountAddress.js │ ├── AccountBillingPlan.js │ ├── AccountBillingPlanResponse.js │ ├── AccountIdentityInputOption.js │ ├── AccountIdentityVerificationResponse.js │ ├── AccountIdentityVerificationStep.js │ ├── AccountIdentityVerificationWorkflow.js │ ├── AccountInformation.js │ ├── AccountMinimumPasswordLength.js │ ├── AccountNotification.js │ ├── AccountPasswordExpirePasswordDays.js │ ├── AccountPasswordLockoutDurationMinutes.js │ ├── AccountPasswordLockoutDurationType.js │ ├── AccountPasswordMinimumPasswordAgeDays.js │ ├── AccountPasswordQuestionsRequired.js │ ├── AccountPasswordRules.js │ ├── AccountPasswordStrengthType.js │ ├── AccountPasswordStrengthTypeOption.js │ ├── AccountRoleSettings.js │ ├── AccountSeals.js │ ├── AccountSettingsInformation.js │ ├── AccountSharedAccess.js │ ├── AccountSignature.js │ ├── AccountSignatureDefinition.js │ ├── AccountSignatureProvider.js │ ├── AccountSignatureProviderOption.js │ ├── AccountSignatureProviders.js │ ├── AccountSignaturesInformation.js │ ├── AccountUISettings.js │ ├── AddOn.js │ ├── AddressInformation.js │ ├── AddressInformationInput.js │ ├── AddressInformationV2.js │ ├── AdminMessage.js │ ├── Agent.js │ ├── ApiRequestLog.js │ ├── ApiRequestLogsResult.js │ ├── AppStoreProduct.js │ ├── AppStoreReceipt.js │ ├── Approve.js │ ├── AskAnAdmin.js │ ├── Attachment.js │ ├── AuthenticationMethod.js │ ├── AuthenticationStatus.js │ ├── AuthorizationUser.js │ ├── BccEmailAddress.js │ ├── BccEmailArchive.js │ ├── BccEmailArchiveHistory.js │ ├── BccEmailArchiveHistoryList.js │ ├── BccEmailArchiveList.js │ ├── BillingCharge.js │ ├── BillingChargeResponse.js │ ├── BillingDiscount.js │ ├── BillingEntityInformationResponse.js │ ├── BillingInvoice.js │ ├── BillingInvoiceItem.js │ ├── BillingInvoicesResponse.js │ ├── BillingInvoicesSummary.js │ ├── BillingPayment.js │ ├── BillingPaymentItem.js │ ├── BillingPaymentRequest.js │ ├── BillingPaymentResponse.js │ ├── BillingPaymentsResponse.js │ ├── BillingPlan.js │ ├── BillingPlanInformation.js │ ├── BillingPlanPreview.js │ ├── BillingPlanResponse.js │ ├── BillingPlanUpdateResponse.js │ ├── BillingPlansResponse.js │ ├── BillingPrice.js │ ├── Brand.js │ ├── BrandEmailContent.js │ ├── BrandLink.js │ ├── BrandLogos.js │ ├── BrandRequest.js │ ├── BrandResourceUrls.js │ ├── BrandResources.js │ ├── BrandResourcesList.js │ ├── BrandsRequest.js │ ├── BrandsResponse.js │ ├── BulkEnvelope.js │ ├── BulkEnvelopeStatus.js │ ├── BulkEnvelopesResponse.js │ ├── BulkProcessRequest.js │ ├── BulkProcessResponse.js │ ├── BulkProcessResult.js │ ├── BulkProcessingListSummaries.js │ ├── BulkProcessingListSummary.js │ ├── BulkProcessingLists.js │ ├── BulkRecipient.js │ ├── BulkRecipientSignatureProvider.js │ ├── BulkRecipientTabLabel.js │ ├── BulkRecipientsRequest.js │ ├── BulkRecipientsResponse.js │ ├── BulkRecipientsSummaryResponse.js │ ├── BulkRecipientsUpdateResponse.js │ ├── BulkSendBatchActionRequest.js │ ├── BulkSendBatchError.js │ ├── BulkSendBatchRequest.js │ ├── BulkSendBatchStatus.js │ ├── BulkSendBatchSummaries.js │ ├── BulkSendBatchSummary.js │ ├── BulkSendEnvelopesInfo.js │ ├── BulkSendErrorStatus.js │ ├── BulkSendRequest.js │ ├── BulkSendResponse.js │ ├── BulkSendTestResponse.js │ ├── BulkSendingCopy.js │ ├── BulkSendingCopyCustomField.js │ ├── BulkSendingCopyDocGenFormFieldRowValue.js │ ├── BulkSendingCopyRecipient.js │ ├── BulkSendingCopyTab.js │ ├── BulkSendingList.js │ ├── BulkSendingListSummaries.js │ ├── BulkSendingListSummary.js │ ├── BulksendingCopyDocGenFormField.js │ ├── CaptiveRecipient.js │ ├── CaptiveRecipientInformation.js │ ├── CarbonCopy.js │ ├── CertifiedDelivery.js │ ├── Checkbox.js │ ├── ChunkedUploadPart.js │ ├── ChunkedUploadRequest.js │ ├── ChunkedUploadResponse.js │ ├── CloudStorageProvider.js │ ├── CloudStorageProviders.js │ ├── Comment.js │ ├── CommentHistoryResult.js │ ├── CommentPublish.js │ ├── CommentThread.js │ ├── CommentsPublish.js │ ├── CommissionCounty.js │ ├── CommissionExpiration.js │ ├── CommissionNumber.js │ ├── CommissionState.js │ ├── Company.js │ ├── CompleteSignHashResponse.js │ ├── CompleteSignRequest.js │ ├── CompositeTemplate.js │ ├── ConciergeQueryRequest.js │ ├── ConciergeQueryResponse.js │ ├── ConditionalRecipientRule.js │ ├── ConditionalRecipientRuleCondition.js │ ├── ConditionalRecipientRuleFilter.js │ ├── ConnectConfigResults.js │ ├── ConnectCustomConfiguration.js │ ├── ConnectDebugLog.js │ ├── ConnectDeleteFailureResult.js │ ├── ConnectEventData.js │ ├── ConnectFailureFilter.js │ ├── ConnectFailureResult.js │ ├── ConnectFailureResults.js │ ├── ConnectHistoricalEnvelopeRepublish.js │ ├── ConnectLog.js │ ├── ConnectLogs.js │ ├── ConnectOAuthConfig.js │ ├── ConnectSalesforceField.js │ ├── ConnectSalesforceObject.js │ ├── ConnectUserInfo.js │ ├── ConnectUserObject.js │ ├── ConnectedData.js │ ├── ConnectedObjectDetails.js │ ├── ConnectionInstance.js │ ├── ConsentDetails.js │ ├── ConsoleViewRequest.js │ ├── ConsumerDisclosure.js │ ├── Contact.js │ ├── ContactGetResponse.js │ ├── ContactModRequest.js │ ├── ContactPhoneNumber.js │ ├── ContactUpdateResponse.js │ ├── CorrectViewRequest.js │ ├── Country.js │ ├── Credential.js │ ├── CreditCardInformation.js │ ├── CreditCardTypes.js │ ├── Currency.js │ ├── CurrencyFeatureSetPrice.js │ ├── CurrencyPlanPrice.js │ ├── CustomField.js │ ├── CustomFieldV2.js │ ├── CustomFields.js │ ├── CustomFieldsEnvelope.js │ ├── CustomSettingsInformation.js │ ├── DateSigned.js │ ├── DateStampProperties.js │ ├── Decline.js │ ├── DelayedRouting.js │ ├── DelayedRoutingApiModel.js │ ├── DelegationInfo.js │ ├── DiagnosticsSettingsInformation.js │ ├── DirectDebitProcessorInformation.js │ ├── DisplayApplianceAccount.js │ ├── DisplayApplianceDocument.js │ ├── DisplayApplianceDocumentPage.js │ ├── DisplayApplianceEnvelope.js │ ├── DisplayApplianceInfo.js │ ├── DisplayAppliancePage.js │ ├── DisplayAppliancePdf.js │ ├── DisplayApplianceRecipient.js │ ├── DisplayApplianceSignerAttachment.js │ ├── DobInformationInput.js │ ├── DocGenFormField.js │ ├── DocGenFormFieldOption.js │ ├── DocGenFormFieldRequest.js │ ├── DocGenFormFieldResponse.js │ ├── DocGenFormFieldRowValue.js │ ├── DocGenFormFieldValidation.js │ ├── DocGenFormFields.js │ ├── DocGenSyntaxError.js │ ├── Document.js │ ├── DocumentFieldsInformation.js │ ├── DocumentHtmlCollapsibleDisplaySettings.js │ ├── DocumentHtmlDefinition.js │ ├── DocumentHtmlDefinitionOriginal.js │ ├── DocumentHtmlDefinitionOriginals.js │ ├── DocumentHtmlDefinitions.js │ ├── DocumentHtmlDisplayAnchor.js │ ├── DocumentHtmlDisplaySettings.js │ ├── DocumentSecurityStore.js │ ├── DocumentTemplate.js │ ├── DocumentTemplateList.js │ ├── DocumentUpdateInfo.js │ ├── DocumentVisibility.js │ ├── DocumentVisibilityList.js │ ├── DowngradRequestBillingInfoResponse.js │ ├── DowngradeBillingPlanInformation.js │ ├── DowngradePlanUpdateResponse.js │ ├── DowngradeRequestInformation.js │ ├── Draw.js │ ├── ENoteConfiguration.js │ ├── Editor.js │ ├── Email.js │ ├── EmailAddress.js │ ├── EmailSettings.js │ ├── Envelope.js │ ├── EnvelopeAttachment.js │ ├── EnvelopeAttachmentsRequest.js │ ├── EnvelopeAttachmentsResult.js │ ├── EnvelopeAuditEvent.js │ ├── EnvelopeAuditEventResponse.js │ ├── EnvelopeCustomMetadata.js │ ├── EnvelopeDefinition.js │ ├── EnvelopeDelayRule.js │ ├── EnvelopeDelayRuleApiModel.js │ ├── EnvelopeDocument.js │ ├── EnvelopeDocumentsResult.js │ ├── EnvelopeEvent.js │ ├── EnvelopeFormData.js │ ├── EnvelopeFormDataPrefillFormData.js │ ├── EnvelopeId.js │ ├── EnvelopeIdsRequest.js │ ├── EnvelopeMetadata.js │ ├── EnvelopeNotificationRequest.js │ ├── EnvelopePublishRequest.js │ ├── EnvelopePublishTransaction.js │ ├── EnvelopePublishTransactionErrorRollup.js │ ├── EnvelopePublishTransactionList.js │ ├── EnvelopePurgeConfiguration.js │ ├── EnvelopeSummary.js │ ├── EnvelopeTemplate.js │ ├── EnvelopeTemplateDefinition.js │ ├── EnvelopeTemplateResult.js │ ├── EnvelopeTemplateResults.js │ ├── EnvelopeTransactionStatus.js │ ├── EnvelopeTransferRule.js │ ├── EnvelopeTransferRuleInformation.js │ ├── EnvelopeTransferRuleRequest.js │ ├── EnvelopeUpdateSummary.js │ ├── EnvelopeViewDocumentSettings.js │ ├── EnvelopeViewEnvelopeCustomFieldSettings.js │ ├── EnvelopeViewRecipientSettings.js │ ├── EnvelopeViewRequest.js │ ├── EnvelopeViewSettings.js │ ├── EnvelopeViewTaggerSettings.js │ ├── EnvelopeViewTemplateSettings.js │ ├── EnvelopesInformation.js │ ├── ErrorDetails.js │ ├── EventNotification.js │ ├── EventResult.js │ ├── Expirations.js │ ├── ExtensionData.js │ ├── ExternalClaim.js │ ├── ExternalDocServiceErrorDetails.js │ ├── ExternalDocumentSources.js │ ├── ExternalFile.js │ ├── ExternalFolder.js │ ├── ExternalPrimaryAccountRecipientAuthRequirements.js │ ├── FavoriteTemplatesContentItem.js │ ├── FavoriteTemplatesInfo.js │ ├── FeatureAvailableMetadata.js │ ├── FeatureSet.js │ ├── FileType.js │ ├── FileTypeList.js │ ├── Filter.js │ ├── FirstName.js │ ├── Folder.js │ ├── FolderItem.js │ ├── FolderItemResponse.js │ ├── FolderItemV2.js │ ├── FolderItemsResponse.js │ ├── FolderSharedItem.js │ ├── FoldersRequest.js │ ├── FoldersResponse.js │ ├── ForgottenPasswordInformation.js │ ├── FormDataItem.js │ ├── FormulaTab.js │ ├── FullName.js │ ├── GraphicsContext.js │ ├── Group.js │ ├── GroupBrands.js │ ├── GroupInformation.js │ ├── IdCheckConfiguration.js │ ├── IdCheckInformationInput.js │ ├── IdCheckSecurityStep.js │ ├── IdEvidenceResourceToken.js │ ├── IdEvidenceViewLink.js │ ├── InPersonSigner.js │ ├── InitialHere.js │ ├── InlineTemplate.js │ ├── IntegratedConnectUserInfoList.js │ ├── IntegratedUserInfoList.js │ ├── Intermediary.js │ ├── Jurisdiction.js │ ├── JurisdictionSummary.js │ ├── LastName.js │ ├── LinkedExternalPrimaryAccount.js │ ├── List.js │ ├── ListCustomField.js │ ├── ListItem.js │ ├── LocalePolicy.js │ ├── LocalePolicyTab.js │ ├── LockInformation.js │ ├── LockRequest.js │ ├── LoginAccount.js │ ├── LoginInformation.js │ ├── MatchBox.js │ ├── MemberGroupSharedItem.js │ ├── MemberSharedItems.js │ ├── MergeField.js │ ├── MobileNotifierConfiguration.js │ ├── MobileNotifierConfigurationInformation.js │ ├── ModelDate.js │ ├── ModelNumber.js │ ├── Money.js │ ├── NameValue.js │ ├── NewAccountDefinition.js │ ├── NewAccountSummary.js │ ├── NewUser.js │ ├── NewUsersDefinition.js │ ├── NewUsersSummary.js │ ├── Notarize.js │ ├── Notary.js │ ├── NotaryCertificate.js │ ├── NotaryContactDetails.js │ ├── NotaryHost.js │ ├── NotaryJournal.js │ ├── NotaryJournalCredibleWitness.js │ ├── NotaryJournalList.js │ ├── NotaryJournalMetaData.js │ ├── NotaryJurisdiction.js │ ├── NotaryJurisdictionList.js │ ├── NotaryRecipient.js │ ├── NotaryResult.js │ ├── NotarySeal.js │ ├── Note.js │ ├── Notification.js │ ├── NotificationDefaultSettings.js │ ├── NotificationDefaults.js │ ├── Numerical.js │ ├── OauthAccess.js │ ├── OcrRequest.js │ ├── OfflineAttributes.js │ ├── Page.js │ ├── PageImages.js │ ├── PageRequest.js │ ├── PageSize.js │ ├── PaletteItemSettings.js │ ├── PaletteSettings.js │ ├── Participant.js │ ├── PathExtendedElement.js │ ├── PayPalLegacySettings.js │ ├── PaymentDetails.js │ ├── PaymentGatewayAccount.js │ ├── PaymentGatewayAccountSetting.js │ ├── PaymentGatewayAccountsInfo.js │ ├── PaymentLineItem.js │ ├── PaymentMethodWithOptions.js │ ├── PaymentProcessorInformation.js │ ├── PaymentSignerValues.js │ ├── PermissionProfile.js │ ├── PermissionProfileInformation.js │ ├── PhoneNumber.js │ ├── PlanInformation.js │ ├── PolyLine.js │ ├── PolyLineOverlay.js │ ├── PowerForm.js │ ├── PowerFormFormDataEnvelope.js │ ├── PowerFormFormDataRecipient.js │ ├── PowerFormRecipient.js │ ├── PowerFormSendersResponse.js │ ├── PowerFormsFormDataResponse.js │ ├── PowerFormsRequest.js │ ├── PowerFormsResponse.js │ ├── PrefillFormData.js │ ├── PrefillTabs.js │ ├── ProofServiceResourceToken.js │ ├── ProofServiceViewLink.js │ ├── PropertyMetadata.js │ ├── Province.js │ ├── ProvisioningInformation.js │ ├── PurchasedEnvelopesInformation.js │ ├── Radio.js │ ├── RadioGroup.js │ ├── RecipientAdditionalNotification.js │ ├── RecipientAttachment.js │ ├── RecipientDomain.js │ ├── RecipientEmail.js │ ├── RecipientEmailNotification.js │ ├── RecipientEvent.js │ ├── RecipientFormData.js │ ├── RecipientGroup.js │ ├── RecipientIdentityInputOption.js │ ├── RecipientIdentityPhoneNumber.js │ ├── RecipientIdentityVerification.js │ ├── RecipientNamesResponse.js │ ├── RecipientOption.js │ ├── RecipientPhoneAuthentication.js │ ├── RecipientPhoneNumber.js │ ├── RecipientPreviewRequest.js │ ├── RecipientProofFile.js │ ├── RecipientRouting.js │ ├── RecipientRules.js │ ├── RecipientSAMLAuthentication.js │ ├── RecipientSMSAuthentication.js │ ├── RecipientSignatureInformation.js │ ├── RecipientSignatureProvider.js │ ├── RecipientSignatureProviderOptions.js │ ├── RecipientTokenClientURLs.js │ ├── RecipientUpdateResponse.js │ ├── RecipientViewRequest.js │ ├── Recipients.js │ ├── RecipientsUpdateSummary.js │ ├── ReferralInformation.js │ ├── Reminders.js │ ├── ReportInProductCsvRunRequest.js │ ├── ReportInProductField.js │ ├── ReportInProductGet.js │ ├── ReportInProductList.js │ ├── ReportInProductListItem.js │ ├── ReportInProductRunRequest.js │ ├── ReportInProductRunResponse.js │ ├── ReportInProductRunResponseRow.js │ ├── ReportInProductRunResponseRowFields.js │ ├── ReportInProductSaveResponse.js │ ├── ReportInProductSentByDetails.js │ ├── ReservedDomainExistence.js │ ├── ResourceInformation.js │ ├── ReturnUrlRequest.js │ ├── Revision.js │ ├── SamlAssertionAttribute.js │ ├── ScheduledSending.js │ ├── ScheduledSendingApiModel.js │ ├── Seal.js │ ├── SealIdentifier.js │ ├── SealSign.js │ ├── SeatDiscount.js │ ├── Sender.js │ ├── SenderCompany.js │ ├── SenderEmailNotifications.js │ ├── SenderName.js │ ├── ServerTemplate.js │ ├── ServiceInformation.js │ ├── ServiceVersion.js │ ├── SettingsMetadata.js │ ├── SharedItem.js │ ├── SignHashDocument.js │ ├── SignHashSessionInfoResponse.js │ ├── SignHere.js │ ├── SignSessionInfoRequest.js │ ├── SignatureDataInfo.js │ ├── SignatureGroup.js │ ├── SignatureGroupDef.js │ ├── SignatureProperties.js │ ├── SignatureProviderRequiredOption.js │ ├── SignatureType.js │ ├── SignatureUser.js │ ├── SignatureUserDef.js │ ├── Signer.js │ ├── SignerAttachment.js │ ├── SignerEmailNotifications.js │ ├── SigningGroup.js │ ├── SigningGroupInformation.js │ ├── SigningGroupUser.js │ ├── SigningGroupUsers.js │ ├── SmartContractInformation.js │ ├── SmartSection.js │ ├── SmartSectionAnchorPosition.js │ ├── SmartSectionCollapsibleDisplaySettings.js │ ├── SmartSectionDisplaySettings.js │ ├── SocialAccountInformation.js │ ├── SocialAuthentication.js │ ├── Ssn.js │ ├── Ssn4InformationInput.js │ ├── Ssn9InformationInput.js │ ├── Stamp.js │ ├── SupportedLanguages.js │ ├── TabAccountSettings.js │ ├── TabGroup.js │ ├── TabMetadata.js │ ├── TabMetadataList.js │ ├── Tabs.js │ ├── TemplateAutoMatch.js │ ├── TemplateAutoMatchList.js │ ├── TemplateCustomFields.js │ ├── TemplateDocumentVisibilityList.js │ ├── TemplateDocumentsResult.js │ ├── TemplateInformation.js │ ├── TemplateMatch.js │ ├── TemplateNotificationRequest.js │ ├── TemplateRecipients.js │ ├── TemplateRole.js │ ├── TemplateSharedItem.js │ ├── TemplateSummary.js │ ├── TemplateTabs.js │ ├── TemplateUpdateSummary.js │ ├── TemplateViewRequest.js │ ├── Text.js │ ├── TextCustomField.js │ ├── TimeStampField.js │ ├── Title.js │ ├── TspHealthCheckRequest.js │ ├── TspHealthCheckStatusDescription.js │ ├── UpdateTransactionRequest.js │ ├── UpdateTransactionResponse.js │ ├── UsageHistory.js │ ├── User.js │ ├── UserAccountManagementGranularInformation.js │ ├── UserAuthorization.js │ ├── UserAuthorizationCreateRequest.js │ ├── UserAuthorizationCreateRequestWithId.js │ ├── UserAuthorizationIdWithStatus.js │ ├── UserAuthorizationUpdateRequest.js │ ├── UserAuthorizationWithStatus.js │ ├── UserAuthorizations.js │ ├── UserAuthorizationsDeleteRequest.js │ ├── UserAuthorizationsDeleteResponse.js │ ├── UserAuthorizationsRequest.js │ ├── UserAuthorizationsResponse.js │ ├── UserInfo.js │ ├── UserInfoList.js │ ├── UserInfoResponse.js │ ├── UserInformation.js │ ├── UserInformationList.js │ ├── UserPasswordInformation.js │ ├── UserPasswordRules.js │ ├── UserProfile.js │ ├── UserSettingsInformation.js │ ├── UserSharedItem.js │ ├── UserSignature.js │ ├── UserSignatureDefinition.js │ ├── UserSignaturesInformation.js │ ├── UserSocialIdResult.js │ ├── UsersResponse.js │ ├── View.js │ ├── ViewLinkRequest.js │ ├── ViewUrl.js │ ├── Watermark.js │ ├── Witness.js │ ├── Workflow.js │ ├── WorkflowStep.js │ ├── Workspace.js │ ├── WorkspaceFolderContents.js │ ├── WorkspaceItem.js │ ├── WorkspaceItemList.js │ ├── WorkspaceList.js │ ├── WorkspaceSettings.js │ ├── WorkspaceUser.js │ ├── WorkspaceUserAuthorization.js │ └── Zip.js └── oauth │ ├── Account.js │ ├── BasePath.js │ ├── Link.js │ ├── OAuthToken.js │ ├── Organization.js │ ├── ResponseType.js │ ├── Scope.js │ └── UserInfo.js ├── test-config.js └── test ├── AccountsApiIntegrationTests.js ├── AccountsApiIntegrationTestsWithCallback.js ├── DiagnosticsApiIntegrationTests.js ├── DiagnosticsApiIntegrationTestsWithCallback.js ├── EnvelopesApiIntegrationTests.js ├── EnvelopesApiIntegrationTestsWithCallback.js ├── FoldersApiIntegrationTests.js ├── FoldersApiIntegrationTestsWithCallback.js ├── SdkUnitTests.js ├── SdkUnitTestsWithCallback.js ├── TemplatesApiIntegrationTests.js ├── TemplatesApiIntegrationTestsWithCallback.js ├── UsersApiIntegrationTests.js ├── UsersApiIntegrationTestsWithCallback.js ├── constants.js ├── docs ├── LargeTestDocument1.pdf ├── SignTest1.docx ├── SignTest1.pdf └── brand.xml ├── helpers.js ├── img └── docusign-lgo.png └── keys ├── docusign_private_key.txt └── docusign_public_key.txt /.doclets.yml: -------------------------------------------------------------------------------- 1 | dir: src 2 | 3 | packageJson: package.json 4 | 5 | articles: 6 | - Overview: README.md 7 | 8 | branches: 9 | - 3.0.0 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage 3 | .nyc_output/ 4 | *.DS_Store 5 | auth-info.json 6 | config.json 7 | .idea/ 8 | npm-debug.log 9 | package-lock.json 10 | .swagger-codegen/ 11 | test/assert-equals.js 12 | -------------------------------------------------------------------------------- /.jsdoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "tags": { 3 | "allowUnknownTags": true 4 | }, 5 | "source": { 6 | "include": ["src", "package.json"], 7 | "includePattern": ".js$", 8 | "excludePattern": "(node_modules/|docs)" 9 | }, 10 | "plugins": [ 11 | "plugins/markdown" 12 | ], 13 | "markdown": { 14 | "parser": "gfm", 15 | "hardwrap": true 16 | }, 17 | "templates": { 18 | "cleverLinks": false, 19 | "monospaceLinks": true, 20 | "useLongnameInNav": false 21 | }, 22 | "opts": { 23 | "source": "./src/", 24 | "destination": "./docs/", 25 | "encoding": "utf8", 26 | "recurse": true, 27 | "template": "./node_modules/docdash" 28 | }, 29 | "docdash": { 30 | "static": false, 31 | "sort": true 32 | } 33 | } -------------------------------------------------------------------------------- /.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 | git_push.sh 29 | 30 | # Project files 31 | LICENSE 32 | .travis.yml 33 | mocha.opts 34 | 35 | # Specific src and test files 36 | docs/*.md 37 | test/*/*.spec.js 38 | test/assert-equals.js 39 | src/OAuth.js 40 | src/RestApi.js 41 | src/oauth/ 42 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | branches: 4 | only: 5 | - master 6 | - v2-master 7 | 8 | language: node_js 9 | 10 | notifications: 11 | email: 12 | recipients: 13 | - devcenter@docusign.com 14 | on_success: never 15 | on_failure: change 16 | 17 | node_js: 18 | - "12" 19 | - "13" 20 | - "14" 21 | - "16" 22 | 23 | cache: 24 | directories: 25 | - "node_modules" 26 | 27 | after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls" 28 | 29 | -------------------------------------------------------------------------------- /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. 22 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /loanco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-esign-node-client/1c373fb42182bbca82b66961be865c3f142886e6/loanco.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "docusign-esign", 3 | "version": "8.2.0", 4 | "description": "Docusign Node.js API client.", 5 | "license": "MIT", 6 | "main": "src/index.js", 7 | "author": "DocuSign Developer Center ", 8 | "contributors": [ 9 | "https://github.com/docusign/docusign-node-client/contributors" 10 | ], 11 | "files": [ 12 | "src" 13 | ], 14 | "keywords": [ 15 | "docusign", 16 | "signature", 17 | "esignature", 18 | "esign", 19 | "digital", 20 | "electronic", 21 | "transaction", 22 | "document", 23 | "certificate", 24 | "DTM", 25 | "PDF" 26 | ], 27 | "engines": { 28 | "node": ">=2.2.1" 29 | }, 30 | "repository": { 31 | "type": "git", 32 | "url": "https://github.com/docusign/docusign-node-client.git" 33 | }, 34 | "scripts": { 35 | "docs": "npm run update-docs && git add docs/ && git commit -m 'update docs' && npm run push-docs", 36 | "push-docs": "git subtree push --prefix docs origin gh-pages", 37 | "update-docs": "./node_modules/.bin/jsdoc -c .jsdoc.json", 38 | "check-config": "./scripts/check-config.js", 39 | "test": "semistandard --fix && ./node_modules/mocha/bin/mocha --reporter mocha-junit-reporter --timeout 60000" 40 | }, 41 | "semistandard": { 42 | "globals": [ 43 | "before", 44 | "describe", 45 | "it" 46 | ], 47 | "ignore": [ 48 | "/src", 49 | "/docs", 50 | "/scripts" 51 | ] 52 | }, 53 | "dependencies": { 54 | "axios": "^1.6.8", 55 | "@devhigley/parse-proxy":"^1.0.3", 56 | "csv-stringify": "^1.0.0", 57 | "jsonwebtoken": "^9.0.0", 58 | "passport-oauth2": "^1.6.1", 59 | "safe-buffer": "^5.1.2" 60 | }, 61 | "devDependencies": { 62 | "docdash": "0.4.0", 63 | "expect.js": "~0.3.1", 64 | "jsdoc": "3.6.10", 65 | "mocha": "~5.0.4", 66 | "mocha-junit-reporter": "^1.18.0", 67 | "pdf-parse-fork": "^1.2.0", 68 | "semistandard": "^12.0.1" 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /scripts/check-config.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var fs = require('fs'); 4 | var path = require('path'); 5 | var chalk = require('chalk'); 6 | 7 | var configPath = path.resolve('./test-config.json'); 8 | 9 | fs.stat(configPath, function statCallback (err, stats) { 10 | if (err) { 11 | console.log(chalk.red.bold.underline('Missing config.json! Please check README for instructions.')); 12 | return process.exit(1); 13 | } 14 | }); 15 | -------------------------------------------------------------------------------- /src/Configuration.js: -------------------------------------------------------------------------------- 1 | (function(root, factory) { 2 | if (typeof define === 'function' && define.amd) { 3 | // AMD. Register as an anonymous module. 4 | define([undefined, './ApiClient'], factory); 5 | } else if (typeof module === 'object' && module.exports) { 6 | // CommonJS-like environments that support module.exports, like Node. 7 | module.exports = factory(undefined, require('./ApiClient')); 8 | } else { 9 | // Browser globals (root is window) 10 | if (!root.Docusign) { 11 | root.Docusign = {}; 12 | } 13 | factory(root.Docusign, root.Docusign.ApiClient); 14 | } 15 | }(this, function(module, ApiClient) { 16 | 'use strict'; 17 | 18 | var Configuration = function Configuration() { 19 | /** 20 | * The API client to use for every API call. 21 | */ 22 | this.defaultApiClient = new ApiClient(); 23 | 24 | /** 25 | * The default HTTP headers to be included for all API calls. 26 | */ 27 | // Add DocuSign Tracking Header 28 | this.defaultHeaders = { "X-DocuSign-SDK": "Node" }; 29 | }; 30 | 31 | /** 32 | * Get the default API client, which would be used when creating API 33 | * instances without providing an API client. 34 | */ 35 | Configuration.prototype.getDefaultApiClient = function getDefaultApiClient() { 36 | return this.defaultApiClient; 37 | }; 38 | 39 | /** 40 | * Sets the default API client. 41 | */ 42 | Configuration.prototype.setDefaultApiClient = function setDefaultApiClient(defaultApiClient) { 43 | this.defaultApiClient = defaultApiClient; 44 | }; 45 | 46 | Configuration.default = new Configuration(); 47 | 48 | return Configuration; 49 | })); -------------------------------------------------------------------------------- /src/OAuth.js: -------------------------------------------------------------------------------- 1 | var Scope_SIGNATURE = require('./oauth/Scope').SIGNATURE; 2 | var Scope_EXTENDED = require('./oauth/Scope').EXTENDED; 3 | var Scope_IMPERSONATION = require('./oauth/Scope').IMPERSONATION; 4 | var PRODUCTION_OAUTH_BASE_PATH = require('./oauth/BasePath').PRODUCTION; 5 | var DEMO_OAUTH_BASE_PATH = require('./oauth/BasePath').DEMO; 6 | var STAGE_OAUTH_BASE_PATH = require('./oauth/BasePath').STAGE; 7 | var CODE = require('./oauth/ResponseType').CODE; 8 | var TOKEN = require('./oauth/ResponseType').TOKEN; 9 | var UserInfo = require('./oauth/UserInfo'); 10 | var OAuthToken = require('./oauth/OAuthToken'); 11 | 12 | module.exports = { 13 | Scope: { 14 | SIGNATURE: Scope_SIGNATURE, 15 | EXTENDED: Scope_EXTENDED, 16 | IMPERSONATION: Scope_IMPERSONATION, 17 | }, 18 | ResponseType: { 19 | CODE: CODE, 20 | TOKEN: TOKEN, 21 | }, 22 | BasePath: { 23 | PRODUCTION: PRODUCTION_OAUTH_BASE_PATH, 24 | STAGE: STAGE_OAUTH_BASE_PATH, 25 | DEMO: DEMO_OAUTH_BASE_PATH, 26 | }, 27 | UserInfo: UserInfo, 28 | OAuthToken: OAuthToken 29 | }; 30 | 31 | Object.freeze(module.exports.Scope); 32 | Object.freeze(module.exports.ResponseType); 33 | Object.freeze(module.exports.BasePath); -------------------------------------------------------------------------------- /src/RestApi.js: -------------------------------------------------------------------------------- 1 | const PRODUCTION_BASE_PATH = 'https://www.docusign.net/restapi'; 2 | const DEMO_BASE_PATH = 'https://demo.docusign.net/restapi'; 3 | const STAGE_BASE_PATH = 'https://stage.docusign.net/restapi'; 4 | 5 | module.exports = { 6 | BasePath: { 7 | PRODUCTION: PRODUCTION_BASE_PATH, 8 | DEMO: DEMO_BASE_PATH, 9 | STAGE: STAGE_BASE_PATH 10 | } 11 | }; -------------------------------------------------------------------------------- /src/auth/OAuthClient.js: -------------------------------------------------------------------------------- 1 | // Load modules. 2 | var Strategy = require('./strategy'); 3 | 4 | 5 | // Expose Strategy. 6 | exports = module.exports = Strategy; 7 | 8 | // Exports. 9 | exports.Strategy = Strategy; -------------------------------------------------------------------------------- /src/auth/errors/docusignapierror.js: -------------------------------------------------------------------------------- 1 | /** 2 | * `DocusignAPIError` error. 3 | * 4 | * References: 5 | * - https://www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#OAuth2/OAuth2 Response Codes.htm 6 | * 7 | * @constructor 8 | * @param {string} [message] 9 | * @param {string} [type] 10 | * @param {number} [code] 11 | * @param {number} [subcode] 12 | * @param {string} [traceID] 13 | * @access public 14 | */ 15 | function DocusignAPIError(message, type, code, subcode, traceID) { 16 | Error.call(this); 17 | Error.captureStackTrace(this, arguments.callee); 18 | this.name = 'DocusignAPIError'; 19 | this.message = message; 20 | this.type = type; 21 | this.code = code; 22 | this.subcode = subcode; 23 | this.traceID = traceID; 24 | this.status = 500; 25 | } 26 | 27 | // Inherit from `Error`. 28 | DocusignAPIError.prototype.__proto__ = Error.prototype; 29 | 30 | 31 | // Expose constructor. 32 | module.exports = DocusignAPIError; -------------------------------------------------------------------------------- /src/auth/errors/docusignauthorizationerror.js: -------------------------------------------------------------------------------- 1 | /** 2 | * `DocusignAuthorizationError` error. 3 | * 4 | * DocusignAuthorizationError represents an error in response to an 5 | * authorization request on Docusign. 6 | * 7 | * References: 8 | * - https://www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#OAuth2/OAuth2 Response Codes.htm 9 | * 10 | * @constructor 11 | * @param {string} [message] 12 | * @param {number} [code] 13 | * @access public 14 | */ 15 | function DocusignAuthorizationError(message, code) { 16 | Error.call(this); 17 | Error.captureStackTrace(this, arguments.callee); 18 | this.name = 'DocusignAuthorizationError'; 19 | this.message = message; 20 | this.code = code; 21 | this.status = 500; 22 | } 23 | 24 | // Inherit from `Error`. 25 | DocusignAuthorizationError.prototype.__proto__ = Error.prototype; 26 | 27 | 28 | // Expose constructor. 29 | module.exports = DocusignAuthorizationError; -------------------------------------------------------------------------------- /src/auth/errors/docusigntokenerror.js: -------------------------------------------------------------------------------- 1 | /** 2 | * `DocusignTokenError` error. 3 | * 4 | * DocusignTokenError represents an error received from a Docusign's token 5 | * endpoint. 6 | * 7 | * References: 8 | * - https://www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#OAuth2/OAuth2 Response Codes.htm 9 | * 10 | * @constructor 11 | * @param {string} [message] 12 | * @param {string} [type] 13 | * @param {number} [code] 14 | * @param {number} [subcode] 15 | * @param {string} [traceID] 16 | * @access public 17 | */ 18 | function DocusignTokenError(message, type, code, subcode, traceID) { 19 | Error.call(this); 20 | Error.captureStackTrace(this, arguments.callee); 21 | this.name = 'DocusignTokenError'; 22 | this.message = message; 23 | this.type = type; 24 | this.code = code; 25 | this.subcode = subcode; 26 | this.traceID = traceID; 27 | this.status = 500; 28 | } 29 | 30 | // Inherit from `Error`. 31 | DocusignTokenError.prototype.__proto__ = Error.prototype; 32 | 33 | 34 | // Expose constructor. 35 | module.exports = DocusignTokenError; -------------------------------------------------------------------------------- /src/auth/profile.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Parse profile. 3 | * 4 | * @param {object|string} json 5 | * @return {object} 6 | * @access public 7 | */ 8 | exports.parse = function (json) { 9 | if ('string' == typeof json) { 10 | json = JSON.parse(json); 11 | } 12 | 13 | var profile = {}; 14 | 15 | profile.sub = json.sub; 16 | profile.name = json.name; 17 | profile.given_name = json.given_name; 18 | profile.family_name = json.family_name; 19 | profile.created = json.created; 20 | profile.email = json.email; 21 | profile.accounts = json.accounts; 22 | 23 | return profile; 24 | }; -------------------------------------------------------------------------------- /src/model/AccountPasswordLockoutDurationType.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.AccountPasswordLockoutDurationType = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The AccountPasswordLockoutDurationType model module. 32 | * @module model/AccountPasswordLockoutDurationType 33 | */ 34 | 35 | /** 36 | * Constructs a new AccountPasswordLockoutDurationType. 37 | * @alias module:model/AccountPasswordLockoutDurationType 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a AccountPasswordLockoutDurationType from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/AccountPasswordLockoutDurationType} obj Optional instance to populate. 51 | * @return {module:model/AccountPasswordLockoutDurationType} The populated AccountPasswordLockoutDurationType instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('options')) { 58 | obj['options'] = ApiClient.convertToType(data['options'], ['String']); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} options 67 | */ 68 | exports.prototype['options'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/AccountSeals.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/SealIdentifier'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./SealIdentifier')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.AccountSeals = factory(root.Docusign.ApiClient, root.Docusign.SealIdentifier); 25 | } 26 | }(this, function(ApiClient, SealIdentifier) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The AccountSeals model module. 32 | * @module model/AccountSeals 33 | */ 34 | 35 | /** 36 | * Constructs a new AccountSeals. 37 | * @alias module:model/AccountSeals 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a AccountSeals from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/AccountSeals} obj Optional instance to populate. 51 | * @return {module:model/AccountSeals} The populated AccountSeals instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('seals')) { 58 | obj['seals'] = ApiClient.convertToType(data['seals'], [SealIdentifier]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} seals 67 | */ 68 | exports.prototype['seals'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/AdminMessage.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.AdminMessage = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The AdminMessage model module. 32 | * @module model/AdminMessage 33 | */ 34 | 35 | /** 36 | * Constructs a new AdminMessage. 37 | * @alias module:model/AdminMessage 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a AdminMessage from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/AdminMessage} obj Optional instance to populate. 51 | * @return {module:model/AdminMessage} The populated AdminMessage instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('baseMessage')) { 58 | obj['baseMessage'] = ApiClient.convertToType(data['baseMessage'], 'String'); 59 | } 60 | if (data.hasOwnProperty('moreInformation')) { 61 | obj['moreInformation'] = ApiClient.convertToType(data['moreInformation'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * 69 | * @member {String} baseMessage 70 | */ 71 | exports.prototype['baseMessage'] = undefined; 72 | /** 73 | * 74 | * @member {String} moreInformation 75 | */ 76 | exports.prototype['moreInformation'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/ApiRequestLogsResult.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/ApiRequestLog'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./ApiRequestLog')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ApiRequestLogsResult = factory(root.Docusign.ApiClient, root.Docusign.ApiRequestLog); 25 | } 26 | }(this, function(ApiClient, ApiRequestLog) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ApiRequestLogsResult model module. 32 | * @module model/ApiRequestLogsResult 33 | */ 34 | 35 | /** 36 | * Constructs a new ApiRequestLogsResult. 37 | * Contains information about mutiple API request logs. 38 | * @alias module:model/ApiRequestLogsResult 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a ApiRequestLogsResult from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/ApiRequestLogsResult} obj Optional instance to populate. 52 | * @return {module:model/ApiRequestLogsResult} The populated ApiRequestLogsResult instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('apiRequestLogs')) { 59 | obj['apiRequestLogs'] = ApiClient.convertToType(data['apiRequestLogs'], [ApiRequestLog]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * Reserved: TBD 67 | * @member {Array.} apiRequestLogs 68 | */ 69 | exports.prototype['apiRequestLogs'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/BillingPaymentRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.BillingPaymentRequest = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The BillingPaymentRequest model module. 32 | * @module model/BillingPaymentRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new BillingPaymentRequest. 37 | * @alias module:model/BillingPaymentRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a BillingPaymentRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/BillingPaymentRequest} obj Optional instance to populate. 51 | * @return {module:model/BillingPaymentRequest} The populated BillingPaymentRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('paymentAmount')) { 58 | obj['paymentAmount'] = ApiClient.convertToType(data['paymentAmount'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * The payment amount for the past due invoices. This value must match the pastDueBalance value retrieved using Get Past Due Invoices. 66 | * @member {String} paymentAmount 67 | */ 68 | exports.prototype['paymentAmount'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/BillingPlansResponse.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/BillingPlan'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./BillingPlan')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.BillingPlansResponse = factory(root.Docusign.ApiClient, root.Docusign.BillingPlan); 25 | } 26 | }(this, function(ApiClient, BillingPlan) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The BillingPlansResponse model module. 32 | * @module model/BillingPlansResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new BillingPlansResponse. 37 | * Defines a billing plans response object. 38 | * @alias module:model/BillingPlansResponse 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a BillingPlansResponse from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/BillingPlansResponse} obj Optional instance to populate. 52 | * @return {module:model/BillingPlansResponse} The populated BillingPlansResponse instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('billingPlans')) { 59 | obj['billingPlans'] = ApiClient.convertToType(data['billingPlans'], [BillingPlan]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * Reserved: TBD 67 | * @member {Array.} billingPlans 68 | */ 69 | exports.prototype['billingPlans'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/BrandRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.BrandRequest = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The BrandRequest model module. 32 | * @module model/BrandRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new BrandRequest. 37 | * This request object contains information about a specific brand. 38 | * @alias module:model/BrandRequest 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a BrandRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/BrandRequest} obj Optional instance to populate. 52 | * @return {module:model/BrandRequest} The populated BrandRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('brandId')) { 59 | obj['brandId'] = ApiClient.convertToType(data['brandId'], 'String'); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * The ID of the brand used in API calls 67 | * @member {String} brandId 68 | */ 69 | exports.prototype['brandId'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/BrandResourcesList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/BrandResources'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./BrandResources')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.BrandResourcesList = factory(root.Docusign.ApiClient, root.Docusign.BrandResources); 25 | } 26 | }(this, function(ApiClient, BrandResources) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The BrandResourcesList model module. 32 | * @module model/BrandResourcesList 33 | */ 34 | 35 | /** 36 | * Constructs a new BrandResourcesList. 37 | * @alias module:model/BrandResourcesList 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a BrandResourcesList from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/BrandResourcesList} obj Optional instance to populate. 51 | * @return {module:model/BrandResourcesList} The populated BrandResourcesList instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('resourcesContentTypes')) { 58 | obj['resourcesContentTypes'] = ApiClient.convertToType(data['resourcesContentTypes'], [BrandResources]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} resourcesContentTypes 67 | */ 68 | exports.prototype['resourcesContentTypes'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/BrandsRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/BrandRequest'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./BrandRequest')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.BrandsRequest = factory(root.Docusign.ApiClient, root.Docusign.BrandRequest); 25 | } 26 | }(this, function(ApiClient, BrandRequest) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The BrandsRequest model module. 32 | * @module model/BrandsRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new BrandsRequest. 37 | * Details about one or more brands. 38 | * @alias module:model/BrandsRequest 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a BrandsRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/BrandsRequest} obj Optional instance to populate. 52 | * @return {module:model/BrandsRequest} The populated BrandsRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('brands')) { 59 | obj['brands'] = ApiClient.convertToType(data['brands'], [BrandRequest]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * The list of brands. 67 | * @member {Array.} brands 68 | */ 69 | exports.prototype['brands'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/BulkProcessingLists.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.BulkProcessingLists = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The BulkProcessingLists model module. 32 | * @module model/BulkProcessingLists 33 | */ 34 | 35 | /** 36 | * Constructs a new BulkProcessingLists. 37 | * @alias module:model/BulkProcessingLists 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a BulkProcessingLists from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/BulkProcessingLists} obj Optional instance to populate. 51 | * @return {module:model/BulkProcessingLists} The populated BulkProcessingLists instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('bulkProcessListIds')) { 58 | obj['bulkProcessListIds'] = ApiClient.convertToType(data['bulkProcessListIds'], ['String']); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} bulkProcessListIds 67 | */ 68 | exports.prototype['bulkProcessListIds'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/BulkRecipientsRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/BulkRecipient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./BulkRecipient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.BulkRecipientsRequest = factory(root.Docusign.ApiClient, root.Docusign.BulkRecipient); 25 | } 26 | }(this, function(ApiClient, BulkRecipient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The BulkRecipientsRequest model module. 32 | * @module model/BulkRecipientsRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new BulkRecipientsRequest. 37 | * @alias module:model/BulkRecipientsRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a BulkRecipientsRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/BulkRecipientsRequest} obj Optional instance to populate. 51 | * @return {module:model/BulkRecipientsRequest} The populated BulkRecipientsRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('bulkRecipients')) { 58 | obj['bulkRecipients'] = ApiClient.convertToType(data['bulkRecipients'], [BulkRecipient]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * A complex type containing information about the bulk recipients in the request. 66 | * @member {Array.} bulkRecipients 67 | */ 68 | exports.prototype['bulkRecipients'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/BulkRecipientsUpdateResponse.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/Signer'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./Signer')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.BulkRecipientsUpdateResponse = factory(root.Docusign.ApiClient, root.Docusign.Signer); 25 | } 26 | }(this, function(ApiClient, Signer) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The BulkRecipientsUpdateResponse model module. 32 | * @module model/BulkRecipientsUpdateResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new BulkRecipientsUpdateResponse. 37 | * @alias module:model/BulkRecipientsUpdateResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a BulkRecipientsUpdateResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/BulkRecipientsUpdateResponse} obj Optional instance to populate. 51 | * @return {module:model/BulkRecipientsUpdateResponse} The populated BulkRecipientsUpdateResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('signer')) { 58 | obj['signer'] = Signer.constructFromObject(data['signer']); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {module:model/Signer} signer 67 | */ 68 | exports.prototype['signer'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/BulkSendBatchRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.BulkSendBatchRequest = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The BulkSendBatchRequest model module. 32 | * @module model/BulkSendBatchRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new BulkSendBatchRequest. 37 | * @alias module:model/BulkSendBatchRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a BulkSendBatchRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/BulkSendBatchRequest} obj Optional instance to populate. 51 | * @return {module:model/BulkSendBatchRequest} The populated BulkSendBatchRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('batchName')) { 58 | obj['batchName'] = ApiClient.convertToType(data['batchName'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} batchName 67 | */ 68 | exports.prototype['batchName'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/CommentsPublish.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/CommentPublish'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./CommentPublish')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.CommentsPublish = factory(root.Docusign.ApiClient, root.Docusign.CommentPublish); 25 | } 26 | }(this, function(ApiClient, CommentPublish) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The CommentsPublish model module. 32 | * @module model/CommentsPublish 33 | */ 34 | 35 | /** 36 | * Constructs a new CommentsPublish. 37 | * @alias module:model/CommentsPublish 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a CommentsPublish from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/CommentsPublish} obj Optional instance to populate. 51 | * @return {module:model/CommentsPublish} The populated CommentsPublish instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('commentsToPublish')) { 58 | obj['commentsToPublish'] = ApiClient.convertToType(data['commentsToPublish'], [CommentPublish]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} commentsToPublish 67 | */ 68 | exports.prototype['commentsToPublish'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/ConnectDeleteFailureResult.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ConnectDeleteFailureResult = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ConnectDeleteFailureResult model module. 32 | * @module model/ConnectDeleteFailureResult 33 | */ 34 | 35 | /** 36 | * Constructs a new ConnectDeleteFailureResult. 37 | * @alias module:model/ConnectDeleteFailureResult 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ConnectDeleteFailureResult from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ConnectDeleteFailureResult} obj Optional instance to populate. 51 | * @return {module:model/ConnectDeleteFailureResult} The populated ConnectDeleteFailureResult instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | } 58 | return obj; 59 | } 60 | 61 | 62 | 63 | 64 | return exports; 65 | })); 66 | 67 | 68 | -------------------------------------------------------------------------------- /src/model/ConnectFailureResults.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/ConnectFailureResult'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./ConnectFailureResult')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ConnectFailureResults = factory(root.Docusign.ApiClient, root.Docusign.ConnectFailureResult); 25 | } 26 | }(this, function(ApiClient, ConnectFailureResult) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ConnectFailureResults model module. 32 | * @module model/ConnectFailureResults 33 | */ 34 | 35 | /** 36 | * Constructs a new ConnectFailureResults. 37 | * @alias module:model/ConnectFailureResults 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ConnectFailureResults from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ConnectFailureResults} obj Optional instance to populate. 51 | * @return {module:model/ConnectFailureResults} The populated ConnectFailureResults instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('retryQueue')) { 58 | obj['retryQueue'] = ApiClient.convertToType(data['retryQueue'], [ConnectFailureResult]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} retryQueue 67 | */ 68 | exports.prototype['retryQueue'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/ConnectedObjectDetails.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ConnectedObjectDetails = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ConnectedObjectDetails model module. 32 | * @module model/ConnectedObjectDetails 33 | */ 34 | 35 | /** 36 | * Constructs a new ConnectedObjectDetails. 37 | * @alias module:model/ConnectedObjectDetails 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ConnectedObjectDetails from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ConnectedObjectDetails} obj Optional instance to populate. 51 | * @return {module:model/ConnectedObjectDetails} The populated ConnectedObjectDetails instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('recordId')) { 58 | obj['recordId'] = ApiClient.convertToType(data['recordId'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} recordId 67 | */ 68 | exports.prototype['recordId'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/ContactModRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/Contact'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./Contact')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ContactModRequest = factory(root.Docusign.ApiClient, root.Docusign.Contact); 25 | } 26 | }(this, function(ApiClient, Contact) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ContactModRequest model module. 32 | * @module model/ContactModRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new ContactModRequest. 37 | * The request object containing the new information for the contacts. 38 | * @alias module:model/ContactModRequest 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a ContactModRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/ContactModRequest} obj Optional instance to populate. 52 | * @return {module:model/ContactModRequest} The populated ContactModRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('contactList')) { 59 | obj['contactList'] = ApiClient.convertToType(data['contactList'], [Contact]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * 67 | * @member {Array.} contactList 68 | */ 69 | exports.prototype['contactList'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/ContactUpdateResponse.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/Contact'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./Contact')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ContactUpdateResponse = factory(root.Docusign.ApiClient, root.Docusign.Contact); 25 | } 26 | }(this, function(ApiClient, Contact) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ContactUpdateResponse model module. 32 | * @module model/ContactUpdateResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new ContactUpdateResponse. 37 | * This response objects shows the updated details for the contacts. 38 | * @alias module:model/ContactUpdateResponse 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a ContactUpdateResponse from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/ContactUpdateResponse} obj Optional instance to populate. 52 | * @return {module:model/ContactUpdateResponse} The populated ContactUpdateResponse instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('contacts')) { 59 | obj['contacts'] = ApiClient.convertToType(data['contacts'], [Contact]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * 67 | * @member {Array.} contacts 68 | */ 69 | exports.prototype['contacts'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/CreditCardTypes.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.CreditCardTypes = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The CreditCardTypes model module. 32 | * @module model/CreditCardTypes 33 | */ 34 | 35 | /** 36 | * Constructs a new CreditCardTypes. 37 | * @alias module:model/CreditCardTypes 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a CreditCardTypes from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/CreditCardTypes} obj Optional instance to populate. 51 | * @return {module:model/CreditCardTypes} The populated CreditCardTypes instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('cardTypes')) { 58 | obj['cardTypes'] = ApiClient.convertToType(data['cardTypes'], ['String']); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * An array containing supported credit card types. 66 | * @member {Array.} cardTypes 67 | */ 68 | exports.prototype['cardTypes'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/CustomSettingsInformation.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/NameValue'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./NameValue')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.CustomSettingsInformation = factory(root.Docusign.ApiClient, root.Docusign.NameValue); 25 | } 26 | }(this, function(ApiClient, NameValue) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The CustomSettingsInformation model module. 32 | * @module model/CustomSettingsInformation 33 | */ 34 | 35 | /** 36 | * Constructs a new CustomSettingsInformation. 37 | * @alias module:model/CustomSettingsInformation 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a CustomSettingsInformation from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/CustomSettingsInformation} obj Optional instance to populate. 51 | * @return {module:model/CustomSettingsInformation} The populated CustomSettingsInformation instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('customSettings')) { 58 | obj['customSettings'] = ApiClient.convertToType(data['customSettings'], [NameValue]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} customSettings 67 | */ 68 | exports.prototype['customSettings'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/DisplayApplianceInfo.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.DisplayApplianceInfo = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DisplayApplianceInfo model module. 32 | * @module model/DisplayApplianceInfo 33 | */ 34 | 35 | /** 36 | * Constructs a new DisplayApplianceInfo. 37 | * @alias module:model/DisplayApplianceInfo 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DisplayApplianceInfo from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DisplayApplianceInfo} obj Optional instance to populate. 51 | * @return {module:model/DisplayApplianceInfo} The populated DisplayApplianceInfo instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | } 58 | return obj; 59 | } 60 | 61 | 62 | 63 | 64 | return exports; 65 | })); 66 | 67 | 68 | -------------------------------------------------------------------------------- /src/model/DisplayAppliancePdf.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.DisplayAppliancePdf = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DisplayAppliancePdf model module. 32 | * @module model/DisplayAppliancePdf 33 | */ 34 | 35 | /** 36 | * Constructs a new DisplayAppliancePdf. 37 | * @alias module:model/DisplayAppliancePdf 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DisplayAppliancePdf from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DisplayAppliancePdf} obj Optional instance to populate. 51 | * @return {module:model/DisplayAppliancePdf} The populated DisplayAppliancePdf instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | } 58 | return obj; 59 | } 60 | 61 | 62 | 63 | 64 | return exports; 65 | })); 66 | 67 | 68 | -------------------------------------------------------------------------------- /src/model/DisplayApplianceSignerAttachment.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.DisplayApplianceSignerAttachment = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DisplayApplianceSignerAttachment model module. 32 | * @module model/DisplayApplianceSignerAttachment 33 | */ 34 | 35 | /** 36 | * Constructs a new DisplayApplianceSignerAttachment. 37 | * @alias module:model/DisplayApplianceSignerAttachment 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DisplayApplianceSignerAttachment from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DisplayApplianceSignerAttachment} obj Optional instance to populate. 51 | * @return {module:model/DisplayApplianceSignerAttachment} The populated DisplayApplianceSignerAttachment instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | } 58 | return obj; 59 | } 60 | 61 | 62 | 63 | 64 | return exports; 65 | })); 66 | 67 | 68 | -------------------------------------------------------------------------------- /src/model/DocGenFormFieldRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/DocGenFormFields'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DocGenFormFields')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.DocGenFormFieldRequest = factory(root.Docusign.ApiClient, root.Docusign.DocGenFormFields); 25 | } 26 | }(this, function(ApiClient, DocGenFormFields) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DocGenFormFieldRequest model module. 32 | * @module model/DocGenFormFieldRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new DocGenFormFieldRequest. 37 | * @alias module:model/DocGenFormFieldRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DocGenFormFieldRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DocGenFormFieldRequest} obj Optional instance to populate. 51 | * @return {module:model/DocGenFormFieldRequest} The populated DocGenFormFieldRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('docGenFormFields')) { 58 | obj['docGenFormFields'] = ApiClient.convertToType(data['docGenFormFields'], [DocGenFormFields]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} docGenFormFields 67 | */ 68 | exports.prototype['docGenFormFields'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/DocGenFormFieldRowValue.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/DocGenFormField'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DocGenFormField')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.DocGenFormFieldRowValue = factory(root.Docusign.ApiClient, root.Docusign.DocGenFormField); 25 | } 26 | }(this, function(ApiClient, DocGenFormField) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DocGenFormFieldRowValue model module. 32 | * @module model/DocGenFormFieldRowValue 33 | */ 34 | 35 | /** 36 | * Constructs a new DocGenFormFieldRowValue. 37 | * @alias module:model/DocGenFormFieldRowValue 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DocGenFormFieldRowValue from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DocGenFormFieldRowValue} obj Optional instance to populate. 51 | * @return {module:model/DocGenFormFieldRowValue} The populated DocGenFormFieldRowValue instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('docGenFormFieldList')) { 58 | obj['docGenFormFieldList'] = ApiClient.convertToType(data['docGenFormFieldList'], [DocGenFormField]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} docGenFormFieldList 67 | */ 68 | exports.prototype['docGenFormFieldList'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/DocumentHtmlDefinitions.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.DocumentHtmlDefinitions = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DocumentHtmlDefinitions model module. 32 | * @module model/DocumentHtmlDefinitions 33 | */ 34 | 35 | /** 36 | * Constructs a new DocumentHtmlDefinitions. 37 | * @alias module:model/DocumentHtmlDefinitions 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DocumentHtmlDefinitions from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DocumentHtmlDefinitions} obj Optional instance to populate. 51 | * @return {module:model/DocumentHtmlDefinitions} The populated DocumentHtmlDefinitions instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('htmlDefinitions')) { 58 | obj['htmlDefinitions'] = ApiClient.convertToType(data['htmlDefinitions'], ['String']); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} htmlDefinitions 67 | */ 68 | exports.prototype['htmlDefinitions'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/DocumentTemplateList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/DocumentTemplate'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DocumentTemplate')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.DocumentTemplateList = factory(root.Docusign.ApiClient, root.Docusign.DocumentTemplate); 25 | } 26 | }(this, function(ApiClient, DocumentTemplate) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DocumentTemplateList model module. 32 | * @module model/DocumentTemplateList 33 | */ 34 | 35 | /** 36 | * Constructs a new DocumentTemplateList. 37 | * @alias module:model/DocumentTemplateList 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DocumentTemplateList from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DocumentTemplateList} obj Optional instance to populate. 51 | * @return {module:model/DocumentTemplateList} The populated DocumentTemplateList instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('documentTemplates')) { 58 | obj['documentTemplates'] = ApiClient.convertToType(data['documentTemplates'], [DocumentTemplate]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} documentTemplates 67 | */ 68 | exports.prototype['documentTemplates'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/EnvelopeAttachmentsRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/Attachment'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./Attachment')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.EnvelopeAttachmentsRequest = factory(root.Docusign.ApiClient, root.Docusign.Attachment); 25 | } 26 | }(this, function(ApiClient, Attachment) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The EnvelopeAttachmentsRequest model module. 32 | * @module model/EnvelopeAttachmentsRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new EnvelopeAttachmentsRequest. 37 | * @alias module:model/EnvelopeAttachmentsRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a EnvelopeAttachmentsRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/EnvelopeAttachmentsRequest} obj Optional instance to populate. 51 | * @return {module:model/EnvelopeAttachmentsRequest} The populated EnvelopeAttachmentsRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('attachments')) { 58 | obj['attachments'] = ApiClient.convertToType(data['attachments'], [Attachment]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} attachments 67 | */ 68 | exports.prototype['attachments'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/EnvelopeAttachmentsResult.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/EnvelopeAttachment'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./EnvelopeAttachment')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.EnvelopeAttachmentsResult = factory(root.Docusign.ApiClient, root.Docusign.EnvelopeAttachment); 25 | } 26 | }(this, function(ApiClient, EnvelopeAttachment) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The EnvelopeAttachmentsResult model module. 32 | * @module model/EnvelopeAttachmentsResult 33 | */ 34 | 35 | /** 36 | * Constructs a new EnvelopeAttachmentsResult. 37 | * @alias module:model/EnvelopeAttachmentsResult 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a EnvelopeAttachmentsResult from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/EnvelopeAttachmentsResult} obj Optional instance to populate. 51 | * @return {module:model/EnvelopeAttachmentsResult} The populated EnvelopeAttachmentsResult instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('attachments')) { 58 | obj['attachments'] = ApiClient.convertToType(data['attachments'], [EnvelopeAttachment]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} attachments 67 | */ 68 | exports.prototype['attachments'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/EnvelopeAuditEvent.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/NameValue'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./NameValue')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.EnvelopeAuditEvent = factory(root.Docusign.ApiClient, root.Docusign.NameValue); 25 | } 26 | }(this, function(ApiClient, NameValue) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The EnvelopeAuditEvent model module. 32 | * @module model/EnvelopeAuditEvent 33 | */ 34 | 35 | /** 36 | * Constructs a new EnvelopeAuditEvent. 37 | * @alias module:model/EnvelopeAuditEvent 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a EnvelopeAuditEvent from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/EnvelopeAuditEvent} obj Optional instance to populate. 51 | * @return {module:model/EnvelopeAuditEvent} The populated EnvelopeAuditEvent instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('eventFields')) { 58 | obj['eventFields'] = ApiClient.convertToType(data['eventFields'], [NameValue]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} eventFields 67 | */ 68 | exports.prototype['eventFields'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/EnvelopeCustomMetadata.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/NameValue'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./NameValue')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.EnvelopeCustomMetadata = factory(root.Docusign.ApiClient, root.Docusign.NameValue); 25 | } 26 | }(this, function(ApiClient, NameValue) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The EnvelopeCustomMetadata model module. 32 | * @module model/EnvelopeCustomMetadata 33 | */ 34 | 35 | /** 36 | * Constructs a new EnvelopeCustomMetadata. 37 | * @alias module:model/EnvelopeCustomMetadata 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a EnvelopeCustomMetadata from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/EnvelopeCustomMetadata} obj Optional instance to populate. 51 | * @return {module:model/EnvelopeCustomMetadata} The populated EnvelopeCustomMetadata instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('envelopeCustomMetadataDetails')) { 58 | obj['envelopeCustomMetadataDetails'] = ApiClient.convertToType(data['envelopeCustomMetadataDetails'], [NameValue]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} envelopeCustomMetadataDetails 67 | */ 68 | exports.prototype['envelopeCustomMetadataDetails'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/EnvelopeFormDataPrefillFormData.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/FormDataItem'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./FormDataItem')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.EnvelopeFormDataPrefillFormData = factory(root.Docusign.ApiClient, root.Docusign.FormDataItem); 25 | } 26 | }(this, function(ApiClient, FormDataItem) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The EnvelopeFormDataPrefillFormData model module. 32 | * @module model/EnvelopeFormDataPrefillFormData 33 | */ 34 | 35 | /** 36 | * Constructs a new EnvelopeFormDataPrefillFormData. 37 | * @alias module:model/EnvelopeFormDataPrefillFormData 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a EnvelopeFormDataPrefillFormData from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/EnvelopeFormDataPrefillFormData} obj Optional instance to populate. 51 | * @return {module:model/EnvelopeFormDataPrefillFormData} The populated EnvelopeFormDataPrefillFormData instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('formData')) { 58 | obj['formData'] = ApiClient.convertToType(data['formData'], [FormDataItem]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} formData 67 | */ 68 | exports.prototype['formData'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/EnvelopeViewTemplateSettings.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.EnvelopeViewTemplateSettings = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The EnvelopeViewTemplateSettings model module. 32 | * @module model/EnvelopeViewTemplateSettings 33 | */ 34 | 35 | /** 36 | * Constructs a new EnvelopeViewTemplateSettings. 37 | * @alias module:model/EnvelopeViewTemplateSettings 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a EnvelopeViewTemplateSettings from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/EnvelopeViewTemplateSettings} obj Optional instance to populate. 51 | * @return {module:model/EnvelopeViewTemplateSettings} The populated EnvelopeViewTemplateSettings instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('showMatchingTemplatesPrompt')) { 58 | obj['showMatchingTemplatesPrompt'] = ApiClient.convertToType(data['showMatchingTemplatesPrompt'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} showMatchingTemplatesPrompt 67 | */ 68 | exports.prototype['showMatchingTemplatesPrompt'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/FileType.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.FileType = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The FileType model module. 32 | * @module model/FileType 33 | */ 34 | 35 | /** 36 | * Constructs a new FileType. 37 | * @alias module:model/FileType 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a FileType from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/FileType} obj Optional instance to populate. 51 | * @return {module:model/FileType} The populated FileType instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('fileExtension')) { 58 | obj['fileExtension'] = ApiClient.convertToType(data['fileExtension'], 'String'); 59 | } 60 | if (data.hasOwnProperty('mimeType')) { 61 | obj['mimeType'] = ApiClient.convertToType(data['mimeType'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * 69 | * @member {String} fileExtension 70 | */ 71 | exports.prototype['fileExtension'] = undefined; 72 | /** 73 | * The mime-type of a file type listed in a fileTypes collection. 74 | * @member {String} mimeType 75 | */ 76 | exports.prototype['mimeType'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/FileTypeList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/FileType'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./FileType')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.FileTypeList = factory(root.Docusign.ApiClient, root.Docusign.FileType); 25 | } 26 | }(this, function(ApiClient, FileType) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The FileTypeList model module. 32 | * @module model/FileTypeList 33 | */ 34 | 35 | /** 36 | * Constructs a new FileTypeList. 37 | * @alias module:model/FileTypeList 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a FileTypeList from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/FileTypeList} obj Optional instance to populate. 51 | * @return {module:model/FileTypeList} The populated FileTypeList instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('fileTypes')) { 58 | obj['fileTypes'] = ApiClient.convertToType(data['fileTypes'], [FileType]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * A collection of file types. 66 | * @member {Array.} fileTypes 67 | */ 68 | exports.prototype['fileTypes'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/IdCheckSecurityStep.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.IdCheckSecurityStep = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The IdCheckSecurityStep model module. 32 | * @module model/IdCheckSecurityStep 33 | */ 34 | 35 | /** 36 | * Constructs a new IdCheckSecurityStep. 37 | * @alias module:model/IdCheckSecurityStep 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a IdCheckSecurityStep from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/IdCheckSecurityStep} obj Optional instance to populate. 51 | * @return {module:model/IdCheckSecurityStep} The populated IdCheckSecurityStep instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('authType')) { 58 | obj['authType'] = ApiClient.convertToType(data['authType'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} authType 67 | */ 68 | exports.prototype['authType'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/IdEvidenceViewLink.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.IdEvidenceViewLink = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The IdEvidenceViewLink model module. 32 | * @module model/IdEvidenceViewLink 33 | */ 34 | 35 | /** 36 | * Constructs a new IdEvidenceViewLink. 37 | * @alias module:model/IdEvidenceViewLink 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a IdEvidenceViewLink from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/IdEvidenceViewLink} obj Optional instance to populate. 51 | * @return {module:model/IdEvidenceViewLink} The populated IdEvidenceViewLink instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('viewLink')) { 58 | obj['viewLink'] = ApiClient.convertToType(data['viewLink'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} viewLink 67 | */ 68 | exports.prototype['viewLink'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/NewUsersDefinition.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/UserInformation'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./UserInformation')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.NewUsersDefinition = factory(root.Docusign.ApiClient, root.Docusign.UserInformation); 25 | } 26 | }(this, function(ApiClient, UserInformation) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The NewUsersDefinition model module. 32 | * @module model/NewUsersDefinition 33 | */ 34 | 35 | /** 36 | * Constructs a new NewUsersDefinition. 37 | * @alias module:model/NewUsersDefinition 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a NewUsersDefinition from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/NewUsersDefinition} obj Optional instance to populate. 51 | * @return {module:model/NewUsersDefinition} The populated NewUsersDefinition instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('newUsers')) { 58 | obj['newUsers'] = ApiClient.convertToType(data['newUsers'], [UserInformation]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} newUsers 67 | */ 68 | exports.prototype['newUsers'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/NewUsersSummary.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/NewUser'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./NewUser')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.NewUsersSummary = factory(root.Docusign.ApiClient, root.Docusign.NewUser); 25 | } 26 | }(this, function(ApiClient, NewUser) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The NewUsersSummary model module. 32 | * @module model/NewUsersSummary 33 | */ 34 | 35 | /** 36 | * Constructs a new NewUsersSummary. 37 | * Object representing a summary of data for new users. 38 | * @alias module:model/NewUsersSummary 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a NewUsersSummary from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/NewUsersSummary} obj Optional instance to populate. 52 | * @return {module:model/NewUsersSummary} The populated NewUsersSummary instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('newUsers')) { 59 | obj['newUsers'] = ApiClient.convertToType(data['newUsers'], [NewUser]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * 67 | * @member {Array.} newUsers 68 | */ 69 | exports.prototype['newUsers'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/PageSize.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.PageSize = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The PageSize model module. 32 | * @module model/PageSize 33 | * @version 5.3.0 34 | */ 35 | 36 | /** 37 | * Constructs a new PageSize. 38 | * @alias module:model/PageSize 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a PageSize from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/PageSize} obj Optional instance to populate. 52 | * @return {module:model/PageSize} The populated PageSize instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('pageHeight')) { 59 | obj['pageHeight'] = ApiClient.convertToType(data['pageHeight'], 'String'); 60 | } 61 | if (data.hasOwnProperty('pageWidth')) { 62 | obj['pageWidth'] = ApiClient.convertToType(data['pageWidth'], 'String'); 63 | } 64 | } 65 | return obj; 66 | } 67 | 68 | /** 69 | * 70 | * @member {String} pageHeight 71 | */ 72 | exports.prototype['pageHeight'] = undefined; 73 | /** 74 | * 75 | * @member {String} pageWidth 76 | */ 77 | exports.prototype['pageWidth'] = undefined; 78 | 79 | 80 | 81 | return exports; 82 | })); 83 | 84 | 85 | -------------------------------------------------------------------------------- /src/model/PaletteItemSettings.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.PaletteItemSettings = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The PaletteItemSettings model module. 32 | * @module model/PaletteItemSettings 33 | */ 34 | 35 | /** 36 | * Constructs a new PaletteItemSettings. 37 | * @alias module:model/PaletteItemSettings 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a PaletteItemSettings from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/PaletteItemSettings} obj Optional instance to populate. 51 | * @return {module:model/PaletteItemSettings} The populated PaletteItemSettings instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('show')) { 58 | obj['show'] = ApiClient.convertToType(data['show'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} show 67 | */ 68 | exports.prototype['show'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/PaymentSignerValues.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.PaymentSignerValues = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The PaymentSignerValues model module. 32 | * @module model/PaymentSignerValues 33 | */ 34 | 35 | /** 36 | * Constructs a new PaymentSignerValues. 37 | * @alias module:model/PaymentSignerValues 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a PaymentSignerValues from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/PaymentSignerValues} obj Optional instance to populate. 51 | * @return {module:model/PaymentSignerValues} The populated PaymentSignerValues instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('paymentOption')) { 58 | obj['paymentOption'] = ApiClient.convertToType(data['paymentOption'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} paymentOption 67 | */ 68 | exports.prototype['paymentOption'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/PowerFormsRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/PowerForm'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./PowerForm')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.PowerFormsRequest = factory(root.Docusign.ApiClient, root.Docusign.PowerForm); 25 | } 26 | }(this, function(ApiClient, PowerForm) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The PowerFormsRequest model module. 32 | * @module model/PowerFormsRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new PowerFormsRequest. 37 | * @alias module:model/PowerFormsRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a PowerFormsRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/PowerFormsRequest} obj Optional instance to populate. 51 | * @return {module:model/PowerFormsRequest} The populated PowerFormsRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('powerForms')) { 58 | obj['powerForms'] = ApiClient.convertToType(data['powerForms'], [PowerForm]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} powerForms 67 | */ 68 | exports.prototype['powerForms'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/ProofServiceViewLink.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ProofServiceViewLink = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ProofServiceViewLink model module. 32 | * @module model/ProofServiceViewLink 33 | */ 34 | 35 | /** 36 | * Constructs a new ProofServiceViewLink. 37 | * @alias module:model/ProofServiceViewLink 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ProofServiceViewLink from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ProofServiceViewLink} obj Optional instance to populate. 51 | * @return {module:model/ProofServiceViewLink} The populated ProofServiceViewLink instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('ViewLink')) { 58 | obj['ViewLink'] = ApiClient.convertToType(data['ViewLink'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} ViewLink 67 | */ 68 | exports.prototype['ViewLink'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/Province.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.Province = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The Province model module. 32 | * @module model/Province 33 | */ 34 | 35 | /** 36 | * Constructs a new Province. 37 | * @alias module:model/Province 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a Province from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/Province} obj Optional instance to populate. 51 | * @return {module:model/Province} The populated Province instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('isoCode')) { 58 | obj['isoCode'] = ApiClient.convertToType(data['isoCode'], 'String'); 59 | } 60 | if (data.hasOwnProperty('name')) { 61 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * 69 | * @member {String} isoCode 70 | */ 71 | exports.prototype['isoCode'] = undefined; 72 | /** 73 | * 74 | * @member {String} name 75 | */ 76 | exports.prototype['name'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/RecipientRouting.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/RecipientRules'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./RecipientRules')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.RecipientRouting = factory(root.Docusign.ApiClient, root.Docusign.RecipientRules); 25 | } 26 | }(this, function(ApiClient, RecipientRules) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The RecipientRouting model module. 32 | * @module model/RecipientRouting 33 | */ 34 | 35 | /** 36 | * Constructs a new RecipientRouting. 37 | * Describes the recipient routing rules. 38 | * @alias module:model/RecipientRouting 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a RecipientRouting from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/RecipientRouting} obj Optional instance to populate. 52 | * @return {module:model/RecipientRouting} The populated RecipientRouting instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('rules')) { 59 | obj['rules'] = RecipientRules.constructFromObject(data['rules']); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * The recipient routing rules. 67 | * @member {module:model/RecipientRules} rules 68 | */ 69 | exports.prototype['rules'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/RecipientRules.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/ConditionalRecipientRule'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./ConditionalRecipientRule')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.RecipientRules = factory(root.Docusign.ApiClient, root.Docusign.ConditionalRecipientRule); 25 | } 26 | }(this, function(ApiClient, ConditionalRecipientRule) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The RecipientRules model module. 32 | * @module model/RecipientRules 33 | */ 34 | 35 | /** 36 | * Constructs a new RecipientRules. 37 | * @alias module:model/RecipientRules 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a RecipientRules from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/RecipientRules} obj Optional instance to populate. 51 | * @return {module:model/RecipientRules} The populated RecipientRules instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('conditionalRecipients')) { 58 | obj['conditionalRecipients'] = ApiClient.convertToType(data['conditionalRecipients'], [ConditionalRecipientRule]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} conditionalRecipients 67 | */ 68 | exports.prototype['conditionalRecipients'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/ReportInProductList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/ReportInProductListItem'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./ReportInProductListItem')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ReportInProductList = factory(root.Docusign.ApiClient, root.Docusign.ReportInProductListItem); 25 | } 26 | }(this, function(ApiClient, ReportInProductListItem) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ReportInProductList model module. 32 | * @module model/ReportInProductList 33 | */ 34 | 35 | /** 36 | * Constructs a new ReportInProductList. 37 | * @alias module:model/ReportInProductList 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ReportInProductList from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ReportInProductList} obj Optional instance to populate. 51 | * @return {module:model/ReportInProductList} The populated ReportInProductList instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('reports')) { 58 | obj['reports'] = ApiClient.convertToType(data['reports'], [ReportInProductListItem]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} reports 67 | */ 68 | exports.prototype['reports'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/ReportInProductSaveResponse.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ReportInProductSaveResponse = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ReportInProductSaveResponse model module. 32 | * @module model/ReportInProductSaveResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new ReportInProductSaveResponse. 37 | * @alias module:model/ReportInProductSaveResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ReportInProductSaveResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ReportInProductSaveResponse} obj Optional instance to populate. 51 | * @return {module:model/ReportInProductSaveResponse} The populated ReportInProductSaveResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('reportCustomizedId')) { 58 | obj['reportCustomizedId'] = ApiClient.convertToType(data['reportCustomizedId'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} reportCustomizedId 67 | */ 68 | exports.prototype['reportCustomizedId'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/ResourceInformation.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/NameValue'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./NameValue')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ResourceInformation = factory(root.Docusign.ApiClient, root.Docusign.NameValue); 25 | } 26 | }(this, function(ApiClient, NameValue) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ResourceInformation model module. 32 | * @module model/ResourceInformation 33 | */ 34 | 35 | /** 36 | * Constructs a new ResourceInformation. 37 | * @alias module:model/ResourceInformation 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ResourceInformation from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ResourceInformation} obj Optional instance to populate. 51 | * @return {module:model/ResourceInformation} The populated ResourceInformation instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('resources')) { 58 | obj['resources'] = ApiClient.convertToType(data['resources'], [NameValue]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} resources 67 | */ 68 | exports.prototype['resources'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/Seal.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.Seal = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The Seal model module. 32 | * @module model/Seal 33 | */ 34 | 35 | /** 36 | * Constructs a new Seal. 37 | * @alias module:model/Seal 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a Seal from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/Seal} obj Optional instance to populate. 51 | * @return {module:model/Seal} The populated Seal instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('configuration')) { 58 | obj['configuration'] = ApiClient.convertToType(data['configuration'], {'String': 'String'}); 59 | } 60 | if (data.hasOwnProperty('sealIdentifier')) { 61 | obj['sealIdentifier'] = ApiClient.convertToType(data['sealIdentifier'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * 69 | * @member {Object.} configuration 70 | */ 71 | exports.prototype['configuration'] = undefined; 72 | /** 73 | * 74 | * @member {String} sealIdentifier 75 | */ 76 | exports.prototype['sealIdentifier'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/SealIdentifier.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.SealIdentifier = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SealIdentifier model module. 32 | * @module model/SealIdentifier 33 | */ 34 | 35 | /** 36 | * Constructs a new SealIdentifier. 37 | * @alias module:model/SealIdentifier 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SealIdentifier from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SealIdentifier} obj Optional instance to populate. 51 | * @return {module:model/SealIdentifier} The populated SealIdentifier instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('sealDisplayName')) { 58 | obj['sealDisplayName'] = ApiClient.convertToType(data['sealDisplayName'], 'String'); 59 | } 60 | if (data.hasOwnProperty('sealName')) { 61 | obj['sealName'] = ApiClient.convertToType(data['sealName'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * 69 | * @member {String} sealDisplayName 70 | */ 71 | exports.prototype['sealDisplayName'] = undefined; 72 | /** 73 | * 74 | * @member {String} sealName 75 | */ 76 | exports.prototype['sealName'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/Sender.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.Sender = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The Sender model module. 32 | * @module model/Sender 33 | */ 34 | 35 | /** 36 | * Constructs a new Sender. 37 | * @alias module:model/Sender 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a Sender from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/Sender} obj Optional instance to populate. 51 | * @return {module:model/Sender} The populated Sender instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('accountIdGuid')) { 58 | obj['accountIdGuid'] = ApiClient.convertToType(data['accountIdGuid'], 'String'); 59 | } 60 | if (data.hasOwnProperty('companyName')) { 61 | obj['companyName'] = ApiClient.convertToType(data['companyName'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * The GUID associated with the account ID. 69 | * @member {String} accountIdGuid 70 | */ 71 | exports.prototype['accountIdGuid'] = undefined; 72 | /** 73 | * 74 | * @member {String} companyName 75 | */ 76 | exports.prototype['companyName'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/ServiceVersion.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ServiceVersion = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ServiceVersion model module. 32 | * @module model/ServiceVersion 33 | */ 34 | 35 | /** 36 | * Constructs a new ServiceVersion. 37 | * @alias module:model/ServiceVersion 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ServiceVersion from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ServiceVersion} obj Optional instance to populate. 51 | * @return {module:model/ServiceVersion} The populated ServiceVersion instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('version')) { 58 | obj['version'] = ApiClient.convertToType(data['version'], 'String'); 59 | } 60 | if (data.hasOwnProperty('versionUrl')) { 61 | obj['versionUrl'] = ApiClient.convertToType(data['versionUrl'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * The version of the rest API. 69 | * @member {String} version 70 | */ 71 | exports.prototype['version'] = undefined; 72 | /** 73 | * 74 | * @member {String} versionUrl 75 | */ 76 | exports.prototype['versionUrl'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/SignatureGroupDef.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.SignatureGroupDef = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SignatureGroupDef model module. 32 | * @module model/SignatureGroupDef 33 | */ 34 | 35 | /** 36 | * Constructs a new SignatureGroupDef. 37 | * @alias module:model/SignatureGroupDef 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SignatureGroupDef from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SignatureGroupDef} obj Optional instance to populate. 51 | * @return {module:model/SignatureGroupDef} The populated SignatureGroupDef instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('groupId')) { 58 | obj['groupId'] = ApiClient.convertToType(data['groupId'], 'String'); 59 | } 60 | if (data.hasOwnProperty('rights')) { 61 | obj['rights'] = ApiClient.convertToType(data['rights'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * 69 | * @member {String} groupId 70 | */ 71 | exports.prototype['groupId'] = undefined; 72 | /** 73 | * 74 | * @member {String} rights 75 | */ 76 | exports.prototype['rights'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/SignatureProperties.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.SignatureProperties = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SignatureProperties model module. 32 | * @module model/SignatureProperties 33 | */ 34 | 35 | /** 36 | * Constructs a new SignatureProperties. 37 | * @alias module:model/SignatureProperties 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SignatureProperties from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SignatureProperties} obj Optional instance to populate. 51 | * @return {module:model/SignatureProperties} The populated SignatureProperties instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('filter')) { 58 | obj['filter'] = ApiClient.convertToType(data['filter'], 'String'); 59 | } 60 | if (data.hasOwnProperty('subFilter')) { 61 | obj['subFilter'] = ApiClient.convertToType(data['subFilter'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * 69 | * @member {String} filter 70 | */ 71 | exports.prototype['filter'] = undefined; 72 | /** 73 | * 74 | * @member {String} subFilter 75 | */ 76 | exports.prototype['subFilter'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/SigningGroupInformation.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/SigningGroup'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./SigningGroup')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.SigningGroupInformation = factory(root.Docusign.ApiClient, root.Docusign.SigningGroup); 25 | } 26 | }(this, function(ApiClient, SigningGroup) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SigningGroupInformation model module. 32 | * @module model/SigningGroupInformation 33 | */ 34 | 35 | /** 36 | * Constructs a new SigningGroupInformation. 37 | * @alias module:model/SigningGroupInformation 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SigningGroupInformation from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SigningGroupInformation} obj Optional instance to populate. 51 | * @return {module:model/SigningGroupInformation} The populated SigningGroupInformation instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('groups')) { 58 | obj['groups'] = ApiClient.convertToType(data['groups'], [SigningGroup]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * A collection group objects containing information about the groups returned. 66 | * @member {Array.} groups 67 | */ 68 | exports.prototype['groups'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/SigningGroupUsers.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/SigningGroupUser'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./SigningGroupUser')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.SigningGroupUsers = factory(root.Docusign.ApiClient, root.Docusign.SigningGroupUser); 25 | } 26 | }(this, function(ApiClient, SigningGroupUser) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SigningGroupUsers model module. 32 | * @module model/SigningGroupUsers 33 | */ 34 | 35 | /** 36 | * Constructs a new SigningGroupUsers. 37 | * @alias module:model/SigningGroupUsers 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SigningGroupUsers from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SigningGroupUsers} obj Optional instance to populate. 51 | * @return {module:model/SigningGroupUsers} The populated SigningGroupUsers instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('users')) { 58 | obj['users'] = ApiClient.convertToType(data['users'], [SigningGroupUser]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} users 67 | */ 68 | exports.prototype['users'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/SocialAuthentication.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.SocialAuthentication = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SocialAuthentication model module. 32 | * @module model/SocialAuthentication 33 | */ 34 | 35 | /** 36 | * Constructs a new SocialAuthentication. 37 | * @alias module:model/SocialAuthentication 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SocialAuthentication from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SocialAuthentication} obj Optional instance to populate. 51 | * @return {module:model/SocialAuthentication} The populated SocialAuthentication instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('authentication')) { 58 | obj['authentication'] = ApiClient.convertToType(data['authentication'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * Reserved: TBD 66 | * @member {String} authentication 67 | */ 68 | exports.prototype['authentication'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/SupportedLanguages.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/NameValue'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./NameValue')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.SupportedLanguages = factory(root.Docusign.ApiClient, root.Docusign.NameValue); 25 | } 26 | }(this, function(ApiClient, NameValue) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SupportedLanguages model module. 32 | * @module model/SupportedLanguages 33 | */ 34 | 35 | /** 36 | * Constructs a new SupportedLanguages. 37 | * A list of supported languages. 38 | * @alias module:model/SupportedLanguages 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a SupportedLanguages from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/SupportedLanguages} obj Optional instance to populate. 52 | * @return {module:model/SupportedLanguages} The populated SupportedLanguages instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('languages')) { 59 | obj['languages'] = ApiClient.convertToType(data['languages'], [NameValue]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * 67 | * @member {Array.} languages 68 | */ 69 | exports.prototype['languages'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/TabMetadataList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/TabMetadata'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./TabMetadata')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.TabMetadataList = factory(root.Docusign.ApiClient, root.Docusign.TabMetadata); 25 | } 26 | }(this, function(ApiClient, TabMetadata) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The TabMetadataList model module. 32 | * @module model/TabMetadataList 33 | */ 34 | 35 | /** 36 | * Constructs a new TabMetadataList. 37 | * @alias module:model/TabMetadataList 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a TabMetadataList from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/TabMetadataList} obj Optional instance to populate. 51 | * @return {module:model/TabMetadataList} The populated TabMetadataList instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('tabs')) { 58 | obj['tabs'] = ApiClient.convertToType(data['tabs'], [TabMetadata]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} tabs 67 | */ 68 | exports.prototype['tabs'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/TemplateAutoMatchList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/TemplateAutoMatch'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./TemplateAutoMatch')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.TemplateAutoMatchList = factory(root.Docusign.ApiClient, root.Docusign.TemplateAutoMatch); 25 | } 26 | }(this, function(ApiClient, TemplateAutoMatch) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The TemplateAutoMatchList model module. 32 | * @module model/TemplateAutoMatchList 33 | */ 34 | 35 | /** 36 | * Constructs a new TemplateAutoMatchList. 37 | * @alias module:model/TemplateAutoMatchList 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a TemplateAutoMatchList from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/TemplateAutoMatchList} obj Optional instance to populate. 51 | * @return {module:model/TemplateAutoMatchList} The populated TemplateAutoMatchList instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('templates')) { 58 | obj['templates'] = ApiClient.convertToType(data['templates'], [TemplateAutoMatch]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} templates 67 | */ 68 | exports.prototype['templates'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/TemplateInformation.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/TemplateSummary'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./TemplateSummary')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.TemplateInformation = factory(root.Docusign.ApiClient, root.Docusign.TemplateSummary); 25 | } 26 | }(this, function(ApiClient, TemplateSummary) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The TemplateInformation model module. 32 | * @module model/TemplateInformation 33 | */ 34 | 35 | /** 36 | * Constructs a new TemplateInformation. 37 | * @alias module:model/TemplateInformation 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a TemplateInformation from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/TemplateInformation} obj Optional instance to populate. 51 | * @return {module:model/TemplateInformation} The populated TemplateInformation instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('templates')) { 58 | obj['templates'] = ApiClient.convertToType(data['templates'], [TemplateSummary]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} templates 67 | */ 68 | exports.prototype['templates'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/UpdateTransactionResponse.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.UpdateTransactionResponse = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UpdateTransactionResponse model module. 32 | * @module model/UpdateTransactionResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new UpdateTransactionResponse. 37 | * @alias module:model/UpdateTransactionResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UpdateTransactionResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UpdateTransactionResponse} obj Optional instance to populate. 51 | * @return {module:model/UpdateTransactionResponse} The populated UpdateTransactionResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('redirectionUrl')) { 58 | obj['redirectionUrl'] = ApiClient.convertToType(data['redirectionUrl'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {String} redirectionUrl 67 | */ 68 | exports.prototype['redirectionUrl'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/UserAuthorizationsDeleteRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.UserAuthorizationsDeleteRequest = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UserAuthorizationsDeleteRequest model module. 32 | * @module model/UserAuthorizationsDeleteRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new UserAuthorizationsDeleteRequest. 37 | * @alias module:model/UserAuthorizationsDeleteRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UserAuthorizationsDeleteRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UserAuthorizationsDeleteRequest} obj Optional instance to populate. 51 | * @return {module:model/UserAuthorizationsDeleteRequest} The populated UserAuthorizationsDeleteRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('authorizations')) { 58 | obj['authorizations'] = ApiClient.convertToType(data['authorizations'], ['String']); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} authorizations 67 | */ 68 | exports.prototype['authorizations'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/UserInfoList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/UserInfo'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./UserInfo')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.UserInfoList = factory(root.Docusign.ApiClient, root.Docusign.UserInfo); 25 | } 26 | }(this, function(ApiClient, UserInfo) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UserInfoList model module. 32 | * @module model/UserInfoList 33 | */ 34 | 35 | /** 36 | * Constructs a new UserInfoList. 37 | * @alias module:model/UserInfoList 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UserInfoList from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UserInfoList} obj Optional instance to populate. 51 | * @return {module:model/UserInfoList} The populated UserInfoList instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('users')) { 58 | obj['users'] = ApiClient.convertToType(data['users'], [UserInfo]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} users 67 | */ 68 | exports.prototype['users'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/UserSignaturesInformation.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/UserSignature'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./UserSignature')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.UserSignaturesInformation = factory(root.Docusign.ApiClient, root.Docusign.UserSignature); 25 | } 26 | }(this, function(ApiClient, UserSignature) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UserSignaturesInformation model module. 32 | * @module model/UserSignaturesInformation 33 | */ 34 | 35 | /** 36 | * Constructs a new UserSignaturesInformation. 37 | * @alias module:model/UserSignaturesInformation 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UserSignaturesInformation from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UserSignaturesInformation} obj Optional instance to populate. 51 | * @return {module:model/UserSignaturesInformation} The populated UserSignaturesInformation instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('userSignatures')) { 58 | obj['userSignatures'] = ApiClient.convertToType(data['userSignatures'], [UserSignature]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * 66 | * @member {Array.} userSignatures 67 | */ 68 | exports.prototype['userSignatures'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/ViewLinkRequest.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DocuSign REST API 3 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 4 | * 5 | * OpenAPI spec version: v2 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ViewLinkRequest = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ViewLinkRequest model module. 32 | * @module model/ViewLinkRequest 33 | * @version 3.0.0 34 | */ 35 | 36 | /** 37 | * Constructs a new ViewLinkRequest. 38 | * @alias module:model/ViewLinkRequest 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a ViewLinkRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/ViewLinkRequest} obj Optional instance to populate. 52 | * @return {module:model/ViewLinkRequest} The populated ViewLinkRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('email')) { 59 | obj['email'] = ApiClient.convertToType(data['email'], 'String'); 60 | } 61 | if (data.hasOwnProperty('returnUrl')) { 62 | obj['returnUrl'] = ApiClient.convertToType(data['returnUrl'], 'String'); 63 | } 64 | } 65 | return obj; 66 | } 67 | 68 | /** 69 | * 70 | * @member {String} email 71 | */ 72 | exports.prototype['email'] = undefined; 73 | /** 74 | * 75 | * @member {String} returnUrl 76 | */ 77 | exports.prototype['returnUrl'] = undefined; 78 | 79 | 80 | 81 | return exports; 82 | })); 83 | 84 | 85 | -------------------------------------------------------------------------------- /src/model/ViewUrl.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.ViewUrl = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ViewUrl model module. 32 | * @module model/ViewUrl 33 | */ 34 | 35 | /** 36 | * Constructs a new ViewUrl. 37 | * @alias module:model/ViewUrl 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ViewUrl from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ViewUrl} obj Optional instance to populate. 51 | * @return {module:model/ViewUrl} The populated ViewUrl instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('url')) { 58 | obj['url'] = ApiClient.convertToType(data['url'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * The view URL to be navigated to. 66 | * @member {String} url 67 | */ 68 | exports.prototype['url'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/WorkspaceItemList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient', 'model/WorkspaceItem'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./WorkspaceItem')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.WorkspaceItemList = factory(root.Docusign.ApiClient, root.Docusign.WorkspaceItem); 25 | } 26 | }(this, function(ApiClient, WorkspaceItem) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The WorkspaceItemList model module. 32 | * @module model/WorkspaceItemList 33 | */ 34 | 35 | /** 36 | * Constructs a new WorkspaceItemList. 37 | * Provides properties that describe the items contained in a workspace. 38 | * @alias module:model/WorkspaceItemList 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a WorkspaceItemList from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/WorkspaceItemList} obj Optional instance to populate. 52 | * @return {module:model/WorkspaceItemList} The populated WorkspaceItemList instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('items')) { 59 | obj['items'] = ApiClient.convertToType(data['items'], [WorkspaceItem]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * 67 | * @member {Array.} items 68 | */ 69 | exports.prototype['items'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/model/WorkspaceSettings.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Docusign eSignature REST API 3 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 4 | * 5 | * OpenAPI spec version: v2.1 6 | * Contact: devcenter@docusign.com 7 | * 8 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 9 | * 10 | */ 11 | 12 | (function(root, factory) { 13 | if (typeof define === 'function' && define.amd) { 14 | // AMD. Register as an anonymous module. 15 | define(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.Docusign) { 22 | root.Docusign = {}; 23 | } 24 | root.Docusign.WorkspaceSettings = factory(root.Docusign.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The WorkspaceSettings model module. 32 | * @module model/WorkspaceSettings 33 | */ 34 | 35 | /** 36 | * Constructs a new WorkspaceSettings. 37 | * This object provides information about the settings for the workspace. 38 | * @alias module:model/WorkspaceSettings 39 | * @class 40 | */ 41 | var exports = function() { 42 | var _this = this; 43 | 44 | 45 | }; 46 | 47 | /** 48 | * Constructs a WorkspaceSettings from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/WorkspaceSettings} obj Optional instance to populate. 52 | * @return {module:model/WorkspaceSettings} The populated WorkspaceSettings instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('commentsAllowed')) { 59 | obj['commentsAllowed'] = ApiClient.convertToType(data['commentsAllowed'], 'String'); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * 67 | * @member {String} commentsAllowed 68 | */ 69 | exports.prototype['commentsAllowed'] = undefined; 70 | 71 | 72 | 73 | return exports; 74 | })); 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/oauth/Account.js: -------------------------------------------------------------------------------- 1 | (function(root, factory) { 2 | if (typeof define === 'function' && define.amd) { 3 | // AMD. Register as an anonymous module. 4 | define(['ApiClient'], factory); 5 | } else if (typeof module === 'object' && module.exports) { 6 | // CommonJS-like environments that support module.exports, like Node. 7 | module.exports = factory(require('../ApiClient'), require('./Organization')); 8 | } else { 9 | // Browser globals (root is window) 10 | if (!root.Docusign) { 11 | root.Docusign = {}; 12 | } 13 | //root.Docusign.UserInfo = factory(root.Docusign.ApiClient, root.Docusign.ErrorDetails); 14 | } 15 | }(this, function() { 16 | 'use strict'; 17 | 18 | 19 | /** 20 | * The Account model module. 21 | * @module oauth/Account 22 | * @version 3.0.0 23 | */ 24 | 25 | /** 26 | * Constructs a new Account. 27 | * @alias module:model/UserInfo 28 | * @class 29 | */ 30 | var exports = function() { 31 | var _this = this; 32 | 33 | 34 | }; 35 | 36 | exports.constructFromObject = function (data, obj){ 37 | var ApiClient = require('../ApiClient'); 38 | var Organization = require('./Organization'); 39 | 40 | if (data) { 41 | obj = obj || new exports(); 42 | if (data.hasOwnProperty('account_id')) { 43 | obj['accountId'] = ApiClient.convertToType(data['account_id'], 'String'); 44 | } 45 | if (data.hasOwnProperty('is_default')) { 46 | obj['isDefault'] = ApiClient.convertToType(data['is_default'], 'String'); 47 | } 48 | if (data.hasOwnProperty('account_name')) { 49 | obj['accountName'] = ApiClient.convertToType(data['account_name'], 'String'); 50 | } 51 | if (data.hasOwnProperty('base_uri')) { 52 | obj['baseUri'] = ApiClient.convertToType(data['base_uri'], 'String'); 53 | } 54 | if(data.hasOwnProperty('organization')) { 55 | obj['organization'] = ApiClient.convertToType(data['organization'], Organization) 56 | } 57 | } 58 | return obj; 59 | } 60 | 61 | /** 62 | * 63 | * @member {String} accountId 64 | */ 65 | exports.prototype['accountId'] = undefined; 66 | /** 67 | * 68 | * @member {String} isDefault 69 | */ 70 | exports.prototype['isDefault'] = undefined; 71 | /** 72 | * @member {String} accountName 73 | */ 74 | exports.prototype['accountName'] = undefined; 75 | /** 76 | * @member {String} baseUri 77 | */ 78 | exports.prototype['baseUri'] = undefined; 79 | /** 80 | * @member {Organization} organization 81 | */ 82 | exports.prototype['organization'] = undefined; 83 | 84 | 85 | return exports; 86 | })); 87 | -------------------------------------------------------------------------------- /src/oauth/BasePath.js: -------------------------------------------------------------------------------- 1 | var PRODUCTION = "account.docusign.com"; 2 | var DEMO = "account-d.docusign.com"; 3 | var STAGE = "account-s.docusign.com"; 4 | 5 | module.exports = { 6 | PRODUCTION: PRODUCTION, 7 | DEMO: DEMO, 8 | STAGE: STAGE 9 | }; 10 | 11 | Object.freeze(module.exports) -------------------------------------------------------------------------------- /src/oauth/Link.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | /** 4 | * DocuSign REST API 5 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 6 | * 7 | * OpenAPI spec version: v2 8 | * Contact: devcenter@docusign.com 9 | * 10 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 11 | * 12 | */ 13 | 14 | (function(root, factory) { 15 | if (typeof define === 'function' && define.amd) { 16 | // AMD. Register as an anonymous module. 17 | define(['ApiClient', 'oauth/Account'], factory); 18 | } else if (typeof module === 'object' && module.exports) { 19 | // CommonJS-like environments that support module.exports, like Node. 20 | module.exports = factory(require('../ApiClient')); 21 | } else { 22 | // Browser globals (root is window) 23 | if (!root.Docusign) { 24 | root.Docusign = {}; 25 | } 26 | } 27 | }(this, function(ApiClient, Account) { 28 | 'use strict'; 29 | /** 30 | * The Link model module. 31 | * @module oauth/Link 32 | * @version 3.0.0 33 | */ 34 | 35 | /** 36 | * Constructs a new Link. 37 | * @alias module:oauth/Link 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a Link from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:oauth/Link} obj Optional instance to populate. 51 | * @return {module:oauth/Link} The populated Link instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | var ApiClient = require('../ApiClient'); 55 | 56 | if (data) { 57 | obj = obj || new exports(); 58 | 59 | if (data.hasOwnProperty('rel')) { 60 | obj['rel'] = ApiClient.convertToType(data['rel'], 'String'); 61 | } 62 | if (data.hasOwnProperty('href')) { 63 | obj['href'] = ApiClient.convertToType(data['href'], 'String'); 64 | } 65 | } 66 | 67 | return obj; 68 | } 69 | 70 | /** 71 | * 72 | * @member {String} rel 73 | */ 74 | exports.prototype['rel'] = undefined; 75 | /** 76 | * 77 | * @member {String} href 78 | */ 79 | exports.prototype['href'] = undefined; 80 | 81 | 82 | return exports; 83 | })); -------------------------------------------------------------------------------- /src/oauth/Organization.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | /** 4 | * DocuSign REST API 5 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 6 | * 7 | * OpenAPI spec version: v2 8 | * Contact: devcenter@docusign.com 9 | * 10 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 11 | * 12 | */ 13 | 14 | (function(root, factory) { 15 | if (typeof define === 'function' && define.amd) { 16 | // AMD. Register as an anonymous module. 17 | define(['ApiClient', 'oauth/Account'], factory); 18 | } else if (typeof module === 'object' && module.exports) { 19 | // CommonJS-like environments that support module.exports, like Node. 20 | module.exports = factory(require('../ApiClient')); 21 | } else { 22 | // Browser globals (root is window) 23 | if (!root.Docusign) { 24 | root.Docusign = {}; 25 | } 26 | } 27 | }(this, function(ApiClient, Account) { 28 | 'use strict'; 29 | /** 30 | * The Organization model module. 31 | * @module oauth/Organization 32 | * @version 3.0.0 33 | */ 34 | 35 | /** 36 | * Constructs a new Organization. 37 | * @alias module:oauth/Organization 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a Organization from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:oauth/Organization} obj Optional instance to populate. 51 | * @return {module:oauth/Organization} The populated Organization instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | var ApiClient = require('../ApiClient'); 55 | var Link = require('./Link'); 56 | 57 | if (data) { 58 | obj = obj || new exports(); 59 | 60 | if (data.hasOwnProperty('organization_id')) { 61 | obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'String'); 62 | } 63 | if (data.hasOwnProperty('links')) { 64 | obj['links'] = ApiClient.convertToType(data['links'], [Link]); 65 | } 66 | } 67 | 68 | return obj; 69 | } 70 | 71 | /** 72 | * 73 | * @member {String} sub 74 | */ 75 | exports.prototype['organization_id'] = undefined; 76 | /** 77 | * 78 | * @member {String} email 79 | */ 80 | exports.prototype['links'] = undefined; 81 | 82 | 83 | return exports; 84 | })); -------------------------------------------------------------------------------- /src/oauth/ResponseType.js: -------------------------------------------------------------------------------- 1 | var CODE = 'code'; 2 | var TOKEN = 'token'; 3 | 4 | module.exports = { 5 | CODE: CODE, 6 | TOKEN: TOKEN, 7 | } 8 | 9 | Object.freeze(module.exports); -------------------------------------------------------------------------------- /src/oauth/Scope.js: -------------------------------------------------------------------------------- 1 | var SIGNATURE = 'signature'; 2 | var EXTENDED = 'extended'; 3 | var IMPERSONATION = 'impersonation'; 4 | 5 | module.exports = { 6 | SIGNATURE: SIGNATURE, 7 | EXTENDED: EXTENDED, 8 | IMPERSONATION: IMPERSONATION 9 | }; 10 | 11 | Object.freeze(module.exports); -------------------------------------------------------------------------------- /test-config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | integratorKey: process.env.INTEGRATOR_KEY_JWT, 3 | apiEnv: 'demo', 4 | debug: false, 5 | email: 'node_sdk@mailinator.com', 6 | userId: process.env.USER_ID, 7 | templateId: process.env.TEMPLATE_ID, 8 | templateRole: 'bob', 9 | integratorKeyAuthCode: process.env.INTEGRATOR_KEY_AUTH_CODE, 10 | integratorKeyImplicit: process.env.INTEGRATOR_KEY_IMPLICIT, 11 | clientSecret: process.env.CLIENT_SECRET, 12 | brandId: process.env.BRAND_ID, 13 | privateKey: process.env.PRIVATE_KEY 14 | }; 15 | -------------------------------------------------------------------------------- /test/AccountsApiIntegrationTests.js: -------------------------------------------------------------------------------- 1 | var docusign = require('../src/index'); 2 | var assert = require('assert'); 3 | var JWTAuth = require('./helpers').JWTAuth; 4 | var apiClient = require('./constants').apiClient; 5 | 6 | var ACCOUNT_ID = ''; 7 | describe('AccountsApi tests:', () => { 8 | before((done) => { 9 | try { 10 | JWTAuth(done).then((response) => { 11 | ACCOUNT_ID = response.ACCOUNT_ID; 12 | done(); 13 | }).catch((err) => { 14 | console.error(err); 15 | return done(err); 16 | }); 17 | } catch (err) { 18 | console.error(err); 19 | return done(err); 20 | } 21 | }); 22 | 23 | it('getAccountInformation returns correct account and account settings when includeAccountSettings set to true', (done) => { 24 | var accountsApi = new docusign.AccountsApi(apiClient); 25 | accountsApi.getAccountInformation(ACCOUNT_ID, { includeAccountSettings: true }) 26 | .then((accountInfo) => { 27 | assert.notStrictEqual(accountInfo, undefined); 28 | assert.strictEqual(accountInfo.accountIdGuid, ACCOUNT_ID); 29 | assert.notStrictEqual(accountInfo.accountSettings, undefined); 30 | assert.notStrictEqual(accountInfo.accountSettings.accessCodeFormat, undefined); 31 | assert.notStrictEqual(accountInfo.accountSettings.accountNotification, undefined); 32 | assert.notStrictEqual(accountInfo.accountSettings.accountUISettings, undefined); 33 | assert.notStrictEqual(accountInfo.accountSettings.tabAccountSettings, undefined); 34 | done(); 35 | }) 36 | .catch((error) => { 37 | if (error) { 38 | console.error(error); 39 | return done(error); 40 | } 41 | }); 42 | }); 43 | }); 44 | -------------------------------------------------------------------------------- /test/AccountsApiIntegrationTestsWithCallback.js: -------------------------------------------------------------------------------- 1 | var docusign = require('../src/index'); 2 | var assert = require('assert'); 3 | var JWTAuth = require('./helpers').JWTAuth; 4 | var apiClient = require('./constants').apiClient; 5 | 6 | var ACCOUNT_ID = ''; describe('AccountsApi Tests With Callbacks:', () => { 7 | before((done) => { 8 | try { 9 | JWTAuth(done).then((response) => { 10 | ACCOUNT_ID = response.ACCOUNT_ID; 11 | done(); 12 | }).catch((err) => { 13 | console.error(err); 14 | return done(err); 15 | }); 16 | } catch (err) { 17 | console.error(err); 18 | return done(err); 19 | } 20 | }); 21 | 22 | it('getAccountInformation returns correct account and account settings when includeAccountSettings set to true', (done) => { 23 | var accountsApi = new docusign.AccountsApi(apiClient); 24 | 25 | var getAccountInformationCallback = function (error, accountInfo, _response) { 26 | if (error) { 27 | console.error(error); 28 | return done(error); 29 | } 30 | 31 | assert.notStrictEqual(accountInfo, undefined); 32 | assert.strictEqual(accountInfo.accountIdGuid, ACCOUNT_ID); 33 | assert.notStrictEqual(accountInfo.accountSettings, undefined); 34 | assert.notStrictEqual(accountInfo.accountSettings.accessCodeFormat, undefined); 35 | assert.notStrictEqual(accountInfo.accountSettings.accountNotification, undefined); 36 | assert.notStrictEqual(accountInfo.accountSettings.accountUISettings, undefined); 37 | assert.notStrictEqual(accountInfo.accountSettings.tabAccountSettings, undefined); 38 | done(); 39 | }; 40 | 41 | accountsApi.getAccountInformation(ACCOUNT_ID, { includeAccountSettings: true }, getAccountInformationCallback); 42 | }); 43 | }); 44 | -------------------------------------------------------------------------------- /test/DiagnosticsApiIntegrationTests.js: -------------------------------------------------------------------------------- 1 | var docusign = require('../src/index'); 2 | var assert = require('assert'); 3 | var JWTAuth = require('./helpers').JWTAuth; 4 | var apiClient = require('./constants').apiClient; 5 | 6 | describe('DiagnosticsApi tests:', () => { 7 | before((done) => { 8 | try { 9 | JWTAuth(done).then(() => { 10 | done(); 11 | }).catch((err) => { 12 | console.error(err); 13 | return done(err); 14 | }); 15 | } catch (err) { 16 | console.error(err); 17 | return done(err); 18 | } 19 | }); 20 | 21 | var diagnosticsApi = new docusign.DiagnosticsApi(apiClient); 22 | it('getRequestLogSettings returns the correct request logging setting', (done) => { 23 | diagnosticsApi.getRequestLogSettings() 24 | .then((data) => { 25 | assert.deepEqual(data, { 26 | apiRequestLogging: 'false', 27 | apiRequestLogMaxEntries: '50', 28 | apiRequestLogRemainingEntries: '0' 29 | }); 30 | done(); 31 | }) 32 | .catch((error) => { 33 | if (error) { 34 | console.error(error); 35 | return done(error); 36 | } 37 | }); 38 | }); 39 | }); 40 | -------------------------------------------------------------------------------- /test/DiagnosticsApiIntegrationTestsWithCallback.js: -------------------------------------------------------------------------------- 1 | var docusign = require('../src/index'); 2 | var assert = require('assert'); 3 | var JWTAuth = require('./helpers').JWTAuth; 4 | var apiClient = require('./constants').apiClient; 5 | 6 | describe('DiagnosticsApi Tests With Callbacks:', () => { 7 | before((done) => { 8 | try { 9 | JWTAuth(done).then(() => { 10 | done(); 11 | }).catch((err) => { 12 | console.error(err); 13 | return done(err); 14 | }); 15 | } catch (err) { 16 | console.error(err); 17 | return done(err); 18 | } 19 | }); 20 | 21 | it('getRequestLogSettings returns the correct request logging setting', (done) => { 22 | var diagnosticsApi = new docusign.DiagnosticsApi(apiClient); 23 | 24 | var callback = function (error, data) { 25 | if (error) { 26 | console.error(error); 27 | return done(error); 28 | } 29 | assert.deepEqual(data, { 30 | apiRequestLogging: 'false', 31 | apiRequestLogMaxEntries: '50', 32 | apiRequestLogRemainingEntries: '0' 33 | }); 34 | done(); 35 | }; 36 | 37 | diagnosticsApi.getRequestLogSettings(callback); 38 | }); 39 | }); 40 | -------------------------------------------------------------------------------- /test/TemplatesApiIntegrationTests.js: -------------------------------------------------------------------------------- 1 | var docusign = require('../src/index'); 2 | var assert = require('assert'); 3 | var JWTAuth = require('./helpers').JWTAuth; 4 | var apiClient = require('./constants').apiClient; 5 | 6 | var ACCOUNT_ID = ''; describe('TemplatesApi tests:', () => { 7 | before((done) => { 8 | try { 9 | JWTAuth(done).then((response) => { 10 | ACCOUNT_ID = response.ACCOUNT_ID; 11 | done(); 12 | }).catch((err) => { 13 | console.error(err); 14 | return done(err); 15 | }); 16 | } catch (err) { 17 | console.error(err); 18 | return done(err); 19 | } 20 | }); 21 | 22 | it('listTemplates returns the list of templates for the specified account', (done) => { 23 | var templatesApi = new docusign.TemplatesApi(apiClient); 24 | templatesApi.listTemplates(ACCOUNT_ID) 25 | .then((templateResults) => { 26 | assert.notStrictEqual(templateResults, undefined); 27 | assert.notStrictEqual(templateResults.envelopeTemplates, undefined); 28 | assert.notStrictEqual(templateResults.envelopeTemplates[0], undefined); 29 | done(); 30 | }) 31 | .catch((error) => { 32 | if (error) { 33 | console.error(error); 34 | return done(error); 35 | } 36 | }); 37 | }); 38 | }); 39 | -------------------------------------------------------------------------------- /test/TemplatesApiIntegrationTestsWithCallback.js: -------------------------------------------------------------------------------- 1 | var docusign = require('../src/index'); 2 | var assert = require('assert'); 3 | var JWTAuth = require('./helpers').JWTAuth; 4 | var apiClient = require('./constants').apiClient; 5 | 6 | var ACCOUNT_ID = ''; describe('TemplatesApi Tests With Callbacks:', () => { 7 | before((done) => { 8 | try { 9 | JWTAuth(done).then((response) => { 10 | ACCOUNT_ID = response.ACCOUNT_ID; 11 | done(); 12 | }).catch((err) => { 13 | console.error(err); 14 | return done(err); 15 | }); 16 | } catch (err) { 17 | console.error(err); 18 | return done(err); 19 | } 20 | }); 21 | 22 | it('listTemplates returns the list of templates for the specified account', (done) => { 23 | var templatesApi = new docusign.TemplatesApi(apiClient); 24 | 25 | var listTemplatesCallback = function (error, templateResults, _response) { 26 | if (error) { 27 | console.error(error); 28 | return done(error); 29 | } 30 | 31 | assert.notStrictEqual(templateResults, undefined); 32 | assert.notStrictEqual(templateResults.envelopeTemplates, undefined); 33 | assert.notStrictEqual(templateResults.envelopeTemplates[0], undefined); 34 | done(); 35 | }; 36 | 37 | templatesApi.listTemplates(ACCOUNT_ID, listTemplatesCallback); 38 | }); 39 | }); 40 | -------------------------------------------------------------------------------- /test/constants.js: -------------------------------------------------------------------------------- 1 | var docusign = require('../src/index'); 2 | 3 | var oAuth = docusign.ApiClient.OAuth; 4 | var restApi = docusign.ApiClient.RestApi; 5 | var config; 6 | 7 | try { 8 | config = require('../test-config'); 9 | if (!config) throw new Error('missed required configs'); 10 | } catch (err) { 11 | console.error(err); 12 | } 13 | 14 | var EMAIL = config.email; 15 | var INTEGRATOR_KEY = config.integratorKey; 16 | var INTEGRATOR_KEY_AUTH_CODE = config.integratorKeyAuthCode; 17 | var INTEGRATOR_KEY_IMPLICIT = config.integratorKeyImplicit; 18 | var CLIENT_SECRET = config.clientSecret; 19 | var TEMPLATE_ID = config.templateId; 20 | 21 | // for production environment update to "www.docusign.net/restapi" 22 | var BASE_PATH = restApi.BasePath.DEMO; 23 | var OAUTH_BASE_PATH = oAuth.BasePath.DEMO; 24 | 25 | var SIGN_TEST1_FILE = 'docs/SignTest1.pdf'; 26 | var SIGN_TEST2_FILE = 'docs/SignTest1.docx'; 27 | var LARGE_TEST_DOCUMENT1 = 'docs/LargeTestDocument1.pdf'; 28 | var BRAND_LOGO_PATH = 'img/docusign-lgo.png'; 29 | var BRAND_XML_PATH = 'docs/brand.xml'; 30 | var USER_ID = config.userId; 31 | var REDIRECT_URI = 'https://www.docusign.com/api'; 32 | var PRIVATE_KEY_FILENAME = 'keys/docusign_private_key.txt'; 33 | var EXPIRES_IN = 3600; 34 | 35 | function getSignerTabsDefinition () { 36 | var signHere = docusign.SignHere.constructFromObject({ 37 | documentId: '1', 38 | pageNumber: '1', 39 | recipientId: '1', 40 | xPosition: '100', 41 | yPosition: '100' 42 | }); 43 | 44 | var signHereTabs = []; 45 | signHereTabs.push(signHere); 46 | var tabs = new docusign.Tabs(); 47 | tabs.signHereTabs = signHereTabs; 48 | 49 | return tabs; 50 | } 51 | 52 | var apiClient = new docusign.ApiClient({ 53 | basePath: BASE_PATH, 54 | oAuthBasePath: OAUTH_BASE_PATH 55 | }); 56 | var scopes = [ 57 | oAuth.Scope.IMPERSONATION, 58 | oAuth.Scope.SIGNATURE 59 | ]; 60 | 61 | module.exports = { 62 | EMAIL, 63 | INTEGRATOR_KEY, 64 | INTEGRATOR_KEY_AUTH_CODE, 65 | INTEGRATOR_KEY_IMPLICIT, 66 | CLIENT_SECRET, 67 | TEMPLATE_ID, 68 | BASE_PATH, 69 | OAUTH_BASE_PATH, 70 | SIGN_TEST1_FILE, 71 | SIGN_TEST2_FILE, 72 | LARGE_TEST_DOCUMENT1, 73 | BRAND_LOGO_PATH, 74 | BRAND_XML_PATH, 75 | USER_ID, 76 | REDIRECT_URI, 77 | PRIVATE_KEY_FILENAME, 78 | EXPIRES_IN, 79 | getSignerTabsDefinition, 80 | apiClient, 81 | scopes 82 | }; 83 | -------------------------------------------------------------------------------- /test/docs/LargeTestDocument1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-esign-node-client/1c373fb42182bbca82b66961be865c3f142886e6/test/docs/LargeTestDocument1.pdf -------------------------------------------------------------------------------- /test/docs/SignTest1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-esign-node-client/1c373fb42182bbca82b66961be865c3f142886e6/test/docs/SignTest1.docx -------------------------------------------------------------------------------- /test/docs/SignTest1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-esign-node-client/1c373fb42182bbca82b66961be865c3f142886e6/test/docs/SignTest1.pdf -------------------------------------------------------------------------------- /test/helpers.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | var fs = require('fs'); 3 | 4 | var constants = require('./constants'); 5 | const pdfParser = require('pdf-parse-fork'); 6 | 7 | var INTEGRATOR_KEY = constants.INTEGRATOR_KEY; 8 | var OAUTH_BASE_PATH = constants.OAUTH_BASE_PATH; 9 | var USER_ID = constants.USER_ID; 10 | var REDIRECT_URI = constants.REDIRECT_URI; 11 | var PRIVATE_KEY_FILENAME = constants.PRIVATE_KEY_FILENAME; 12 | var EXPIRES_IN = constants.EXPIRES_IN; 13 | var apiClient = constants.apiClient; 14 | var scopes = constants.scopes; 15 | 16 | var JWTAuth = () => { 17 | return new Promise(function (resolve, reject) { 18 | try { 19 | // IMPORTANT NOTE: 20 | // the first time you ask for a JWT access token, you should grant access by making the following call 21 | // get DocuSign OAuth authorization url: 22 | var authorizationUrl = apiClient.getJWTUri(INTEGRATOR_KEY, REDIRECT_URI, OAUTH_BASE_PATH); 23 | // open DocuSign OAuth authorization url in the browser, login and grant access 24 | console.log('OAuth authorization url:', authorizationUrl); 25 | // END OF NOTE 26 | var privateKeyFile = fs.readFileSync(path.resolve(__dirname, PRIVATE_KEY_FILENAME)); 27 | apiClient.requestJWTUserToken(INTEGRATOR_KEY, USER_ID, scopes, privateKeyFile, EXPIRES_IN).then(function (res) { 28 | var baseUri; 29 | var accountDomain; 30 | apiClient.setJWTToken(res.body.access_token); 31 | apiClient.getUserInfo(res.body.access_token).then(function (userInfo) { 32 | var ACCOUNT_ID = userInfo.accounts[0].accountId; 33 | baseUri = userInfo.accounts[0].baseUri; 34 | accountDomain = baseUri.split('/v2'); 35 | apiClient.setBasePath(`${accountDomain[0]}/restapi`); 36 | return resolve({ apiClient, ACCOUNT_ID }); 37 | }).catch(function (err) { 38 | return reject(err); 39 | }); 40 | }).catch(function (err) { 41 | return reject(err); 42 | }); 43 | } catch (err) { 44 | return reject(err); 45 | } 46 | }); 47 | }; 48 | 49 | const ValidatePdf = (tempFile) => { 50 | 51 | let dataBuffer = fs.readFileSync(tempFile); 52 | 53 | return pdfParser(dataBuffer); 54 | }; 55 | 56 | module.exports = { JWTAuth, ValidatePdf }; 57 | -------------------------------------------------------------------------------- /test/img/docusign-lgo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-esign-node-client/1c373fb42182bbca82b66961be865c3f142886e6/test/img/docusign-lgo.png -------------------------------------------------------------------------------- /test/keys/docusign_private_key.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-esign-node-client/1c373fb42182bbca82b66961be865c3f142886e6/test/keys/docusign_private_key.txt -------------------------------------------------------------------------------- /test/keys/docusign_public_key.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-esign-node-client/1c373fb42182bbca82b66961be865c3f142886e6/test/keys/docusign_public_key.txt --------------------------------------------------------------------------------