@@ -16,6 +16,7 @@ public final class SendWithThirdPartyNotaryService {
16
16
17
17
private static final String HTML_DOCUMENT_NAME = "Order form" ;
18
18
19
+ //ds-snippet-start:Notary4Step4
19
20
public static String sendWithNotary (String signerEmail , String signerName , String accountId ,
20
21
EnvelopesApi envelopesApi , WorkArguments args )
21
22
throws ApiException , com .docusign .esign .client .ApiException , IOException {
@@ -24,7 +25,9 @@ public static String sendWithNotary(String signerEmail, String signerName, Strin
24
25
EnvelopeSummary envelopeSummary = envelopesApi .createEnvelope (accountId , envelopeDefinition );
25
26
return envelopeSummary .getEnvelopeId ();
26
27
}
28
+ //ds-snippet-end:Notary4Step4
27
29
30
+ //ds-snippet-start:Notary4Step3
28
31
private static EnvelopeDefinition makeEnvelope (String signerEmail , String signerName , WorkArguments args )
29
32
throws IOException {
30
33
EnvelopeDefinition envelopeDefinition = new EnvelopeDefinition ();
@@ -99,7 +102,6 @@ private static java.util.List<NotaryRecipient> getNotaryRecipients() {
99
102
notaryTabs .setNotarySealTabs (Collections .singletonList (notarySealTabs ));
100
103
101
104
NotaryRecipient notaryRecipient = new NotaryRecipient ();
102
- notaryRecipient .setEmail ("" );
103
105
notaryRecipient .setName ("Notary" );
104
106
notaryRecipient .setRecipientId ("1" );
105
107
notaryRecipient .setRoutingOrder ("1" );
@@ -117,4 +119,5 @@ private static java.util.List<NotaryRecipient> getNotaryRecipients() {
117
119
118
120
return Collections .singletonList (notaryRecipient );
119
121
}
122
+ //ds-snippet-end:Notary4Step3
120
123
}
0 commit comments