|
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/BulkSendBatchRequest', 'model/BulkSendBatchStatus', 'model/BulkSendBatchSummaries', 'model/BulkSendRequest', 'model/BulkSendResponse', 'model/BulkSendTestResponse', 'model/BulkSendingList', 'model/BulkSendingListSummaries', 'model/EnvelopesInformation', 'model/ErrorDetails'], factory); |
| 15 | + define(['Configuration', 'ApiClient', 'model/BulkSendBatchActionRequest', 'model/BulkSendBatchRequest', 'model/BulkSendBatchStatus', 'model/BulkSendBatchSummaries', 'model/BulkSendRequest', 'model/BulkSendResponse', 'model/BulkSendTestResponse', 'model/BulkSendingList', 'model/BulkSendingListSummaries', 'model/EnvelopesInformation', '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/BulkSendBatchRequest'), require('../model/BulkSendBatchStatus'), require('../model/BulkSendBatchSummaries'), require('../model/BulkSendRequest'), require('../model/BulkSendResponse'), require('../model/BulkSendTestResponse'), require('../model/BulkSendingList'), require('../model/BulkSendingListSummaries'), require('../model/EnvelopesInformation'), require('../model/ErrorDetails')); |
| 18 | + module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/BulkSendBatchActionRequest'), require('../model/BulkSendBatchRequest'), require('../model/BulkSendBatchStatus'), require('../model/BulkSendBatchSummaries'), require('../model/BulkSendRequest'), require('../model/BulkSendResponse'), require('../model/BulkSendTestResponse'), require('../model/BulkSendingList'), require('../model/BulkSendingListSummaries'), require('../model/EnvelopesInformation'), 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.BulkSendBatchRequest, root.Docusign.BulkSendBatchStatus, root.Docusign.BulkSendBatchSummaries, root.Docusign.BulkSendRequest, root.Docusign.BulkSendResponse, root.Docusign.BulkSendTestResponse, root.Docusign.BulkSendingList, root.Docusign.BulkSendingListSummaries, root.Docusign.EnvelopesInformation, root.Docusign.ErrorDetails); |
| 24 | + root.Docusign.BulkEnvelopesApi = factory(root.Docusign.Configuration, root.Docusign.ApiClient, root.Docusign.BulkSendBatchActionRequest, root.Docusign.BulkSendBatchRequest, root.Docusign.BulkSendBatchStatus, root.Docusign.BulkSendBatchSummaries, root.Docusign.BulkSendRequest, root.Docusign.BulkSendResponse, root.Docusign.BulkSendTestResponse, root.Docusign.BulkSendingList, root.Docusign.BulkSendingListSummaries, root.Docusign.EnvelopesInformation, root.Docusign.ErrorDetails); |
25 | 25 | } |
26 | | -}(this, function(Configuration, ApiClient, BulkSendBatchRequest, BulkSendBatchStatus, BulkSendBatchSummaries, BulkSendRequest, BulkSendResponse, BulkSendTestResponse, BulkSendingList, BulkSendingListSummaries, EnvelopesInformation, ErrorDetails) { |
| 26 | +}(this, function(Configuration, ApiClient, BulkSendBatchActionRequest, BulkSendBatchRequest, BulkSendBatchStatus, BulkSendBatchSummaries, BulkSendRequest, BulkSendResponse, BulkSendTestResponse, BulkSendingList, BulkSendingListSummaries, EnvelopesInformation, ErrorDetails) { |
27 | 27 | 'use strict'; |
28 | 28 |
|
29 | 29 | /** |
|
621 | 621 | ); |
622 | 622 | }; |
623 | 623 |
|
| 624 | + /** |
| 625 | + * (Optional) Callback function to receive the result of the updateBulkSendBatchAction operation. If none specified a Promise will be returned. |
| 626 | + * @callback module:api/BulkEnvelopesApi~updateBulkSendBatchActionCallback |
| 627 | + * @param {String} error Error message, if any. |
| 628 | + * @param {module:model/BulkSendBatchStatus} data The data returned by the service call. |
| 629 | + * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
| 630 | + */ |
| 631 | + |
| 632 | + /** |
| 633 | + * Initiate a specific bulk send batch action |
| 634 | + * @param {String} accountId The external account number (int) or account ID Guid. |
| 635 | + * @param {String} bulkSendBatchId |
| 636 | + * @param {String} bulkAction |
| 637 | + * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
| 638 | + * @param {module:model/BulkSendBatchActionRequest} optsOrCallback.bulkSendBatchActionRequest |
| 639 | + * @param {module:api/BulkEnvelopesApi~updateBulkSendBatchActionCallback} callback The callback function, accepting three arguments: error, data, response |
| 640 | + * data is of type: {@link module:model/BulkSendBatchStatus} |
| 641 | + */ |
| 642 | + this.updateBulkSendBatchAction = function(accountId, bulkSendBatchId, bulkAction, optsOrCallback, callback) { |
| 643 | + optsOrCallback = optsOrCallback || {}; |
| 644 | + |
| 645 | + if (typeof optsOrCallback === 'function') { |
| 646 | + callback = optsOrCallback; |
| 647 | + optsOrCallback = {}; |
| 648 | + } |
| 649 | + |
| 650 | + var postBody = optsOrCallback['bulkSendBatchActionRequest']; |
| 651 | + |
| 652 | + // verify the required parameter 'accountId' is set |
| 653 | + if (accountId === undefined || accountId === null) { |
| 654 | + throw new Error("Missing the required parameter 'accountId' when calling updateBulkSendBatchAction"); |
| 655 | + } |
| 656 | + |
| 657 | + // verify the required parameter 'bulkSendBatchId' is set |
| 658 | + if (bulkSendBatchId === undefined || bulkSendBatchId === null) { |
| 659 | + throw new Error("Missing the required parameter 'bulkSendBatchId' when calling updateBulkSendBatchAction"); |
| 660 | + } |
| 661 | + |
| 662 | + // verify the required parameter 'bulkAction' is set |
| 663 | + if (bulkAction === undefined || bulkAction === null) { |
| 664 | + throw new Error("Missing the required parameter 'bulkAction' when calling updateBulkSendBatchAction"); |
| 665 | + } |
| 666 | + |
| 667 | + if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
| 668 | + if (typeof optsOrCallback !== 'undefined') { |
| 669 | + optsOrCallback = callback; |
| 670 | + } |
| 671 | + callback = arguments[arguments.length-1]; |
| 672 | + } |
| 673 | + |
| 674 | + var pathParams = { |
| 675 | + 'accountId': accountId, |
| 676 | + 'bulkSendBatchId': bulkSendBatchId, |
| 677 | + 'bulkAction': bulkAction |
| 678 | + }; |
| 679 | + var queryParams = { |
| 680 | + }; |
| 681 | + var headerParams = { |
| 682 | + }; |
| 683 | + var formParams = { |
| 684 | + }; |
| 685 | + |
| 686 | + var authNames = ['docusignAccessCode']; |
| 687 | + var contentTypes = []; |
| 688 | + var accepts = ['application/json']; |
| 689 | + var returnType = BulkSendBatchStatus; |
| 690 | + |
| 691 | + return this.apiClient.callApi( |
| 692 | + '/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}/{bulkAction}', 'PUT', |
| 693 | + pathParams, queryParams, headerParams, formParams, postBody, |
| 694 | + authNames, contentTypes, accepts, returnType, callback |
| 695 | + ); |
| 696 | + }; |
| 697 | + |
624 | 698 | /** |
625 | 699 | * (Optional) Callback function to receive the result of the updateBulkSendBatchStatus operation. If none specified a Promise will be returned. |
626 | 700 | * @callback module:api/BulkEnvelopesApi~updateBulkSendBatchStatusCallback |
|
0 commit comments