|
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/BulkRecipientsResponse', 'model/BulkRecipientsSummaryResponse', 'model/BulkRecipientsUpdateResponse', 'model/BulkSendRequest', 'model/BulkSendResponse', 'model/BulkSendTestResponse', 'model/BulkSendingList', 'model/BulkSendingListSummaries', 'model/ErrorDetails'], factory); |
| 15 | + define(['Configuration', 'ApiClient', 'model/BulkEnvelopeStatus', 'model/BulkEnvelopesResponse', 'model/BulkRecipientsResponse', 'model/BulkRecipientsSummaryResponse', 'model/BulkRecipientsUpdateResponse', 'model/BulkSendBatchStatus', 'model/BulkSendBatchSummaries', 'model/BulkSendRequest', 'model/BulkSendResponse', 'model/BulkSendTestResponse', 'model/BulkSendingList', 'model/BulkSendingListSummaries', '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/BulkRecipientsResponse'), require('../model/BulkRecipientsSummaryResponse'), require('../model/BulkRecipientsUpdateResponse'), require('../model/BulkSendRequest'), require('../model/BulkSendResponse'), require('../model/BulkSendTestResponse'), require('../model/BulkSendingList'), require('../model/BulkSendingListSummaries'), 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/BulkSendBatchStatus'), require('../model/BulkSendBatchSummaries'), require('../model/BulkSendRequest'), require('../model/BulkSendResponse'), require('../model/BulkSendTestResponse'), require('../model/BulkSendingList'), require('../model/BulkSendingListSummaries'), 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.BulkRecipientsResponse, root.Docusign.BulkRecipientsSummaryResponse, root.Docusign.BulkRecipientsUpdateResponse, root.Docusign.BulkSendRequest, root.Docusign.BulkSendResponse, root.Docusign.BulkSendTestResponse, root.Docusign.BulkSendingList, root.Docusign.BulkSendingListSummaries, 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.BulkSendBatchStatus, root.Docusign.BulkSendBatchSummaries, root.Docusign.BulkSendRequest, root.Docusign.BulkSendResponse, root.Docusign.BulkSendTestResponse, root.Docusign.BulkSendingList, root.Docusign.BulkSendingListSummaries, root.Docusign.ErrorDetails); |
25 | 25 | }
|
26 |
| -}(this, function(Configuration, ApiClient, BulkEnvelopeStatus, BulkEnvelopesResponse, BulkRecipientsResponse, BulkRecipientsSummaryResponse, BulkRecipientsUpdateResponse, BulkSendRequest, BulkSendResponse, BulkSendTestResponse, BulkSendingList, BulkSendingListSummaries, ErrorDetails) { |
| 26 | +}(this, function(Configuration, ApiClient, BulkEnvelopeStatus, BulkEnvelopesResponse, BulkRecipientsResponse, BulkRecipientsSummaryResponse, BulkRecipientsUpdateResponse, BulkSendBatchStatus, BulkSendBatchSummaries, BulkSendRequest, BulkSendResponse, BulkSendTestResponse, BulkSendingList, BulkSendingListSummaries, ErrorDetails) { |
27 | 27 | 'use strict';
|
28 | 28 |
|
29 | 29 | /**
|
@@ -444,6 +444,131 @@ After using this, the `bulkRecipientsUri` property is not returned in subsequent
|
444 | 444 | );
|
445 | 445 | };
|
446 | 446 |
|
| 447 | + /** |
| 448 | + * (Optional) Callback function to receive the result of the getBulkSendBatchStatus operation. If none specified a Promise will be returned. |
| 449 | + * @callback module:api/BulkEnvelopesApi~getBulkSendBatchStatusCallback |
| 450 | + * @param {String} error Error message, if any. |
| 451 | + * @param {module:model/BulkSendBatchStatus} data The data returned by the service call. |
| 452 | + * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
| 453 | + */ |
| 454 | + |
| 455 | + /** |
| 456 | + * Gets a specific bulk send batch status |
| 457 | + * @param {String} accountId The external account number (int) or account ID Guid. |
| 458 | + * @param {String} bulkSendBatchId |
| 459 | + * @param {module:api/BulkEnvelopesApi~getBulkSendBatchStatusCallback} callback The callback function, accepting three arguments: error, data, response |
| 460 | + * data is of type: {@link module:model/BulkSendBatchStatus} |
| 461 | + */ |
| 462 | + this.getBulkSendBatchStatus = function(accountId, bulkSendBatchId, callback) { |
| 463 | + var postBody = null; |
| 464 | + |
| 465 | + // verify the required parameter 'accountId' is set |
| 466 | + if (accountId === undefined || accountId === null) { |
| 467 | + throw new Error("Missing the required parameter 'accountId' when calling getBulkSendBatchStatus"); |
| 468 | + } |
| 469 | + |
| 470 | + // verify the required parameter 'bulkSendBatchId' is set |
| 471 | + if (bulkSendBatchId === undefined || bulkSendBatchId === null) { |
| 472 | + throw new Error("Missing the required parameter 'bulkSendBatchId' when calling getBulkSendBatchStatus"); |
| 473 | + } |
| 474 | + |
| 475 | + if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
| 476 | + if (typeof optsOrCallback !== 'undefined') { |
| 477 | + optsOrCallback = callback; |
| 478 | + } |
| 479 | + callback = arguments[arguments.length-1]; |
| 480 | + } |
| 481 | + |
| 482 | + var pathParams = { |
| 483 | + 'accountId': accountId, |
| 484 | + 'bulkSendBatchId': bulkSendBatchId |
| 485 | + }; |
| 486 | + var queryParams = { |
| 487 | + }; |
| 488 | + var headerParams = { |
| 489 | + }; |
| 490 | + var formParams = { |
| 491 | + }; |
| 492 | + |
| 493 | + var authNames = ['docusignAccessCode']; |
| 494 | + var contentTypes = []; |
| 495 | + var accepts = ['application/json']; |
| 496 | + var returnType = BulkSendBatchStatus; |
| 497 | + |
| 498 | + return this.apiClient.callApi( |
| 499 | + '/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}', 'GET', |
| 500 | + pathParams, queryParams, headerParams, formParams, postBody, |
| 501 | + authNames, contentTypes, accepts, returnType, callback |
| 502 | + ); |
| 503 | + }; |
| 504 | + |
| 505 | + /** |
| 506 | + * (Optional) Callback function to receive the result of the getBulkSendBatches operation. If none specified a Promise will be returned. |
| 507 | + * @callback module:api/BulkEnvelopesApi~getBulkSendBatchesCallback |
| 508 | + * @param {String} error Error message, if any. |
| 509 | + * @param {module:model/BulkSendBatchSummaries} data The data returned by the service call. |
| 510 | + * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
| 511 | + */ |
| 512 | + |
| 513 | + /** |
| 514 | + * Returns a list of bulk send batch satuses initiated by account. |
| 515 | + * @param {String} accountId The external account number (int) or account ID Guid. |
| 516 | + * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
| 517 | + * @param {String} optsOrCallback.batchIds |
| 518 | + * @param {String} optsOrCallback.count |
| 519 | + * @param {String} optsOrCallback.startPosition |
| 520 | + * @param {String} optsOrCallback.status |
| 521 | + * @param {module:api/BulkEnvelopesApi~getBulkSendBatchesCallback} callback The callback function, accepting three arguments: error, data, response |
| 522 | + * data is of type: {@link module:model/BulkSendBatchSummaries} |
| 523 | + */ |
| 524 | + this.getBulkSendBatches = function(accountId, optsOrCallback, callback) { |
| 525 | + optsOrCallback = optsOrCallback || {}; |
| 526 | + |
| 527 | + if (typeof optsOrCallback === 'function') { |
| 528 | + callback = optsOrCallback; |
| 529 | + optsOrCallback = {}; |
| 530 | + } |
| 531 | + |
| 532 | + var postBody = null; |
| 533 | + |
| 534 | + // verify the required parameter 'accountId' is set |
| 535 | + if (accountId === undefined || accountId === null) { |
| 536 | + throw new Error("Missing the required parameter 'accountId' when calling getBulkSendBatches"); |
| 537 | + } |
| 538 | + |
| 539 | + if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
| 540 | + if (typeof optsOrCallback !== 'undefined') { |
| 541 | + optsOrCallback = callback; |
| 542 | + } |
| 543 | + callback = arguments[arguments.length-1]; |
| 544 | + } |
| 545 | + |
| 546 | + var pathParams = { |
| 547 | + 'accountId': accountId |
| 548 | + }; |
| 549 | + var queryParams = { |
| 550 | + 'batch_ids': optsOrCallback['batchIds'], |
| 551 | + 'count': optsOrCallback['count'], |
| 552 | + 'start_position': optsOrCallback['startPosition'], |
| 553 | + 'status': optsOrCallback['status'] |
| 554 | + }; |
| 555 | + var headerParams = { |
| 556 | + }; |
| 557 | + var formParams = { |
| 558 | + }; |
| 559 | + |
| 560 | + var authNames = ['docusignAccessCode']; |
| 561 | + var contentTypes = []; |
| 562 | + var accepts = ['application/json']; |
| 563 | + var returnType = BulkSendBatchSummaries; |
| 564 | + |
| 565 | + return this.apiClient.callApi( |
| 566 | + '/v2.1/accounts/{accountId}/bulk_send_batch', 'GET', |
| 567 | + pathParams, queryParams, headerParams, formParams, postBody, |
| 568 | + authNames, contentTypes, accepts, returnType, callback |
| 569 | + ); |
| 570 | + }; |
| 571 | + |
447 | 572 | /**
|
448 | 573 | * (Optional) Callback function to receive the result of the getBulkSendList operation. If none specified a Promise will be returned.
|
449 | 574 | * @callback module:api/BulkEnvelopesApi~getBulkSendListCallback
|
@@ -647,7 +772,6 @@ The response returns information about the envelopes sent with bulk recipient ba
|
647 | 772 | * @param {String} accountId The external account number (int) or account ID Guid.
|
648 | 773 | * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely.
|
649 | 774 | * @param {String} optsOrCallback.count The number of results to return. This can be 1 to 20.
|
650 |
| - * @param {String} optsOrCallback.include |
651 | 775 | * @param {String} optsOrCallback.startPosition The position of the bulk envelope items in the response. This is used for repeated calls, when the number of bulk envelopes returned is too large for one return. The default value is 0.
|
652 | 776 | * @param {module:api/BulkEnvelopesApi~listCallback} callback The callback function, accepting three arguments: error, data, response
|
653 | 777 | * data is of type: {@link module:model/BulkEnvelopesResponse}
|
@@ -679,7 +803,6 @@ The response returns information about the envelopes sent with bulk recipient ba
|
679 | 803 | };
|
680 | 804 | var queryParams = {
|
681 | 805 | 'count': optsOrCallback['count'],
|
682 |
| - 'include': optsOrCallback['include'], |
683 | 806 | 'start_position': optsOrCallback['startPosition']
|
684 | 807 | };
|
685 | 808 | var headerParams = {
|
|
0 commit comments