@@ -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 )
0 commit comments