Skip to content

Commit 8a79aba

Browse files
committed
DEVDOCS-10219 adding codeDepot markers
1 parent 28f1f69 commit 8a79aba

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/main/java/com/docusign/controller/eSignature/examples/EG023ControllerIdvAuthentication.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,18 @@ public EG023ControllerIdvAuthentication(DSConfiguration config, Session session,
4141

4242
@Override
4343
protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse response) throws ApiException, IOException {
44-
// Step 2 start
4544
ApiClient apiClient = createApiClient(session.getBasePath(), user.getAccessToken());
46-
// Step 2 end
4745
EnvelopesApi envelopesApi = new EnvelopesApi(apiClient);
4846
String workflowId = IdvAuthenticationService.retrieveWorkflowId(apiClient, session.getAccountId());
4947
logger.info("workflowId = " + workflowId);
5048
if (workflowId.equals(""))
5149
{
5250
throw new ApiException(0, getTextForCodeExampleByApiType().CustomErrorTexts.get(0).ErrorMessage);
5351
}
54-
// Step 4-1 start
5552
EnvelopeDefinition envelope = IdvAuthenticationService.createEnvelope(args.getSignerName(), args.getSignerEmail(), workflowId);
56-
// Step 4-1 end
57-
// Step 5 start
53+
//ds-snippet-start:eSign23Step5
5854
EnvelopeSummary results = IdvAuthenticationService.idvAuthentication(envelopesApi, session.getAccountId(), envelope);
59-
// Step 5 end
55+
//ds-snippet-end:eSign23Step5
6056

6157
session.setEnvelopeId(results.getEnvelopeId());
6258
DoneExample.createDefault(getTextForCodeExampleByApiType().ExampleName)

src/main/java/com/docusign/controller/eSignature/services/IdvAuthenticationService.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static EnvelopeSummary idvAuthentication(
2424
}
2525

2626
public static String retrieveWorkflowId(ApiClient apiClient, String accountId) throws ApiException {
27-
// Step 3 start
27+
//ds-snippet-start:eSign23Step3
2828
AccountsApi workflowDetails = new AccountsApi(apiClient);
2929
AccountIdentityVerificationResponse workflowRes = workflowDetails.getAccountIdentityVerification(accountId);
3030
List<AccountIdentityVerificationWorkflow> identityVerification = workflowRes.getIdentityVerification();
@@ -37,9 +37,10 @@ public static String retrieveWorkflowId(ApiClient apiClient, String accountId) t
3737
}
3838
}
3939
return workflowId;
40-
// Step 3 end
40+
//ds-snippet-end:eSign23Step3
4141
}
4242

43+
//ds-snippet-start:eSign23Step4
4344
public static EnvelopeDefinition createEnvelope(
4445
String signerName,
4546
String signerEmail,
@@ -99,4 +100,5 @@ public static EnvelopeDefinition createEnvelope(
99100
envelopeDefinition.setDocuments(Collections.singletonList(doc1));
100101
return envelopeDefinition;
101102
}
103+
//ds-snippet-end:eSign23Step4
102104
}

0 commit comments

Comments
 (0)