public override void Execute() { AccountConfigService accountConfigService = ossClient.AccountConfigService; // create decline reasons CreatedDeclineReasons = accountConfigService.CreateDeclineReasons(DeclineReasonsCreateList, "en"); // get decline reasons RetrievedDeclineReasons = accountConfigService.GetDeclineReasons("en"); // update decline reasons UpdatedDeclineReasons = accountConfigService.UpdateDeclineReasons(DeclineReasonsUpateList, "en"); // delete decline reasons accountConfigService.DeleteDeclineReasons("en"); DeclineReasonsAfterDelete = accountConfigService.GetDeclineReasons("en"); }
override public void Execute() { AccountConfigService accountConfigService = ossClient.AccountConfigService; idvWorkflowConfigsBeforeCreating = accountConfigService.GetIdvWorkflowConfigs(); if (idvWorkflowConfigsBeforeCreating.Count != 0) { accountConfigService.DeleteIdvWorkflowConfigs(); idvWorkflowConfigsBeforeCreating = accountConfigService.GetIdvWorkflowConfigs(); } idvWorkflowConfigsAfterCreating = accountConfigService .CreateIdvWorkflowConfigs(idvWorkflowConfigsToBeCreated); idvWorkflowConfigsAfterUpdating = accountConfigService .UpdateIdvWorkflowConfigs(idvWorkflowConfigsToBeUpdated); DocumentPackage superDuperPackage = PackageBuilder.NewPackageNamed(PackageName) .DescribedAs("This is a Signer IDV authentication example") .WithSigner(SignerBuilder.NewSignerWithEmail(email1) .WithFirstName("Jamie Anne") .WithLastName("Kurtz") .WithIDVAuthentication(PHONE_NUMBER, IdvWorkflowBuilder.NewIdvWorkflow(IDV_WORKFLOW_ID1) .WithType(TYPE1) .WithTenant(TENANT) .Build())) .WithDocument(DocumentBuilder.NewDocumentNamed(DOCUMENT_NAME) .FromStream(fileStream1, DocumentType.PDF) .WithSignature(SignatureBuilder.SignatureFor(email1) .OnPage(0) .AtPosition(100, 100))) .Build(); packageId = ossClient.CreatePackage(superDuperPackage); ossClient.SendPackage(packageId); retrievedPackage = ossClient.GetPackage(packageId); accountConfigService.DeleteIdvWorkflowConfigs(); idvWorkflowConfigsAfterDeleting = accountConfigService.GetIdvWorkflowConfigs(); }
override public void Execute() { AccountConfigService accountConfigService = ossClient.AccountConfigService; handoverBeforeCreating = accountConfigService.GetHandoverUrl(ITALIAN); handoverAfterCreating = accountConfigService .CreateHandoverUrl(HandoverBuilder.NewHandover(ITALIAN) .WithHref(HREF) .WithText(TEXT) .WithTitle(TITLE) .Build()); handoverAfterUpdating = accountConfigService.UpdateHandoverUrl(HandoverBuilder.NewHandover(ITALIAN) .WithTitle(UPDATED_TITLE) .Build()); accountConfigService.DeleteHandoverUrl(ITALIAN); handoverAfterDeleting = accountConfigService.GetHandoverUrl(ITALIAN); }
private void init(RestClient restClient, String apiKey) { packageService = new PackageService(restClient, this.baseUrl, jsonSerializerSettings); reportService = new ReportService(restClient, this.baseUrl, jsonSerializerSettings); systemService = new SystemService(restClient, this.baseUrl, jsonSerializerSettings); signingService = new SigningService(restClient, this.baseUrl, jsonSerializerSettings); signingStyleService = new SigningStyleService(restClient, this.baseUrl, jsonSerializerSettings); signerVerificationService = new SignerVerificationService(restClient, this.baseUrl, jsonSerializerSettings); signatureImageService = new SignatureImageService(restClient, this.baseUrl, jsonSerializerSettings); sessionService = new SessionService(apiKey, this.baseUrl); fieldSummaryService = new FieldSummaryService(new FieldSummaryApiClient(apiKey, this.baseUrl)); auditService = new AuditService(apiKey, this.baseUrl); eventNotificationService = new EventNotificationService(new EventNotificationApiClient(restClient, this.baseUrl, jsonSerializerSettings)); customFieldService = new CustomFieldService(new CustomFieldApiClient(restClient, this.baseUrl, jsonSerializerSettings)); groupService = new GroupService(new GroupApiClient(restClient, this.baseUrl, jsonSerializerSettings)); accountService = new AccountService(new AccountApiClient(restClient, this.baseUrl, jsonSerializerSettings)); accountConfigService = new AccountConfigService(new AccountConfigClient(restClient, this.baseUrl, jsonSerializerSettings)); approvalService = new ApprovalService(new ApprovalApiClient(restClient, this.baseUrl, jsonSerializerSettings)); reminderService = new ReminderService(new ReminderApiClient(restClient, this.baseUrl, jsonSerializerSettings)); templateService = new TemplateService(new TemplateApiClient(restClient, this.baseUrl, jsonSerializerSettings), packageService); authenticationTokenService = new AuthenticationTokenService(restClient, this.baseUrl); attachmentRequirementService = new AttachmentRequirementService(restClient, this.baseUrl, jsonSerializerSettings); layoutService = new LayoutService(new LayoutApiClient(restClient, this.baseUrl, jsonSerializerSettings)); qrCodeService = new QRCodeService(new QRCodeApiClient(restClient, this.baseUrl, jsonSerializerSettings)); authenticationService = new AuthenticationService(this.webpageUrl); dataRetentionSettingsService = new DataRetentionSettingsService(restClient, this.baseUrl); virtualRoomService = new VirtualRoomService(restClient, this.baseUrl); }