Skip to content

Commit b2508e8

Browse files
committed
DEVDOCS-10518 - adding codeDepot markers
1 parent 5e56da1 commit b2508e8

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@ protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse
6363
throws ApiException, IOException {
6464
String accountId = session.getAccountId();
6565

66-
// Step 2 start
6766
ApiClient apiClient = createApiClient(session.getBasePath(), user.getAccessToken());
68-
// Step 2 end
6967
EnvelopesApi envelopesApi = new EnvelopesApi(apiClient);
7068

71-
// Step 3 start
69+
//ds-snippet-start:eSign20Step3
7270
AccountsApi workflowDetails = new AccountsApi(apiClient);
7371
AccountIdentityVerificationResponse workflowRes = workflowDetails.getAccountIdentityVerification(session.getAccountId());
7472
List<AccountIdentityVerificationWorkflow> identityVerification = workflowRes.getIdentityVerification();
@@ -80,16 +78,19 @@ protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse
8078
workflowId = identityVerification.get(i).getWorkflowId();
8179
}
8280
}
83-
// Step 3 end
81+
//ds-snippet-end:eSign20Step3
8482
logger.info("workflowId = " + workflowId);
8583
if (workflowId.equals(""))
8684
{
8785
throw new ApiException(0, getTextForCodeExampleByApiType().CustomErrorTexts.get(0).ErrorMessage);
88-
}EnvelopeDefinition envelope = PhoneAuthenticationService.createEnvelope(args.getSignerName(), args.getSignerEmail(), args.getCountryCode(),
86+
}
87+
//ds-snippet-start:eSign20Step5
88+
EnvelopeDefinition envelope = PhoneAuthenticationService.createEnvelope(args.getSignerName(), args.getSignerEmail(), args.getCountryCode(),
8989
args.getPhoneNumber(), workflowId);
90-
// Step 4.1 start
90+
//ds-snippet-end:eSign20Step5
91+
//ds-snippet-start:eSign20Step4
9192
EnvelopeSummary results = PhoneAuthenticationService.phoneAuthentication(envelopesApi, accountId, envelope);
92-
// Step 4.1 end
93+
//ds-snippet-end:eSign20Step4
9394

9495
session.setEnvelopeId(results.getEnvelopeId());
9596
DoneExample.createDefault(getTextForCodeExampleByApiType().ExampleName)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static EnvelopeSummary phoneAuthentication(
2222
return envelopesApi.createEnvelope(accountId, envelope);
2323
}
2424

25-
// Step 4.2 start
25+
//ds-snippet-start:eSign20Step4
2626
public static EnvelopeDefinition createEnvelope(String signerName, String signerEmail, String countryCode,
2727
String phone, String workFlowId) throws IOException {
2828
Document doc = EnvelopeHelpers.createDocumentFromFile(DOCUMENT_FILE_NAME, DOCUMENT_NAME, "1");
@@ -77,5 +77,5 @@ public static EnvelopeDefinition createEnvelope(String signerName, String signer
7777

7878
return envelope;
7979
}
80-
// Step 4.2 end
80+
//ds-snippet-end:eSign20Step4
8181
}

0 commit comments

Comments
 (0)