@@ -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