Skip to content

Commit f0fdf07

Browse files
committed
adding codeDepot markers and removing email field
1 parent 1418c12 commit f0fdf07

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/java/com/docusign/controller/notary/examples/AbstractNotaryController.java

+2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ public AbstractNotaryController(DSConfiguration config, String exampleName, Sess
3636
* @return an instance of the {@link ApiClient}
3737
*/
3838

39+
//ds-snippet-start:Notary4Step2
3940
protected static ApiClient createApiClient(String basePath, String userAccessToken) {
4041
ApiClient apiClient = new ApiClient(basePath);
4142
apiClient.addDefaultHeader(HttpHeaders.AUTHORIZATION, BEARER_AUTHENTICATION + userAccessToken);
4243
apiClient.addAuthorization("docusignAccessCode", new OAuth());
4344
return apiClient;
4445
}
46+
//ds-snippet-end:Notary4Step2
4547

4648
/**
4749
* Creates a new instance of the eSignature EnvelopesApi. This method

src/main/java/com/docusign/controller/notary/services/SendWithThirdPartyNotaryService.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public final class SendWithThirdPartyNotaryService {
1616

1717
private static final String HTML_DOCUMENT_NAME = "Order form";
1818

19+
//ds-snippet-start:Notary4Step4
1920
public static String sendWithNotary(String signerEmail, String signerName, String accountId,
2021
EnvelopesApi envelopesApi, WorkArguments args)
2122
throws ApiException, com.docusign.esign.client.ApiException, IOException {
@@ -24,7 +25,9 @@ public static String sendWithNotary(String signerEmail, String signerName, Strin
2425
EnvelopeSummary envelopeSummary = envelopesApi.createEnvelope(accountId, envelopeDefinition);
2526
return envelopeSummary.getEnvelopeId();
2627
}
28+
//ds-snippet-end:Notary4Step4
2729

30+
//ds-snippet-start:Notary4Step3
2831
private static EnvelopeDefinition makeEnvelope(String signerEmail, String signerName, WorkArguments args)
2932
throws IOException {
3033
EnvelopeDefinition envelopeDefinition = new EnvelopeDefinition();
@@ -99,7 +102,6 @@ private static java.util.List<NotaryRecipient> getNotaryRecipients() {
99102
notaryTabs.setNotarySealTabs(Collections.singletonList(notarySealTabs));
100103

101104
NotaryRecipient notaryRecipient = new NotaryRecipient();
102-
notaryRecipient.setEmail("");
103105
notaryRecipient.setName("Notary");
104106
notaryRecipient.setRecipientId("1");
105107
notaryRecipient.setRoutingOrder("1");
@@ -117,4 +119,5 @@ private static java.util.List<NotaryRecipient> getNotaryRecipients() {
117119

118120
return Collections.singletonList(notaryRecipient);
119121
}
122+
//ds-snippet-end:Notary4Step3
120123
}

0 commit comments

Comments
 (0)