File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 2222 dsApiClient . addDefaultHeader ( "Authorization" , "Bearer " + args . accessToken ) ;
2323 let envelopesApi = new docusign . EnvelopesApi ( dsApiClient ) ;
2424
25- // Step 1. Make the envelope request body
25+ // Make the envelope request body
2626 let envelope = makeEnvelope ( args . envelopeArgs ) ;
2727
28- // Step 2. call Envelopes::create API method
28+ // call Envelopes::create API method
2929 // Exceptions will be caught by the calling function
30+ // Step 3 start
3031 let results = await envelopesApi . createEnvelope ( args . accountId , {
3132 envelopeDefinition : envelope ,
3233 } ) ;
34+ // Step 3 end
3335
3436 return results ;
3537 } ;
5153 // args.delay
5254
5355
56+
5457 // document (pdf) has tag /sn1/
5558 //
5659 // The envelope has two recipients.
5760 // recipient 1 - signer
5861 // recipient 2 - signer
59-
62+ // Step 2 start
6063 let docPdfBytes ;
6164 // read files from a local directory
6265 // The reads could raise an exception if the file is not available!
156159 // Request that the envelope be sent by setting |status| to "sent".
157160 // To request that the envelope be created as a draft, set to "created"
158161 env . status = "sent" ;
162+ // Step 2 end
159163
160164 return env ;
161165 }
Original file line number Diff line number Diff line change 2222 dsApiClient . addDefaultHeader ( "Authorization" , "Bearer " + args . accessToken ) ;
2323 let envelopesApi = new docusign . EnvelopesApi ( dsApiClient ) ;
2424
25- // Step 1. Make the envelope request body
25+ // Make the envelope request body
2626 let envelope = makeEnvelope ( args . envelopeArgs ) ;
2727
28- // Step 2. call Envelopes::create API method
28+ // call Envelopes::create API method
2929 // Exceptions will be caught by the calling function
30+ // Step 3 start
3031 let results = await envelopesApi . createEnvelope ( args . accountId , {
3132 envelopeDefinition : envelope ,
3233 } ) ;
34+ // Step 3 end
3335
3436 return results ;
3537 } ;
5456 // The envelope has a single recipient.
5557 // recipient 1 - signer
5658
59+ // Step 2 start
5760 let docPdfBytes ;
5861 // read files from a local directory
5962 // The reads could raise an exception if the file is not available!
126129 // Request that the envelope be sent by setting |status| to "sent".
127130 // To request that the envelope be created as a draft, set to "created"
128131 env . status = "sent" ;
132+ // Step 2 end
129133
130134 return env ;
131135 }
You can’t perform that action at this time.
0 commit comments