Skip to content

Commit 93efeaa

Browse files
update step comments for ss/dr
1 parent 9dbbef5 commit 93efeaa

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

lib/eSignature/examples/delayedRouting.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
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
};
@@ -51,12 +53,13 @@
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!
@@ -156,6 +159,7 @@
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
}

lib/eSignature/examples/scheduledSending.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
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
};
@@ -54,6 +56,7 @@
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!
@@ -126,6 +129,7 @@
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
}

0 commit comments

Comments
 (0)