@@ -99,18 +99,18 @@ eg010SendBinaryDocs.createController = async (req, res) => {
99
99
/**
100
100
* This function does the work of creating the envelope by using
101
101
* the API directly with multipart mime
102
- * @param {object } args An object with the following elements: <br/>
103
- * <tt>accountId</tt>: Current account Id <br/>
104
- * <tt> basePath</tt>: base path for making API call <br/>
105
- * <tt> accessToken</tt>: a valid access token <br/>
106
- * <tt>demoDocsPath</tt>: relative path for the demo docs <br/>
107
- * <tt>doc2File: file name for doc 2 <br/>
108
- * <tt>doc3File: file name for doc 3 <br/>
109
- * <tt>envelopeArgs</tt>: envelopeArgs, an object with elements <br/>
110
- * <tt>signerEmail</tt>, <tt>signerName</tt>, <tt>ccEmail</tt>, <tt>ccName</tt>
102
+ * @param {object } args object
111
103
*/
112
104
// ***DS.worker.start ***DS.snippet.1.start
113
105
eg010SendBinaryDocs . worker = async ( args ) => {
106
+ // Data for this method
107
+ // args.basePath
108
+ // args.accessToken
109
+ // args.accountId
110
+ // demoDocsPath: relative path for the demo docs
111
+ // doc2File: file name for doc 2
112
+ // doc3File: file name for doc 3
113
+
114
114
115
115
// Step 1. Make the envelope JSON request body
116
116
let envelopeJSON = makeEnvelopeJSON ( args . envelopeArgs )
@@ -195,12 +195,17 @@ eg010SendBinaryDocs.worker = async (args) => {
195
195
* <br>DocuSign will convert all of the documents to the PDF format.
196
196
* <br>The recipients' field tags are placed using <b>anchor</b> strings.
197
197
* @function
198
- * @param {Object } args parameters for the envelope:
199
- * <tt>signerEmail</tt>, <tt>signerName</tt>, <tt>ccEmail</tt>, <tt>ccName</tt>
198
+ * @param {Object } args object
200
199
* @returns {Envelope } An envelope definition
201
200
* @private
202
201
*/
203
202
function makeEnvelopeJSON ( args ) {
203
+ // Data for this method
204
+ // args.signerEmail
205
+ // args.signerName
206
+ // args.ccEmail
207
+ // args.ccName
208
+
204
209
// document 1 (html) has tag **signature_1**
205
210
// document 2 (docx) has tag /sn1/
206
211
// document 3 (pdf) has tag /sn1/
@@ -291,12 +296,16 @@ function makeEnvelopeJSON(args){
291
296
* Creates document 1
292
297
* @function
293
298
* @private
294
- * @param {Object } args parameters for the envelope:
295
- * <tt>signerEmail</tt>, <tt>signerName</tt>, <tt>ccEmail</tt>, <tt>ccName</tt>
299
+ * @param {Object } args object
296
300
* @returns {string } A document in HTML format
297
301
*/
298
-
299
302
function document1 ( args ) {
303
+ // Data for this method
304
+ // args.signerEmail
305
+ // args.signerName
306
+ // args.ccEmail
307
+ // args.ccName
308
+
300
309
return `
301
310
<!DOCTYPE html>
302
311
<html>
0 commit comments