File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -17,23 +17,28 @@ const createEnvelopeWithPayment = async (args) => {
1717 // args.accessToken
1818 // args.accountId
1919
20+ //ds-snippet-start:eSign14Step3
2021 let dsApiClient = new docusign . ApiClient ( ) ;
2122 dsApiClient . setBasePath ( args . basePath ) ;
2223 dsApiClient . addDefaultHeader ( "Authorization" , "Bearer " + args . accessToken ) ;
2324 let envelopesApi = new docusign . EnvelopesApi ( dsApiClient ) ;
2425
2526 // Step 1. Make the envelope request body
2627 let envelope = makeEnvelope ( args . envelopeArgs ) ;
28+ //ds-snippet-end:eSign14Step3
2729
2830 // Step 2. call Envelopes::create API method
2931 // Exceptions will be caught by the calling function
32+ //ds-snippet-start:eSign14Step4
3033 let results = await envelopesApi . createEnvelope ( args . accountId , {
3134 envelopeDefinition : envelope ,
3235 } ) ;
36+ //ds-snippet-end:eSign14Step4
3337 let envelopeId = results . envelopeId ;
3438 return { envelopeId : envelopeId } ;
3539} ;
3640
41+ //ds-snippet-start:eSign14Step3
3742/**
3843 * Creates envelope
3944 * <br>Document 1: An HTML document.
@@ -327,5 +332,6 @@ function makeEnvelope(args) {
327332
328333 return env ;
329334}
335+ //ds-snippet-end:eSign14Step3
330336
331337module . exports = { createEnvelopeWithPayment } ;
You can’t perform that action at this time.
0 commit comments