|
114 | 114 | ); |
115 | 115 | }; |
116 | 116 |
|
117 | | - /** |
118 | | - * (Optional) Callback function to receive the result of the createConnectSecret operation. If none specified a Promise will be returned. |
119 | | - * @callback module:api/ConnectApi~createConnectSecretCallback |
120 | | - * @param {String} error Error message, if any. |
121 | | - * @param data This operation does not return a value. |
122 | | - * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
123 | | - */ |
124 | | - |
125 | | - /** |
126 | | - * Generates a new connect HMAC Secret. |
127 | | - * @param {String} accountId The external account number (int) or account ID Guid. |
128 | | - * @param {module:api/ConnectApi~createConnectSecretCallback} callback The callback function, accepting three arguments: error, data, response |
129 | | - */ |
130 | | - this.createConnectSecret = function(accountId, callback) { |
131 | | - var postBody = null; |
132 | | - |
133 | | - // verify the required parameter 'accountId' is set |
134 | | - if (accountId === undefined || accountId === null) { |
135 | | - throw new Error("Missing the required parameter 'accountId' when calling createConnectSecret"); |
136 | | - } |
137 | | - |
138 | | - if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
139 | | - if (typeof optsOrCallback !== 'undefined') { |
140 | | - optsOrCallback = callback; |
141 | | - } |
142 | | - callback = arguments[arguments.length-1]; |
143 | | - } |
144 | | - |
145 | | - var pathParams = { |
146 | | - 'accountId': accountId |
147 | | - }; |
148 | | - var queryParams = { |
149 | | - }; |
150 | | - var headerParams = { |
151 | | - }; |
152 | | - var formParams = { |
153 | | - }; |
154 | | - |
155 | | - var authNames = ['docusignAccessCode']; |
156 | | - var contentTypes = []; |
157 | | - var accepts = ['application/json']; |
158 | | - var returnType = null; |
159 | | - |
160 | | - return this.apiClient.callApi( |
161 | | - '/v2.1/accounts/{accountId}/connect/secret', 'POST', |
162 | | - pathParams, queryParams, headerParams, formParams, postBody, |
163 | | - authNames, contentTypes, accepts, returnType, callback |
164 | | - ); |
165 | | - }; |
166 | | - |
167 | 117 | /** |
168 | 118 | * (Optional) Callback function to receive the result of the deleteConfiguration operation. If none specified a Promise will be returned. |
169 | 119 | * @callback module:api/ConnectApi~deleteConfigurationCallback |
|
227 | 177 | ); |
228 | 178 | }; |
229 | 179 |
|
230 | | - /** |
231 | | - * (Optional) Callback function to receive the result of the deleteConnectSecret operation. If none specified a Promise will be returned. |
232 | | - * @callback module:api/ConnectApi~deleteConnectSecretCallback |
233 | | - * @param {String} error Error message, if any. |
234 | | - * @param data This operation does not return a value. |
235 | | - * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
236 | | - */ |
237 | | - |
238 | | - /** |
239 | | - * Delete the connect HMAC Secret for AccountID |
240 | | - * @param {String} accountId The external account number (int) or account ID Guid. |
241 | | - * @param {String} keyId |
242 | | - * @param {module:api/ConnectApi~deleteConnectSecretCallback} callback The callback function, accepting three arguments: error, data, response |
243 | | - */ |
244 | | - this.deleteConnectSecret = function(accountId, keyId, callback) { |
245 | | - var postBody = null; |
246 | | - |
247 | | - // verify the required parameter 'accountId' is set |
248 | | - if (accountId === undefined || accountId === null) { |
249 | | - throw new Error("Missing the required parameter 'accountId' when calling deleteConnectSecret"); |
250 | | - } |
251 | | - |
252 | | - // verify the required parameter 'keyId' is set |
253 | | - if (keyId === undefined || keyId === null) { |
254 | | - throw new Error("Missing the required parameter 'keyId' when calling deleteConnectSecret"); |
255 | | - } |
256 | | - |
257 | | - if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
258 | | - if (typeof optsOrCallback !== 'undefined') { |
259 | | - optsOrCallback = callback; |
260 | | - } |
261 | | - callback = arguments[arguments.length-1]; |
262 | | - } |
263 | | - |
264 | | - var pathParams = { |
265 | | - 'accountId': accountId, |
266 | | - 'keyId': keyId |
267 | | - }; |
268 | | - var queryParams = { |
269 | | - }; |
270 | | - var headerParams = { |
271 | | - }; |
272 | | - var formParams = { |
273 | | - }; |
274 | | - |
275 | | - var authNames = ['docusignAccessCode']; |
276 | | - var contentTypes = []; |
277 | | - var accepts = ['application/json']; |
278 | | - var returnType = null; |
279 | | - |
280 | | - return this.apiClient.callApi( |
281 | | - '/v2.1/accounts/{accountId}/connect/secret/{keyId}', 'DELETE', |
282 | | - pathParams, queryParams, headerParams, formParams, postBody, |
283 | | - authNames, contentTypes, accepts, returnType, callback |
284 | | - ); |
285 | | - }; |
286 | | - |
287 | 180 | /** |
288 | 181 | * (Optional) Callback function to receive the result of the deleteEventFailureLog operation. If none specified a Promise will be returned. |
289 | 182 | * @callback module:api/ConnectApi~deleteEventFailureLogCallback |
|
515 | 408 | ); |
516 | 409 | }; |
517 | 410 |
|
518 | | - /** |
519 | | - * (Optional) Callback function to receive the result of the generateConnectSecret operation. If none specified a Promise will be returned. |
520 | | - * @callback module:api/ConnectApi~generateConnectSecretCallback |
521 | | - * @param {String} error Error message, if any. |
522 | | - * @param data This operation does not return a value. |
523 | | - * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
524 | | - */ |
525 | | - |
526 | | - /** |
527 | | - * Generates a new connect HMAC Secret. |
528 | | - * @param {String} accountId The external account number (int) or account ID Guid. |
529 | | - * @param {module:api/ConnectApi~generateConnectSecretCallback} callback The callback function, accepting three arguments: error, data, response |
530 | | - */ |
531 | | - this.generateConnectSecret = function(accountId, callback) { |
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 generateConnectSecret"); |
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 | | - }; |
551 | | - var headerParams = { |
552 | | - }; |
553 | | - var formParams = { |
554 | | - }; |
555 | | - |
556 | | - var authNames = ['docusignAccessCode']; |
557 | | - var contentTypes = []; |
558 | | - var accepts = ['application/json']; |
559 | | - var returnType = null; |
560 | | - |
561 | | - return this.apiClient.callApi( |
562 | | - '/v2.1/accounts/{accountId}/connect/secret', 'GET', |
563 | | - pathParams, queryParams, headerParams, formParams, postBody, |
564 | | - authNames, contentTypes, accepts, returnType, callback |
565 | | - ); |
566 | | - }; |
567 | | - |
568 | 411 | /** |
569 | 412 | * (Optional) Callback function to receive the result of the getConfiguration operation. If none specified a Promise will be returned. |
570 | 413 | * @callback module:api/ConnectApi~getConfigurationCallback |
|
627 | 470 | ); |
628 | 471 | }; |
629 | 472 |
|
630 | | - /** |
631 | | - * (Optional) Callback function to receive the result of the getConnectSecrets operation. If none specified a Promise will be returned. |
632 | | - * @callback module:api/ConnectApi~getConnectSecretsCallback |
633 | | - * @param {String} error Error message, if any. |
634 | | - * @param data This operation does not return a value. |
635 | | - * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
636 | | - */ |
637 | | - |
638 | | - /** |
639 | | - * Get the connect HMAC Secrets for AccountID |
640 | | - * @param {String} accountId The external account number (int) or account ID Guid. |
641 | | - * @param {module:api/ConnectApi~getConnectSecretsCallback} callback The callback function, accepting three arguments: error, data, response |
642 | | - */ |
643 | | - this.getConnectSecrets = function(accountId, callback) { |
644 | | - var postBody = null; |
645 | | - |
646 | | - // verify the required parameter 'accountId' is set |
647 | | - if (accountId === undefined || accountId === null) { |
648 | | - throw new Error("Missing the required parameter 'accountId' when calling getConnectSecrets"); |
649 | | - } |
650 | | - |
651 | | - if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
652 | | - if (typeof optsOrCallback !== 'undefined') { |
653 | | - optsOrCallback = callback; |
654 | | - } |
655 | | - callback = arguments[arguments.length-1]; |
656 | | - } |
657 | | - |
658 | | - var pathParams = { |
659 | | - 'accountId': accountId |
660 | | - }; |
661 | | - var queryParams = { |
662 | | - }; |
663 | | - var headerParams = { |
664 | | - }; |
665 | | - var formParams = { |
666 | | - }; |
667 | | - |
668 | | - var authNames = ['docusignAccessCode']; |
669 | | - var contentTypes = []; |
670 | | - var accepts = ['application/json']; |
671 | | - var returnType = null; |
672 | | - |
673 | | - return this.apiClient.callApi( |
674 | | - '/v2.1/accounts/{accountId}/connect/secrets', 'GET', |
675 | | - pathParams, queryParams, headerParams, formParams, postBody, |
676 | | - authNames, contentTypes, accepts, returnType, callback |
677 | | - ); |
678 | | - }; |
679 | | - |
680 | 473 | /** |
681 | 474 | * (Optional) Callback function to receive the result of the getEventLog operation. If none specified a Promise will be returned. |
682 | 475 | * @callback module:api/ConnectApi~getEventLogCallback |
|
0 commit comments