Skip to content

Commit

Permalink
DEVDOCS-10174 adding codeDepot markers
Browse files Browse the repository at this point in the history
  • Loading branch information
raileendr committed Sep 28, 2023
1 parent d75f395 commit 3073df8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,25 @@ protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse
throws ApiException, IOException
{

// Step 2: Construct your API headers
//ds-snippet-start:eSign32Step2
EnvelopesApi envelopesApi = createEnvelopesApi(this.session.getBasePath(), this.user.getAccessToken());

// Step 3: Construct your envelope JSON body
//ds-snippet-end:eSign32Step2

// Construct your envelope JSON body
EnvelopeDefinition envelope = PauseSignatureWorkflowService.createEnvelope(
args.getSignerName(),
args.getSignerEmail(),
args.getSignerName2(),
args.getSignerEmail2()
);

// Step 4: Call the eSignature REST API
//ds-snippet-start:eSign32Step4
EnvelopeSummary envelopeSummary = PauseSignatureWorkflowService.pauseSignatureWorkflow(
envelopesApi,
this.session.getAccountId(),
envelope
);
//ds-snippet-end:eSign32Step4

this.session.setEnvelopeId(envelopeSummary.getEnvelopeId());
DoneExample.createDefault(this.title)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static EnvelopeSummary pauseSignatureWorkflow(
return envelopesApi.createEnvelope(accountId, envelope);
}

//ds-snippet-start:eSign32Step3
public static EnvelopeDefinition createEnvelope(
String signerName,
String signerEmail,
Expand Down Expand Up @@ -80,4 +81,5 @@ public static EnvelopeDefinition createEnvelope(

return envelope;
}
//ds-snippet-end:eSign32Step3
}

0 comments on commit 3073df8

Please sign in to comment.