|
12 | 12 | (function(root, factory) { |
13 | 13 | if (typeof define === 'function' && define.amd) { |
14 | 14 | // AMD. Register as an anonymous module. |
15 | | - define(['Configuration', 'ApiClient', 'model/BulkEnvelopeStatus', 'model/BulkEnvelopesResponse', 'model/BulkRecipientsRequest', 'model/BulkRecipientsResponse', 'model/BulkRecipientsSummaryResponse', 'model/BulkRecipientsUpdateResponse', 'model/ErrorDetails'], factory); |
| 15 | + define(['Configuration', 'ApiClient', 'model/BulkEnvelopeStatus', 'model/BulkEnvelopesResponse', 'model/BulkRecipientsResponse', 'model/BulkRecipientsSummaryResponse', 'model/BulkRecipientsUpdateResponse', 'model/ErrorDetails'], factory); |
16 | 16 | } else if (typeof module === 'object' && module.exports) { |
17 | 17 | // CommonJS-like environments that support module.exports, like Node. |
18 | | - module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/BulkEnvelopeStatus'), require('../model/BulkEnvelopesResponse'), require('../model/BulkRecipientsRequest'), require('../model/BulkRecipientsResponse'), require('../model/BulkRecipientsSummaryResponse'), require('../model/BulkRecipientsUpdateResponse'), require('../model/ErrorDetails')); |
| 18 | + module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/BulkEnvelopeStatus'), require('../model/BulkEnvelopesResponse'), require('../model/BulkRecipientsResponse'), require('../model/BulkRecipientsSummaryResponse'), require('../model/BulkRecipientsUpdateResponse'), require('../model/ErrorDetails')); |
19 | 19 | } else { |
20 | 20 | // Browser globals (root is window) |
21 | 21 | if (!root.Docusign) { |
22 | 22 | root.Docusign = {}; |
23 | 23 | } |
24 | | - root.Docusign.BulkEnvelopesApi = factory(root.Docusign.Configuration, root.Docusign.ApiClient, root.Docusign.BulkEnvelopeStatus, root.Docusign.BulkEnvelopesResponse, root.Docusign.BulkRecipientsRequest, root.Docusign.BulkRecipientsResponse, root.Docusign.BulkRecipientsSummaryResponse, root.Docusign.BulkRecipientsUpdateResponse, root.Docusign.ErrorDetails); |
| 24 | + root.Docusign.BulkEnvelopesApi = factory(root.Docusign.Configuration, root.Docusign.ApiClient, root.Docusign.BulkEnvelopeStatus, root.Docusign.BulkEnvelopesResponse, root.Docusign.BulkRecipientsResponse, root.Docusign.BulkRecipientsSummaryResponse, root.Docusign.BulkRecipientsUpdateResponse, root.Docusign.ErrorDetails); |
25 | 25 | } |
26 | | -}(this, function(Configuration, ApiClient, BulkEnvelopeStatus, BulkEnvelopesResponse, BulkRecipientsRequest, BulkRecipientsResponse, BulkRecipientsSummaryResponse, BulkRecipientsUpdateResponse, ErrorDetails) { |
| 26 | +}(this, function(Configuration, ApiClient, BulkEnvelopeStatus, BulkEnvelopesResponse, BulkRecipientsResponse, BulkRecipientsSummaryResponse, BulkRecipientsUpdateResponse, ErrorDetails) { |
27 | 27 | 'use strict'; |
28 | 28 |
|
29 | 29 | /** |
@@ -352,24 +352,21 @@ The response returns information about the envelopes sent with bulk recipient ba |
352 | 352 | * Updates the bulk recipients in a draft envelope using a file upload. The Content-Type supported for uploading a bulk recipient file is CSV (text/csv). |
353 | 353 |
|
354 | 354 | The REST API does not support modifying individual rows or values in the bulk recipients file. It only allows the entire file to be added or replaced with a new file. |
| 355 | + * @param {String} bulkRecipientsRequest |
355 | 356 | * @param {String} accountId The external account number (int) or account ID Guid. |
356 | | - * @param {String} envelopeId The envelopeId Guid of the envelope being accessed. |
357 | | - * @param {String} recipientId The ID of the recipient being accessed. |
358 | | - * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
359 | | - * @param {module:model/BulkRecipientsRequest} optsOrCallback.bulkRecipientsRequest |
| 357 | + * @param {String} envelopeId The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec |
| 358 | + * @param {String} recipientId The `recipientId` used when the envelope or template was created. |
360 | 359 | * @param {module:api/BulkEnvelopesApi~updateRecipientsCallback} callback The callback function, accepting three arguments: error, data, response |
361 | 360 | * data is of type: {@link module:model/BulkRecipientsSummaryResponse} |
362 | 361 | */ |
363 | | - this.updateRecipients = function(accountId, envelopeId, recipientId, optsOrCallback, callback) { |
364 | | - optsOrCallback = optsOrCallback || {}; |
| 362 | + this.updateRecipients = function(bulkRecipientsRequest, accountId, envelopeId, recipientId, callback) { |
| 363 | + var postBody = bulkRecipientsRequest; |
365 | 364 |
|
366 | | - if (typeof optsOrCallback === 'function') { |
367 | | - callback = optsOrCallback; |
368 | | - optsOrCallback = {}; |
| 365 | + // verify the required parameter 'bulkRecipientsRequest' is set |
| 366 | + if (bulkRecipientsRequest == undefined || bulkRecipientsRequest == null) { |
| 367 | + throw new Error("Missing the required parameter 'bulkRecipientsRequest' when calling updateRecipients"); |
369 | 368 | } |
370 | 369 |
|
371 | | - var postBody = optsOrCallback['bulkRecipientsRequest']; |
372 | | - |
373 | 370 | // verify the required parameter 'accountId' is set |
374 | 371 | if (accountId == undefined || accountId == null) { |
375 | 372 | throw new Error("Missing the required parameter 'accountId' when calling updateRecipients"); |
|
0 commit comments